/* ==========================================================================
   ISEE-HEPI WEBSITE STYLESHEET - CLEAN MOBILE RESPONSIVE & BURGER OFFCANVAS
   ========================================================================== */

:root {
    /* Brand Palette */
    --color-topbar: #5a626d;       /* Dark Gray Topbar */
    --color-logobox: #a4c2e6;      /* Light Blue Logo Container */
    --color-purple: #6b2891;       /* Deep Purple Navbar & Headers */
    --color-purple-dark: #521c72;  /* Darker Purple Hover */
    --color-yellow: #fcc014;       /* Highlight Ribbon Yellow */
    --color-blue-text: #0077c8;    /* Welcome Title Blue */
    --color-red-btn: #e11d48;      /* Red Video Button */
    --color-body-bg: #f8fafc;      /* Background Off-White */
    --color-card-bg: #ffffff;      /* Pure White */
    --color-text-main: #1e293b;    /* High Contrast Dark Gray Text */
    --color-text-muted: #64748b;   /* Muted Gray */

    /* Typography Sizes for High Readability */
    --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-size-base: 18px;
    --font-size-menu: 20px;
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-main);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text-main);
    background-color: var(--color-body-bg);
}

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   1. TOP BAR
   ========================================================================== */
.top-bar {
    background-color: var(--color-topbar);
    color: #ffffff;
    font-size: 15px;
    padding: 8px 0;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-divider {
    color: rgba(255, 255, 255, 0.4);
}

.lang-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 4px;
}

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

.top-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.social-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icon {
    font-size: 20px;
    color: #ffffff;
}

.login-btn {
    background: transparent;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.login-btn:hover {
    text-decoration: underline;
}

/* ==========================================================================
   2. HEADER & DESKTOP NAVBAR
   ========================================================================== */
.main-header {
    background-color: #ffffff;
    border-bottom: 2px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 16px;
}

.logo-box {
    background-color: var(--color-logobox);
    border-radius: 12px;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.logo-box:hover {
    opacity: 0.95;
}

.logo-circle {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
}

.logo-svg {
    width: 100%;
    height: 100%;
}

.brand-title {
    font-size: 24px;
    font-weight: 900;
    color: #0d2b45;
    line-height: 1.1;
}

.brand-subtitle {
    font-size: 13px;
    font-weight: 600;
    color: #1e3a8a;
}

/* Desktop Navbar */
.desktop-navbar {
    background-color: var(--color-purple);
    border-radius: 10px;
    padding: 0 10px;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 18px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.nav-link:hover, .nav-link.active {
    background-color: var(--color-purple-dark);
    border-radius: 6px;
}

/* Desktop Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 240px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-radius: 8px;
    overflow: hidden;
    display: none;
    z-index: 200;
    border: 2px solid var(--color-purple);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 12px 18px;
    color: var(--color-text-main);
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid #f1f5f9;
}

.dropdown-menu a:hover {
    background-color: #f3e8ff;
    color: var(--color-purple);
}

/* Burger Icon Button (Mobile Only) */
.burger-menu-btn {
    display: none;
    background-color: var(--color-purple);
    color: #ffffff;
    border: none;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    font-size: 22px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    box-shadow: 0 3px 8px rgba(107, 40, 145, 0.25);
}

.burger-menu-btn:hover {
    background-color: var(--color-purple-dark);
}

/* ==========================================================================
   3. OFFCANVAS DRAWER & OVERLAY (MOBILE)
   ========================================================================== */
.offcanvas-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(2px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.offcanvas-overlay.active {
    opacity: 1;
    visibility: visible;
}

.offcanvas-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    background-color: #ffffff;
    z-index: 999;
    box-shadow: -6px 0 25px rgba(0,0,0,0.25);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.offcanvas-drawer.active {
    transform: translateX(0);
}

.offcanvas-header {
    background-color: var(--color-purple);
    color: #ffffff;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.offcanvas-title h2 {
    font-size: 22px;
    font-weight: 900;
    line-height: 1.1;
}

.offcanvas-title p {
    font-size: 13px;
    color: #e9d5ff;
    font-weight: 600;
}

.offcanvas-close-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #ffffff;
    font-size: 22px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.offcanvas-close-btn:hover {
    background: rgba(255,255,255,0.3);
}

.offcanvas-body {
    padding: 16px 0;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mobile-nav-menu {
    display: flex;
    flex-direction: column;
}

.mobile-nav-item-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f1f5f9;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    font-size: 17px;
    font-weight: 800;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
    flex-grow: 1;
}

.mobile-has-submenu .mobile-nav-item {
    border-bottom: none;
}

.mobile-nav-item:hover {
    background-color: #f3e8ff;
    color: var(--color-purple);
}

.mobile-icon {
    font-size: 18px;
    color: var(--color-purple);
    width: 22px;
    text-align: center;
}

.submenu-toggle-btn {
    background: transparent;
    border: none;
    padding: 14px 20px;
    color: var(--color-purple);
    font-size: 16px;
    cursor: pointer;
}

.arrow-icon {
    transition: transform 0.3s ease;
}

.arrow-icon.rotate {
    transform: rotate(180deg);
}

.mobile-submenu {
    display: none;
    background-color: #f8fafc;
    padding: 4px 0;
    border-bottom: 1px solid #f1f5f9;
}

.mobile-submenu.open {
    display: block;
}

.mobile-submenu a {
    display: block;
    padding: 10px 20px 10px 54px;
    font-size: 15px;
    font-weight: 700;
    color: #475569;
}

.mobile-submenu a:hover {
    color: var(--color-purple);
    background-color: #f1f5f9;
}

.offcanvas-footer {
    padding: 20px;
    border-top: 1px solid #e2e8f0;
    margin-top: 20px;
}

.mobile-login-btn {
    width: 100%;
    background-color: var(--color-purple);
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
}

.mobile-contact-info p {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 4px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
   4. HERO BANNER
   ========================================================================== */
.hero-banner {
    position: relative;
    background: #e2e8f0 url('https://images.unsplash.com/photo-1541829070764-84a7d30dd3f3?auto=format&fit=crop&w=1800&q=80') center/cover no-repeat;
    padding: 60px 0 70px 0;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.92) 0%, rgba(241,245,249,0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title-blue {
    color: var(--color-blue-text);
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 4px;
}

.hero-title-black {
    font-size: clamp(22px, 4vw, 36px);
    font-weight: 800;
    color: #000000;
}

.purple-text {
    color: var(--color-purple);
}

.hero-title-purple {
    font-size: clamp(18px, 3.5vw, 28px);
    font-weight: 800;
    color: var(--color-purple);
    margin-bottom: 20px;
}

.yellow-ribbon {
    display: inline-block;
    background-color: var(--color-yellow);
    padding: 10px 20px;
    border-radius: 4px;
    margin-bottom: 16px;
    max-width: 100%;
}

.ribbon-text {
    font-size: clamp(16px, 3vw, 24px);
    font-weight: 800;
    font-style: italic;
    color: #1a1a1a;
    word-break: break-word;
}

.hero-tagline p {
    font-size: clamp(15px, 2.5vw, 20px);
    font-style: italic;
    color: #334155;
    font-weight: 600;
}

/* ==========================================================================
   5. KENALI YUK SECTION
   ========================================================================== */
.kenali-section {
    padding: 40px 0 20px 0;
}

.kenali-box-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

.kenali-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--color-purple);
    padding-bottom: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.kenali-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.red-play-header {
    font-size: 28px;
    color: var(--color-red-btn);
}

.kenali-title h2 {
    font-size: 26px;
    font-weight: 900;
    color: #000000;
}

.kenali-subtitle {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-muted);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.video-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    display: flex;
    flex-direction: column;
}

.video-thumbnail {
    position: relative;
    height: 200px;
    cursor: pointer;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-icon-red {
    font-size: 56px;
    color: #e11d48;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}

.video-duration {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.8);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.video-info {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.video-info h3 {
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}

.video-info p {
    font-size: 15px;
    color: var(--color-text-muted);
    margin-bottom: 16px;
    flex-grow: 1;
}

.btn-play-red {
    background-color: var(--color-red-btn);
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    transition: background 0.2s;
}

.btn-play-red:hover {
    background-color: #be123c;
}

/* ==========================================================================
   6. HOME NEWS & SIDEBAR TWO-COLUMNS
   ========================================================================== */
.home-news-section {
    padding: 20px 0 60px 0;
}

.home-two-columns {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 28px;
}

.section-subhead {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--color-purple);
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.subhead-title {
    font-size: 24px;
    font-weight: 900;
    color: var(--color-purple);
}

.see-all-link {
    font-size: 15px;
    font-weight: 800;
    color: var(--color-purple);
}

.news-list-home {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.news-item-horizontal {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    display: flex;
    gap: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.news-thumb {
    width: 170px;
    height: 115px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.badge-tag {
    font-size: 12px;
    font-weight: 800;
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 4px;
}

.purple-bg { background-color: var(--color-purple); }
.blue-bg { background-color: var(--color-blue-text); }

.news-date {
    font-size: 13px;
    color: var(--color-text-muted);
    font-weight: 600;
}

.news-title-text {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 6px;
    cursor: pointer;
}

.news-title-text:hover {
    color: var(--color-purple);
}

.news-snippet {
    font-size: 14px;
    color: var(--color-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* SIDEBAR SEKRETARIAT */
.secretariat-card {
    background-color: #f8f5ff;
    border: 1px solid #e9d5ff;
    border-radius: 16px;
    overflow: hidden;
}

.card-head-purple {
    background-color: #f3e8ff;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-purple);
    font-size: 18px;
}

.card-head-purple h3 {
    font-size: 18px;
    font-weight: 800;
}

.card-body-content {
    padding: 20px;
}

.org-full-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--color-purple);
    margin-bottom: 16px;
    line-height: 1.3;
}

.contact-info-list li {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 14px;
    color: #334155;
}

.icon-purple {
    color: var(--color-purple);
    font-size: 16px;
    margin-top: 3px;
}

.contact-info-list a {
    color: var(--color-purple);
    font-weight: 700;
}

.divider-line {
    border: 0;
    height: 1px;
    background: #e2e8f0;
    margin: 16px 0;
}

.quick-links-title {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.quick-links li {
    margin-bottom: 8px;
}

.quick-links a {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-purple);
}

.quick-links a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   7. OTHER PAGE SECTIONS
   ========================================================================== */
.page-section { display: none; }
.page-section.active { display: block; }

.content-container { padding: 36px 24px 60px 24px; }

.section-title {
    font-size: clamp(22px, 4vw, 30px);
    font-weight: 800;
    color: var(--color-purple);
    margin-bottom: 10px;
}

.section-desc {
    font-size: 17px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.profil-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.profil-tab-btn {
    background: #e2e8f0;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.profil-tab-btn.active {
    background: var(--color-purple);
    color: #ffffff;
}

.profil-tab-content {
    display: none;
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.profil-tab-content.active { display: block; }

.news-grid-page {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.news-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-body { padding: 18px; }

.read-more-btn {
    background: transparent;
    border: none;
    color: var(--color-purple);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    margin-top: 10px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.gallery-item {
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
.footer-dark {
    background-color: #0f172a;
    color: #ffffff;
    position: relative;
}

.footer-yellow-line {
    height: 5px;
    background-color: var(--color-yellow);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 28px;
    padding-top: 36px;
    padding-bottom: 36px;
}

.footer-col-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--color-yellow);
    margin-bottom: 14px;
}

.footer-desc, .footer-address, .footer-copy {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.6;
}

.yellow-icon {
    color: var(--color-yellow);
    margin-right: 6px;
}

.footer-motto {
    font-size: 15px;
    font-weight: 800;
    font-style: italic;
    color: var(--color-yellow);
    margin-top: 8px;
}

/* ==========================================================================
   9. MODALS
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
}

.modal-backdrop.active { display: flex; }

.modal-box {
    background: #ffffff;
    padding: 28px;
    border-radius: 16px;
    max-width: 420px;
    width: 100%;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 26px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.modal-title {
    font-size: 20px;
    color: var(--color-purple);
    margin-bottom: 16px;
}

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.form-group input { width: 100%; padding: 10px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 15px; }

.submit-btn {
    width: 100%;
    background-color: var(--color-purple);
    color: #ffffff;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
}

.video-placeholder {
    text-align: center;
    padding: 24px;
    background: #f1f5f9;
    border-radius: 12px;
}

.video-large-icon {
    font-size: 60px;
    color: var(--color-purple);
    margin-bottom: 10px;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 12px;
}

/* ==========================================================================
   10. MEDIA QUERIES (TABLET & MOBILE BREAKPOINTS)
   ========================================================================== */
@media (max-width: 992px) {
    .desktop-navbar {
        display: none; /* Hide horizontal desktop menu */
    }

    .burger-menu-btn {
        display: flex; /* Show burger icon button */
    }

    .home-two-columns {
        grid-template-columns: 1fr; /* Stack news and secretariat vertically */
    }
}

@media (max-width: 640px) {
    .top-bar-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .top-right {
        width: 100%;
        justify-content: space-between;
    }

    .logo-box {
        padding: 6px 12px;
        gap: 8px;
    }

    .logo-circle {
        width: 42px;
        height: 42px;
    }

    .brand-title {
        font-size: 18px;
    }

    .brand-subtitle {
        font-size: 11px;
    }

    .news-item-horizontal {
        flex-direction: column;
    }

    .news-thumb {
        width: 100%;
        height: 160px;
    }

    .kenali-box-card {
        padding: 18px 14px;
    }

    .profil-tab-btn {
        width: 100%;
        text-align: left;
    }
}
