/*================================================
OM PUBLICATION - MAIN STYLESHEET
================================================*/

/* --- Google Fonts --- */
/* Imports the 'Inter' and 'Baloo 2' fonts from Google Fonts for use in the website. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Baloo+2:wght@700&display=swap');

/* --- CSS Variables (Color Scheme and Global Styles) --- */
/* Defines reusable variables for the entire website's theme. 
  Changing a color here will update it everywhere it's used. This is the foundation of the site's design system.
*/
:root {
    --primary-color: #16a085;
    /* Teal: Used for main buttons and important highlights. */
    --secondary-color: #f1c40f;
    /* Yellow: Used for secondary highlights and hover effects. */
    --text-dark: #34495e;
    /* Dark Blue/Grey: The main color for most text on the site. */
    --bg-soft: #ecf0f1;
    /* Light Grey: The primary background color for the body and sections. */
    --bg-white: #ffffff;
    /* White: Used for cards and content boxes to make them stand out. */
    --shadow-color: rgba(0, 0, 0, 0.1);
    /* Soft Black Shadow: Used for creating depth on cards and headers. */
    --text-muted: #7f8c8d;
    /* Muted Grey: Used for less important text like author names or descriptions. */
}

/* --- Base & Body Styles --- */
/* Sets foundational styles for the entire page to ensure consistency. */
body {
    font-family: 'Inter', sans-serif;
    /* Default font for all paragraph text, chosen for readability. */
    background-color: var(--bg-soft);
    color: var(--text-dark);
    margin: 0;
    /* Removes the default margin applied by browsers. */
    line-height: 1.6;
    /* Sets a comfortable space between lines of text. */
}

/* Sets the more decorative 'Baloo 2' font for all heading levels and specific text elements. */
h1,
h2,
h3,
h4,
h5,
h6,
.font-serif {
    font-family: 'Baloo 2', cursive;
}

/* Default styles for all hyperlinks (<a> tags). */
a {
    color: var(--text-dark);
    text-decoration: none;
    /* Removes the default underline from links. */
    transition: color 0.3s ease;
    /* Creates a smooth color change animation on hover. */
}

/* A reusable container class that centers content on the page and prevents it from becoming too wide on large screens.
*/
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    box-sizing: border-box;
    /* Ensures padding is included within the element's total width, preventing overflow. */
}

/* --- Utility Classes --- */
/* A collection of small, single-purpose classes that can be reused to apply common styles. */

/* Styles for buttons that only contain an icon. */
.icon-btn {
    font-size: 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.icon-btn:hover {
    color: var(--secondary-color);
}

/* Helper classes to forcefully show or hide elements. */
.hidden {
    display: none !important;
}

.show {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Simple utility for changing text color to white. */
.text-white {
    color: white;
}

/* Utility for centering text. */
.text-center {
    text-align: center;
}

/* --- Header & Navigation --- */
/* Styles for the main header that appears at the top of every page. */
.header {
    background-color: var(--bg-white);
    box-shadow: 0 4px 6px -1px var(--shadow-color);
    position: sticky;
    /* This makes the header "stick" to the top of the viewport when the user scrolls down. */
    top: 0;
    z-index: 40;
    /* Ensures the header stays on top of other page content during scroll. */
}

.navbar {
    display: flex;
    justify-content: space-between;
    /* Pushes the logo and actions to opposite ends. */
    align-items: center;
    /* Vertically aligns items in the middle. */
    padding: 0.5rem 1rem;
    min-height: 64px;
}

.logo {
    height: 3rem;
    width: auto;
}

/* The main navigation list is hidden by default, designed for mobile-first. */
.main-nav {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* This media query applies styles only to screens 768px or wider (tablets and desktops). */
@media (min-width: 768px) {
    .main-nav {
        display: flex;
        /* Makes the navigation links appear horizontally. */
        align-items: center;
        gap: 1.5rem;
    }
}

.main-nav a {
    font-weight: 500;
    font-size: 1rem;
    padding: 0.25rem 0.5rem;
    display: inline-block;
    line-height: 1.5;
    color: var(--text-dark);
    text-decoration: none;
}

.main-nav a:hover {
    color: var(--secondary-color);
}

/* This class highlights the current page's link in the navigation bar. */
.main-nav .active-nav {
    color: var(--primary-color);
    font-weight: 700;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Hides the mobile menu (hamburger) button on larger screens where the main navigation is visible. */
@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* --- Hero Slideshow --- */
/* Styles for the large, full-screen image carousel on the homepage. */
.hero-slider {
    position: relative;
    /* Establishes a positioning context for its child elements (the slides). */
    width: 100%;
    height: 92vh;
    /* Takes up 92% of the viewport's height. */
    background-color: #e2e8f0;
    /* A light grey fallback color while images load. */
}

.hero-slider .slide {
    position: absolute;
    /* Allows slides to stack on top of each other within the .hero-slider container. */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 1s ease-in-out;
    /* Creates a smooth 1-second fade effect between slides. */
    opacity: 0;
    /* All slides are invisible by default. */
    z-index: 0;
}

/* The '.active' class is added by JavaScript to make the current slide visible. */
.hero-slider .slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Scales the image to cover the entire slide area without stretching or distorting it. */
    opacity: 1;
}

/* This pseudo-element creates a dark overlay on top of the image, making text more readable. */
.hero-slider .slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    /* Black with 40% opacity. */
    z-index: 2;
    /* Sits between the image (z-index 1) and the text (z-index 3). */
}

/* This is the container for the quote text on each slide. */
.slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-start;
    /* Horizontally aligns the quote to the left. */
    align-items: flex-end;
    /* Vertically aligns the quote to the bottom. */
    z-index: 3;
    /* Ensures the text is on top of the dark overlay. */
    padding: 3rem;
    box-sizing: border-box;
}

/* Styling for the quote text itself. */
.slide-content .quote {
    color: white;
    font-size: 2.25rem;
    font-family: 'Baloo 2', cursive;
    text-align: left;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    /* Makes text stand out */
    max-width: 650px;
    line-height: 1.4;
}

/* Smaller font size for quotes on mobile. */
@media (max-width: 768px) {
    .slide-content .quote {
        font-size: 1.75rem;
    }
}

/* --- General Section Styling --- */
.section {
    padding: 4rem 0;
}

.section-bg-white {
    background-color: var(--bg-white);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
}

/* A specific style for the subtitles on pages like "About Us" and "Teacher's Manual". */
.section-subtitle {
    max-width: 600px;
    margin: -2rem auto 3rem auto;
    /* Uses negative margin to pull it closer to the title. */
    text-align: center;
    color: var(--text-muted);
}

/* --- Book Cards (Homepage and Books Page) --- */
.card-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns on mobile. */
}

@media (min-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(4, 1fr);
        /* 4 columns on tablet. */
    }
}

@media (min-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(5, 1fr);
        /* 5 columns on desktop. */
    }
}

.book-card {
    text-align: center;
}

.book-card .card-content {
    background-color: var(--bg-white);
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px var(--shadow-color);
    transition: transform 0.3s ease;
}

.book-card .card-content:hover {
    transform: translateY(-0.5rem);
    /* Lifts the card on hover */
}

.book-card img {
    width: 100%;
    height: auto;
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px -1px var(--shadow-color);
    margin-bottom: 1rem;
}

.book-card h3 {
    font-weight: 700;
    font-size: 1.125rem;
}

.book-card p {
    color: var(--text-muted);
}

/* --- Animation Delay Utilities --- */
/* These classes are used to stagger the "slide in up" animation for cards,
  making them appear one after another instead of all at once.
*/
.slide-delay-200 {
    animation-delay: 200ms;
}

.slide-delay-300 {
    animation-delay: 300ms;
}

.slide-delay-400 {
    animation-delay: 400ms;
}

.slide-delay-500 {
    animation-delay: 500ms;
}

.slide-delay-600 {
    animation-delay: 600ms;
}

.slide-delay-700 {
    animation-delay: 700ms;
}

.slide-delay-800 {
    animation-delay: 800ms;
}

.slide-delay-900 {
    animation-delay: 900ms;
}

.slide-delay-1000 {
    animation-delay: 1000ms;
}

.delay-1100 {
    animation-delay: 1100ms;
}

.delay-1200 {
    animation-delay: 1200ms;
}

/* --- Mobile Menu --- */
.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-link {
    display: block;
    color: white;
    padding: 1rem;
    font-size: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- Contact Page --- */
.contact-container {
    padding-top: 2rem;
}

.contact-form-box {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px var(--shadow-color);
}

/* Grid for form and info side-by-side on larger screens. */
.contact-grid {
    display: grid;
    gap: 3rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.contact-info i {
    width: 1.5rem;
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #ccc;
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #117a65;
    /* Darker shade of primary color */
}

.contact-heading {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-description {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* --- School Zone Section --- */
.school-zone-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .school-zone-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .school-zone-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

.class-card {
    display: block;
    background-color: var(--bg-soft);
    padding: 1.5rem;
    text-align: center;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px var(--shadow-color);
    transform: translateY(0) scale(1);
    transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
}

.class-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 18px 35px -10px rgba(0, 0, 0, 0.25);
    background-color: var(--bg-white);
}

.class-card i {
    font-size: 1.875rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.class-card:hover i {
    transform: scale(1.2);
    color: var(--secondary-color);
}

.class-card h3 {
    font-weight: 700;
    font-size: 1.125rem;
}

/* --- Testimonials Section --- */
.testimonial-section {
    padding: 5rem 0;
    background-color: var(--primary-color);
    color: var(--bg-white);
    background-image: url('https://www.transparenttextures.com/patterns/cubes.png');
    /* Subtle background pattern */
}

.testimonial-content {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

.testimonial-content i {
    font-size: 1.875rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.testimonial-content .quote {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-content .author {
    font-weight: 700;
    font-size: 1.125rem;
}

/* --- Footer (Revised Design) --- */
.footer {
    background-color: #1a202c;
    /* Using the dark blue/grey from your original footer for consistency */
    color: #a0aec0;
    /* Light grey for text, from original footer */
    padding: 4rem 0 1.5rem 0;
    font-family: 'Inter', sans-serif;
}

.footer-grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr;
    /* 1 column on mobile */
    margin-bottom: 3rem;
}

/* 3 columns for tablets and desktops */
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-widget {
    display: flex;
    flex-direction: column;
}

.footer-heading {
    font-family: 'Baloo 2', cursive;
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-weight: 700;
}

.map-container {
    border-radius: 0.5rem;
    overflow: hidden;
    line-height: 0;
    /* Fixes extra space below iframe */
}

.footer-map {
    width: 100%;
    height: 200px;
    border: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #a0aec0;
    transition: color 0.3s ease, padding-left 0.3s ease;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--secondary-color);
    /* Yellow hover from your theme */
    padding-left: 5px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    margin: 0 0 1rem 0;
    line-height: 1.6;
    color: #a0aec0;
}

.contact-detail i {
    margin-right: 1rem;
    margin-top: 4px;
    color: var(--primary-color);
    /* Teal icon color */
    width: 16px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 1.5rem;
    text-align: center;
    color: #a0aec0;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: var(--secondary-color);
    /* Yellow link */
    text-decoration: none;
    font-weight: 500;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* --- Back to Top Button (Updated Colors) --- */
#to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    display: none;
    z-index: 50;
    transition: opacity 0.3s, transform 0.3s;
}

#to-top-btn:hover {
    background-color: #117a65;
    transform: scale(1.1);
}


/* --- Overlays & Preloader --- */
/* General style for full-screen overlays (mobile menu). */
.overlay {
    position: fixed;
    /* Fixed positioning keeps it in place even when scrolling. */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 100;
    /* High z-index to appear on top of everything. */
    display: none;
    /* Hidden by default, shown with JavaScript. */
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

.overlay-content {
    text-align: center;
}

.overlay .close-btn {
    position: absolute;
    top: 30px;
    right: 45px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

/* Preloader animation container. */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 9999;
    /* Highest z-index to be on top of everything */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

/* The spinning circle animation. */
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: var(--primary-color);
    /* The colored part of the spinner */
    animation: spin 1s ease infinite;
}

/* --- Animation Keyframes --- */
/* Defines the animations used throughout the site. */

/* A simple fade-in animation. */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* A simple fade-out animation. */
@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* An animation that makes elements slide in from the bottom while fading in. */
@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* A continuous 360-degree spinning animation for the preloader. */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* --- Animation Utility Classes --- */
/* These classes are added to HTML elements to easily apply the keyframe animations. */
.animate-fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

.animate-fade-out {
    animation: fadeOut 0.5s ease-in-out forwards;
    /* 'forwards' keeps the element at its final state (opacity: 0). */
}

.animate-slide-in-up {
    animation: slideInUp 0.8s ease-in-out forwards;
    opacity: 0;
    /* The element starts transparent before the animation begins. */
}

/* --- Accessibility: Reduced Motion --- */
/* Disables animations for users who prefer reduced motion. */
@media (prefers-reduced-motion: reduce) {

    .animate-slide-in-up,
    .animate-fade-in,
    .animate-fade-out {
        animation: none !important;
        opacity: 1 !important;
    }
}

/* --- Explore All Books Button (Homepage) --- */
.explore-btn-container {
    text-align: center;
    margin-top: 3rem;
}

.explore-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px -3px rgba(0, 0, 0, 0.2);
}

.explore-btn:hover {
    background-color: #117a65;
    transform: scale(1.05);
    box-shadow: 0 12px 20px -4px rgba(0, 0, 0, 0.25);
}

/* --- Feature Links Section (Homepage) --- */
.section-features {
    padding: 4rem 0;
    background-color: var(--bg-soft);
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background-color: var(--bg-white);
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.07);
    text-decoration: none;
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.feature-icon-wrapper {
    margin: 0 auto 2rem auto;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: transform 0.4s ease;
}

.feature-icon-wrapper i {
    font-size: 3rem;
    transition: color 0.4s ease;
}

.feature-title {
    font-family: 'Baloo 2', cursive;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 2;
    transition: color 0.4s ease;
}

/* --- Feature Card Hover Animation --- */
/* Creates a colored background that slides up from the bottom on hover. */
.feature-card::before {
    content: '';
    position: absolute;
    top: 100%;
    /* Starts below the card */
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: top 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    /* Smooth, fast-out transition */
}

/* Sets the color of the sliding background for each card type. */
.feature-card.youtube::before {
    background-color: #ff4d4d;
}

.feature-card.ebooks::before {
    background-color: var(--primary-color);
}

.feature-card.manual::before {
    background-color: var(--secondary-color);
}

/* Styles applied when hovering over a feature card. */
.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 40px -15px rgba(0, 0, 0, 0.2);
}

/* On hover, the colored background slides up to fill the card. */
.feature-card:hover::before {
    top: 0;
}

/* On hover, the text and icon change to white. */
.feature-card:hover .feature-title,
.feature-card:hover .feature-icon-wrapper i {
    color: white;
}

/* On hover, the icon's containing circle scales up. */
.feature-card:hover .feature-icon-wrapper {
    transform: scale(1.1);
}

/* --- Initial Feature Card Icon Colors --- */
.feature-card.youtube .feature-icon-wrapper {
    background-color: #ffeded;
}

.feature-card.youtube .feature-icon-wrapper i {
    color: #ff4d4d;
}

.feature-card.ebooks .feature-icon-wrapper {
    background-color: #e7f6f4;
}

.feature-card.ebooks .feature-icon-wrapper i {
    color: var(--primary-color);
}

.feature-card.manual .feature-icon-wrapper {
    background-color: #fffbeb;
}

.feature-card.manual .feature-icon-wrapper i {
    color: var(--secondary-color);
}

/* --- Teacher's Manual Page --- */
.manual-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* 1 column on mobile */
    gap: 2rem;
}

/* 2 columns for tablets and wider */
@media (min-width: 768px) {
    .manual-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 3 columns for large desktops */
@media (min-width: 1200px) {
    .manual-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.manual-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.manual-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px -5px rgba(0, 0, 0, 0.1);
}

.manual-cover {
    width: 100px;
    height: auto;
    border-radius: 0.5rem;
    flex-shrink: 0;
    /* Prevents the image from shrinking */
}

.manual-info {
    display: flex;
    flex-direction: column;
}

.manual-title {
    font-family: 'Baloo 2', cursive;
    font-size: 1.375rem;
    /* 22px */
    margin: 0 0 0.5rem 0;
}

.manual-description {
    color: var(--text-muted);
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.btn-download {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
    padding: 0.6rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    align-self: flex-start;
    /* Aligns button to the left */
}

.btn-download:hover {
    background-color: #117a65;
    /* Darker primary color */
    color: white;
}

.btn-download i {
    margin-right: 0.5rem;
}

/* --- About Us Page --- */
.about-box {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    margin-top: 3rem;
}

.align-center {
    align-items: center;
}

.image-wrapper {
    width: 100%;
    border-radius: 0.5rem;
    overflow: hidden;
    /* This is important to contain the image */
}

.rounded-shadow-img {
    display: block;
    /* Removes any extra space below the image */
    width: 100%;
    /* Makes the image fill the container's width */
    height: auto;
    /* Maintains the image's aspect ratio */
    object-fit: cover;
    /* Ensures the image covers the area, cropping if necessary */
}

.about-text .about-heading {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 0;
}

.about-text .paragraph {
    line-height: 1.7;
    color: var(--text-muted);
}

/* --- Authentication Links & Dropdown --- */
.header-auth-nav {
    display: flex !important;
    gap: 1.5rem;
    align-items: center;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: none;
    padding: 5px 0;
    min-width: 120px;
    z-index: 50;
}

.dropdown-item {
    display: block;
    padding: 8px 15px;
    color: #333;
    white-space: nowrap;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
    color: var(--primary-color);
}

/* --- Authentication Page Styles --- */
.auth-card {
    max-width: 500px;
    margin: 2rem auto;
    background-color: var(--bg-white);
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px var(--shadow-color);
    overflow: hidden;
}

.auth-card-header {
    background-color: var(--bg-soft);
    padding: 1.25rem 1.5rem;
    font-family: 'Baloo 2', cursive;
    font-size: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.auth-card-body {
    padding: 2rem 1.5rem;
}

.auth-card .form-group {
    margin-bottom: 1.25rem;
}

.auth-card .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.auth-card .form-control {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #ccc;
    box-sizing: border-box; /* Ensures padding doesn't add to width */
}

.auth-card .submit-btn {
    width: 100%;
    margin-top: 1rem;
}

.form-group-row {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-input {
    margin: 0;
}

.btn-link {
    margin-left: auto;
    color: var(--primary-color);
    text-decoration: none;
}

.btn-link:hover {
    text-decoration: underline;
}

.invalid-feedback {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* --- Login Page Action Buttons --- */
.login-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.login-actions .submit-btn {
    width: 100%;
    margin: 0;
}

.login-actions .btn-link {
    margin: 0;
}

/* --- Admin Dashboard Styles --- */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.admin-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: var(--text-dark);
}

.admin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px var(--shadow-color);
}

.admin-card h3 {
    margin-top: 0;
    font-family: 'Baloo 2', cursive;
    color: var(--primary-color);
}

/* --- Admin Page General Styles --- */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-header .section-title {
    margin-bottom: 0;
}

.alert-success {
    padding: 15px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* --- Admin Table Styles --- */
.admin-table-container {
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px var(--shadow-color);
    padding: 1rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th, .admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.admin-table th {
    font-family: 'Baloo 2', cursive;
    font-size: 1.1rem;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}
