/* ============================
   CSS Variables & Reset
   ============================ */
:root {
    --color-bg-light: #eff6ff;
    --color-bg-gradient-1: #bfdbfe;
    /* Light Blue 200 */
    --color-bg-gradient-2: #3b82f6;
    /* Blue 500 */
    --color-bg-gradient-3: #1e3a8a;
    /* Blue 900 (Dark) */
    --color-primary: #2563eb;
    --color-secondary: #0891b2;
    --color-accent: #7c3aed;
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-white: #ffffff;
    --color-glass-bg: rgba(255, 255, 255, 0.7);
    --color-glass-border: rgba(255, 255, 255, 0.8);
    --color-card-shadow: rgba(0, 0, 0, 0.1);
    --font-primary: 'Poppins', sans-serif;
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 16px;
}

/* Election Info Section */
.election-info {
    margin-top: 40px;
    margin-bottom: 40px;
    padding: 0 15px;
    display: flex;
    justify-content: center;
}

.info-card.compact {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 15px 20px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.compact-title {
    font-size: 0.7rem;
    /* User request: 0.7rem all */
    color: var(--color-primary);
    margin: 0;
    font-weight: 700;
}

.compact-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    /* User request: 0.7rem */
    color: var(--color-text);
}

.compact-separator {
    color: var(--color-text-muted);
    opacity: 0.5;
}

.compact-note {
    font-size: 0.7rem;
    /* User request: 0.7rem */
    color: #b45309;
    /* Dark Amber */
    background: #fffbeb;
    padding: 6px 12px;
    border-radius: 8px;
    margin-top: 4px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--color-bg-light);
    color: var(--color-text);
    /* min-height: 100vh; */
    overflow-x: hidden;
    line-height: 1.6;
}

/* ============================
   Background Animation
   ============================ */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-bg-gradient-1) 0%, var(--color-bg-gradient-2) 40%, var(--color-bg-gradient-3) 70%, var(--color-bg-light) 100%);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    filter: blur(8px);
    /* Gloomy / Soft */
    animation: particleFloat 30s infinite linear;
    bottom: -150px;
    /* Start below screen if delay is 0, but negative delay handles it */
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) rotate(0deg) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.5;
    }

    50% {
        transform: translateY(-50vh) rotate(180deg) translateX(50px);
        opacity: 0.3;
    }

    100% {
        transform: translateY(-120vh) rotate(360deg) translateX(-50px);
        opacity: 0;
    }
}



/* ============================
   Header
   ============================ */
.header {
    padding: 30px 20px 20px;
    text-align: center;
    position: relative;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    /* background: var(--color-glass-bg); */
    backdrop-filter: blur(10px);
    /* border: 1px solid var(--color-glass-border); */
    padding: 15px 25px;
    /* Increase padding for bigger logo */
    border-radius: 30px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-soft);
}

.logo-img {
    height: auto;
    max-height: 100px;
    /* Limit height */
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Remove old text styles */

.title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--color-white);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ============================
   Main Content
   ============================ */
.main-content {
    padding: 20px 20px 80px;
    /* Bottom padding for sticky footer */
    max-width: 1000px;
    margin: 0 auto;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--color-glass-bg);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--color-glass-border);
    padding: 15px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    z-index: 90;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.intro-text {
    text-align: center;
    margin-bottom: 40px;
}

.intro-text h2 {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    margin-bottom: 12px;
    color: var(--color-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hint {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #fef9c3, #fde047);
    /* Bright Yellow */
    border: 2px solid #facc15;
    padding: 12px 25px;
    border-radius: 12px;
    color: #854d0e;
    /* Dark Brown/Gold Text */
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(250, 204, 21, 0.4);
    /* Yellow glow */
    text-align: center;
}

.hint-icon {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.scroll-chevron {
    width: 20px;
    height: 20px;
    border-right: 3px solid #facc15;
    border-bottom: 3px solid #facc15;
    transform: rotate(45deg);
    margin-top: 10px;
    animation: bounce 1.5s infinite;
}

.hint-icon {
    font-size: 1.1rem;
    animation: bounce 1s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

/* ============================
   Candidates Container
   ============================ */
.candidates-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 20px 10px;
}

/* ============================
   Candidate Card
   ============================ */
.candidate-card {
    position: relative;
    cursor: pointer;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.candidate-inner {
    position: relative;
    width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.photo-wrapper {
    position: relative;
    width: 150px;
    height: 200px;
    border-radius: 12px;
    padding: 0;
    background: transparent;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.candidate-card:hover .photo-wrapper {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 40px var(--card-color, rgba(37, 99, 235, 0.35));
}

.photo-glow {
    display: none;
}

.photo-container {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: var(--color-white);
}

.candidate-photo {
    width: 100%;
    height: 100%;
    object-fit: scale-down;
    transition: var(--transition-smooth);
    /* Fix downscaling artifacts */
    transform: translateZ(0);
    /* Force GPU High Quality Scaling */
}

.candidate-card:hover .candidate-photo {
    transform: scale(1.05);
}

/* Prominent Number Badge - Below Photo */
.number-badge {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 50px;
    height: 30px;
    padding: 0 12px;
    background: linear-gradient(135deg, var(--card-color, var(--color-primary)), var(--color-accent));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-white);
    border: 3px solid var(--color-white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 5;
}

.number-badge::before {
    content: 'No. ';
    font-weight: 500;
}

.candidate-info {
    margin-top: 14px;
    text-align: center;
}

.candidate-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--color-white);
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.candidate-nickname {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ============================
   Modal Overlay
   ============================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    padding: 40px 15px;
    /* Increased vertical padding for better centering */
}

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

.modal-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    max-height: 90dvh;
    /* Better mobile support */
}

/* ============================
   Modal Content
   ============================ */
.modal-content {
    flex: 1;
    background: var(--color-white);
    border-radius: var(--border-radius);
    overflow: scroll;
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: var(--transition-smooth);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    margin-top: 50px;

}



.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    color: var(--color-text);
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 50;
    /* Ensure it stays above sticky header (z-index 10) */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal Animations */
@keyframes slideDownFade {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content.animate-in .profile-header {
    animation: slideDownFade 0.5s ease forwards;
    animation-delay: 0.1s;
    opacity: 0;
    /* Start hidden */
}

.modal-content.animate-in .profile-body>div {
    animation: slideDownFade 0.5s ease forwards;
    opacity: 0;
    /* Start hidden */
}

/* Staggered Delays for Body Content */
.modal-content.animate-in .profile-body>div:nth-child(1) {
    animation-delay: 0.20s;
}

/* Info */
.modal-content.animate-in .profile-body>div:nth-child(2) {
    animation-delay: 0.30s;
}

/* Vision */
.modal-content.animate-in .profile-body>div:nth-child(3) {
    animation-delay: 0.40s;
}

/* Mission */
.modal-content.animate-in .profile-body>div:nth-child(4) {
    animation-delay: 0.50s;
}

/* Separator */
.modal-content.animate-in .profile-body>div:nth-child(5) {
    animation-delay: 0.60s;
}

/* Video */

.close-btn:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

/* ============================
   Profile Header - Sticky (Universal Style)
   ============================ */
.profile-header {
    padding: 0;
    /* Compact edge-to-edge */
    display: flex;
    flex-direction: row;
    /* Horizontal layout */
    align-items: center;
    gap: 0;
    background: var(--color-white);
    position: sticky;
    top: 0;
    z-index: 10;
    flex-shrink: 0;
    border-bottom: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* Gradient border effect */
.profile-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right,
            rgba(0, 0, 0, 0.02),
            rgba(0, 0, 0, 0.1) 20%,
            rgba(0, 0, 0, 0.1) 80%,
            rgba(0, 0, 0, 0.02));
    box-shadow:
        0 -1px 0 rgba(0, 0, 0, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.05);
}

.profile-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.06) 0%, transparent 100%);
    pointer-events: none;
}

.profile-photo-container {
    position: relative;
    flex-shrink: 0;
}

/* Edge-to-Edge Photo Style (Restored) */
.profile-photo {
    width: 80px;
    height: 110px;
    /* Rectangular portrait */
    border-radius: 0;
    object-fit: scale-down;
    border: none;
    box-shadow: none;
    display: block;
}

.candidate-number {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--modal-color, var(--color-primary)), var(--color-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-white);
    border: 1px solid var(--color-white);
}

.profile-intro {
    flex: 1;
    min-width: 0;
    padding: 10px 16px;
    /* Restore padding */
    text-align: left;
    /* Restore left align */
}

.profile-urut {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--modal-color, var(--color-primary));
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.profile-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1px;
    color: var(--color-text);
    line-height: 1.2;
}

.profile-nickname {
    font-size: 0.9rem;
    color: var(--modal-color, var(--color-primary));
    font-weight: 500;
}

.profile-age {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 400;
    margin-top: 2px;
}

/* ============================
   Profile Body - Scrollable
   ============================ */
.profile-body {
    padding: 16px 20px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    /* Fix flex scroll */
    -webkit-overflow-scrolling: touch;
    /* Enable smooth scroll on iOS */
    overscroll-behavior: contain;
    /* Prevent body scroll chaining */
}

.profile-section {
    margin-bottom: 16px;
}

.profile-section:last-child {
    margin-bottom: 0;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center title */
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
    margin-top: 30px;
    /* Add spacing above */
    color: var(--color-text);
}

.section-title.centered {
    justify-content: center;
    text-align: center;
}

.section-icon {
    font-size: 1rem;
}

/* Info Grid - Compact */
.info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.info-item {
    background: #f1f5f9;
    border-radius: 8px;
    padding: 8px 12px;
    flex: 1 1 auto;
    min-width: 140px;
}

.info-label {
    font-size: 0.65rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}

.info-value {
    font-size: 0.85rem;
    color: var(--color-text);
    font-weight: 500;
}

/* Vision - Compact */
.vision-text {
    background: #f1f5f9;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-text);
    border-left: 3px solid var(--modal-color, var(--color-primary));
}

.separator-title {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0 16px;
    gap: 12px;
}

.separator-title::before,
.separator-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.1), transparent);
}

.separator-title span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text);
    /* Changed from white to dark text */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Mission - Compact */
.mission-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mission-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 10px 12px;
}

.mission-number {
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, var(--modal-color, var(--color-primary)), var(--color-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-white);
    flex-shrink: 0;
}

.mission-text {
    font-size: 0.85rem;
    color: var(--color-text);
    line-height: 1.4;
}

/* Video - Compact Fixed Height */
.video-container {
    position: relative;
    width: 100%;
    height: 350px;
    /* Fixed height globally */
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    scroll-margin-top: 100px;
}

.video-container video {
    width: 100% !important;
    height: 100% !important;
    /* Force fill container */
    object-fit: contain !important;
    /* Keep aspect ratio without cropping */
    display: block;
    max-height: 100%;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.play-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    padding: 20px 30px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.play-btn:hover {
    transform: scale(1.05);
    background: #fff;
}

.play-icon {
    font-size: 2rem;
    color: var(--color-primary);
}

.play-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
}

/* ============================
   Navigation - Bottom Left/Right
   ============================ */
.nav-container {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0 0;
    margin-bottom: 50px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--color-white);
    border: 1px solid #e2e8f0;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--color-text);
    flex: 1;
    box-shadow: var(--shadow-soft);
}

/* User requested no hover movement/color change */
.nav-btn:hover {
    background: var(--color-white);
    transform: none;
    box-shadow: var(--shadow-soft);
}

.nav-prev {
    justify-content: flex-start;
}

.nav-next {
    justify-content: flex-end;
}

.nav-next .nav-text {
    text-align: right;
}

.nav-photo {
    width: 45px;
    height: 55px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    flex-shrink: 0;
}

.nav-arrow {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1;
    color: var(--color-primary);
}

.nav-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.nav-hint {
    font-size: 0.6rem;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.nav-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================
   Footer
   ============================ */
.footer {
    text-align: center;
    padding: 20px;
    color: var(--color-text-muted);
    font-size: 0.7rem;
}

/* ============================
   Responsive Design - Keep Horizontal
   ============================ */
@media (max-width: 768px) {
    .header {
        padding: 20px 15px 15px;
    }

    .logo {
        padding: 0px;
    }

    .logo-icon {
        font-size: 20px;
    }

    .logo-text {
        font-size: 14px;
    }

    .main-content {
        padding: 15px 10px 40px;
    }

    .intro-text {
        margin-bottom: 0px;
    }

    .intro-text h2 {
        font-size: 1.1rem;
    }

    .hint {
        padding: 8px 14px;
        font-size: 0.75rem;
    }

    /* Keep horizontal - use smaller cards */
    .candidates-container {
        gap: 8px;
        padding: 20px 5px;
        justify-content: center;
    }

    .candidate-inner {
        width: 115px;
    }

    .photo-wrapper {
        width: 110px;
        height: 147px;
        border-radius: 10px;
    }

    .number-badge {
        min-width: 40px;
        height: 22px;
        font-size: 0.6rem;
        padding: 0 8px;
        bottom: 0;
    }

    .candidate-name {
        font-size: 0.7rem;
    }

    .candidate-nickname {
        font-size: 0.65rem;
    }

    .nav-photo {
        width: 35px;
        height: 45px;
    }

    .nav-hint {
        font-size: 0.55rem;
    }

    .nav-label {
        font-size: 0.7rem;
    }

    .nav-btn {
        padding: 8px 10px;
        gap: 8px;
    }

    /* Modal compact - edge to edge */
    .modal-overlay {
        padding: 5px;
    }

    .modal-container {
        max-height: 98vh;
    }

    .close-btn {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        font-size: 18px;
        background: rgba(0, 0, 0, 0.15);
        z-index: 20;
    }



    .profile-photo-container {
        position: relative;
        flex-shrink: 0;
    }

    .profile-photo {
        width: 60px;
        /* Smaller for sharpness */
        /* Let's revert rendering first */
        height: 83px;
        border-radius: 0;
        border: none;
        box-shadow: none;
        display: block;
    }

    /* Fixed height video on mobile for simpler control */
    .video-container {
        height: 350px;
        margin: 5px 0;
        padding: 0;
        border-radius: 0;
        background: black;
        scroll-margin-top: 100px;
    }

    .video-container video {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    /* Hide section title for video on mobile to save space */
    .video-section .section-title {
        display: none;
    }

    .candidate-number {
        position: absolute;
        bottom: 4px;
        right: 4px;
        width: 20px;
        height: 20px;
        font-size: 0.65rem;
        border-width: 1px;
    }

    .profile-intro {
        padding: 8px 12px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .profile-urut {
        font-size: 0.55rem;
    }

    .profile-name {
        font-size: 0.9rem;
    }

    .profile-nickname {
        font-size: 0.7rem;
    }

    .profile-age {
        font-size: 0.65rem;
    }

    .profile-body {
        padding: 8px 10px;
    }

    .profile-section {
        margin-bottom: 8px;
    }

    .section-title {
        font-size: 0.75rem;
        margin-bottom: 5px;
    }

    /* 2-column info grid */
    .info-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 5px;
    }

    .info-item {
        padding: 5px 6px;
        min-width: auto;
    }

    .info-label {
        font-size: 0.5rem;
    }

    .info-value {
        font-size: 0.8rem;
    }

    .vision-text {
        padding: 8px 10px;
        font-size: 0.75rem;
    }

    .mission-item {
        padding: 8px 10px;
    }

    .mission-number {
        width: 20px;
        height: 20px;
        font-size: 0.65rem;
    }

    .mission-text {
        font-size: 0.8rem;
    }

    .nav-container {
        padding: 10px 0 0;
        gap: 8px;
    }

    .nav-btn {
        padding: 8px 12px;
    }

    .nav-arrow {
        font-size: 1.1rem;
    }

    .nav-hint {
        font-size: 0.6rem;
    }

    .nav-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 380px) {
    .main-content {
        padding-top: 5px;
    }

    .title {
        font-size: 1rem;
        /* User request: 1 rem */
        margin-bottom: 4px;
        line-height: 1.2;
    }

    .logo-img {
        width: 40%;
        /* User request: 40% */
        max-width: 100px;
    }

    .subtitle {
        font-size: 0.7rem;
        /* User request: 0.7rem */
        padding: 0 10px;
        line-height: 1.3;
    }

    .intro-text h2 {
        font-size: 1rem;
    }

    .candidates-container {
        gap: 5px;
        padding: 15px 3px;
    }

    .candidate-inner {
        width: 105px;
    }

    .photo-wrapper {
        width: 100px;
        height: 133px;
    }

    .candidate-name {
        font-size: 0.7rem;
    }

    /* nav-hint display: none removed as requested */
}

/* ============================
   Scrollbar Styling
   ============================ */
.modal-content::-webkit-scrollbar {
    width: 4px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
}

/* Separator Play Helper Button */
.separator-title.clickable {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    /* Bigger touch target */
    margin: 20px 0 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff !important;
    /* Force White Contrast */
    background: #1e40af;
    /* Darker Blue (Blue 800) by default */
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
    /* Matching shadow */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.separator-title.clickable:hover {
    background: #172554;
    /* Even Darker Blue (Blue 950) */
    color: #ffffff !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(23, 37, 84, 0.4);
    filter: none;
}

.separator-title.clickable:active {
    transform: translateY(-1px);
}

.separator-title .icon {
    font-size: 0.9rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 2px;
    /* Visual center for play triangle */
}

.modal-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ============================
   Loading Animation
   ============================ */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Navigation Arrows */
.nav-arrow {
    font-size: 1.5rem;
    color: var(--color-primary);
    font-weight: bold;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-prev .nav-arrow {
    padding-right: 12px;
}

.nav-next .nav-arrow {
    padding-left: 12px;
}
