/* assets/css/style.css - REKONSTRUKSI TOTAL & KOMPREHENSIF */

/* Google Fonts Import (Pastikan ini selalu di paling atas) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Playfair+Display:wght@400;700&display=swap');

/* =======================================
   1. GLOBAL STYLES & RESET
   ======================================= */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa; /* Light background for elegance */
    color: #343a40; /* Darker text for readability */
    line-height: 1.6;
    font-size: 16px; /* Base font size */
    -webkit-font-smoothing: antialiased; /* Better font rendering for webkit */
    -moz-osx-font-smoothing: grayscale; /* Better font rendering for firefox */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: #212529;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 700; /* Bold for headings */
}

h1 { font-size: 2.8em; } /* Default H1 size */
h2 { font-size: 2.2em; } /* Default H2 size */
h3 { font-size: 1.8em; } /* Default H3 size */
h4 { font-size: 1.5em; } /* Default H4 size */
h5 { font-size: 1.2em; }
h6 { font-size: 1em; }

p {
    margin-bottom: 1em;
}

a {
    color: #007bff; /* Default link color */
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

a:hover {
    color: #0056b3;
}

ul, ol {
    padding-left: 20px;
    margin-bottom: 1em;
}

li {
    margin-bottom: 0.5em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Default horizontal padding */
}

/* Clearfix for floats */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* =======================================
   2. HEADER & NAVIGATION
   ======================================= */
.header-frontend {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    padding: 15px;
    text-align: center;
}

.logo-area {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-area img {
    height: 60px;
    margin-bottom: 10px;
    object-fit: contain;
}

.site-info {
    text-align: center;
}

.site-title {
    margin: 0;
    font-size: 1.6em;
    font-weight: 700;
    color: #212529;
}

.site-tagline {
    margin: 0;
    font-size: 0.9em;
    color: #6c757d;
}

/* NAVBAR */
.navbar-frontend {
    width: 100%;
    display: flex;
    justify-content: center;
    border-top: 1px solid #eee;
    background: white;
}

.navbar-frontend ul {
    list-style: none;
    margin: 0;
    padding: 10px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.navbar-frontend ul li {
    margin: 0 15px;
}

.navbar-frontend ul li a {
    display: block;
    color: #343a40;
    font-weight: 600;
    font-size: 0.95em;
    text-decoration: none;
    position: relative;
}

.navbar-frontend ul li a:hover {
    color: #007bff;
}

.navbar-frontend ul li a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #007bff;
    transition: width 0.3s ease;
}

.navbar-frontend ul li a:hover::after {
    width: 100%;
}

/* HAMBURGER TOGGLE */
.mobile-menu-toggle {
    display: none;
    font-size: 1.8em;
    cursor: pointer;
    color: #343a40;
    text-align: right;
    padding: 10px 20px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .navbar-frontend {
        display: none;
        flex-direction: column;
        align-items: center;
    }

    .navbar-frontend.show {
        display: flex;
    }

    .navbar-frontend ul {
        flex-direction: column;
        width: 100%;
    }

    .navbar-frontend ul li {
        margin: 10px 0;
    }

    .mobile-menu-toggle {
        display: block;
    }
}


/* Simple underline effect for nav links */
.navbar-frontend ul li a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #007bff;
    transition: width 0.3s ease;
}

.navbar-frontend ul li a:hover::after {
    width: 100%;
}

/* Mobile Menu (Hamburger) */
.mobile-menu-toggle {
    display: none; /* Hidden by default on desktop */
    font-size: 1.8em;
    cursor: pointer;
    color: #343a40;
    order: 2; /* Place after logo, before nav on mobile */
}


/* =======================================
   3. HERO SECTION (SLIDER)
   ======================================= */
.hero-section {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 0; /* Tinggi awal nol, akan ditentukan oleh padding-bottom */
    padding-bottom: 56.25%; /* Rasio Aspek 16:9 (9 / 16 = 0.5625) untuk desktop */
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #343a40; /* Warna latar belakang untuk mengisi ruang kosong jika aspek rasio gambar beda */
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.hero-slide {
    min-width: 100%;
    height: 100%;
    background-size:cover; /* GAMBAR UTUH, TIDAK TERPOTONG */
    background-repeat: no-repeat;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    position: relative;
    flex-shrink: 0;
}

/* Overlay untuk membuat teks lebih terbaca */
.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.hero-slide .container {
    position: relative;
    z-index: 1;
    padding: 20px;
    margin: 0 auto;
    width: 100%;
    max-width: 900px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-slide h1 {
    font-size: 3.5em;
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero-slide p {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f1f1f1;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.slider-nav, .slider-dots {
    position: absolute;
    width: 100%;
    z-index: 10;
}

.slider-nav {
    top: 50%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
    color: #ffffff;
    font-size: 2.5em;
    cursor: pointer;
    user-select: none;
}

.slider-nav span {
    background-color: rgba(0,0,0,0.3);
    padding: 5px 15px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.slider-nav span:hover {
    background-color: rgba(0,0,0,0.6);
}

.slider-dots {
    bottom: 20px;
    text-align: center;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #ffffff;
}
@media (max-width: 768px) {
    .hero-slide h1 {
        font-size: 2em;
    }

    .hero-slide p {
        font-size: 1em;
    }

    .slider-nav {
        font-size: 1.8em;
        padding: 0 10px;
    }

    .hero-slide .container {
        padding: 15px;
    }
}

/* =======================================
   4. GENERAL SECTION & CARD STYLES
   ======================================= */
.section-title {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 30px;
    color: #212529;
}

.section-content {
    background-color: #ffffff; /* Latar belakang putih untuk setiap bagian konten */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

/* Cards for content display */
.card-frontend {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.2s ease;
    display: flex; /* Default flex for consistent child alignment */
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start; /* Default for left-aligned content */
}

.card-frontend:hover {
    transform: translateY(-5px);
}

/* Buttons for Frontend */
.btn-primary-frontend {
    background-color: #007bff;
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    display: inline-block; /* Ensure it respects margin/padding */
    text-align: center;
}

.btn-primary-frontend:hover {
    background-color: #0056b3;
}

.btn-primary-frontend.btn-small {
    font-size: 0.9em;
    padding: 8px 15px;
    margin-top: 15px;
    align-self: flex-start; /* Untuk bottom-left link */
    font-weight: 700;
    border: 2px solid #007bff;
    background-color: #007bff;
    color: white;
    transition: all 0.3s ease;
}

.btn-primary-frontend.btn-small:hover {
    background-color: white;
    color: #007bff;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

.btn-primary-frontend.btn-large {
    display: block;
    width: 100%;
    padding: 15px 0;
    text-align: center;
    font-size: 1.1em;
    font-weight: bold;
}

.btn-primary-frontend.btn-danger-like {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-primary-frontend.btn-danger-like:hover {
    background-color: #c82333;
    border-color: #c82333;
}

/* =======================================
   5. SPECIFIC SECTION STYLES (HOMEPAGE SNIPPETS & FULL PAGES)
   ======================================= */

/* Generic Grid Layouts */
.agenda-list-grid, .opinions-grid, .alumni-grid, .articles-grid, .gallery-grid, .keunggulan-grid,
.articles-list-full-grid, .agenda-list-full-grid, .opinions-list-full-grid, .alumni-list-full-grid, .gallery-full-grid {
    display: grid;
    gap: 25px; /* Jarak antar grid items */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Default 3 columns, responsive */
    margin-bottom: 40px;
}

/* Keunggulan Grid (HomePage - Tipe Pesantren & Program Unggulan) */
.keunggulan-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Lebih lebar dari grid umum */
    margin-bottom: 20px;
}

/* Agenda Item (Snippet on Index & Full List Page) */
.card-frontend.agenda-item,
.card-frontend.agenda-item-full {
    text-align: left;
    min-height: 250px; /* Jaga tinggi card agar lebih seragam */
    padding: 25px; /* Sesuaikan padding */
}
.agenda-item p, .agenda-item-full p {
    margin-bottom: 8px;
    font-size: 0.95em;
    color: #555;
}
.agenda-item p i, .agenda-item-full p i {
    margin-right: 8px;
    color: #007bff;
}
.agenda-description { /* For full description in agenda_detail */
    flex-grow: 1;
    margin-top: 10px;
    margin-bottom: 20px;
    line-height: 1.7;
    color: #343a40;
}

/* Opinion Item (Snippet on Index & Full List Page) */
.card-frontend.opinion-item,
.card-frontend.opinion-item-full {
    text-align: center;
    min-height: 350px; /* Jaga tinggi card agar lebih seragam */
    padding: 25px;
    align-items: center; /* Center items */
    justify-content: space-between;
}
.opinion-photo, .opinion-photo-full {
    width: 60px; /* Ukuran foto profil di daftar & cuplikan */
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px auto; /* Center dan beri margin bawah */
    border: 3px solid #007bff;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
}
.opinion-item-full h3 { font-size: 1.4em; line-height: 1.3; margin-bottom: 15px; color: #212529; }
.opinion-text, .opinion-text-full { font-style: italic; font-size: 0.95em; color: #555; margin-bottom: 20px; flex-grow: 1; }
.opinion-author, .opinion-author-full { font-weight: 600; color: #495057; font-size: 0.9em; margin-top: auto; }

/* Alumni Item (Snippet on Index & Full List Page) */
.card-frontend.alumni-item,
.card-frontend.alumni-item-full {
    text-align: center;
    min-height: 380px; /* Jaga tinggi card agar lebih seragam */
    padding: 25px;
    align-items: center;
    justify-content: space-between;
}
.alumni-photo, .alumni-photo-full {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px auto;
    border: 3px solid #007bff;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
}
.alumni-item-full h3 { font-size: 1.5em; line-height: 1.3; margin-bottom: 10px; color: #212529; }
.alumni-info-full { font-size: 0.95em; color: #555; margin-bottom: 15px; }
.alumni-testimonial, .alumni-testimonial-full { font-style: italic; font-size: 0.9em; color: #6c757d; margin-bottom: 20px; flex-grow: 1; }


/* Article Item (Snippet on Index & Full List Page) */
.card-frontend.article-item,
.card-frontend.article-item-full {
    text-align: left;
    padding: 0; /* Remove padding from card-frontend default */
    box-shadow: none; /* Remove shadow */
    border-radius: 0; /* Remove border-radius */
    overflow: hidden;
    min-height: auto;
}
.article-thumbnail, .article-thumbnail-large {
    width: 100%;
    height: 180px; /* Fixed height for consistent thumbnails */
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}
.article-item h3, .article-item-full h3 { font-size: 1.4em; line-height: 1.3; margin-bottom: 10px; }
.article-item h3 a, .article-item-full h3 a { color: #212529; }
.article-item h3 a:hover, .article-item-full h3 a:hover { color: #007bff; }
.article-item .article-meta, .article-item-full .article-meta { font-size: 0.9em; color: #6c757d; margin-bottom: 15px; }
.article-item .article-excerpt, .article-item-full .article-excerpt { font-size: 0.95em; color: #555; margin-bottom: 20px; flex-grow: 1; }


/* Gallery Grid (Index page snippet & Full List Page) */
.gallery-grid { /* For index page snippet (3-col) */
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.gallery-full-grid { /* For full gallery page (more columns if space) */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card-frontend.gallery-item, /* For index page snippet */
.gallery-item-full { /* For full gallery page item */
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); /* Stronger shadow for gallery items */
    padding: 0; /* No internal padding for image */
    height: 0; /* Initial height zero for aspect ratio trick */
    padding-bottom: 75%; /* Rasio 4:3 */
    text-align: center; /* Center content in card */
}

.gallery-item img, .gallery-item video,
.gallery-item-full img, .gallery-item-full video.video-full {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img, .gallery-item:hover video,
.gallery-item-full:hover img, .gallery-item-full:hover video {
    transform: scale(1.05);
}

.gallery-overlay { /* For index page snippet */
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
    color: white;
    padding: 10px;
    transform: translateY(100%); /* Hidden by default */
    transition: transform 0.3s ease;
    text-align: left;
    z-index: 2;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-caption { /* For full gallery page */
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px; /* Increased padding */
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.5)); /* Stronger overlay */
    color: white;
    box-sizing: border-box;
    transform: translateY(0); /* Always visible */
    transition: background 0.3s ease;
    text-align: left;
    z-index: 2;
}

.gallery-caption h4 { margin: 0; font-size: 1.1em; color: white; margin-bottom: 5px; }
.gallery-caption p { font-size: 0.8em; color: rgba(255,255,255,0.8); }

/* Profile Section (Full Page) */
.profile-section-container { margin-bottom: 40px; }
.profile-section {
    padding: 30px;
    margin-bottom: 30px;
    text-align: left;
}
.profile-section h3 {
    font-size: 1.8em;
    color: #007bff;
    border-bottom: 2px solid #f2f2f2;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.profile-section-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.profile-content-html p { margin-bottom: 1em; }
.profile-content-html ul, .profile-content-html ol { margin-left: 25px; margin-bottom: 15px; }
.profile-content-html img {
    max-width: 100%; height: auto; display: block; margin: 15px auto; border-radius: 5px; }


/* Detail Pages (Article, Agenda, Opinion, Alumni) */
.article-detail-container, .agenda-detail-container, .opinion-detail-container, .alumni-detail-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-top: 40px;
    margin-bottom: 50px;
    text-align: left; /* Default for content */
}

/* Specific Detail Image Sizes */
.article-detail-thumbnail { width: 100%; height: 350px; object-fit: cover; border-radius: 8px; margin-bottom: 30px; }
.agenda-detail-image { max-width: 100%; height: auto; border-radius: 8px; margin-bottom: 30px; display: block; margin-left: auto; margin-right: auto; }
.opinion-detail-photo { max-width: 100px; height: auto; border-radius: 50%; object-fit: cover; margin: 0 auto 25px auto; border: 4px solid #007bff; box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3); }
.alumni-detail-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 25px auto; border: 5px solid #007bff; box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4); }

/* Detail Page Text Styling */
.article-detail-title, .agenda-detail-title, .opinion-detail-title, .alumni-detail-name {
    font-size: 2.5em; /* Larger title for detail pages */
    margin-bottom: 10px;
    color: #212529;
    text-align: center; /* Center title */
}

.article-detail-meta, .agenda-detail-meta, .opinion-detail-meta, .alumni-detail-info {
    font-size: 0.95em;
    color: #6c757d;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    text-align: center; /* Center meta info */
}
.agenda-detail-meta i, .alumni-detail-info i { margin-right: 8px; color: #007bff; }

.article-content p, .agenda-detail-description p, .opinion-content p, .alumni-detail-testimonial p {
    margin-bottom: 1em;
    text-align: left;
}
.article-content img { max-width: 100%; height: auto; display: block; margin: 15px auto; border-radius: 5px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.article-content h1, .article-content h2, .article-content h3, .article_content h4, .article_content h5, .article_content h6 {
    margin-top: 25px; margin-bottom: 15px; color: #343a40; }
.article-content ul, .article_content ol { margin-left: 25px; margin-bottom: 15px; }

/* Testimonial Specific */
.alumni-detail-testimonial {
    font-style: italic; font-size: 1.1em; line-height: 1.8; color: #343a40;
    margin-top: 30px; padding: 20px; background-color: #f8f9fa;
    border-left: 5px solid #007bff; border-radius: 5px;
}
.alumni-detail-testimonial h3 { color: #007bff; font-size: 1.4em; margin-bottom: 15px; }

/* Program Unggulan Page */
.programs-list-grid {
    display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-bottom: 40px; }
.program-item-full {
    text-align: center; padding: 30px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    min-height: 280px; background-color: #ffffff; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.program-icon { font-size: 3em; color: #007bff; margin-bottom: 15px; }
.program-image { max-width: 100px; height: auto; margin-bottom: 15px; border-radius: 8px; }
.program-item-full h3 { font-size: 1.6em; margin-bottom: 15px; color: #212529; }
.program-item-full p { font-size: 0.95em; color: #555; margin-bottom: 15px; flex-grow: 1; }
.program-full-description { margin-top: 15px; text-align: left; font-size: 0.9em; color: #6c757d; }


/* Extracurriculars Page */
.extracurriculars-list-grid {
    display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-bottom: 40px; }
.extracurricular-item-full {
    text-align: center; padding: 25px; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
    min-height: 300px; background-color: #ffffff; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.extracurricular-image {
    max-width: 150px; height: auto; margin-bottom: 20px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.extracurricular-item-full h3 { font-size: 1.5em; line-height: 1.3; margin-bottom: 10px; color: #212529; }
.extracurricular-category { font-size: 0.9em; color: #007bff; font-weight: 600; margin-bottom: 15px; }
.extracurricular-category i { margin-right: 5px; }
.extracurricular-description { font-size: 0.95em; color: #555; margin-bottom: 20px; flex-grow: 1; }


/* Contact Page */
.contact-container {
    display: flex; flex-wrap: wrap; gap: 30px; margin-bottom: 50px; }
.contact-info, .contact-form { flex: 1; min-width: 300px; }
.contact-info h3, .contact-form h3 {
    font-size: 1.8em; color: #007bff; margin-bottom: 25px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.contact-info p { margin-bottom: 15px; font-size: 1.05em; }
.contact-info p i { margin-right: 10px; color: #007bff; }
.social-icons-contact a {
    color: #343a40; font-size: 1.8em; margin-right: 15px; transition: color 0.3s ease; }
.social-icons-contact a:hover { color: #007bff; }
.form-group-frontend { margin-bottom: 20px; }
.form-group-frontend label { display: block; margin-bottom: 8px; font-weight: 600; color: #495057; }
.form-group-frontend input[type="text"], .form-group-frontend input[type="email"], .form-group-frontend input[type="url"], .form-group-frontend textarea, .form-group-frontend input[type="date"], .form-group-frontend input[type="number"], .form-group-frontend select {
    width: calc(100% - 22px); padding: 12px 10px; border: 1px solid #ced4da; border-radius: 5px; font-size: 1em; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.form-group-frontend input:focus, .form-group-frontend select:focus, .form-group-frontend textarea:focus {
    border-color: #007bff; box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); outline: none; }
.form-group-frontend textarea { min-height: 150px; resize: vertical; }

/* Alert messages for frontend forms */
.alert-frontend {
    padding: 15px; margin-bottom: 20px; border-radius: 5px; font-weight: 500; line-height: 1.4; }
.alert-frontend.alert-success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-frontend.alert-danger { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }


/* Statistics Page */
.statistics-table-container { overflow-x: auto; margin-bottom: 40px; }
.table-frontend {
    width: 100%; border-collapse: collapse; margin-top: 20px; background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); border-radius: 8px; overflow: hidden; }
.table-frontend th, .table-frontend td {
    padding: 15px; text-align: left; border-bottom: 1px solid #dee2e6; }
.table-frontend th {
    background-color: #f2f2f2; font-weight: 600; color: #495057; text-transform: uppercase; font-size: 0.9em; }
.table-frontend tbody tr:hover { background-color: #e9ecef; }

.statistics-cards-grid {
    display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-bottom: 40px; }
.statistics-card {
    text-align: center; padding: 30px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 200px; background-color: #ffffff; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.statistics-card h3 {
    font-size: 1.8em; color: #007bff; margin-bottom: 20px; border-bottom: 2px solid #eee; padding-bottom: 10px; width: 100%; text-align: center; }
.statistics-card .statistic-item { font-size: 1.1em; margin-bottom: 10px; color: #343a40; }
.statistics-card .statistic-item strong { font-size: 1.2em; color: #212529; margin-left: 5px; }
.statistics-card .statistic-item i { margin-right: 8px; color: #007bff; }
.statistics-card .updated-info {
    font-size: 0.85em; color: #6c757d; margin-top: 20px; border-top: 1px solid #eee; padding-top: 10px; width: 100%; text-align: center; }


/* =======================================
   6. RESPONSIVE DESIGN (MEDIA QUERIES)
   ======================================= */
@media (max-width: 992px) {
    /* Global */
    body { font-size: 15px; }
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.4em; }

    /* Header & Logo */
    .header-content { flex-direction: column; align-items: flex-start; padding: 10px 15px; }
    .logo-area { width: 100%; justify-content: space-between; margin-bottom: 10px; }
    .site-title { font-size: 1.5em; }
    .site-tagline { font-size: 0.8em; }
    .mobile-menu-toggle { display: block; margin-left: auto; }

    /* Navbar Mobile */
    .navbar-frontend ul {
        display: none; /* Hidden on mobile by default, shown by JS */
        flex-direction: column; width: 100%; position: absolute;
        background-color: #ffffff; top: 80px; /* Adjust based on new header height */
        left: 0; padding: 10px 0; box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 999; max-height: calc(100vh - 80px); overflow-y: auto; }
    .navbar-frontend ul li { margin: 0; width: 100%; text-align: center; border-bottom: 1px solid #eee; }
    .navbar-frontend ul li:last-child { border-bottom: none; }
    .navbar-frontend ul li a { padding: 15px 0; }

    /* Sections and Content */
    .section-content { padding: 20px; }
    .section-title { font-size: 1.8em; }

    /* Hero Section */
    .hero-section { padding-bottom: 75%; /* Rasio 4:3 untuk mobile, agar lebih pendek */ min-height: 250px; }
    .hero-slide h1 { font-size: 2.5em; }
    .hero-slide p { font-size: 1.1em; }

    /* Grids to single column */
    .agenda-list-grid, .opinions-grid, .alumni-grid, .articles-grid, .gallery-grid, .keunggulan-grid,
    .articles-list-full-grid, .agenda-list-full-grid, .opinions-list-full-grid, .alumni-list-full-grid, .gallery-full-grid,
    .programs-list-grid, .extracurriculars-list-grid, .statistics-cards-grid, .contact-container {
        grid-template-columns: 1fr; /* Satu kolom di mobile */
    }

    /* Card Details & Specific Element Sizes in Mobile */
    .card-frontend { padding: 15px; } /* Smaller padding for general cards */
    .card-frontend.agenda-item-full, .card-frontend.opinion-item-full, .card-frontend.alumni-item-full, .program-item-full, .extracurricular-item-full, .statistics-card {
        min-height: auto; padding: 20px; } /* Auto height and adjusted padding */

    .opinion-photo-full { width: 70px; height: 70px; }
    .alumni-photo-full { width: 80px; height: 80px; } /* Sedikit lebih kecil dari desktop */
    .article-thumbnail-large, .agenda-detail-image, .article-detail-thumbnail, .extracurricular-image {
        height: 200px; /* Gambar detail/thumbnail lebih pendek di mobile */
    }
    .alumni-detail-photo { width: 100px; height: 100px; } /* Lebih kecil di detail alumni mobile */

    /* Contact Page */
    .contact-info, .contact-form { min-width: auto; }
    .contact-info p { font-size: 0.95em; }
    .contact-info h3, .contact-form h3 { font-size: 1.5em; }

    /* Table Frontend (Statistics) */
    .table-frontend td {
        padding-left: 15px; /* Sesuaikan padding agar label tidak menumpuk */
        padding-right: 15px;
    }
    .table-frontend td::before {
        font-size: 0.85em; /* Ukuran label lebih kecil */
        width: calc(50% - 15px); /* Sesuaikan lebar label */
    }
}/* --- CSS Khusus untuk Bagian Footer (Tambahkan di bagian paling bawah) --- */

.footer-frontend {
    background-color: #343a40; /* Warna latar belakang gelap */
    color: #ffffff; /* Warna teks putih */
    padding: 30px 0; /* Padding atas dan bawah */
    text-align: center; /* Teks di tengah */
    font-size: 0.9em; /* Ukuran font lebih kecil */
    margin-top: 50px; /* Jarak dari konten di atasnya */
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1); /* Bayangan ke atas */
}

.footer-frontend p {
    margin-bottom: 10px; /* Jarak antar paragraf di footer */
    font-size: 0.9em;
}

.social-icons-footer {
    margin: 15px 0; /* Jarak atas bawah untuk ikon sosial */
}

.social-icons-footer a {
    color: #ffffff; /* Warna ikon putih */
    font-size: 1.5em; /* Ukuran ikon */
    margin: 0 10px; /* Jarak antar ikon */
    transition: color 0.3s ease; /* Transisi halus saat hover */
}

.social-icons-footer a:hover {
    color: #007bff; /* Warna biru saat hover */
}