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

:root {
    /* Colors */
    /* Palet "jurnal petualangan" — diambil dari ilustrasi hero */
    --gold: #B8892E;            /* mustard, warna brand */
    --gold-light: #DDB85C;
    --gold-dark: #8C6620;
    --gold-glow: rgba(184, 137, 46, 0.28);
    --teal: #2F7A80;            /* sungai */
    --teal-dark: #24626A;
    --forest: #2E4A3B;          /* pepohonan */
    --forest-dark: #1D3328;
    --rust: #B4532A;            /* tanda X di peta */
    --charcoal: #2B231C;        /* tinta */
    --dark: #241C15;
    --darker: #18291F;
    --paper: #FBF7EF;
    --gray-100: #F3ECDF;        /* perkamen */
    --gray-200: #E9DFCD;
    --gray-300: #DACDB6;
    --gray-400: #B9AA90;
    --gray-500: #85786A;
    --white: #FFFFFF;
    --black: #000000;
    
    /* Typography */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-display: 'Fraunces', serif;           /* judul section, angka, banner */
    --font-script: 'Caveat', cursive;            /* label tulisan tangan */
    --font-brand: 'Playfair Display', serif;     /* logo "Wander" (jangan diganti) */
    --font-logo: 'Oswald', sans-serif;           /* logo "WONDER" (jangan diganti) */
    --font-accent: 'Plus Jakarta Sans', sans-serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.6s ease;
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: clip;
}

body {
    font-family: var(--font-body);
    color: var(--charcoal);
    background-color: var(--paper);
    line-height: 1.6;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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


/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-base);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(24, 41, 31, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar:not(.scrolled) .navbar-brand {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
}

.navbar.scrolled .navbar-brand {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.navbar-brand {
    font-family: var(--font-brand);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: baseline;
    gap: 4px;
    transition: all var(--transition-base);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand .brand-wander {
    color: var(--white);
    font-style: italic;
}

.navbar-brand .brand-amp {
    color: var(--teal);
    font-family: var(--font-brand);
    font-size: 1.3rem;
    margin: 0 2px;
}

.navbar-brand .brand-wonder {
    color: var(--white);
    font-family: var(--font-logo);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.2rem;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-line {
    width: 28px;
    height: 2px;
    background: var(--white);
    transition: var(--transition-base);
    border-radius: 2px;
}

.navbar-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.75);
    padding: 8px 16px;
    border-radius: 4px;
    transition: var(--transition-base);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}


/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #111111;
    background-image: url('../img/hero-bg.jpg');
    background-position: center top; /* Menurunkan foto agar bagian atas (logo UNTAR & gunung) tidak terpotong */
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(180deg, rgba(15, 15, 20, 0.3) 0%, rgba(15, 15, 20, 0.05) 50%, rgba(15, 15, 20, 0.5) 100%);
    z-index: 1;
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.hero-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(177, 144, 42, 0.5);
    border-radius: 50%;
    animation: float-particle linear infinite;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Sembunyikan teks HTML ganda karena teks 'Wander & Wonder' sudah ada di dalam ilustrasi foto */
.hero-content {
    opacity: 0;
    pointer-events: none;
    height: 0;
    overflow: hidden;
}

.hero-title {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.hero-title-wander {
    font-family: var(--font-brand);
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--white);
    font-style: italic;
    font-weight: 400;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-title-amp {
    font-family: var(--font-brand);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--teal);
    font-weight: 400;
    text-shadow: 0 0 30px rgba(0, 151, 167, 0.4);
}

.hero-title-wonder {
    font-family: var(--font-logo);
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 8px;
    font-weight: 700;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-divider {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 0 auto 24px;
    border-radius: 2px;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.6; width: 80px; }
    50% { opacity: 1; width: 120px; }
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: clamp(0.9rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 6px;
    font-weight: 300;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: bounce-soft 2s ease-in-out infinite;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: var(--gold);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.3; transform: translateX(-50%) translateY(12px); }
}

@keyframes bounce-soft {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}


/* ===== LOGO SECTION ===== */
.logo-section {
    padding: 80px 0;
    background: var(--paper);
    text-align: center;
}

.logo-display {
    display: inline-block;
}

.logo-text {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.logo-wander {
    font-family: var(--font-brand);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--charcoal);
    font-style: italic;
    font-weight: 400;
}

.logo-amp {
    font-family: var(--font-brand);
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--teal);
    font-weight: 400;
}

.logo-wonder {
    font-family: var(--font-logo);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--charcoal);
    text-transform: uppercase;
    letter-spacing: 6px;
    font-weight: 700;
}

.logo-subtitle {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-top: 8px;
}


/* ===== SECTION HEADER ===== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 60px;
}

.section-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold));
    border-radius: 2px;
}

.section-header .section-line:last-child {
    background: linear-gradient(90deg, var(--gold), transparent);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 4.8vw, 3.2rem);
    font-optical-sizing: auto;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--charcoal);
    font-weight: 600;
    text-align: center;
}

.section-title em {
    font-style: italic;
    font-weight: 400;
    color: var(--gold-dark);
}

/* Label tulisan tangan di atas judul, seperti catatan di jurnal */
.section-title[data-eyebrow]::before {
    content: attr(data-eyebrow);
    display: block;
    font-family: var(--font-script);
    font-size: 0.5em;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--rust);
    margin-bottom: 2px;
    transform: rotate(-2deg);
}

.section-lead {
    max-width: 560px;
    margin: -36px auto 36px;
    text-align: center;
    color: var(--gray-500);
    font-size: 0.95rem;
}


/* ===== ABOUT SECTION ===== */
.about-section {
    padding: var(--section-padding);
    background: var(--gray-100);
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.about-card {
    background: var(--white);
    padding: 48px 40px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: var(--transition-slow);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transform: scaleX(0);
    transition: transform var(--transition-slow);
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
}

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

.about-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition-base);
}

.about-icon svg {
    width: 28px;
    height: 28px;
    color: var(--white);
}

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

.about-card h3 {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--charcoal);
    margin-bottom: 14px;
}

.about-card p {
    font-size: 0.93rem;
    line-height: 1.85;
    color: #6b6b6b;
}

.about-card p strong {
    color: var(--charcoal);
}

.about-card p em {
    color: var(--gold-dark);
}


/* ===== TEAM SECTION ===== */
.team-section {
    padding: var(--section-padding);
    background: var(--paper);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.team-card {
    text-align: center;
    padding: 32px 20px;
    border-radius: 16px;
    background: var(--gray-100);
    transition: var(--transition-slow);
    border: 1px solid transparent;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border-color: var(--gold);
    background: var(--white);
}

.team-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--gray-300);
    transition: var(--transition-base);
}

.team-card:hover .team-photo {
    border-color: var(--gold);
    box-shadow: 0 0 20px var(--gold-glow);
}

.team-photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gray-200), var(--gray-300));
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-photo-placeholder svg {
    width: 48px;
    height: 48px;
    color: var(--gray-400);
}

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

.team-info h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--charcoal);
    margin-bottom: 6px;
}

.team-nim {
    display: block;
    font-family: var(--font-accent);
    font-size: 0.78rem;
    color: var(--gray-500);
    font-weight: 400;
    letter-spacing: 0.5px;
}


/* ===== GOLD BANNER ===== */
.gold-banner {
    background: linear-gradient(135deg, var(--forest-dark) 0%, var(--forest) 55%, #3B5A47 100%);
    padding: 72px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 3px solid var(--gold);
    border-bottom: 3px solid var(--gold);
}

/* Garis kontur peta samar di latar */
.gold-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-radial-gradient(circle at 15% 120%, transparent 0 22px, rgba(221, 184, 92, 0.08) 22px 23px),
        repeating-radial-gradient(circle at 90% -20%, transparent 0 26px, rgba(221, 184, 92, 0.06) 26px 27px);
}

.gold-banner-content {
    position: relative;
    z-index: 1;
}

.gold-banner-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
}

.gold-banner-icon svg {
    width: 100%;
    height: 100%;
    color: var(--gold-light);
}

.gold-banner h2 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 500;
    font-style: italic;
    letter-spacing: -0.01em;
    color: #F6EBD3;
    margin-bottom: 10px;
}

.gold-banner p {
    font-family: var(--font-accent);
    font-size: 0.95rem;
    color: var(--gold-light);
    font-weight: 600;
    letter-spacing: 0.3px;
}


/* ===== INSIGHTS SECTION ===== */
.insights-section {
    padding: var(--section-padding);
    background: var(--gray-100);
}

.insight-main {
    margin-bottom: 40px;
}

.insight-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

.insight-grid:last-child {
    margin-bottom: 0;
}

.insight-header-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 35px;
}

/* Ringkasan (Tugas / Karya / Anggota) */
.stats-row {
    display: flex;
    justify-content: center;
    gap: clamp(32px, 8vw, 80px);
    margin-bottom: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5.5vw, 3.4rem);
    font-weight: 500;
    font-style: italic;
    color: var(--forest);
    line-height: 1;
}

.stat-label {
    margin-top: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Filter Controls */
.filter-wrapper {
    background: var(--white);
    padding: 24px 28px;
    border-radius: 20px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.06);
    margin-bottom: 40px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.filter-task-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 20px;
    scrollbar-width: none;
}

.filter-task-tabs::-webkit-scrollbar {
    display: none;
}

.filter-task-tab {
    padding: 9px 20px;
    border-radius: 30px;
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--charcoal);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-task-tab .tab-count {
    background: var(--gray-200);
    color: var(--gray-500);
    font-size: 0.75rem;
    padding: 2px 7px;
    border-radius: 10px;
    transition: all var(--transition-fast);
}

.filter-task-tab:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.filter-task-tab.active {
    background: var(--forest);
    color: #F6EBD3;
    border-color: var(--forest);
    box-shadow: 0 4px 14px rgba(46, 74, 59, 0.3);
}

.filter-task-tab.active .tab-count {
    background: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

/* Filter Sub Controls */
.filter-sub-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-search-box {
    flex: 1;
    min-width: 240px;
    position: relative;
}

.filter-search-box input {
    width: 100%;
    padding: 11px 18px 11px 42px;
    border-radius: 12px;
    border: 1px solid var(--gray-300);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    background: var(--gray-100);
}

.filter-search-box input:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

.filter-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--gray-400);
    pointer-events: none;
}

.filter-dropdowns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 10px 18px;
    border-radius: 12px;
    border: 1px solid var(--gray-300);
    font-family: var(--font-body);
    font-size: 0.85rem;
    background: var(--white);
    color: var(--charcoal);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

/* Assignments Grid */
.assignments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    margin-bottom: 40px;
}

.assignment-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: all var(--transition-base);
    position: relative;
}

.assignment-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(177, 144, 42, 0.3);
}

/* Card Visual Header */
.card-visual {
    height: 240px;
    position: relative;
    background: radial-gradient(circle at center, #2b2722 0%, #15130f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}

.card-visual-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform var(--transition-slow);
    padding: 10px;
    display: block;
}

.assignment-card:hover .card-visual-img {
    transform: scale(1.04);
}

/* Thumbnail (halaman 1 PDF / frame video / gambar) dibuat full-bleed */
.card-visual.has-thumb {
    background: #efebe3;
}

.card-visual.has-thumb .card-visual-img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    padding: 0;
    object-fit: cover;
    object-position: top center;
}

.card-visual.has-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, transparent 32%);
    pointer-events: none;
}

.card-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 56px;
    height: 56px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    z-index: 1;
    transition: transform var(--transition-base);
}

.card-play-icon svg {
    width: 24px;
    height: 24px;
    margin-left: 3px;
}

.assignment-card:hover .card-play-icon {
    transform: translate(-50%, -50%) scale(1.08);
}

.card-visual-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.8);
    transition: transform var(--transition-fast);
}

.card-visual-placeholder svg {
    width: 52px;
    height: 52px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.card-visual-placeholder span {
    font-family: var(--font-heading);
    letter-spacing: 2px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.card-visual-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-fast);
    backdrop-filter: blur(2px);
}

.assignment-card:hover .card-visual-overlay {
    opacity: 1;
}

.card-quick-preview-btn {
    background: var(--gold);
    color: var(--white);
    padding: 9px 20px;
    border-radius: 25px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Badges on Card Visual */
.card-badges {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    z-index: 2;
}

.badge-task {
    background: var(--gold);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 4px 11px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.badge-format {
    background: rgba(255, 255, 255, 0.92);
    color: var(--charcoal);
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Card Body */
.card-content {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-category-tag {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--rust);
    margin-bottom: 6px;
    font-weight: 700;
}

.card-title-text {
    font-family: var(--font-heading);
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--dark);
    margin-bottom: 16px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-author-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    margin-bottom: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--gray-200);
}

.card-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(177, 144, 42, 0.12);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.card-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-author-avatar svg {
    width: 18px;
    height: 18px;
}

.card-author-meta {
    display: flex;
    flex-direction: column;
}

.card-author-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--charcoal);
    line-height: 1.2;
}

.card-author-nim {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Card Meta Details */
.card-meta-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--gray-500);
    margin-bottom: 18px;
    margin-top: auto;
}

.card-file-size {
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-file-size svg {
    width: 14px;
    height: 14px;
    color: var(--gray-400);
}

/* Card Action Buttons */
.card-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.btn-card-preview {
    background: var(--forest);
    color: #F6EBD3;
    border: none;
    padding: 11px 16px;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-card-preview:hover {
    background: var(--gold);
    box-shadow: 0 6px 16px var(--gold-glow);
    transform: translateY(-2px);
    color: var(--white);
}

.btn-card-download {
    background: var(--gray-100);
    color: var(--charcoal);
    border: 1px solid var(--gray-300);
    padding: 10px 14px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-card-download:hover {
    background: var(--rust);
    color: var(--white);
    border-color: var(--rust);
}

.btn-card-download svg {
    width: 16px;
    height: 16px;
}

/* Empty State */
.assignments-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: 16px;
    border: 1px dashed var(--gray-300);
}

.assignments-empty svg {
    width: 48px;
    height: 48px;
    color: var(--gray-400);
    margin-bottom: 16px;
}

.assignments-empty h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.assignments-empty p {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* ============ PREVIEW MODAL ============ */
.preview-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.preview-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.88);
    backdrop-filter: blur(8px);
}

.modal-container {
    position: relative;
    z-index: 10;
    background: var(--white);
    width: 100%;
    max-width: 1150px;
    max-height: 94vh;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    padding: 16px 24px;
    background: var(--darker);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title-area {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.modal-file-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(177, 144, 42, 0.2);
    color: var(--gold-light);
    flex-shrink: 0;
}

.modal-file-icon svg {
    width: 22px;
    height: 22px;
}

.modal-text {
    min-width: 0;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.modal-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 3px;
}

.modal-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-modal-action {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-modal-action:hover {
    background: var(--gold);
    color: var(--white);
}

.btn-modal-action svg {
    width: 14px;
    height: 14px;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.modal-close-btn svg {
    width: 22px;
    height: 22px;
}

.modal-body {
    flex: 1 1 auto;
    overflow: hidden;
    background: #141414;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 520px;
    height: 78vh;
    position: relative;
}

.modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: var(--white);
    display: block;
}

.modal-img-container {
    width: 100%;
    height: 100%;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-img {
    max-width: 100%;
    max-height: 72vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
    display: block;
    margin: auto;
}

.modal-video-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.modal-video {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    outline: none;
    object-fit: contain;
}

.modal-docx-preview {
    text-align: center;
    padding: 40px;
    color: var(--white);
    max-width: 480px;
}

/* ============ PDF.JS CANVAS VIEWER ============ */
.pdfjs-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #1e1e1e;
    overflow: hidden;
}

.pdfjs-toolbar {
    background: #2b2b2b;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    gap: 12px;
    flex-wrap: wrap;
}

.pdfjs-controls-left,
.pdfjs-controls-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdfjs-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pdfjs-btn:hover:not(:disabled) {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

.pdfjs-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.pdfjs-page-info {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    font-family: var(--font-body);
    padding: 0 8px;
    white-space: nowrap;
}

.pdfjs-zoom-level {
    color: var(--gold-light);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    padding: 0 4px;
    min-width: 45px;
    text-align: center;
}

.pdfjs-viewport {
    flex: 1;
    overflow: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 24px 16px;
    background: #222222;
    position: relative;
    min-height: 400px;
}

.pdfjs-canvas {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    background: #ffffff;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

.pdfjs-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.pdfjs-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: pdfSpin 0.8s linear infinite;
}

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

.modal-docx-preview svg {
    width: 72px;
    height: 72px;
    color: #42a5f5;
    margin-bottom: 20px;
}

.modal-docx-preview h4 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.modal-docx-preview p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Clickable Team Cards */
.team-card {
    cursor: pointer;
    transition: all var(--transition-base);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.team-card .team-badge-count {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--forest);
    background: rgba(46, 74, 59, 0.1);
    padding: 3px 10px;
    border-radius: 12px;
    letter-spacing: 0.2px;
}

/* Responsive modal & filters */
@media (max-width: 768px) {
    /* Navbar selalu solid di HP (hero di bawahnya, bukan di belakangnya) */
    .navbar,
    .navbar.scrolled {
        background: rgba(24, 41, 31, 0.97);
        padding: 12px 0;
    }

    .navbar:not(.scrolled) .navbar-brand {
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    /* Hero: tampilkan ilustrasi utuh (16:9) supaya logo UNTAR & tokoh tidak terpotong */
    .hero {
        min-height: 0;
        aspect-ratio: 16 / 9;
        margin-top: 60px;
        background-size: 100% auto;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .section-lead {
        margin-top: -28px;
    }

    .filter-wrapper {
        padding: 18px 16px;
    }
    
    .filter-sub-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-dropdowns {
        flex-direction: column;
    }
    
    .assignments-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-body {
        height: 65vh;
    }
    
    .modal-controls .btn-modal-action span {
        display: none;
    }
}


/* ===== FOOTER ===== */
.footer {
    background: var(--darker);
    padding: 60px 0 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    font-family: var(--font-brand);
    font-size: 1.8rem;
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 8px;
}

.footer-logo .brand-wander {
    color: var(--white);
    font-style: italic;
}

.footer-logo .brand-amp {
    color: var(--teal);
    font-size: 1.5rem;
}

.footer-logo .brand-wonder {
    color: var(--white);
    font-family: var(--font-logo);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 1.4rem;
}

.footer-tagline {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
}

.footer-info {
    text-align: right;
}

.footer-info p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
    text-align: center;
    padding: 24px 0;
    margin-top: 20px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
}


/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gold);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-base);
    box-shadow: 0 4px 20px var(--gold-glow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--gold-light);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--gold-glow);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    color: var(--white);
}


/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .insight-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 70px 0;
    }
    
    .navbar-toggle {
        display: flex;
    }
    
    .navbar-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 100px 40px;
        transition: right var(--transition-base);
        gap: 4px;
    }
    
    .navbar-menu.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 12px 0;
    }
    
    .nav-link::after {
        bottom: 8px;
        left: 0;
        right: auto;
        width: 30px;
    }
    
    .hero-title {
        gap: 8px;
    }
    
    .hero-tagline {
        letter-spacing: 3px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }
    
    .footer-info {
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 56px 0;
    }

    .container {
        padding: 0 18px;
    }

    /* Logo besar di bawah hero: muat di layar 360px */
    .logo-section {
        padding: 44px 0 40px;
    }

    .logo-text {
        gap: 6px;
    }

    .logo-wander,
    .logo-wonder {
        font-size: 2.15rem;
    }

    .logo-wonder {
        letter-spacing: 3px;
    }

    .logo-amp {
        font-size: 1.7rem;
    }

    .logo-subtitle {
        font-size: 0.72rem;
        letter-spacing: 3px;
    }

    .section-header {
        gap: 12px;
        margin-bottom: 32px;
    }

    .section-line {
        width: 28px;
        flex-shrink: 0;
    }

    .section-title {
        font-size: 1.85rem;
    }

    .section-title[data-eyebrow]::before {
        font-size: 1.1rem;
    }

    .section-lead {
        margin: -20px auto 28px;
        font-size: 0.88rem;
    }

    .about-content {
        gap: 20px;
    }

    .about-card {
        padding: 28px 22px;
        border-radius: 14px;
    }

    .about-card h3 {
        font-size: 1.35rem;
    }

    .about-card p {
        font-size: 0.88rem;
        line-height: 1.75;
    }

    /* Anggota: 2 kolom ringkas */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .team-card {
        padding: 20px 10px 18px;
        border-radius: 14px;
    }

    .team-photo {
        width: 84px;
        height: 84px;
        margin-bottom: 14px;
    }

    .team-info h3 {
        font-size: 0.86rem;
    }

    .team-nim {
        font-size: 0.7rem;
    }

    .team-card .team-badge-count {
        font-size: 0.66rem;
        padding: 3px 8px;
    }

    .gold-banner {
        padding: 40px 20px;
    }

    .gold-banner-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 14px;
    }

    .gold-banner p {
        font-size: 0.85rem;
    }

    .stats-row {
        gap: 28px;
        margin-bottom: 28px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .filter-wrapper {
        padding: 14px;
        border-radius: 16px;
        margin-bottom: 24px;
    }

    .filter-task-tab {
        padding: 7px 14px;
        font-size: 0.8rem;
    }

    .assignments-grid {
        gap: 18px;
    }

    .card-visual {
        height: 200px;
    }

    .card-content {
        padding: 16px 18px 18px;
    }

    .footer-logo {
        font-size: 1.6rem;
    }

    .back-to-top {
        right: 16px;
        bottom: 16px;
    }
}


/* ===== SMOOTH SCROLL OFFSET FOR FIXED NAVBAR ===== */
section[id] {
    scroll-margin-top: 80px;
}


/* ===== SELECTION COLOR ===== */
::selection {
    background: var(--gold);
    color: var(--white);
}

::-moz-selection {
    background: var(--gold);
    color: var(--white);
}
