/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0d254f; /* Navy Blue - Govt style */
    --secondary-color: #dcb028; /* Gold/Yellow accent */
    --text-color: #333333;
    --bg-light: #f8f9fa;
    --card-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

body {
    font-family: 'Sarabun', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-light);
}

.navbar {
    background-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand, .nav-link {
    color: white !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0a1c3d;
    border-color: #0a1c3d;
}

.card {
    border: none;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
}

.section-header {
    border-left: 5px solid var(--secondary-color);
    padding-left: 15px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Map specific */
#map {
    height: 600px;
    width: 100%;
    border-radius: 10px;
}

/* eBook Reader */
.book-container {
    padding: 20px;
}

.flipbook-viewport {
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.flipbook {
    width: 1000px;
    height: 600px;
    margin: 20px auto;
}

.flipbook .page {
    width: 500px;
    height: 600px;
    background-color: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    display: flex; /* Centering content if needed */
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.flipbook .page canvas {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
}

.ebook-section-content {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Admin Sidebar (if used) or Navbar */
.admin-header {
    background-color: white;
    padding: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.stats-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stats-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    opacity: 0.2;
}

.iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
}
.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}
