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

:root {
    --primary-color: #507903;
    --secondary-color: #185012;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f4f7f6;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(24, 80, 18, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    color: var(--secondary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Navbar (Green Gradient Theme) */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

.navbar.navbar-scrolled {
    background: linear-gradient(135deg, rgba(80, 121, 3, 0.98), rgba(24, 80, 18, 0.98));
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.navbar .logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-light);
    position: relative;
    opacity: 0.9;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--text-light);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: block;
    position: absolute;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    min-width: 250px;
    box-shadow: 0 10px 30px rgba(24, 80, 18, 0.15);
    z-index: 1001;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0.5rem 0;
    top: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    list-style: none;
}

/* Invisible bridge to prevent mouseleave on hover gap */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
}

.dropdown-content li {
    width: 100%;
}

.dropdown-content a {
    color: var(--secondary-color);
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.3s ease, color 0.3s ease;
}

.dropdown-content a::after {
    display: none !important;
}

.dropdown-content a:hover {
    background-color: rgba(80, 121, 3, 0.08);
    color: var(--primary-color);
    padding-left: 1.8rem;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Nested Dropdown (Flyout to the side) */
.dropdown-content li {
    position: relative;
}

.nested-dropdown-content {
    display: block;
    position: absolute;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    min-width: 180px;
    box-shadow: 0 10px 30px rgba(24, 80, 18, 0.15);
    z-index: 1002;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0.5rem 0;
    top: 0;
    left: 100%;
    transform: translateX(15px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    list-style: none;
}

.dropdown-content li:hover .nested-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.nested-dropdown-content a {
    color: var(--secondary-color);
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.3s ease, color 0.3s ease;
}

.nested-dropdown-content a::after {
    display: none !important;
}

.nested-dropdown-content a:hover {
    background-color: rgba(80, 121, 3, 0.08);
    color: var(--primary-color);
    padding-left: 1.8rem;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(80, 121, 3, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(80, 121, 3, 0.5);
    color: var(--text-light);
}

.navbar .btn-primary {
    background: var(--text-light);
    color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
    padding: 0.55rem 1.6rem;
    font-size: 0.85rem;
    line-height: 1.2;
    border: 1px solid transparent;
}

.navbar .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

/* Navbar Search Container */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.55rem 1rem 0.55rem 2.6rem;
    border-radius: 50px;
    color: var(--text-light);
    font-size: 0.85rem;
    width: 170px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-family: inherit;
    line-height: 1.2;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.65);
    opacity: 1;
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.65);
    width: 220px;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
}

.search-container button {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.search-icon {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-input:focus~button .search-icon {
    color: var(--text-light);
}

/* Hero Section */
.hero {
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transform: scale(1);
    will-change: transform;
    transition: transform 6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide.active .hero-bg {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(24, 80, 18, 0.85), rgba(80, 121, 3, 0.6));
    z-index: -1;
}

.hero-content {
    text-align: left;
    color: var(--text-light);
    max-width: 800px;
    padding: 2rem;
    z-index: 1;
    animation: fadeIn 1s ease-out forwards;
}

.hero-content h1 {
    font-size: 3.8rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.15;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* Carousel Styles */
.carousel-slide {
    padding-left: 5%;
    padding-right: 5%;
    display: flex;
    opacity: 0;
    visibility: hidden;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    align-items: center;
    justify-content: flex-start;
    z-index: 1;
    transition: opacity 0.8s ease, visibility 0.8s ease, z-index 0.8s step-end;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    transition: opacity 0.8s ease, visibility 0.8s ease, z-index 0s;
}

.carousel-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.3);
    border: none;
    z-index: 10;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
}

.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active,
.dot:hover {
    background-color: var(--primary-color);
}

/* Stats Section Styles */
.stats-section {
    position: relative;
    z-index: 20;
    margin-top: 70px;
    padding: 0 5%;
    will-change: transform;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 769px) {
    .stats-section {
        margin-top: 18px; /* Positioned slightly below the hero section on initial load */
        transform: translateY(0);
    }
    .stats-section.scrolled {
        transform: translateY(52px); /* Translates down. GPU accelerated, avoids expensive layout reflow! */
    }
}

.stats-container {
    max-width: 1650px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

/* Accreditation Institution Badge */
.accreditation-badge-institusi {
    background: linear-gradient(135deg, rgba(80, 121, 3, 0.9), rgba(24, 80, 18, 0.9));
    /* Beautiful translucent green gradient matching the theme */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 0.7rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.accreditation-badge-institusi .badge-icon {
    background: rgba(255, 255, 255, 0.15);
    color: #2ebd59;
    /* Beautiful bright green checkmark color */
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 1px solid rgba(46, 252, 115, 0.25);
}

.accreditation-badge-institusi .badge-info {
    display: flex;
    flex-direction: column;
}

.accreditation-badge-institusi .badge-label {
    font-size: 0.6rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.8px;
}

.accreditation-badge-institusi .badge-value {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 1px;
}

/* Stats Cards Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stat-card {
    background: #f4f7f6;
    /* Very light gray/cream background as in the image */
    border-radius: 22px;
    padding: 1.5rem 1.8rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.stat-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.03);
}

.icon-lulusan {
    background-color: #fffbeb;
    color: #d97706;
    /* Amber icon */
}

.icon-prodi {
    background-color: #eef2ff;
    color: #4f46e5;
    /* Purple icon */
}

.icon-dosen {
    background-color: #ecfdf5;
    color: #10b981;
    /* Green icon */
}

.icon-tendik {
    background-color: #e11d48;
    /* Full crimson red background */
    color: #ffffff;
    /* White briefcase icon */
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #718096;
    /* Slate gray */
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #1a202c;
    /* Dark slate */
    line-height: 1.1;
}

/* Sections General */
.section {
    padding: 6rem 5%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Cards (Glassmorphism) */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow: var(--glass-shadow);
    transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(24, 80, 18, 0.12);
}

.glass-card:hover::before {
    transform: scaleX(1);
}

.glass-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.glass-card:hover i {
    transform: scale(1.08) rotate(4deg);
}

.glass-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    line-height: 1.4;
    color: var(--secondary-color);
}

/* Prodi List Styles */
.prodi-list {
    text-align: left;
    list-style: none;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex-grow: 1;
}

.prodi-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: #444;
    padding: 0.4rem 0;
    border-bottom: 1px dashed rgba(24, 80, 18, 0.15);
    gap: 0.5rem;
}

.prodi-item:last-child {
    border-bottom: none;
}

.prodi-name {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.3;
}

.prodi-name i {
    font-size: 0.85rem !important;
    color: var(--primary-color) !important;
    margin-bottom: 0 !important;
    margin-top: 2px;
}

.accreditation-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    display: inline-block;
}

.badge-unggul {
    background-color: rgba(212, 175, 55, 0.12);
    color: #b58900;
    border: 1px solid rgba(212, 175, 55, 0.25);
}

.badge-baik-sekali {
    background-color: rgba(24, 80, 18, 0.08);
    color: var(--secondary-color);
    border: 1px solid rgba(24, 80, 18, 0.2);
}

.badge-baik {
    background-color: rgba(80, 121, 3, 0.06);
    color: var(--primary-color);
    border: 1px solid rgba(80, 121, 3, 0.15);
}

/* About Section */
.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.about-text {
    flex: 1.1;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #555;
}

.about-image {
    flex: 1;
    max-width: 520px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--secondary-color), #0f350b);
    color: var(--text-light);
    padding: 4rem 5% 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col h3 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.footer-col p,
.footer-col a {
    color: #cccccc;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    display: block;
}

.footer-col a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Social Icon Buttons in Footer */
.footer-col .social-icon-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff !important;
    margin-bottom: 0 !important;
    padding-left: 0 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-col .social-icon-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff !important;
    transform: translateY(-3px);
    padding-left: 0 !important;
}

/* Contact Item Styles in Footer */
.footer-col .contact-link {
    display: flex !important;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 0.8rem !important;
    color: #cccccc !important;
    padding-left: 0 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-col .contact-link:hover {
    color: var(--primary-color) !important;
    padding-left: 0 !important;
}

.footer-col .contact-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.footer-col .contact-link:hover .contact-icon-btn {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.footer-col .contact-static-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.8rem;
    color: #cccccc;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaaaaa;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* News Section Styles */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.news-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(24, 80, 18, 0.08);
    transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(24, 80, 18, 0.12);
}

.news-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.news-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.news-card:hover .news-img-wrapper img {
    transform: scale(1.05);
}

.news-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(80, 121, 3, 0.3);
}

.news-body {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-meta {
    display: flex;
    gap: 1.2rem;
    font-size: 0.8rem;
    color: #888888;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.news-meta i {
    color: var(--primary-color);
    margin-right: 4px;
}

.news-title {
    font-size: 1.15rem;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.news-title a {
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: var(--primary-color);
}

.news-excerpt {
    font-size: 0.9rem;
    color: #666666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-readmore {
    margin-top: auto;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.news-readmore:hover {
    color: var(--secondary-color);
    gap: 0.8rem;
}

.news-readmore i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(80, 121, 3, 0.35);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .about-container {
        flex-direction: column;
    }

    .nav-links {
        display: none;
    }

    .search-container {
        display: none;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stats-section {
        margin-top: 30px;
    }

    /* Add hamburger menu in real app */
}

/* ==========================================
   LOKASI & MAPS SECTION
   ========================================== */
.location-section {
    background-color: #ffffff;
    padding: 6rem 5%;
}

.location-container {
    max-width: 1650px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
}

.location-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.location-badge {
    background-color: rgba(80, 121, 3, 0.08);
    color: var(--primary-color);
    border: 1px solid rgba(80, 121, 3, 0.18);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.location-title {
    font-size: 2.6rem;
    color: #1a202c;
    line-height: 1.25;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.location-title span {
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}

.location-desc {
    font-size: 1.05rem;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Info Hours Card */
.info-card {
    background-color: #f4f9f6;
    border-radius: 16px;
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 2.5rem;
    border: 1px solid rgba(24, 80, 18, 0.05);
}

.info-icon {
    width: 48px;
    height: 48px;
    background-color: #e6f4ea;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.info-card:hover .info-icon {
    transform: rotate(15deg) scale(1.1);
}

.info-text h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.2rem;
    letter-spacing: 0.5px;
}

.info-text p {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
}

.btn-maps {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
    padding: 1rem 2.2rem;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 10px 25px rgba(80, 121, 3, 0.3);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.btn-maps:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(80, 121, 3, 0.5);
    color: #ffffff;
}

.btn-maps i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn-maps:hover i {
    transform: translateX(5px);
}

/* Map Card Right Column */
.location-map {
    width: 100%;
}

.map-card {
    background: #ffffff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.map-card iframe {
    display: block;
    width: 100%;
    height: 450px;
    border: none;
}

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

/* Responsive location section */
@media (max-width: 992px) {
    .location-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .location-title {
        font-size: 2.2rem;
    }

    .map-card iframe {
        height: 380px;
    }
}

/* ==========================================================================
   DETAIL BERITA VIEW STYLES (Extracted from BeritaDetail.php)
   ========================================================================== */
.berita-detail-body {
    background-color: #f8fafc !important;
}

/* Hero Header Spacer */
.page-spacer {
    height: 100px;
}

/* Breadcrumb Section */
.breadcrumb-container {
    max-width: 1550px;
    margin: 2rem auto 0;
    padding: 0 2rem;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b; /* slate-500 */
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: #64748b;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs i {
    font-size: 0.75rem;
    color: #e2e8f0; /* slate-200 */
}

.breadcrumbs span {
    color: var(--secondary-color);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

/* Detail Layout Grid */
.detail-layout {
    max-width: 1750px;
    margin: 1.5rem auto 5rem;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 992px) {
    .detail-layout {
        grid-template-columns: 5.5fr 1.2fr;
    }
}

/* Main Content Styling */
.main-article {
    background: #ffffff;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    border: 1px solid #edf2f7;
}

@media (min-width: 768px) {
    .main-article {
        padding: 3rem;
    }
}

.article-tag {
    display: inline-block;
    background: rgba(80, 121, 3, 0.1);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.25rem;
}

.article-title {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .article-title {
        font-size: 2.4rem;
    }
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: #64748b; /* slate-500 */
    margin-bottom: 2rem;
    border-bottom: 1px solid #f1f5f9; /* slate-100 */
    padding-bottom: 1.5rem;
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-meta i {
    color: var(--primary-color);
    font-size: 0.95rem;
}

.article-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(24, 80, 18, 0.06);
    margin-bottom: 2.5rem;
    aspect-ratio: 16 / 9;
    background: #f1f5f9; /* slate-100 */
}

.article-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.article-image-wrapper:hover img {
    transform: scale(1.03);
}

.article-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #334155; /* slate-700 */
    font-weight: 400;
    width: 100%;
}

.article-content p {
    margin-bottom: 1.5rem;
}

/* Quill Editor Text Alignment Styles */
.article-content .ql-align-center { text-align: center; }
.article-content .ql-align-right { text-align: right; }
.article-content .ql-align-justify { text-align: justify; }
.article-content .ql-align-left { text-align: left; }

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #edf2f7;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Float helper styles to ensure beautiful spacing and text-wrapping */
.article-content img[style*="float: right"], 
.article-content img[style*="float:right"],
.article-content img.alignright,
.article-content img.float-right {
    margin: 0.5rem 0 1.25rem 1.5rem !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.article-content img[style*="float: left"], 
.article-content img[style*="float:left"],
.article-content img.alignleft,
.article-content img.float-left {
    margin: 0.5rem 1.5rem 1.25rem 0 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

/* Centered display for standalone images (not floated) */
.article-content img:not([style*="float"]):not(.alignleft):not(.alignright):not(.float-left):not(.float-right) {
    display: block;
    margin: 2.5rem auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    max-width: 100% !important;
}

.article-content img:hover {
    transform: scale(1.015);
}

/* --- CKEditor 5 Figure & Figcaption styling (matching reference design) --- */
.article-content figure.image {
    display: inline-block;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease;
    box-sizing: border-box;
    margin: 1.5rem 0;
}

.article-content figure.image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: none;
    box-shadow: none;
    margin: 0 !important;
}

.article-content figcaption {
    text-align: center;
    font-size: 0.82rem;
    color: #64748b; /* slate-500 */
    font-style: italic;
    margin-top: 10px;
    line-height: 1.45;
    font-weight: 500;
}

/* Float & Align helpers dari CKEditor 5 */
.article-content .image-style-align-left,
.article-content .image-style-side,
.article-content .alignleft,
.article-content [style*="float: left"],
.article-content [style*="float:left"] {
    float: left;
    margin: 0.5rem 2rem 1.25rem 0 !important;
}

.article-content .image-style-align-right,
.article-content .alignright,
.article-content [style*="float: right"],
.article-content [style*="float:right"] {
    float: right;
    margin: 0.5rem 0 1.25rem 2rem !important;
}

.article-content figure.image.image-style-block-align-center,
.article-content figure.image:not(.image-style-align-left):not(.image-style-align-right):not(.image-style-side) {
    display: block;
    margin: 2.5rem auto !important;
}

/* Responsive styles for images on mobile */
@media (max-width: 768px) {
    .article-content figure.image.image-style-align-left,
    .article-content figure.image.image-style-side,
    .article-content figure.image.image-style-align-right {
        float: none !important;
        width: 100% !important;
        margin: 1.5rem 0 !important;
    }
}


/* Sidebar Widgets Styling */
.detail-layout .sidebar {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.widget {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    border: 1px solid #edf2f7;
}

.widget-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 8px;
}

.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 999px;
}

/* Share Button Styles */
.share-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.btn-share {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    border-radius: 12px;
    border: none;
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-share:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.btn-share.whatsapp { background-color: #25d366; }
.btn-share.facebook { background-color: #1877f2; }
.btn-share.twitter { background-color: #191919; } /* FontAwesome 6.5.1 X Black style */
.btn-share.telegram { background-color: #0088cc; }

.btn-copy-link {
    width: 100%;
    height: 44px;
    margin-top: 0.75rem;
    border-radius: 12px;
    border: 1px dashed var(--primary-color);
    background: rgba(80, 121, 3, 0.05);
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-copy-link:hover {
    background: var(--primary-color);
    color: #ffffff;
}

/* Related News Style */
.related-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.related-item {
    display: flex;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.related-item:hover .related-img img {
    transform: scale(1.08);
}

.related-item:hover .related-title {
    color: var(--primary-color);
}

.related-img {
    width: 90px;
    height: 65px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9; /* slate-100 */
}

.related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.related-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.related-tag {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.related-title {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.35;
    color: #1e293b; /* slate-800 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.related-date {
    font-size: 0.7rem;
    color: #64748b; /* slate-500 */
}

/* Back Button */
.btn-back-container {
    margin-top: 2rem;
    border-top: 1px solid #f1f5f9; /* slate-100 */
    padding-top: 1.5rem;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-back:hover {
    color: var(--secondary-color);
    transform: translateX(-5px);
}

/* PMB Widget Card */
.pmb-widget {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.pmb-widget::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    z-index: -1;
}

.pmb-widget h4 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.pmb-widget p {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.pmb-widget .btn-white {
    background: #ffffff;
    color: var(--secondary-color);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.pmb-widget .btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    background: #f8fafc;
}

/* Copied Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1e293b; /* slate-800 */
    color: #ffffff;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 10000;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast i {
    color: #2ebd59;
}

/* ==========================================================================
   VIDEO SHOWCASE HOME STYLES (Extracted from home.php)
   ========================================================================== */
#video-showcase {
    background-color: #f4f7f5;
    padding-top: 1rem;
    padding-bottom: 5rem;
}

.video-showcase-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.video-showcase-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

.video-container-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(24, 80, 18, 0.12);
    border: 4px solid #ffffff;
    background-color: #0b1a0e;
}

.video-container-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   COMMON INTERNAL PAGES STYLES
   ========================================================================== */
.page-header {
    background: transparent;
    padding: 140px 2rem 0;
    text-align: center;
}
.page-header h1 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}
.content-section {
    padding: 3rem 2rem 5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================================
   YAYASAN PAGE STYLES (Yayasan.php)
   ========================================================================== */
/* Pengurus Grid */
.pengurus-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.pengurus-card {
    width: calc(25% - 1.125rem);
    min-width: 250px;
    background: #f4f7f6; /* Light gray-greenish card background */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.6);
    display: flex;
    flex-direction: column;
    padding: 1.2rem;
    gap: 1.2rem;
}

@media (max-width: 1024px) {
    .pengurus-card {
        width: calc(50% - 0.75rem);
    }
}
@media (max-width: 576px) {
    .pengurus-card {
        width: 100%;
    }
}

.pengurus-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(24, 80, 18, 0.12);
    background: #eef2ef;
}

.pengurus-img-wrapper {
    width: 100%;
    height: 280px;
    background-color: #e2e8e5;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.pengurus-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pengurus-img-wrapper i {
    font-size: 6rem;
    color: #b0c0b8;
    transition: transform 0.5s ease;
}

.pengurus-card:hover .pengurus-img-wrapper img,
.pengurus-card:hover .pengurus-img-wrapper i {
    transform: scale(1.05);
}

.pengurus-info {
    background: #ffffff;
    border-radius: 14px;
    padding: 1.8rem 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.pengurus-card:hover .pengurus-info {
    box-shadow: 0 6px 20px rgba(24, 80, 18, 0.06);
}

.pengurus-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.pengurus-role {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Yayasan Intro */
.yayasan-intro {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 5rem;
}
.yayasan-intro-img {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.yayasan-intro-img img {
    width: 100%;
    height: auto;
    display: block;
}
.yayasan-intro-text {
    flex: 1;
}
.yayasan-intro-text h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.yayasan-intro-text p {
    color: var(--light-text);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

/* Team Section */
.team-section {
    text-align: center;
    margin-top: 4rem;
}
.team-section h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 3rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    justify-content: center;
}

.team-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding-bottom: 2rem;
}
.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.team-img-wrapper {
    width: 100%;
    height: 250px;
    background-color: #eef2ef;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-img-wrapper i {
    font-size: 5rem;
    color: var(--light-text);
    opacity: 0.5;
}

.team-info {
    padding: 1.5rem 1rem 0;
}
.team-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}
.team-position {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* Organigram */
.organigram-container {
    margin: 5rem auto;
    text-align: center;
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    .yayasan-intro {
        flex-direction: column;
    }
}

/* ==========================================================================
   VISI & MISI PAGE STYLES (Visi & Misi.php)
   ========================================================================== */
.vm-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .vm-grid {
        grid-template-columns: 1fr 1fr;
    }
    .full-width {
        grid-column: 1 / -1;
    }
}

.vm-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.vm-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.vm-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.vm-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.vm-card h2 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.vm-card p {
    color: var(--light-text);
    line-height: 1.8;
    font-size: 1.05rem;
}

.misi-list {
    list-style: none;
    padding: 0;
}

.misi-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--light-text);
}

.misi-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--accent-color);
}

/* ==========================================================================
   STRUKTUR ORGANISASI PAGE STYLES (Struktur Organisasi.php)
   ========================================================================== */
.legend-section {
    margin-top: 4rem;
    background: #f4f7f6;
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid #eef2ef;
}
.legend-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 0.8rem;
}
.legend-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
@media (max-width: 1200px) {
    .legend-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .legend-grid {
        grid-template-columns: 1fr;
    }
}
.legend-item {
    font-size: 0.8rem;
    line-height: 1.5;
    color: #555;
}
.legend-item strong {
    color: var(--primary-color);
}

/* ==========================================================================
   SEJARAH PAGE STYLES (Sejarah.php)
   ========================================================================== */
.history-timeline {
    position: relative;
    margin-top: 3rem;
}
.history-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: #eef2ef;
    border-radius: 4px;
}
.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
    width: 100%;
}
.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}
.timeline-dot {
    width: 20px;
    height: 20px;
    background-color: var(--accent-color);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid var(--white);
    box-shadow: 0 0 0 4px #eef2ef;
    z-index: 1;
}
.timeline-content {
    width: 45%;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: relative;
}
.timeline-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.timeline-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}
.timeline-content p {
    color: var(--light-text);
    line-height: 1.6;
}
@media (max-width: 768px) {
    .history-timeline::before {
        left: 20px;
    }
    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
    }
    .timeline-dot {
        left: 20px;
    }
    .timeline-content {
        width: calc(100% - 50px);
        margin-left: 50px;
    }
}

/* ==========================================================================
   PIMPINAN PAGE STYLES (Pimpinan.php)
   ========================================================================== */
.pimpinan-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: center;
    margin-top: 3rem;
}

.pimpinan-card {
    width: calc(20% - 1rem); /* 5 cards per row */
    min-width: 200px;
    background: #f4f7f6; /* Light gray-greenish card background */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.6);
    display: flex;
    flex-direction: column;
    padding: 1.2rem;
    gap: 1.2rem;
}

@media (max-width: 1200px) {
    .pimpinan-card {
        width: calc(33.333% - 1rem);
    }
}

@media (max-width: 768px) {
    .pimpinan-card {
        width: calc(50% - 0.625rem);
    }
}

@media (max-width: 576px) {
    .pimpinan-card {
        width: 100% !important;
        max-width: 100% !important;
    }
    .pimpinan-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
}

.pimpinan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(24, 80, 18, 0.12);
    background: #eef2ef;
}

.pimpinan-img-wrapper {
    width: 100%;
    height: 280px;
    background-color: #e2e8e5;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.pimpinan-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pimpinan-card:hover .pimpinan-img-wrapper img {
    transform: scale(1.05);
}

.pimpinan-info {
    background: #ffffff;
    border-radius: 14px;
    padding: 1.8rem 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.pimpinan-card:hover .pimpinan-info {
    box-shadow: 0 6px 20px rgba(24, 80, 18, 0.06);
}

.pimpinan-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.pimpinan-role {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.faculty-tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 2.5rem auto;
    max-width: 100%;
    padding: 0 1rem;
}
.tab-btn {
    background: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.6rem 1.6rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 10px rgba(24, 80, 18, 0.04);
}
.tab-btn.active, .tab-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(24, 80, 18, 0.2);
    transform: translateY(-2px);
}

.faculty-pane {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}
.faculty-pane.active {
    display: block;
}

.pimpinan-grid-4 {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: center;
    margin-top: 1.5rem;
}
.pimpinan-grid-4 .pimpinan-card {
    width: calc(25% - 1rem); /* 4 cards per row */
    min-width: 220px;
}

@media (max-width: 1200px) {
    .pimpinan-grid-4 .pimpinan-card {
        width: calc(33.333% - 1rem);
    }
}
@media (max-width: 768px) {
    .pimpinan-grid-4 .pimpinan-card {
        width: calc(50% - 0.625rem);
    }
}
@media (max-width: 576px) {
    .pimpinan-grid-4 .pimpinan-card {
        width: 100%;
    }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   FASILITAS PAGE STYLES (Fasilitas.php)
   ========================================================================== */
.facilities-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    color: #555;
    line-height: 1.8;
    font-size: 1.05rem;
}
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}
.facility-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border: 1px solid #eef2ef;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}
.facility-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.facility-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(24, 80, 18, 0.1);
}
.facility-card:hover::before {
    transform: scaleX(1);
}
.facility-img-container {
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #f4f7f6;
}
.facility-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.facility-card:hover .facility-img-container img {
    transform: scale(1.08);
}
.facility-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.facility-tag {
    align-self: flex-start;
    padding: 0.3rem 0.8rem;
    background: rgba(80, 121, 3, 0.08);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.facility-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}
.facility-desc {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
.facility-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f7faf8;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.facility-footer i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}
.facility-card:hover .facility-footer i {
    transform: translateX(4px);
}

/* ==========================================================================
   BERITA PAGE STYLES (Berita.php)
   ========================================================================== */
.filter-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #eef2ef;
}
@media (min-width: 768px) {
    .filter-panel {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 450px;
}
.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}
.search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(80, 121, 3, 0.15);
}
.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
}

.categories-filter {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
}
.categories-filter::-webkit-scrollbar {
    display: none;
}

.btn-filter {
    background: #f1f5f9;
    color: #475569;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}
.btn-filter.active, .btn-filter:hover {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(80, 121, 3, 0.2);
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #64748b;
    grid-column: 1 / -1;
    font-size: 1.1rem;
}

/* Language Switcher Styles */
.lang-switcher {
    position: relative;
    display: inline-block;
    z-index: 1000;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--text-light);
    padding: 0.55rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
    outline: none;
    line-height: 1.2;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.lang-btn img {
    width: 18px;
    height: auto;
    border-radius: 2px;
    object-fit: cover;
    display: inline-block;
}

.lang-chevron {
    font-size: 0.65rem;
    transition: transform 0.3s ease;
}

.lang-switcher.open .lang-chevron {
    transform: rotate(180deg);
}

.lang-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background-color: #ffffff;
    min-width: 140px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 0.4rem 0;
    z-index: 1001;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.lang-switcher.open .lang-dropdown {
    display: block;
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    color: #333333;
    font-size: 0.75rem;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease;
    text-transform: uppercase;
    text-decoration: none;
}

.lang-item:hover {
    background-color: #f4f7f6;
    color: var(--primary-color);
}

.lang-item.active {
    color: var(--primary-color);
    background-color: rgba(80, 121, 3, 0.05);
}

.lang-item img {
    width: 18px;
    height: auto;
    border-radius: 2px;
    object-fit: cover;
}

/* Hide Google Translate UI elements */
body {
    top: 0 !important;
}
.goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame, iframe.skiptranslate {
    display: none !important;
}
.goog-tooltip {
    display: none !important;
}
.goog-tooltip:hover {
    display: none !important;
}
.goog-text-highlight {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Circular Logo border frame */
.navbar .logo img {
    border: 2px solid #ffffff;
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ============================== */
/* SCROLL ANIMATION ENHANCEMENTS */
/* Ultra-smooth version            */
/* ============================== */

/* Smooth scrolling behavior */
html {
    scroll-behavior: smooth;
}

/* ---- AOS CUSTOM OVERRIDES ---- */
/* Reduce default AOS translate distance from 100px to 30px for subtler, silkier motion */
[data-aos="fade-up"] {
    transform: translate3d(0, 30px, 0) !important;
}
[data-aos="fade-down"] {
    transform: translate3d(0, -30px, 0) !important;
}
[data-aos="fade-right"] {
    transform: translate3d(-30px, 0, 0) !important;
}
[data-aos="fade-left"] {
    transform: translate3d(30px, 0, 0) !important;
}
[data-aos="zoom-in"] {
    transform: scale3d(0.94, 0.94, 1) !important;
}
/* Once animated, reset to natural position */
[data-aos="fade-up"].aos-animate,
[data-aos="fade-down"].aos-animate,
[data-aos="fade-right"].aos-animate,
[data-aos="fade-left"].aos-animate {
    transform: translate3d(0, 0, 0) !important;
}
[data-aos="zoom-in"].aos-animate {
    transform: scale3d(1, 1, 1) !important;
}

/* Global smooth easing for all AOS elements */
[data-aos] {
    transition-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1) !important;
}

/* Optimize sections for GPU-accelerated rendering */
.section,
.stats-section,
.location-section {
    will-change: auto;
}

/* ---- STAT CARDS ---- */
.stat-card {
    transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
                box-shadow 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) !important;
}

.stat-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.1) !important;
}

/* Stat value gentle entrance */
@keyframes statReveal {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card.aos-animate .stat-value {
    animation: statReveal 1s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

/* Icon gentle hover float */
@keyframes iconFloatGentle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.stat-card:hover .stat-icon-wrapper {
    animation: iconFloatGentle 2.5s ease-in-out infinite;
}

/* ---- GLASS CARDS ---- */
.glass-card {
    transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
                box-shadow 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
                border-color 0.6s ease !important;
}

.glass-card:hover {
    transform: translateY(-8px) !important;
    border-color: rgba(80, 121, 3, 0.25);
    box-shadow: 0 20px 40px rgba(24, 80, 18, 0.12) !important;
}

/* ---- NEWS CARDS ---- */
.news-card {
    transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
                box-shadow 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) !important;
}

.news-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 24px 48px rgba(24, 80, 18, 0.12) !important;
}

/* News image smooth zoom on hover */
.news-img-wrapper img {
    transition: transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) !important;
}

.news-card:hover .news-img-wrapper img {
    transform: scale(1.06);
}

/* ---- ABOUT SECTION ---- */
.about-image {
    transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) !important;
    overflow: hidden;
}

.about-image:hover {
    transform: scale(1.01) !important;
}

.about-image img {
    transition: transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) !important;
}

.about-image:hover img {
    transform: scale(1.04);
}

/* ---- SECTION TITLE UNDERLINE ---- */
.section-title[data-aos].aos-animate::after {
    animation: growLineSmooth 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) forwards 0.4s;
    transform-origin: center;
    transform: scaleX(0);
}

@keyframes growLineSmooth {
    from {
        transform: scaleX(0);
        opacity: 0;
    }
    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

/* ---- VIDEO SECTION ---- */
.video-container-wrapper {
    transition: box-shadow 1s cubic-bezier(0.22, 0.61, 0.36, 1) !important;
}

.video-container-wrapper[data-aos].aos-animate {
    box-shadow: 0 30px 60px rgba(24, 80, 18, 0.1);
}

/* ---- LOCATION / MAP ---- */
.map-card {
    transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
                box-shadow 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) !important;
}

.location-map:hover .map-card {
    transform: scale(1.005);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* ---- FOOTER ---- */
.footer-col[data-aos] {
    transition-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1) !important;
}

/* Social icon buttons gentle micro-animation */
.social-icon-btn {
    transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
                background 0.4s ease,
                box-shadow 0.4s ease !important;
}

.social-icon-btn:hover {
    transform: translateY(-3px) scale(1.08) !important;
}

/* ---- BUTTONS ---- */
.btn-primary,
.btn-outline,
.btn-maps {
    transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
                box-shadow 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
                background 0.4s ease,
                color 0.4s ease !important;
}

/* ---- INFO CARD ---- */
.info-card {
    transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
                box-shadow 0.5s ease !important;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

/* ---- NAVBAR ---- */
.navbar {
    transition: all 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) !important;
}

/* ---- HERO CONTENT ---- */
@keyframes heroFadeUp {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content.aos-animate h1 {
    animation: heroFadeUp 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.hero-content.aos-animate p {
    animation: heroFadeUp 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) forwards 0.2s;
    opacity: 0;
}

.hero-content.aos-animate .hero-actions {
    animation: heroFadeUp 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) forwards 0.4s;
    opacity: 0;
}

/* ---- LOCATION BADGE ---- */
.location-badge {
    transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
                opacity 0.5s ease !important;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* ---- PREFERS REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
    [data-aos] {
        transition-duration: 0s !important;
        transform: none !important;
        opacity: 1 !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ==========================================================
   RESPONSIVE DESIGN & MOBILE NAVIGATION DRAWER
   ========================================================== */

/* Hamburger menu toggle default */
.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.6rem;
    cursor: pointer;
    outline: none;
    z-index: 1005;
    transition: transform 0.3s ease;
    align-items: center;
    justify-content: center;
}

.mobile-nav-toggle.active {
    transform: rotate(90deg);
}

/* Tablet and Mobile view (< 992px) */
@media (max-width: 992px) {
    /* Navbar Drawer */
    .mobile-nav-toggle {
        display: flex;
    }

    .navbar {
        padding: 1rem 5% !important;
    }

    .nav-links {
        display: flex !important; /* Override display: none from line 1117 */
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: linear-gradient(180deg, var(--secondary-color) 0%, #0d2e0a 100%);
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem 2rem 2rem !important;
        gap: 1.5rem !important;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
        transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-links.mobile-active {
        right: 0 !important;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        font-size: 1.1rem;
        width: 100%;
        padding: 0.5rem 0;
    }

    /* Reset hover underline border inside drawer */
    .nav-links a::after {
        display: none !important;
    }

    /* Mobile Dropdown styles */
    .dropdown-content {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: rgba(255, 255, 255, 0.05) !important;
        box-shadow: none !important;
        border: none !important;
        border-left: 2px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 0 !important;
        margin-top: 0.5rem !important;
        padding: 0 0 0 1rem !important;
        display: none !important; /* Controlled by active class or just visible on hover */
    }

    .dropdown.active-dropdown > .dropdown-content {
        display: block !important;
    }

    .dropdown.active-dropdown .dropbtn i.fa-chevron-down {
        transform: rotate(180deg) !important;
    }

    .dropdown .dropbtn i.fa-chevron-down {
        transition: transform 0.3s ease !important;
    }

    .dropdown-content a {
        color: var(--text-light) !important;
        font-size: 0.95rem !important;
        padding: 0.5rem 0 !important;
    }

    .dropdown-content a:hover {
        background: transparent !important;
        color: var(--text-light) !important;
        padding-left: 0.5rem !important;
    }

    /* Nested dropdown content inside mobile */
    .nested-dropdown-content {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        border-left: 2px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 0 !important;
        margin-top: 0.5rem !important;
        padding: 0 0 0 1rem !important;
        display: none !important;
    }

    .dropdown-content li.active-nested-dropdown > .nested-dropdown-content {
        display: block !important;
    }

    .dropdown-content li.active-nested-dropdown > a i.fa-chevron-right {
        transform: rotate(90deg) !important;
    }

    .dropdown-content li > a i.fa-chevron-right {
        transition: transform 0.3s ease !important;
    }

    .nested-dropdown-content a {
        color: rgba(255, 255, 255, 0.8) !important;
        font-size: 0.9rem !important;
    }

    /* Appended actions inside drawer */
    .nav-links .nav-actions {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 1.2rem !important;
        margin-top: 1.5rem !important;
        padding-top: 1.5rem !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    .nav-links .search-container {
        display: flex !important; /* Override display: none from line 1121 */
        width: 100% !important;
    }

    .nav-links .search-input {
        width: 100% !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
        color: var(--text-light) !important;
    }

    .nav-links .btn-primary {
        width: 100% !important;
        text-align: center !important;
        margin: 0 !important;
    }

    .nav-links .lang-switcher {
        width: 100% !important;
    }

    .nav-links .lang-btn {
        width: 100% !important;
        justify-content: space-between !important;
    }

    /* Hide the original nav-actions when in desktop layout wrapper */
    .navbar > .nav-actions {
        display: none !important;
    }

    /* Hero section text size adjustment */
    .hero-content h1 {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
    }
    
    .hero-content p {
        font-size: 0.95rem !important;
    }

    /* Stats Grid responsive layout */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }

    /* About container responsive */
    .about-container {
        flex-direction: column !important;
        gap: 2rem !important;
    }
    
    .about-text, .about-image {
        width: 100% !important;
    }

    /* Programs grid responsive */
    .programs-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }

    /* Video Profil responsive */
    .video-container-wrapper {
        height: 350px !important;
    }

    /* News grid responsive */
    .news-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }

    /* Location container responsive */
    .location-container {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }

    .location-info, .location-map {
        width: 100% !important;
    }

    /* Footer layout responsive */
    .footer-content {
        flex-direction: column !important;
        gap: 2.5rem !important;
    }

    .footer-col {
        flex: none !important;
        width: 100% !important;
        min-width: 0 !important;
        margin-right: 0 !important;
    }
}

/* Mobile View (< 768px) */
@media (max-width: 768px) {
    /* Hero slider actions stacking */
    .hero-actions {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
    }

    /* Section padding adjustments */
    .section {
        padding: 3.5rem 5% !important;
    }

    /* Title size adjustments */
    .section-title {
        font-size: 1.8rem !important;
        margin-bottom: 2rem !important;
    }

    /* Stats Grid stack to single column */
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* Programs Grid stack to single column */
    .programs-grid {
        grid-template-columns: 1fr !important;
        gap: 1.2rem !important;
    }

    /* News Grid stack to single column */
    .news-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* Video height adjustment */
    .video-container-wrapper {
        height: 250px !important;
    }
    
    .video-container-wrapper iframe {
        height: 100% !important;
    }

    /* Location Map height */
    .location-map iframe {
        height: 300px !important;
    }

    /* Logo scaling in footer */
    .footer-col a span {
        font-size: 1.4rem !important;
    }
    .footer-col a img {
        height: 60px !important;
    }

    /* Org Chart scrollable responsive layout */
    .org-chart-outer {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 1rem 0 !important;
    }
    .org-chart-outer > div {
        min-width: 800px !important;
        padding: 0 !important;
    }

    /* Pengurus Yayasan aspect-ratio on mobile */
    .pengurus-img-wrapper {
        height: auto !important;
        aspect-ratio: 3 / 4 !important;
    }

    /* Pimpinan aspect-ratio on mobile */
    .pimpinan-img-wrapper {
        height: auto !important;
        aspect-ratio: 3 / 4 !important;
    }
}

/* Small mobile View (< 480px) */
@media (max-width: 480px) {
    .navbar .logo span:first-child {
        font-size: 0.9rem !important;
    }
    
    .navbar .logo span:last-child {
        font-size: 0.6rem !important;
    }

    .navbar .logo img {
        height: 36px !important;
    }

    .hero-content h1 {
        font-size: 1.7rem !important;
    }

    .hero-content p {
        font-size: 0.85rem !important;
    }

    .accreditation-badge-institusi {
        padding: 0.5rem 0.8rem !important;
    }

    .accreditation-badge-institusi .badge-icon i {
        font-size: 1rem !important;
    }
}

