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

:root {
    --primary-color: #ffffff;
    --accent-color: #1d8649;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-color: #f9f9f9;
}

[data-theme="dark"] {
    --primary-color: #1a1a1a;
    --text-dark: #f0f0f0;
    --bg-color: #121212;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* Header Wrapper */
header {
    width: 100%;
}

/* 1. Top Bar */
.top-bar {
    background-color: var(--primary-color);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0.25rem 10%;
    gap: 1.5rem;
    font-size: 0.75rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: relative;
    z-index: 50;
}
.top-bar a {
    position: relative;
    color: #6b7280;
    font-weight: 500;
    transition: color 0.2s;
}
.top-bar a::after {
    content: "";
    position: absolute;
    right: -0.75rem;
    top: 50%;
    transform: translateY(-50%);
    height: 14px;
    width: 1px;
    background-color: rgba(0,0,0,0.15);
}
.top-bar a:hover {
    color: var(--accent-color);
}
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: #6b7280;
    display: flex;
    align-items: center;
}

/* 2. Middle Bar */
.middle-bar {
    background-color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10%;
    height: 100px;
    position: relative;
    z-index: 10;
}
.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    pointer-events: none;
}
.logo-container {
    position: relative;
    z-index: 20;
    margin-bottom: -32px; /* Overlap Bottom Bar */
}
.logo-container img {
    height: 167px;
    transform: translateY(30px);
    width: auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
    pointer-events: auto; /* ALLOW CLICKING LOGO */
    cursor: pointer;
}
.brand-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    pointer-events: auto;
}
.brand-title .arabic-text {
    font-family: 'Cairo', sans-serif;
    font-size: 2.7rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-dark);
}
.brand-title .latin-text {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--text-dark);
    margin-top: 5px;
}
.search-bar {
    display: flex;
    align-items: center;
    background-color: var(--primary-color);
    border-radius: 5px;
    padding: 0.2rem 0.8rem;
    border: 1px solid rgba(0,0,0,0.15);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.search-input {
    border: none;
    background: transparent;
    padding: 0.3rem 0.5rem;
    outline: none;
    font-size: 0.9rem;
    color: var(--text-dark);
    width: 200px;
    font-family: 'Poppins', sans-serif;
}
.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    padding: 0.3rem;
    font-size: 1rem;
    transition: transform 0.2s;
}
.search-btn:hover {
    transform: scale(1.1);
}

/* 3. Bottom Bar & Mega Menu */
.bottom-bar {
    position: relative;
    background-color: var(--accent-color);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10%;
    z-index: 5;
}
.main-nav {
    display: flex;
    gap: 3.5rem;
}
.nav-item {
    padding: 0.6rem 0;
}
.nav-item > a {
    position: relative;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}
.nav-item > a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
}
.nav-item:hover > a::after {
    width: 100%;
}

/* Mega Menu */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-top: 3px solid var(--accent-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(15px);
    transition: all 0.3s ease;
    z-index: 20;
    padding: 1.5rem 10%;
}
.nav-item.has-mega:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}
.mega-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 2rem;
}
.mega-cta {
    background-color: var(--accent-color);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.mega-cta h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
}
.mega-cta p {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    opacity: 0.9;
    line-height: 1.5;
}
.cta-btn {
    align-self: flex-start;
    background-color: white;
    color: var(--accent-color);
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
    transition: background-color 0.2s;
}
.cta-btn:hover {
    background-color: #f0f0f0;
}
.mega-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mega-col ul li {
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.mega-col ul li:last-child {
    border-bottom: none;
}
.mega-col ul li a {
    display: block;
    padding: 0.4rem 0;
    color: #444;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s, padding-left 0.2s;
}
.mega-col ul li a:hover {
    color: var(--accent-color);
    padding-left: 6px;
}
/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2.24rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* Offcanvas Sidebar */
.offcanvas {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--primary-color);
    box-shadow: -2px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.offcanvas.open {
    right: 0;
}

.offcanvas-header {
    padding: 1.5rem;
    display: flex;
    justify-content: flex-end;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.close-btn {
    background: none;
    border: none;
    font-size: 2.24rem;
    cursor: pointer;
    color: var(--text-dark);
}

.dynamic-nav-container {
    padding: 1.5rem;
    flex-grow: 1;
    overflow-y: auto;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    display: none;
}

.overlay.active {
    display: block;
}

/* Responsive */
.mobile-br { display: none; }
@media (max-width: 768px) {
    .bottom-bar {
        display: none;
    }
    .top-bar {
        justify-content: space-between;
    }
    .mobile-toggle {
        display: block;
    }
    .mobile-spacer { display: none; }
    .search-bar {
        display: none;
    }
    .logo-container img {
        height: 107px;
        transform: translate(-50%, -50%);
    }
    .logo-container {
        margin-bottom: 0;
    }
    .brand-title {
        font-size: 1.5rem;
    }
}

/*     flex-direction: column;
    gap: 1rem; */
/* } */
.dynamic-nav-container .main-nav a {
    color: var(--text-dark);
}
.dynamic-nav-container .sub-menu {
    position: static;
    display: none;
    box-shadow: none;
    padding-left: 1rem;
    background: transparent;
}
.dynamic-nav-container .nav-item {
    flex-direction: column;
    align-items: flex-start;
}
.dynamic-nav-container .nav-item.active .sub-menu {
    display: block;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: calc(100vh - 150px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none; 
}

.video-container iframe {
    width: 100vw;
    height: 56.25vw; /* 16:9 Aspect Ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 Aspect Ratio */
    position: absolute;
    top: 50%;
    left: 50%;
    /* Scale up by 15% to hide the YouTube "More Actions" 3 vertical dots on the right */
    transform: translate(-50%, -50%) scale(1.15);
}

.hero-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    background: transparent;
    padding: 3rem;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 10%;
}

.hero-overlay h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
}

.hero-overlay p {
    font-size: 1.2rem;
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

.mobile-br { display: none; }
@media (max-width: 768px) {
    .hero-section { height: calc(100vh - 100px); }
    .hero-overlay h1 { font-size: 2rem; }
    .hero-overlay p { font-size: 1rem; }
}

/* Content Sections */
.content-section {
    padding: 5rem 10%;
    text-align: center;
}
.content-section.bg-gray {
    background-color: var(--bg-color);
    filter: brightness(0.95);
}
.section-title {
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 600;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-dark);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    text-align: left;
}
.card {
    background: var(--primary-color);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.card:hover {
    transform: translateY(-5px);
}
.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}
.card p {
    font-size: 0.85rem;
    color: var(--text-dark);
    opacity: 0.8;
    line-height: 1.6;
}

/* Footer */

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-col p, .footer-col a {
    font-size: 0.85rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.9);
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 0.5rem;
}
.footer-col a:hover {
    text-decoration: underline;
}
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

.video-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2;
    pointer-events: none;
}

.gondanglegi-text {
    font-size: 40%;
    opacity: 0.9;
}

/* --- COMPREHENSIVE MOBILE LAYOUT FIX --- */
.mobile-br { display: none; }
@media (max-width: 768px) {
    /* Header Adjustments */
    .top-bar {
        padding-left: 5% !important;
        padding-right: 5% !important;
    }
    .middle-bar {
        padding-left: 5% !important;
        padding-right: 5% !important;
        height: auto !important;
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }
    .brand-wrapper {
        gap: 0.8rem !important;
    }
    .logo-container img {
        height: 70px !important;
    }
    .brand-title {
        font-size: 1.1rem !important;
        line-height: 1.3 !important;
    }
    
    /* Hero Adjustments */
    .hero-section { 
        height: 75vh !important; 
    }
    .hero-overlay {
        margin: 0 5% !important;
        padding: 1.5rem !important;
    }
    .hero-overlay h1 { 
        font-size: 1.0rem !important; 
        margin-bottom: 0.8rem !important;
    }
    .hero-overlay p { 
        font-size: 0.95rem !important; 
    }
    
    /* Content & Cards */
    .content-section {
        padding: 3rem 5% !important;
    }
    .section-title {
        font-size: 1.0rem !important;
    }
    .section-subtitle {
        font-size: 0.95rem !important;
        margin-bottom: 2rem !important;
    }
    .grid-cards {
        gap: 1.5rem !important;
    }
    .card {
        padding: 1.5rem !important;
    }
    .footer-grid {
        gap: 2rem !important;
        margin-bottom: 2rem !important;
    }
    .footer-col h4 {
        margin-bottom: 1rem !important;
    }
}

.middle-bar {
    background-image: url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23145c32' fill-opacity='0.20'%3E%3Cpath d='M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l1.414 1.414c-.828.828-1.414 2.05-1.414 3.536 0 2.21 1.79 4 4 4s4-1.79 4-4c0-1.486-.586-2.708-1.414-3.536l1.414-1.414c1.192 1.193 2 2.929 2 4.95 0 3.314-2.686 6-6 6s-6-2.686-6-6c0-2.02.808-3.757 2-4.95zM52 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zM0 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-size: 20px 10px;
}

/* --- MOBILE MEGA MENU OVERRIDES --- */
.dynamic-nav-container .nav-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 0;
}
.dynamic-nav-container .mega-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 1rem 0 0 1rem;
    background: transparent;
    display: none;
}
.dynamic-nav-container .nav-item.active .mega-menu {
    display: block;
}
.dynamic-nav-container .mega-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.dynamic-nav-container .mega-cta {
    padding: 1rem;
}

.mobile-br { display: none; }
@media (max-width: 768px) {
    .brand-title .arabic-text {
        font-size: 1.6rem !important;
    }
    .brand-title .latin-text {
        font-size: 0.85rem !important;
        letter-spacing: 2px !important;
        margin-top: 0 !important;
    }
}


.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: transparent;
    border: 2px solid white;
    opacity: 1;
    transition: all 0.3s;
}
.swiper-pagination-bullet-active {
    background: white;
    width: 30px;
    border-radius: 6px;
}
.mobile-br { display: none; }
/* @media (max-width: 768px) { */

/* --- LOGIN MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.modal-overlay:not(.hidden) {
    opacity: 1;
    visibility: visible;
}
.modal-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    background-color: #050a15;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
    overflow: hidden;
}
.modal-overlay:not(.hidden) .modal-container {
    transform: translateY(0) scale(1);
}
.modal-glow {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 200px;
    height: 200px;
    background-color: #1d8649;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    pointer-events: none;
}
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.modal-close:hover {
    background: rgba(255,255,255,0.2);
    color: white;
}
.modal-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}
.modal-header h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.modal-header p {
    color: #94a3b8;
    font-size: 0.875rem;
}
.modal-form {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.modal-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.modal-input-group label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.modal-input-wrapper {
    position: relative;
}
.modal-input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    transition: color 0.2s;
}
.modal-input-wrapper input {
    width: 100%;
    background-color: #0a0f1c;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    outline: none;
    transition: all 0.2s;
}
.modal-input-wrapper input:focus {
    border-color: #1d8649;
    box-shadow: 0 0 0 1px #1d8649;
}
.modal-input-wrapper input:focus + i,
.modal-input-wrapper:focus-within i {
    color: #1d8649;
}
.modal-submit {
    background: linear-gradient(to right, #145c32, #1d8649);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 1rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(29, 134, 73, 0.3);
    transition: all 0.2s;
    margin-top: 0.5rem;
}
.modal-submit:hover {
    transform: translateY(-2px);
    background: linear-gradient(to right, #1b7a43, #228c4a);
}
.modal-error {
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.2);
    color: #fb7185;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.top-bar .login-btn {
    color: var(--accent-color) !important;
    font-weight: 600 !important;
}
.top-bar .login-btn::after {
    display: none !important; /* no divider after login btn */
}



/* --- BERITA & AGENDA VANILLA CAROUSEL --- */
.news-section {
    padding: 30px 0 80px;
    background-color: #ffffff;
    font-family: 'Poppins', sans-serif;
}
.news-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 40px;
}
.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 50px;
}
.carousel-track-wrapper {
    overflow: hidden;
    width: 100%;
}
.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
}
.news-card {
    flex: 0 0 calc(25% - 15px); /* 4 cards */
    aspect-ratio: 3/2;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}
.news-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.news-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
    z-index: 1;
}
.news-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: #ffffff;
    font-weight: 500;
    font-size: 0.9rem;
    z-index: 2;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card:hover img {
    transform: scale(1.05);
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 2rem;
    color: #555;
    cursor: pointer;
    z-index: 10;
    padding: 10px;
    transition: color 0.3s;
}
.carousel-btn:hover {
    color: var(--accent-color);
}
.prev-btn { left: 0; }
.next-btn { right: 0; }

.news-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 0 20px;
}
.news-action-btn {
    background-color: #f4f4f4;
    color: var(--text-dark);
    padding: 12px 24px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.news-action-btn:hover {
    background-color: var(--accent-color);
    color: #ffffff;
}

/* Responsiveness */

@media (max-width: 992px) {
    .news-card { flex: 0 0 calc(33.333% - 13.33px); /* 3 cards */ }
}
@media (max-width: 600px) {
    .news-card { flex: 0 0 calc(50% - 10px); /* 2 cards */ }
    .carousel-container { padding: 0 40px; }
}

/* --- FULL-BLEED MEDIA GRID (BENTO STYLE) --- */
.media-grid-wrapper {
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #ffffff;
}
.media-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background-color: #ffffff;
    grid-auto-flow: dense;
}
.media-block {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #000;
}

.span-1x1 { grid-column: span 1; grid-row: span 1; aspect-ratio: 1/1; }
.span-2x2 { grid-column: span 2; grid-row: span 2; aspect-ratio: 1/1; }
.span-2x1 { grid-column: span 2; grid-row: span 1; aspect-ratio: 2/1; }
.span-1x2 { grid-column: span 1; grid-row: span 2; aspect-ratio: 1/2; }

.media-block img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.5s ease;
}
.media-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
    transition: background 0.3s ease;
}
.media-block-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    font-family: 'Poppins', sans-serif;
    padding: 20px;
}
.media-icon {
    width: 32px;
    height: 32px;
    fill: white;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}
.media-title {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

/* Hover Effects */
.media-block:hover img {
    transform: scale(1.05);
}
.media-block:hover .media-overlay {
    background: rgba(0, 0, 0, 0.3);
}
.media-block:hover .media-icon {
    transform: translateY(-5px);
}

/* Media Queries */
@media (max-width: 992px) {
    .media-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .media-grid {
        grid-template-columns: 1fr;
    }
    .span-1x1, .span-2x2, .span-2x1, .span-1x2 {
        grid-column: span 1;
        grid-row: span 1;
        aspect-ratio: 16/9; /* Flatten aspect ratio on mobile for better visibility */
    }
}

/* --- AT A GLANCE / FACT CAROUSEL --- */
.at-a-glance-section {
    padding: 60px 0;
    background-color: #ffffff;
    font-family: 'Poppins', sans-serif;
    text-align: center;
}
.glance-heading {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 500;
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 60px;
}
.fact-carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto 40px;
    position: relative;
}
.fact-track-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    min-height: 120px;
    margin: 0 40px;
    overflow: hidden;
}
.fact-track {
    display: flex;
    touch-action: pan-y;
    width: 100%;
    transition: transform 0.5s ease-out;
    cursor: grab;
}
.fact-track:active {
    cursor: grabbing;
}
.fact-slide {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
}

.fact-icon svg {
    width: 60px;
    height: 60px;
    color: #111;
}
.fact-divider {
    border-left: 1px solid #ddd;
    height: 60px;
    margin: 0 40px;
}
.fact-content {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 15px;
}
.fact-number {
    font-size: 5rem;
    font-weight: 600;
    color: var(--accent-color);
    line-height: 1;
}
.fact-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
    line-height: 1.4;
}

.fact-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: #ccc;
    cursor: pointer;
    transition: color 0.3s;
    padding: 10px;
}
.fact-btn:hover {
    color: var(--accent-color);
}

.fact-pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}
.fact-dot {
    background: none;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0 5px;
}
.fact-dot:hover {
    color: #888;
}
.fact-dot.active {
    color: var(--accent-color);
    transform: scale(1.2);
}

.fact-actions {
    text-align: center;
}
.btn-more-facts {
    display: inline-block;
    background-color: #f8f9fa;
    color: #333;
    padding: 14px 30px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 1px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-more-facts:hover {
    background-color: var(--accent-color);
    color: #ffffff;
}

.mobile-br { display: none; }
@media (max-width: 768px) {
    .fact-track-wrapper { max-width: 100%; margin: 0 15px; }
    .fact-icon svg { width: 45px; height: 45px; }
    .fact-divider { margin: 0 20px; height: 50px; }
    .fact-number { font-size: 3.5rem; }
    .fact-label { font-size: 0.8rem; }
    .fact-carousel-container { padding: 0 10px; }
    .fact-btn { font-size: 1.5rem; }
}

/* --- ANIMATED COUNTERS --- */
.counters-section {
    background-color: var(--accent-color);
    padding: 80px 20px;
}
.counters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.counter-item {
    text-align: center;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
}
.counter-number {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1;
}
.counter-number::after {
    content: '+';
    font-size: 2.5rem;
    vertical-align: super;
    margin-left: 2px;
}
.counter-label {
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 2px;
    opacity: 0.9;
}

@media (max-width: 992px) {
    .counters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px 20px;
    }
}
@media (max-width: 600px) {
    .counters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    .counter-number {
        font-size: 3rem;
    }
}

/* --- USP / KEUNGGULAN CARDS --- */
.usp-section {
    background-color: #f5f5f5;
    padding: 40px 0 80px;
    font-family: 'Poppins', sans-serif;
}
.usp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.usp-heading {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 50px;
}
.usp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.usp-card {
    background-color: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}
.usp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}
.usp-card-img {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    display: block;
}
.usp-card-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.usp-card-body h3 {
    text-transform: uppercase;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-dark);
    margin: 0 0 15px 0;
    line-height: 1.4;
}
.usp-divider {
    border: none;
    border-bottom: 1px solid #e0e0e0;
    margin: 0 0 20px 0;
}
.usp-card-body p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #555555;
    margin: 0 0 30px 0;
    flex-grow: 1;
}
.usp-link {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
    align-self: flex-start;
}
.usp-link:hover {
    text-decoration: underline;
    color: #166b38; /* A darker shade of accent for hover effect */
}

/* Responsiveness */
@media (max-width: 992px) {
    .usp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .usp-grid {
        grid-template-columns: 1fr;
    }
}

/* --- STUDENT ACHIEVEMENTS CAROUSEL --- */
.achievements-section {
    background-color: #ffffff;
    padding: 80px 0;
    font-family: 'Poppins', sans-serif;
    position: relative;
}
.achievements-heading {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 50px;
}
.achievement-carousel-wrapper {
    position: relative;
    max-width: 1300px;
    margin: 0 auto 50px;
    padding: 0 50px;
}
.achievement-track-container {
    overflow: hidden;
    width: 100%;
}
.achievement-track {
    display: flex;
    gap: 15px;
    transition: transform 0.6s ease-in-out;
}
.achievement-card {
    flex: 0 0 calc(25% - 11.25px); /* 4 cards, (100% - 3*15px)/4 */
    aspect-ratio: 4/5;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}
.achievement-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 1.2s ease;
}
.ach-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    z-index: 2;
}
.achievement-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.4;
    z-index: 3;
}
.achievement-card:hover img {
    transform: scale(1.05);
}

.ach-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #555;
    cursor: pointer;
    transition: color 0.3s, opacity 0.3s;
    z-index: 10;
    padding: 10px;
}
.ach-btn:hover {
    color: var(--accent-color);
}
.ach-btn:disabled {
    opacity: 0.2;
    cursor: default;
}
.ach-prev-btn { left: 0; }
.ach-next-btn { right: 0; }

.achievements-action {
    text-align: center;
}
.btn-all-achievements {
    display: inline-block;
    background-color: #f0f0f0;
    color: #111;
    padding: 14px 32px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-all-achievements:hover {
    background-color: var(--accent-color);
    color: #ffffff;
}

/* Responsiveness */
@media (max-width: 992px) {
    .achievement-card {
        flex: 0 0 calc(50% - 7.5px); /* 2 cards */
    }
}
@media (max-width: 600px) {
    .achievement-card {
        flex: 0 0 100%; /* 1 card */
    }
    .achievement-carousel-wrapper { padding: 0 40px; }
    .ach-btn { font-size: 2rem; }
}

/* --- SPLIT-SCREEN HISTORY CAROUSEL --- */
.history-section {
    background-color: #ffffff;
    padding: 40px 0 80px;
    font-family: 'Poppins', sans-serif;
}
.history-heading {
    text-align: center;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 1.8rem;
    letter-spacing: 2px;
    color: var(--text-dark);
    margin-bottom: 50px;
}
.history-slider-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 0 20px;
}
.history-track-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
}
.history-track {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.645, 0.045, 0.355, 1);
    width: 100%;
}
.history-slide {
    flex: 0 0 100%;
    display: flex;
    background-color: #f4f5f7;
    min-height: 450px;
}
.history-slide-content {
    flex: 0 0 50%;
    padding: 70px 80px 70px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}
.history-slide-content h3 {
    text-transform: uppercase;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
}
.history-slide-content p {
    font-size: 1rem;
    color: #555555;
    line-height: 1.8;
    margin-bottom: 30px;
}
.history-link {
    color: #111111;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    text-decoration: none;
    letter-spacing: 1px;
    position: relative;
    align-self: flex-start;
}
.history-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s;
}
.history-link:hover::after {
    width: 100%;
}

.slide-image {
    flex: 0 0 50%;
    position: relative;
}
.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Slider Controls Bottom Right of Left Column */
.slider-controls {
    position: absolute;
    bottom: 0;
    right: 0;
    display: flex;
    z-index: 10;
}
.hist-btn {
    width: 60px;
    height: 60px;
    background-color: var(--accent-color);
    color: #ffffff;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}
.hist-btn:hover {
    background-color: #1a7a40; /* Darker green */
}

/* Pagination */
.history-pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}
.hist-dot {
    background: none;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #bbbbbb;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px 10px;
}
.hist-dot:hover {
    color: #888888;
}
.hist-dot.active {
    color: var(--accent-color);
    transform: scale(1.15);
}

/* Responsiveness */
@media (max-width: 992px) {
    .history-slide {
        flex-direction: column-reverse;
    }
    .history-slide-content, .slide-image {
        flex: 0 0 auto;
        width: 100%;
    }
    .slide-image {
        height: 350px;
    }
    .history-slide-content {
        padding: 50px 30px 80px 30px; /* Extra bottom padding for controls */
    }
}

/* --- MEGA FOOTER --- */
.mega-footer {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Poppins', sans-serif;
    display: block;
    border-top: 10px solid #005bb5;
}
.mega-footer .inner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}
.footer-bottom .inner-container {
    padding: 20px;
}

/* 1. Pre-Footer CTA */
.pre-footer-cta {
    width: 100%;
    background-color: #ffffff;
}
.cta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.cta-item {
    text-align: center;
}
.cta-icon {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}
.cta-item h4 {
    text-transform: uppercase;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 15px 0;
}
.cta-line {
    width: 30px;
    margin: 15px auto;
    border: none;
    border-top: 1px solid #cccccc;
}
.cta-item p {
    font-size: 0.85rem;
    color: #666666;
    line-height: 1.6;
    margin: 0;
}

/* 2. Full-Width Map */
.footer-map {
    width: 100%;
    margin: 0;
    padding: 0;
    display: block;
}
.footer-map iframe {
    display: block;
}

/* 3. Main Footer */
.main-footer {
    width: 100%;
    background-color: #ffffff;
}
.mf-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mf-col {
    flex: 1;
}
.mf-left h3 {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
}
.mf-left p {
    font-size: 0.9rem;
    color: #555555;
    line-height: 1.8;
    margin-bottom: 15px;
}
.mf-contact {
    font-weight: 500;
}
.mf-center {
    display: flex;
    justify-content: center;
    align-items: center;
}
.mf-center img {
    max-width: 180px;
    display: block;
}
.mf-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.mf-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    text-align: right;
}
.mf-nav li {
    margin-bottom: 10px;
}
.mf-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}
.mf-nav a:hover {
    color: var(--accent-color);
}
.mf-social {
    display: flex;
    gap: 15px;
}
.mf-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f4f5f7;
    color: #555555;
    text-decoration: none;
    transition: all 0.3s ease;
}
.mf-social a:hover {
    background-color: var(--accent-color);
    color: #ffffff;
    transform: translateY(-3px);
}

/* 4. Bottom Bar */
.footer-bottom {
    width: 100%;
    background-color: #1a2238;
}
.fb-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.fb-logos {
    display: flex;
    gap: 20px;
    align-items: center;
}
.mono-logo {
    height: 35px;
    filter: grayscale(100%) brightness(500%);
    opacity: 0.7;
    transition: opacity 0.3s;
}
.mono-logo:hover {
    opacity: 1;
}
.fb-copyright {
    color: #a0a5b1;
    font-size: 0.8rem;
    font-weight: 400;
}

/* Responsiveness */
@media (max-width: 992px) {
    .cta-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .mf-grid {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }
    .mf-right {
        align-items: center;
    }
    .mf-nav {
        text-align: center;
    }
    .fb-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}


/* ==============================================================
   DEFINITIVE MOBILE OPTIMIZATION (TASIS STYLE)
   ============================================================== */
html, body {
    overflow-x: hidden !important;
}
*, *::before, *::after {
    box-sizing: border-box !important;
}

.mobile-br { display: none; }
@media (max-width: 768px) {
    /* 1. Global & Header Mobile */
    .top-bar {
        display: none !important; /* Hide top bar for clean mobile look */
    }
    .middle-bar {
        display: flex !important;
        flex-direction: row !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 20px 8px 20px 20px !important;
        background-color: #ffffff !important;
        background-image: url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23145c32' fill-opacity='0.12'%3E%3Cpath d='M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l1.414 1.414c-.828.828-1.414 2.05-1.414 3.536 0 2.21 1.79 4 4 4s4-1.79 4-4c0-1.486-.586-2.708-1.414-3.536l1.414-1.414c1.192 1.193 2 2.929 2 4.95 0 3.314-2.686 6-6 6s-6-2.686-6-6c0-2.02.808-3.757 2-4.95zM52 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zM0 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") !important;
        background-size: 14px 7px !important;
        height: auto !important;
    }
    .brand-wrapper {
        display: flex !important;
        align-items: center !important;
        pointer-events: auto !important;
    }
    .logo-container img {
        max-width: 50px !important;
        margin: 0 !important;
    }
    .brand-title {
        display: none !important; /* Hide Arabic & Latin text */
    }
    .search-bar {
        display: none !important; /* Hide search input if it takes space */
    }
    
    /* 2. Hero & News Carousel */

    .news-actions {
        flex-direction: column !important;
        width: 100% !important;
        margin-top: 15px !important;
        padding: 0 5px !important;
    }
    .news-section {
        padding-bottom: 30px !important;
    }
    .counters-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px 10px !important;
    }
    .cta-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 30px !important;
    }
    .cta-item {
        box-sizing: border-box !important;
        flex: 0 0 calc(50% - 15px) !important;
        width: calc(50% - 15px) !important;
        max-width: calc(50% - 15px) !important;
    }
    .mobile-br {
        display: block !important;
    }


    .news-action-btn {
        width: 100% !important;
        margin-bottom: 10px !important;
        text-align: center !important;
        border-radius: 4px !important;
    }

    /* 3. Media Grid (Galeri) */
    .media-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2px !important;
    }
    .span-2x1, .span-2x2 {
        grid-column: span 2 !important;
    }
    
    /* 4. At a Glance (Fakta Singkat) */
    .fact-slide {
        flex-direction: column !important;
        text-align: center !important;
    }
    .fact-divider {
        display: none !important; /* hide vertical divider */
    }
    .fact-slide svg, .fact-slide img {
        width: 50px !important;
        height: 50px !important;
        margin-bottom: 15px !important;
    }
    .fact-number {
        font-size: 3rem !important;
        line-height: 1 !important;
        margin-bottom: 5px !important;
    }
    .fact-label {
        font-size: 0.65rem !important;
        min-width: 0 !important;
        white-space: normal !important;
    }

    /* 5. USP & Recent Graduates */
    .usp-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .achievement-card {
        flex: 0 0 calc(50% - 7.5px) !important;
    }
    
    /* 6. History Slider */
    .history-slide {
        flex-direction: column-reverse !important;
    }
    .slide-image {
        height: 250px !important;
        width: 100% !important;
        flex: 0 0 auto !important;
    }
    .history-slide-content {
        padding: 30px 20px !important;
        width: 100% !important;
        flex: 0 0 auto !important;
        position: relative !important;
    }
    .slider-controls {
        position: absolute !important;
        top: -60px !important; /* height of button */
        right: 0 !important;
        bottom: auto !important;
    }
    .hist-btn {
        width: 60px !important;
        height: 60px !important;
    }

    /* 7. Pre-Footer & Main Footer */
    .cta-grid {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 40px !important;
    }
    .mf-grid {
        flex-direction: column !important;
        text-align: center !important;
        gap: 30px !important;
    }
    .mf-center img {
        display: block !important;
        margin: 0 auto !important;
    }
    .mf-nav {
        text-align: center !important;
        display: flex !important;
        flex-direction: row !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    .mf-social {
        justify-content: center !important;
        margin-top: 15px !important;
    }
    .fb-container {
        flex-direction: column !important;
        gap: 20px !important;
        text-align: center !important;
    }
    .fb-logos {
        justify-content: center !important;
    }
}

/* ==============================================================
   REVISED HEADER & HERO MOBILE FIXES (FLEX ORDERING)
   ============================================================== */
.mobile-br { display: none; }
@media (max-width: 768px) {
    /* 1. Perbaikan Global Header */
    header { 
        display: flex !important; 
        flex-direction: row !important; 
        justify-content: space-between !important; 
        align-items: center !important; 
        padding: 20px 8px 20px 20px !important; 
        background-color: #ffffff !important;
        background-image: url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23145c32' fill-opacity='0.12'%3E%3Cpath d='M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l1.414 1.414c-.828.828-1.414 2.05-1.414 3.536 0 2.21 1.79 4 4 4s4-1.79 4-4c0-1.486-.586-2.708-1.414-3.536l1.414-1.414c1.192 1.193 2 2.929 2 4.95 0 3.314-2.686 6-6 6s-6-2.686-6-6c0-2.02.808-3.757 2-4.95zM52 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zM0 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") !important;
        background-size: 14px 7px !important; 
        position: relative !important; 
        z-index: 100 !important; 
        width: 100% !important; 
    }

    /* 2. Penyesuaian Middle Bar (Area Logo, dipindah ke KIRI) */
    .middle-bar { 
        order: 1 !important; 
        display: flex !important; 
        width: auto !important; 
        padding: 0 !important; 
        background: transparent !important; 
    }
    .logo-container img { 
        max-width: 104px !important;
        height: auto !important;
        margin: 0 !important;
        position: absolute !important;
        top: -25px !important;
        left: -5px !important;
        transform: none !important;
        display: block !important;
        z-index: 105 !important;
    }
    .brand-title {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        margin-left: 105px !important;
    }
    .brand-title .arabic-text {
        font-size: 1.4rem !important;
        line-height: 1.1 !important;
        color: #333333 !important;
        font-weight: 600 !important;
        margin-bottom: 5px !important;
    }
    .brand-title .latin-text {
        font-size: 0.7rem !important;
        line-height: 1.1 !important;
        color: #555555 !important;
        font-weight: 600 !important;
        letter-spacing: 2px !important;
    }
    .search-bar {
        display: none !important;
    }

    /* 3. Penyesuaian Top Bar (Area Menu, dipindah ke KANAN) */
    .top-bar { 
        order: 2 !important; 
        display: flex !important; 
        align-items: center !important; 
        width: auto !important; 
        padding: 0 !important; 
        background: transparent !important; 
    }
    .top-bar a, .top-bar .mobile-spacer { 
        display: none !important; 
    }
    .mobile-toggle, .theme-toggle { 
        display: block !important; 
        margin-left: 15px !important; 
        background: transparent !important; 
        border: none !important; 
        font-size: 1.5rem !important; 
        color: #333 !important; 
    }

    /* 4. Sembunyikan Bottom Bar (Menu Desktop) */
    .bottom-bar { 
        display: none !important; 
    }

}
.mobile-br { display: none; }
@media (max-width: 768px) {
    html {
        font-size: 60% !important;
    }
}

/* ==============================================================
   PREMIUM MOBILE HEADER & HERO FIXES (TASIS STYLE)
   ============================================================== */
.mobile-br { display: none; }
@media (max-width: 768px) {
    /* 1. Header Premium Style */
    header {
        background-color: #ffffff !important;
        background-image: url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23145c32' fill-opacity='0.12'%3E%3Cpath d='M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l1.414 1.414c-.828.828-1.414 2.05-1.414 3.536 0 2.21 1.79 4 4 4s4-1.79 4-4c0-1.486-.586-2.708-1.414-3.536l1.414-1.414c1.192 1.193 2 2.929 2 4.95 0 3.314-2.686 6-6 6s-6-2.686-6-6c0-2.02.808-3.757 2-4.95zM52 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zM0 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") !important;
        background-size: 14px 7px !important;
        box-shadow: 0 2px 15px rgba(0,0,0,0.06) !important;
        border-bottom: 22px solid var(--accent-color) !important;
    }
    .mobile-toggle, .theme-toggle {
        color: #333333 !important;
        display: flex !important;
        align-items: center !important;
    }
    .theme-toggle {
        transform: translateX(-10px) !important;
    }
    .mobile-toggle::before {
        content: 'MENU' !important;
        font-weight: 600 !important;
        margin-right: 8px !important;
        font-size: 1.0rem !important; /* using rem because html scaled to 60% */
        font-family: 'Poppins', sans-serif !important;
        letter-spacing: 1px !important;
    }


/* ==============================================================
   OFFCANVAS TASIS STYLE (OVERRIDE)
   ============================================================== */
.offcanvas {
    background-color: #082b1a !important; /* Dark Green */
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif !important;
}
.offcanvas-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        padding: 20px !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}
.offcanvas-title {
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    letter-spacing: 1px !important;
}
.close-btn {
    color: #ffffff !important;
    font-size: 1.5rem !important;
    background: transparent !important;
    border: none !important;
}
.offcanvas-body {
    padding: 20px !important;
    overflow-y: auto !important;
    height: calc(100vh - 70px) !important;
}
.tasis-main-nav {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.tasis-main-nav > li {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 15px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    cursor: pointer !important;
}
.tasis-main-nav > li:last-child {
    border-bottom: none !important;
}
.tasis-main-nav > li > a {
    color: #ffffff !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    flex-grow: 1 !important;
}
.chevron-icon {
    font-size: 14px !important;
    transition: transform 0.3s ease !important;
}
.chevron-icon.rotate {
    transform: rotate(90deg) !important;
}
.tasis-submenu {
    width: 100% !important;
    display: none !important; /* JS will toggle this */
    padding-top: 15px !important;
    padding-bottom: 5px !important;
    padding-left: 10px !important;
}
.tasis-submenu a {
    display: block !important;
    color: rgba(255,255,255,0.8) !important;
    text-decoration: none !important;
    font-size: 14px !important;
    padding: 8px 0 !important;
}
.tasis-submenu a:hover {
    color: #ffffff !important;
}

/* Secondary Nav */
.secondary-nav-group {
    margin-top: 20px !important;
}
.sec-nav-label {
    text-transform: uppercase !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.5) !important;
    margin: 30px 0 10px 0 !important;
    letter-spacing: 1px !important;
}
.secondary-nav-group a {
    display: block !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 14px !important;
    padding: 8px 0 !important;
    text-transform: capitalize !important;
}

}
/* Added missing closing bracket */
/* ==============================================================
   MOBILE FIXES FOR NEWS CAROUSEL
   ============================================================== */
.mobile-br { display: none; }
@media (max-width: 768px) {
    /* 1. Perbaikan Kartu Berita */
    .news-card, .news-card img, .news-overlay {
        border-radius: 0 !important; /* Hapus sudut melengkung */
    }
    .news-card {
        aspect-ratio: 1/1 !important; /* Buat menjadi kotak/bujur sangkar */
        width: 100% !important;
    }
    .news-title {
        font-size: 1.1rem !important;
        line-height: 1.4 !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        padding: 20px !important;
        -webkit-line-clamp: 2 !important;
    }

    /* 2. Perbaikan Layout Tombol Bawah (Bukan Full-Width) */
    .news-actions {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 10px !important;
        padding: 0 5px !important;
        margin-top: 25px !important;
    }
    .news-action-btn {
        box-sizing: border-box !important;
        width: calc(50% - 10px) !important;
        max-width: calc(50% - 10px) !important;
        flex: 0 0 auto !important;
        text-align: center !important;
        padding: 10px 5px !important;
        font-size: 0.65rem !important;
        min-width: 0 !important;
        white-space: normal !important;
        margin: 0 !important;
    }

    /* 3. Perbaikan Panah Navigasi */
    .carousel-btn {
        font-size: 30px !important;
        color: #b3b3b3 !important;
        background: transparent !important;
        border: none !important;
        font-weight: 100 !important;
    }

    /* 4. Tipografi Heading Section */
    .news-section h2 {
        font-weight: 400 !important;
        letter-spacing: 2px !important;
        text-transform: uppercase !important;
        font-size: 1.5rem !important;
        padding: 0 5px !important;
    }
    .news-section {
        padding-bottom: 30px !important;
    }
    .counters-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px 10px !important;
    }
    .cta-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 30px !important;
    }
    .cta-item {
        box-sizing: border-box !important;
        flex: 0 0 calc(50% - 15px) !important;
        width: calc(50% - 15px) !important;
        max-width: calc(50% - 15px) !important;
    }
    .mobile-br {
        display: block !important;
    }


}

/* Copyright Centering globally */
.fb-container {
    justify-content: center !important;
}
.fb-copyright {
    text-align: center !important;
    width: 100% !important;
}


/* ==============================================================
   MODERN NEWS LIST LAYOUT (berita.php)
   ============================================================== */
.news-grid-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.news-item-modern {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}
.news-item-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}
.news-thumb {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}
.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.news-item-modern:hover .news-thumb img {
    transform: scale(1.08);
}
.overlay-grad {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
    z-index: 1;
}
.news-cat {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-color);
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.news-content-box {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.news-h3 {
    font-size: 1.0rem;
    font-family: 'Poppins', sans-serif;
    color: #1a2238;
    margin: 0 0 15px 0;
    line-height: 1.5;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}
.news-item-modern:hover .news-h3 {
    color: var(--accent-color);
}
.news-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #888;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
    font-weight: 500;
}
.news-meta i {
    color: var(--accent-color);
    margin-right: 5px;
}
.news-excerpt {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
    display: none;
}

/* Featured / First Item */
.news-item-modern.featured {
    grid-column: span 2;
    grid-row: span 2;
}
.news-item-modern.featured .news-thumb {
    aspect-ratio: 16/10;
}
.news-item-modern.featured .news-h3 {
    font-size: 1.5rem;
    -webkit-line-clamp: unset;
    margin-bottom: 20px;
}
.news-item-modern.featured .news-excerpt {
    display: block;
}
.news-item-modern.featured .news-cat {
    background: #e63946;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .news-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-item-modern.featured {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .news-grid-modern {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    .news-item-modern.featured {
        grid-column: span 2 !important;
        grid-row: auto !important;
    }
    .news-item-modern.featured .news-thumb {
        aspect-ratio: 16/9 !important;
    }
    .news-item-modern:not(.featured) .news-h3 {
        font-size: 0.8rem !important;
        -webkit-line-clamp: 3 !important;
        line-height: 1.4 !important;
        margin-bottom: 10px !important;
    }
    .news-item-modern:not(.featured) .news-content-box {
        padding: 12px !important;
    }
    .news-item-modern:not(.featured) .news-meta {
        flex-direction: column;
        gap: 6px;
        font-size: 0.7rem !important;
        padding-top: 10px !important;
    }
    .news-item-modern.featured .news-h3 {
        font-size: 1.25rem !important;
        margin-bottom: 15px !important;
    }
    .news-item-modern.featured .news-excerpt {
        font-size: 0.85rem !important;
        margin-bottom: 15px !important;
    }
    .news-item-modern.featured .news-content-box {
        padding: 20px !important;
    }
}
.comment-grid { grid-template-columns: 1fr 1fr; }
@media (max-width: 768px) {
    .comment-grid { grid-template-columns: 1fr !important; }
}

/* RELATED NEWS 3-COLUMN LAYOUT */
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.related-item.featured-left {
    grid-column: span 2;
    grid-row: span 2;
}
.related-item.featured-left .news-thumb {
    aspect-ratio: 1/1; flex-grow: 1;
}
.related-item.featured-left .news-h3 {
    font-size: 1.25rem;
    -webkit-line-clamp: 2;
}

@media (max-width: 992px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .related-item.featured-left {
        grid-column: span 2;
        grid-row: auto;
    }
    .related-item.featured-left .news-thumb {
        aspect-ratio: 16/9;
    }
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    .related-item.featured-left {
        grid-column: span 2 !important;
        grid-row: auto !important;
    }
    .related-item.featured-left .news-thumb {
        aspect-ratio: 16/9 !important;
    }
    .related-item.featured-left .news-h3 {
        font-size: 1.25rem !important;
    }
}

/* ==============================================================
   ARTICLE BODY TYPOGRAPHY (baca.php)
   ============================================================== */
.article-content {
    font-size: 17px;
    line-height: 1.8;
    color: #2b2b2b;
    font-family: 'Poppins', sans-serif !important; text-align: left !important;
    letter-spacing: 0.1px;
}
.article-content p {
    margin-bottom: 25px;
}
.article-content img {
    max-width: 960px !important;
    height: auto !important;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    margin-top: 15px;
    margin-bottom: 15px;
    /* Jangan paksa width 100% atau display block agar bisa float & multikolom */
}
.article-content img[style*="float: left"] {
    margin-right: 25px !important;
}
.article-content img[style*="float: right"] {
    margin-left: 25px !important;
}
.article-content::after {
    content: "";
    display: table;
    clear: both;
}

.article-content figure {
    margin: 35px 0;
    text-align: center;
}
.article-content figure img {
    margin: 0 auto 10px !important;
}
.article-content figcaption {
    font-size: 0.9rem;
    color: #777;
    font-style: italic;
}
.article-content iframe {
    max-width: 100%;
    margin: 30px auto;
    display: block;
    border-radius: 8px;
}
.article-content h2, .article-content h3, .article-content h4 {
    font-family: 'Poppins', sans-serif;
    color: #1a2238;
    margin-top: 45px;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.4;
}
.article-content h2 { font-size: 1.7rem; }
.article-content h3 { font-size: 1.4rem; }
.article-content ul, .article-content ol {
    margin-bottom: 25px;
    padding-left: 25px;
}
.article-content li {
    margin-bottom: 10px;
}
.article-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding: 15px 25px;
    margin: 40px 0;
    background: #f9f9f9;
    font-style: italic;
    color: #444;
    font-size: 1.25rem;
    border-radius: 0 10px 10px 0;
    line-height: 1.6;
}
.article-content a {
    color: var(--accent-color);
    text-decoration: underline;
    text-decoration-color: rgba(29, 134, 73, 0.4);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    transition: all 0.2s ease;
}
.article-content a:hover {
    text-decoration-color: var(--accent-color);
    color: #145c32;
}
.article-content strong, .article-content b {
    color: #111;
    font-weight: 600;
}

/* Dropcap for the first letter of the first paragraph */
.article-content > p:first-of-type::first-letter {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 600;
    float: left;
    margin-top: -6px;
    margin-right: 12px;
    margin-bottom: -15px;
    color: var(--accent-color);
    line-height: 1;
}

@media (max-width: 768px) {
    .article-content {
        font-size: 1.05rem;
        line-height: 1.75;
    }
    .article-content p {
        margin-bottom: 20px;
    }
    .article-content img {
        margin: 15px auto 0px !important;
        border-radius: 8px;
    }
    .article-content > p:first-of-type::first-letter {
        font-size: 3rem;
        margin-right: 10px;
    }
    .article-content h2 { font-size: 1.5rem; margin-top: 35px; }
    .article-content h3 { font-size: 1.25rem; margin-top: 30px; }
    .article-content blockquote {
        font-size: 1.1rem;
        padding: 12px 18px;
        margin: 30px 0;
    }
}

/* ARTICLE LAYOUT SPACING (baca.php) */
.baca-main {
    padding: 40px 5% 80px;
}
.article-content-wrapper {
    padding: 20px 25px;
}

@media (max-width: 768px) {
    .baca-main {
        padding: 20px 15px 40px;
    }
    .article-content-wrapper {
        padding: 15px 10px;
    }
}

@media (max-width: 768px) {
    /* 1. Reset Tipografi & Paragraf */
    .article-content, .article-content * {
        text-align: left !important;
        font-family: 'Poppins', sans-serif !important;
    }
    .article-content { 
        font-size: 13.5px !important; 
        line-height: 1.8 !important; 
        color: #333333 !important; 
        padding: 0 5px !important; 
    }
    .article-content p { 
        margin-bottom: 20px !important; text-indent: 0 !important; padding-left: 0 !important; margin-left: 0 !important; 
        text-align: left !important; 
    }
    
    /* 2. Manajemen Gambar Proporsional */
    .article-content img { 
        width: 100% !important; 
        max-width: 960px !important; 
        height: auto !important; 
        border-radius: 8px !important; 
        margin: 15px auto 0px !important; 
        display: block !important; 
        box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important; 
    }
    
    /* 3. Hierarki Sub-Judul (h2, h3) */
    .article-content h2, .article-content h3, .article-content h4 { 
        font-weight: 600 !important; 
        color: #28a745 !important; 
        margin: 35px 0 15px 0 !important; 
        line-height: 1.4 !important; 
    }
    .article-content hr { 
        display: none !important; 
    }
    
    /* 4. Styling Kutipan (Blockquote) */
    .article-content blockquote { 
        border-left: 4px solid #28a745 !important; 
        background: #f9f9f9 !important; 
        padding: 15px 20px !important; 
        margin: 15px auto 0px !important; 
        font-style: italic !important; 
        font-size: 15px !important; 
        border-radius: 0 8px 8px 0 !important; 
    }
    
    /* 5. List (ul / ol) */
    .article-content ul, .article-content ol { 
        padding-left: 20px !important; 
        margin-bottom: 25px !important; 
    }
    .article-content li { 
        margin-bottom: 10px !important; 
    }
}

@media (max-width: 768px) {
    .baca-main-title {
        font-size: 1.75rem !important;
    }
    .related-item.featured-left .news-h3 {
        font-size: 1.0rem !important;
    }
    .related-item:not(.featured-left) .news-h3 {
        font-size: 0.65rem !important;
    }
}
.baca-cover-content {
    padding: 30px 25px;
}
@media (max-width: 768px) {
    .baca-cover-content {
        padding: 20px 15px;
    }
}
.article-content, .article-content * {
    text-align: left !important;
}

/* DESKTOP ARTICLE OVERRIDES (Requested Specification) */
@media (min-width: 769px) {
    /* 1. Lebar Konten & Paragraf */
    .article-content {
        max-width: 960px !important;
        margin: 0 auto !important;
        text-align: left !important;
        font-size: 1.1rem !important;
        line-height: 1.8 !important;
        color: #333 !important;
    }
    .article-content * {
        text-align: left !important;
    }
    .article-content > p:first-of-type {
        text-transform: none !important;
    }
    .article-content > p:first-of-type::first-letter {
        float: left !important;
        font-size: 4rem !important;
        line-height: 1 !important;
        margin: 0 10px 0 0 !important;
        color: var(--accent-color) !important;
        font-weight: 600 !important;
    }
    
    /* 2. Hierarki Sub-Judul */
    .article-content h2, .article-content h3 {
        font-size: 1.5rem !important;
        font-weight: bold !important;
        margin: 40px 0 20px !important;
        color: #111 !important;
    }
    .article-content hr {
        display: none !important;
    }

    /* 3. Restrukturisasi Galeri Gambar */
    .article-gallery {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        margin: 30px 0 !important;
    }
    .article-gallery img {
        width: 100% !important;
        aspect-ratio: 4/3 !important;
        object-fit: cover !important;
        border-radius: 8px !important;
        margin: 0 !important;
    }
    .article-single-img {
        margin: 30px 0 !important;
    }
    .article-single-img img {
        width: 100% !important;
        height: auto !important;
        border-radius: 8px !important;
        margin: 0 !important;
    }

    /* 4. Kutipan (Blockquote) */
    .article-content blockquote {
        font-size: 1.25rem !important;
        font-weight: 500 !important;
        font-style: italic !important;
        border-left: 4px solid var(--accent-color) !important;
        padding: 20px 30px !important;
        margin: 40px 0 !important;
        background: #f9f9f9 !important;
        color: #555 !important;
        border-radius: 0 8px 8px 0 !important;
    }
}

@media (max-width: 768px) {
    .mega-footer .inner-container {
        padding: 30px 20px !important;
    }
    .footer-bottom .inner-container {
        padding: 15px 20px !important;
    }
    .footer-map iframe {
        height: 250px !important;
    }
    .cta-grid {
        gap: 20px !important;
    }
    .mf-grid {
        gap: 20px !important;
    }
}





/* --- HERO CAROUSEL CONTROLS --- */
.hero-pagination .swiper-pagination-bullet {
    background: #ffffff;
    opacity: 0.5;
    width: 10px;
    height: 10px;
    margin: 0 6px !important;
}
.hero-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--accent-color, #059669);
    transform: scale(1.3);
}
.hero-next, .hero-prev {
    color: #ffffff !important;
    background: rgba(0, 0, 0, 0.3);
    width: 44px !important;
    height: 44px !important;
    border-radius: 50%;
    transition: background 0.3s ease;
}
.hero-next:hover, .hero-prev:hover {
    background: rgba(0, 0, 0, 0.7);
}
.hero-next:after, .hero-prev:after {
    font-size: 20px !important;
    font-weight: bold;
}

/* ============================================================== */
/* NEW HERO SLIDER CSS (CLEAN & RESPONSIVE)                       */
/* ============================================================== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 85vh; /* Standard desktop */
    min-height: 450px;
    background-color: #000;
    overflow: hidden;
}

.hero-slider .swiper {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: auto !important;
}

/* Swiper Slide Native */
.hero-slider .swiper-slide {
    background: transparent;
}

.slide-content {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 auto;
    text-align: center;
    color: #ffffff;
    max-width: 800px;
    width: 90%;
    padding: 20px;
    z-index: 15;
}

.slide-content h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
}

.slide-content p {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 30px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}

.cta-btn-slider {
    display: inline-block;
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 12px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-color);
}

.cta-btn-slider:hover {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* Responsif Mobile (Max Width 768px) */
@media (max-width: 768px) {
    .hero-slider {
        height: 65vh; 
    }
    .slide-content h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    .slide-content p {
        font-size: 1.05rem;
        margin-bottom: 25px;
    }
    .cta-btn-slider {
        font-size: 1rem;
        padding: 12px 25px;
        width: 100%;
        max-width: 300px;
    }
}

/* Fix for Guru Swiper Pagination Dots (Horizontal) */
.guru-section .swiper-pagination {
    position: relative !important;
    bottom: 0 !important;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 8px;
    width: 100%;
}
.guru-section .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: transparent;
    border: 2px solid var(--accent-color, #00A651);
    opacity: 1;
    transition: all 0.3s;
    display: inline-block;
    margin: 0 !important;
}
.guru-section .swiper-pagination-bullet-active {
    background: var(--accent-color, #00A651);
    width: 30px;
    border-radius: 6px;
}


/* Catch-all to hide any phantom Swiper paginations in the body or hero */
body > .swiper-pagination, .hero-slider > .swiper-pagination, .mySwiper > .swiper-pagination { display: none !important; }

/* Global fix for Offcanvas lists leaking bullets */
.offcanvas ul, .tasis-main-nav {
    list-style: none !important;
    padding: 0;
    margin: 0;
}
.offcanvas {
    overflow-x: hidden;
}
