/* ============================================================
   SISTEM INFORMASI MWC NU - Main Stylesheet
   Nuansa Hijau NU | Glassmorphism | Modern | Responsive
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Amiri:wght@400;700&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================================ */
:root {
    /* NU Green Palette */
    --nu-green-50: #e8f5e9;
    --nu-green-100: #c8e6c9;
    --nu-green-200: #a5d6a7;
    --nu-green-300: #81c784;
    --nu-green-400: #66bb6a;
    --nu-green-500: #4caf50;
    --nu-green-600: #43a047;
    --nu-green-700: #388e3c;
    --nu-green-800: #2e7d32;
    --nu-green-900: #1b5e20;
    --nu-green-950: #0d3311;

    /* Primary Colors */
    --primary: #1b5e20;
    --primary-light: #2e7d32;
    --primary-lighter: #43a047;
    --primary-dark: #0d3311;
    --primary-gradient: linear-gradient(135deg, #1b5e20 0%, #2e7d32 50%, #43a047 100%);
    --primary-gradient-hover: linear-gradient(135deg, #0d3311 0%, #1b5e20 50%, #2e7d32 100%);

    /* Accent Colors */
    --accent-gold: #f9a825;
    --accent-gold-light: #fbc02d;
    --accent-amber: #ff8f00;

    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #868e96;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --black: #000000;

    /* Semantic Colors */
    --success: #2e7d32;
    --info: #1565c0;
    --warning: #f9a825;
    --danger: #c62828;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-arabic: 'Amiri', serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3rem;

    /* Spacing */
    --section-padding: 5rem 0;
    --container-padding: 0 1rem;

    /* Borders & Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 50%;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-green: 0 8px 30px rgba(27, 94, 32, 0.25);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-blur: blur(20px);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-tooltip: 500;

    /* Layout */
    --header-height: 80px;
    --topbar-height: 40px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + var(--topbar-height) + 20px);
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--gray-800);
    background-color: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================================
   LOADING ANIMATION
   ============================================================ */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--nu-green-100);
    border-top: 4px solid var(--primary);
    border-radius: var(--radius-full);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 8px 0;
    font-size: var(--font-size-sm);
    position: relative;
    z-index: var(--z-sticky);
}

.topbar a {
    color: rgba(255, 255, 255, 0.85);
    transition: color var(--transition-fast);
}

.topbar a:hover {
    color: var(--white);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.topbar .social-link {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    transition: all var(--transition-fast);
}

.topbar .social-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ============================================================
   RUNNING TEXT / MARQUEE
   ============================================================ */
.running-text-bar {
    background: var(--primary-dark);
    color: var(--white);
    padding: 6px 0;
    overflow: hidden;
    position: relative;
}

.running-text-bar .badge-label {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: var(--accent-gold);
    color: var(--primary-dark);
    padding: 6px 16px;
    font-weight: 700;
    font-size: var(--font-size-sm);
    display: flex;
    align-items: center;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.running-text-bar .badge-label::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 0;
    border-width: 16px 12px 16px 0;
    border-style: solid;
    border-color: transparent transparent transparent var(--accent-gold);
}

.marquee-wrap {
    margin-left: 140px;
    overflow: hidden;
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
    font-size: var(--font-size-sm);
}

.marquee-content:hover {
    animation-play-state: paused;
}

.marquee-content span {
    margin-right: 3rem;
}

.marquee-content span::before {
    content: '•';
    margin-right: 0.75rem;
    color: var(--accent-gold);
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ============================================================
   MAIN NAVBAR
   ============================================================ */
.main-navbar {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    padding: 0;
    transition: all var(--transition-base);
    z-index: var(--z-fixed);
}

.main-navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-lg);
    padding: 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.navbar-brand img {
    height: 50px;
    width: auto;
}

.brand-text {
    line-height: 1.2;
}

.brand-text .brand-name {
    font-weight: 800;
    font-size: var(--font-size-lg);
    color: var(--primary);
    display: block;
}

.brand-text .brand-tagline {
    font-size: var(--font-size-xs);
    color: var(--gray-600);
    font-weight: 500;
}

/* Navigation Items */
.main-navbar .nav-link {
    color: var(--gray-800) !important;
    font-weight: 600;
    font-size: var(--font-size-sm);
    padding: 1.5rem 1rem !important;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color var(--transition-fast);
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: var(--primary) !important;
}

.main-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 3px 3px 0 0;
    transition: all var(--transition-base);
    transform: translateX(-50%);
}

.main-navbar .nav-link:hover::after,
.main-navbar .nav-link.active::after {
    width: 70%;
}

/* ============================================================
   MEGA MENU
   ============================================================ */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 3px solid var(--primary);
    box-shadow: var(--shadow-xl);
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
    z-index: var(--z-dropdown);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu .mega-title {
    font-weight: 700;
    color: var(--primary);
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid var(--nu-green-100);
}

.mega-menu .mega-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    color: var(--gray-700);
    font-size: var(--font-size-sm);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.mega-menu .mega-link:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.mega-menu .mega-link i {
    font-size: 0.65rem;
    color: var(--primary-lighter);
}

/* ============================================================
   HERO / SLIDER SECTION
   ============================================================ */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-slider .carousel-item {
    height: 550px;
    background: var(--primary-dark);
}

.hero-slider .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero-slider .carousel-caption {
    bottom: 50%;
    transform: translateY(50%);
    text-align: left;
    max-width: 700px;
}

.hero-slider .carousel-caption h2 {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-slider .carousel-caption p {
    font-size: var(--font-size-lg);
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.hero-slider .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.5);
    border: 2px solid rgba(255,255,255,0.8);
}

.hero-slider .carousel-indicators .active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    width: 36px;
    border-radius: 6px;
}

.hero-default {
    background: var(--primary-gradient);
    padding: 8rem 0 5rem;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-default::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
}

.hero-default::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-full);
}

.hero-default h1 {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.hero-default .arabic-text {
    font-family: var(--font-arabic);
    font-size: var(--font-size-2xl);
    opacity: 0.8;
    margin-bottom: 1rem;
}

/* ============================================================
   SECTION STYLES
   ============================================================ */
.section {
    padding: var(--section-padding);
}

.section-alt {
    background: var(--white);
}

.section-green {
    background: var(--primary-gradient);
    color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.section-green .section-title h2 {
    color: var(--white);
}

.section-green .section-title h2::after {
    background: var(--accent-gold);
}

.section-title p {
    color: var(--gray-600);
    font-size: var(--font-size-lg);
    max-width: 600px;
    margin: 1rem auto 0;
}

.section-green .section-title p {
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================================
   CARDS
   ============================================================ */
.card-nu {
    background: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    overflow: hidden;
    height: 100%;
}

.card-nu:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-nu .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card-nu:hover .card-img-top {
    transform: scale(1.05);
}

.card-nu .card-body {
    padding: 1.5rem;
}

.card-nu .card-title {
    font-weight: 700;
    font-size: var(--font-size-lg);
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-nu .card-title a {
    color: inherit;
}

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

.card-nu .card-text {
    color: var(--gray-600);
    font-size: var(--font-size-sm);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-nu .card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: var(--font-size-xs);
    color: var(--gray-500);
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-100);
}

.card-nu .card-meta i {
    margin-right: 0.25rem;
}

.card-nu .card-category {
    display: inline-block;
    background: var(--nu-green-50);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Glass Card */
.card-glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition-base);
}

.card-glass:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ============================================================
   STATISTICS SECTION
   ============================================================ */
.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-base);
    color: var(--white);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--accent-gold);
}

.stat-card .stat-number {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    display: block;
    margin-bottom: 0.25rem;
}

.stat-card .stat-label {
    font-size: var(--font-size-sm);
    opacity: 0.85;
    font-weight: 500;
}

/* ============================================================
   SAMBUTAN SECTION
   ============================================================ */
.sambutan-section {
    position: relative;
}

.sambutan-section .sambutan-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.sambutan-section .sambutan-card::before {
    content: '\201C';
    font-size: 8rem;
    color: var(--nu-green-100);
    position: absolute;
    top: -1rem;
    left: 1rem;
    font-family: Georgia, serif;
    line-height: 1;
}

.sambutan-photo {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 5px solid var(--nu-green-100);
    box-shadow: var(--shadow-lg);
}

.sambutan-name {
    font-weight: 700;
    font-size: var(--font-size-xl);
    color: var(--primary);
    margin-top: 1rem;
}

.sambutan-jabatan {
    color: var(--gray-600);
    font-size: var(--font-size-sm);
}

.sambutan-text {
    font-size: var(--font-size-lg);
    color: var(--gray-700);
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* ============================================================
   AGENDA & PENGUMUMAN
   ============================================================ */
.agenda-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-100);
    transition: all var(--transition-fast);
}

.agenda-item:hover {
    background: var(--gray-50);
    padding-left: 1rem;
    border-radius: var(--radius-md);
}

.agenda-date {
    flex-shrink: 0;
    width: 60px;
    height: 65px;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    color: var(--white);
    text-align: center;
    padding: 0.5rem;
}

.agenda-date .day {
    font-size: var(--font-size-xl);
    font-weight: 800;
    line-height: 1;
}

.agenda-date .month {
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    font-weight: 600;
}

.agenda-info h5 {
    font-weight: 700;
    font-size: var(--font-size-base);
    margin-bottom: 0.25rem;
}

.agenda-info p {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    margin: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding-top: 4rem;
}

.footer h5 {
    color: var(--white);
    font-weight: 700;
    font-size: var(--font-size-lg);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-lighter);
    border-radius: 2px;
}

.footer a {
    color: var(--gray-400);
    transition: all var(--transition-fast);
}

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

.footer-link {
    display: block;
    padding: 0.3rem 0;
    font-size: var(--font-size-sm);
}

.footer-link i {
    margin-right: 0.5rem;
    color: var(--primary-lighter);
    font-size: 0.6rem;
}

.footer-contact-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: var(--font-size-sm);
}

.footer-contact-item i {
    color: var(--primary-lighter);
    font-size: 1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    margin-top: 3rem;
    text-align: center;
    font-size: var(--font-size-sm);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: 0.9rem;
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
    padding-left: 0;
}

/* Visitor Counter in Footer */
.visitor-counter {
    display: inline-flex;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    margin-top: 0.5rem;
}

.visitor-counter span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.visitor-counter i {
    color: var(--primary-lighter);
}

/* ============================================================
   FLOATING BUTTONS
   ============================================================ */
.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: var(--z-fixed);
}

.float-btn {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.float-btn:hover {
    transform: translateY(-3px) scale(1.1);
    color: var(--white);
}

.float-btn.btn-wa { background: #25D366; }
.float-btn.btn-tg { background: #0088cc; }
.float-btn.btn-fb { background: #1877F2; }

.float-btn.btn-top {
    background: var(--primary);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.float-btn.btn-top.show {
    opacity: 1;
    visibility: visible;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb-section {
    background: var(--primary-gradient);
    padding: 4rem 0 2rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.breadcrumb-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 40L40 0H20L0 20z' fill='rgba(255,255,255,0.03)'/%3E%3C/svg%3E") repeat;
}

.breadcrumb-section h1 {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.breadcrumb-section .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-section .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-section .breadcrumb-item a:hover {
    color: var(--white);
}

.breadcrumb-section .breadcrumb-item.active {
    color: var(--accent-gold);
}

.breadcrumb-section .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-nu {
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--font-size-sm);
    letter-spacing: 0.5px;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-nu:hover {
    background: var(--primary-gradient-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-green);
}

.btn-nu-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.65rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--font-size-sm);
    transition: all var(--transition-base);
}

.btn-nu-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* ============================================================
   SEARCH
   ============================================================ */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

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

.search-overlay .search-box {
    width: 90%;
    max-width: 700px;
    transform: translateY(30px);
    transition: transform var(--transition-base);
}

.search-overlay.active .search-box {
    transform: translateY(0);
}

.search-overlay input {
    width: 100%;
    padding: 1.5rem 2rem;
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-xl);
    background: var(--white);
    outline: none;
}

.search-overlay .close-search {
    position: absolute;
    top: 30px;
    right: 30px;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
}

/* ============================================================
   DARK MODE TOGGLE
   ============================================================ */
.dark-mode-toggle {
    background: var(--gray-200);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.85rem;
    color: var(--gray-700);
}

.dark-mode-toggle:hover {
    background: var(--gray-300);
}

/* ============================================================
   PAGE CONTENT STYLES
   ============================================================ */
.page-content {
    min-height: 60vh;
    padding: 3rem 0;
}

.page-content h2 {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.page-content h3 {
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.75rem;
}

/* Pengurus Cards */
.pengurus-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.pengurus-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pengurus-card .pengurus-foto {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-full);
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 4px solid var(--nu-green-100);
}

.pengurus-card h5 {
    font-weight: 700;
    font-size: var(--font-size-base);
    margin-bottom: 0.25rem;
}

.pengurus-card .jabatan {
    color: var(--primary);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

/* Maps Section */
.maps-section iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-fadeInUp { animation: fadeInUp 0.6s ease forwards; }
.animate-fadeInLeft { animation: fadeInLeft 0.6s ease forwards; }
.animate-fadeInRight { animation: fadeInRight 0.6s ease forwards; }

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1199.98px) {
    .mega-menu { padding: 1rem; }
}

@media (max-width: 991.98px) {
    :root {
        --header-height: 70px;
        --section-padding: 3rem 0;
    }

    .topbar-left span:not(:first-child) { display: none; }

    .main-navbar .nav-link {
        padding: 0.75rem 1rem !important;
    }

    .mega-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        border-radius: 0;
        padding: 0.5rem 1rem;
        background: var(--gray-50);
    }

    .hero-slider .carousel-item { height: 400px; }
    .hero-slider .carousel-caption h2 { font-size: var(--font-size-2xl); }
    .hero-default { padding: 5rem 0 3rem; }
    .hero-default h1 { font-size: var(--font-size-2xl); }
    .section-title h2 { font-size: var(--font-size-2xl); }
}

@media (max-width: 767.98px) {
    .hero-slider .carousel-item { height: 300px; }
    .hero-slider .carousel-caption h2 { font-size: var(--font-size-xl); }
    .hero-slider .carousel-caption p { display: none; }

    .breadcrumb-section { padding: 3rem 0 1.5rem; }
    .breadcrumb-section h1 { font-size: var(--font-size-xl); }

    .sambutan-section .sambutan-card { padding: 1.5rem; }
    .sambutan-photo { width: 120px; height: 120px; }

    .floating-buttons { right: 15px; bottom: 15px; }
    .float-btn { width: 44px; height: 44px; font-size: 1rem; }

    .footer { text-align: center; }
    .footer h5::after { left: 50%; transform: translateX(-50%); }
    .footer-social { justify-content: center; }
}

@media (max-width: 575.98px) {
    .stat-card { padding: 1.5rem 1rem; }
    .stat-card .stat-number { font-size: var(--font-size-2xl); }
    .section-title h2 { font-size: var(--font-size-xl); }
}

/* ============================================================
   PORTAL LAYOUT - CLASSIC NU NEWS PORTAL
   ============================================================ */
.portal-section {
    padding: 2.5rem 0 3rem;
}

/* ---- Portal Article List ---- */
.portal-berita-list {
    display: flex;
    flex-direction: column;
}

.portal-article {
    border-bottom: 1px solid var(--gray-200);
    padding: 1.75rem 0;
}

.portal-article:first-child {
    padding-top: 0;
}

.portal-article:last-child {
    border-bottom: none;
}

.portal-article-inner {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.portal-article-thumb {
    flex-shrink: 0;
    width: 260px;
    height: 180px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--gray-100);
}

.portal-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.portal-article:hover .portal-article-thumb img {
    transform: scale(1.05);
}

.portal-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--nu-green-50);
    color: var(--primary);
    font-size: 2.5rem;
    opacity: 0.3;
}

.portal-article-content {
    flex: 1;
    min-width: 0;
}

/* Category Badge */
.portal-category-badge {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 0.2rem 0.75rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.6rem;
}

/* Article Title */
.portal-article-title {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.portal-article-title a {
    color: inherit;
    transition: color var(--transition-fast);
}

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

/* Article Meta */
.portal-article-meta {
    font-size: 0.7rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
}

.portal-article-meta strong {
    color: var(--gray-600);
}

.portal-article-meta .meta-dot {
    color: var(--gray-400);
    margin: 0 0.15rem;
}

/* Article Excerpt */
.portal-article-excerpt {
    color: var(--gray-600);
    font-size: var(--font-size-sm);
    line-height: 1.7;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Read More Link */
.portal-read-more {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    transition: all var(--transition-fast);
}

.portal-read-more:hover {
    color: var(--primary-dark);
    transform: translateX(3px);
}

/* ---- Portal Sidebar ---- */
.portal-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: calc(var(--header-height) + var(--topbar-height) + 20px);
}

.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.sidebar-widget-header {
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.sidebar-widget-header.sidebar-header-red {
    background: var(--danger);
}

.sidebar-widget-body {
    padding: 1rem 1.25rem;
}

.sidebar-banner {
    border: none;
    box-shadow: none;
    background: transparent;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.sidebar-banner img {
    border-radius: var(--radius-md);
    transition: transform var(--transition-base);
}

.sidebar-banner:hover img {
    transform: scale(1.02);
}

/* Sidebar Agenda */
.sidebar-agenda-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
    align-items: flex-start;
}

.sidebar-agenda-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-agenda-item:first-child {
    padding-top: 0;
}

.sidebar-agenda-date {
    flex-shrink: 0;
    width: 45px;
    background: var(--primary-gradient);
    border-radius: var(--radius-sm);
    color: var(--white);
    text-align: center;
    padding: 0.35rem;
}

.sidebar-agenda-date .day {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    display: block;
}

.sidebar-agenda-date .month {
    font-size: 0.6rem;
    text-transform: uppercase;
    font-weight: 600;
    display: block;
}

.sidebar-agenda-info h6 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Sidebar Popular Posts */
.sidebar-popular-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
    align-items: flex-start;
}

.sidebar-popular-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-popular-item:first-child {
    padding-top: 0;
}

.sidebar-popular-thumb {
    flex-shrink: 0;
    width: 75px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--gray-100);
}

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

.sidebar-popular-info {
    flex: 1;
    min-width: 0;
}

.sidebar-popular-info h6 {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-popular-info h6 a {
    color: var(--gray-800);
    transition: color var(--transition-fast);
}

.sidebar-popular-info h6 a:hover {
    color: var(--primary);
}

.sidebar-popular-info small {
    font-size: 0.7rem;
}

/* Sidebar Pengumuman */
.sidebar-pengumuman-item {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.sidebar-pengumuman-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-pengumuman-item:first-child {
    padding-top: 0;
}

.sidebar-pengumuman-item h6 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
    line-height: 1.4;
}

/* Sidebar Kategori */
.sidebar-kategori-list {
    display: flex;
    flex-direction: column;
}

.sidebar-kategori-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0;
    color: var(--gray-700);
    font-size: var(--font-size-sm);
    font-weight: 500;
    border-bottom: 1px solid var(--gray-100);
    transition: all var(--transition-fast);
}

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

.sidebar-kategori-item:hover {
    color: var(--primary);
    padding-left: 0.5rem;
}

.sidebar-kategori-item i {
    font-size: 0.6rem;
    color: var(--primary);
}

/* Sidebar Stats */
.sidebar-stats {
    display: flex;
    flex-direction: column;
}

.sidebar-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: var(--font-size-sm);
}

.sidebar-stat-row:last-child {
    border-bottom: none;
}

/* ---- Portal Responsive ---- */
@media (max-width: 991.98px) {
    .portal-sidebar {
        position: static;
    }

    .portal-article-thumb {
        width: 200px;
        height: 140px;
    }

    .portal-article-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 767.98px) {
    .portal-article-inner {
        flex-direction: column;
        gap: 1rem;
    }

    .portal-article-thumb {
        width: 100%;
        height: 200px;
    }

    .portal-article-meta {
        font-size: 0.65rem;
    }

    .portal-article-title {
        font-size: 1.15rem;
    }

    .portal-section {
        padding: 1.5rem 0 2rem;
    }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-nu { color: var(--primary) !important; }
.bg-nu { background: var(--primary-gradient) !important; }
.border-nu { border-color: var(--primary) !important; }
.fw-800 { font-weight: 800 !important; }
.fw-700 { font-weight: 700 !important; }
.font-arabic { font-family: var(--font-arabic) !important; }
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
