/* ==========================================================================
   FERSIA DESIGN SYSTEM & PARALLAX STYLES
   Colors, Fonts, Layout, Glassmorphism, Parallax Scroll, Media Queries
   ========================================================================== */

/* --- Import Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* --- Root Variables & Theme Tokens --- */
:root {
    /* Font family */
    --font-primary: 'Plus Jakarta Sans', sans-serif;

    /* Theme colors - LIGHT MODE (Default) */
    --primary: hsl(220, 100%, 31%);        /* Deep Royal Blue */
    --primary-light: hsl(218, 90%, 45%);
    --primary-glow: hsla(220, 100%, 31%, 0.15);
    
    --secondary: hsl(43, 100%, 50%);       /* Vibrant Orange-Yellow */
    --secondary-light: hsl(43, 100%, 65%);
    --secondary-glow: hsla(43, 100%, 50%, 0.15);
    
    --accent-green: hsl(142, 70%, 45%);    /* Soft Green */
    --accent-purple: hsl(262, 70%, 58%);   /* Soft Purple */
    
    --bg-base: hsl(210, 30%, 98%);         /* Cool Light Grey */
    --bg-card: hsla(0, 0%, 100%, 0.7);
    --bg-darkblue: hsl(220, 100%, 15%);
    
    --text-main: hsl(215, 30%, 15%);       /* Dark Slate */
    --text-muted: hsl(215, 15%, 45%);
    --text-light: hsl(210, 20%, 98%);      /* Off-White */
    
    --border-color: rgba(0, 51, 160, 0.08);
    --border-glow: rgba(255, 255, 255, 0.4);
    --shadow-main: 0 10px 30px -10px rgba(0, 51, 160, 0.08);
    --shadow-glow: 0 20px 40px -15px rgba(0, 51, 160, 0.15);
    
    /* Layout Constants */
    --header-height: 80px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}


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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

button {
    font-family: inherit;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
}

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

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 5;
}

/* --- Scroll Progress Bar --- */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 1000;
    transition: width 0.1s ease-out;
}

/* --- Glassmorphism Base Styles --- */
.navbar-glass {
    background: hsla(210, 30%, 98%, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-main);
}


.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--border-color);
    border-top: 1px solid var(--border-glow);
    box-shadow: var(--shadow-main);
    border-radius: 24px;
    padding: 32px;
    transition: var(--transition-smooth);
}

/* --- Custom Glowing Overlays --- */
.card-glow-blue {
    box-shadow: 0 15px 35px -10px var(--primary-glow);
}
.card-glow-orange {
    box-shadow: 0 15px 35px -10px var(--secondary-glow);
}
.card-glow-green {
    box-shadow: 0 15px 35px -10px hsla(142, 70%, 45%, 0.15);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 990;
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
}

.header-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 18px; /* Balanced visual spacing between both official logos */
}

.fersia-official-logo {
    height: 42px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply; /* Blends white background seamlessly with header */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
    transition: var(--transition-bounce);
}

.fersia-official-logo:hover {
    transform: scale(1.03);
}

.perpamsi-official-logo {
    height: 38px; /* Slightly adjusted to align visually with the FERSIA logo text height */
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply; /* Blends white background seamlessly with header */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
    transition: var(--transition-bounce);
}

.perpamsi-official-logo:hover {
    transform: scale(1.03);
}

.desktop-nav ul {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 8px 0;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2.5px;
    background-color: var(--primary);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.highlight-nav {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #ffffff !important;
    padding: 10px 20px !important;
    border-radius: 50px;
    box-shadow: var(--shadow-glow);
}

.highlight-nav::after {
    display: none;
}

.highlight-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 51, 160, 0.2);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}


/* --- Hamburger Mobile Button --- */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    z-index: 1000;
}

.hamburger-bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* --- Mobile Menu Drawer --- */
.mobile-drawer-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--bg-base);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    z-index: 995;
    padding: calc(var(--header-height) + 20px) 24px 40px;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.mobile-drawer-menu.open {
    right: 0;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-nav-link {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-muted);
    display: block;
    padding: 10px 0;
}

.mobile-nav-link.active, .mobile-nav-link:hover {
    color: var(--primary);
    padding-left: 10px;
}

.highlight-mobile-nav {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #ffffff;
    text-align: center;
    border-radius: 50px;
    padding: 12px 20px;
    margin-top: 10px;
}

.drawer-overlay-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
    z-index: 994;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.drawer-overlay-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Parallax Elements */
.parallax-container {
    perspective: 1px;
    transform-style: preserve-3d;
}

.parallax-element {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.bg-blob {
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
}

.blob-blue {
    width: 400px;
    height: 400px;
    background-color: var(--primary);
    top: 20%;
    left: -10%;
}

.blob-orange {
    width: 300px;
    height: 300px;
    background-color: var(--secondary);
    bottom: 20%;
    right: -5%;
}

.bg-droplet {
    background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.7) 0%, rgba(0,51,160,0.1) 70%, rgba(0,51,160,0.4) 100%);
    box-shadow: inset -5px -5px 10px rgba(0,51,160,0.2), 5px 10px 15px rgba(0,0,0,0.15);
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    transform: rotate(-15deg);
}

.drop-1 {
    width: 45px;
    height: 55px;
    top: 25%;
    right: 48%;
}

.drop-2 {
    width: 25px;
    height: 32px;
    bottom: 30%;
    left: 45%;
}

.hero-content-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-text-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.badge-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.badge-primary {
    background-color: var(--primary-glow);
    color: var(--primary);
}

.badge-accent {
    background-color: var(--secondary-glow);
    color: var(--secondary);
}

.hero-main-title {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--primary);
    letter-spacing: -1px;
}

.highlight-text-orange {
    color: var(--secondary);
    position: relative;
    white-space: nowrap;
}

.highlight-text-orange::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: var(--secondary-glow);
    z-index: -1;
    border-radius: 4px;
}

.highlight-text-blue {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-muted);
    font-weight: 400;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

/* --- Custom buttons --- */
.btn {
    padding: 14px 28px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(0, 51, 160, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(0, 51, 160, 0.4);
}

.btn-secondary {
    background-color: var(--border-color);
    color: var(--primary);
    border: 1px solid rgba(0, 51, 160, 0.08);
}

.btn-secondary:hover {
    background-color: var(--primary-glow);
    transform: translateY(-3px);
}

/* --- Hero Graphic Frame --- */
.hero-graphic-block {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image-frame {
    position: relative;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: var(--shadow-glow);
    border: 1px solid var(--border-glow);
    max-width: 480px;
    background: #ffffff;
    padding: 8px;
    transition: var(--transition-smooth);
}

.hero-image-frame:hover {
    transform: translateY(-8px) scale(1.02);
}

.hero-img {
    border-radius: 28px;
    width: 100%;
}

.glass-tag {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}

.tag-top {
    top: 24px;
    left: 5px;
    animation: floating-tag 4s ease-in-out infinite;
}

.tag-bottom {
    bottom: 24px;
    right: -5px;
    animation: floating-tag 4s ease-in-out infinite 2s;
}

@keyframes floating-tag {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Wave Dividers */
.section-divider-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 10;
}

.section-divider-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.wave-fill-blue {
    fill: var(--primary);
}

.wave-fill-white {
    fill: var(--bg-base);
}


.wave-fill-darkblue {
    fill: var(--bg-darkblue);
}

.wave-fill-gray {
    fill: var(--bg-base);
}

/* ==========================================================================
   SEJARAH SECTION
   ========================================================================== */
.sejarah-section {
    position: relative;
    padding: 100px 0 140px;
}

.section-blue-bg {
    background-color: var(--primary);
    color: var(--text-light);
}

.section-header {
    margin-bottom: 64px;
}

.section-tag-light {
    font-size: 13px;
    font-weight: 800;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title-light {
    font-size: 38px;
    font-weight: 800;
    color: #ffffff;
    margin-top: 8px;
}

.divider-line {
    width: 60px;
    height: 4px;
    border-radius: 2px;
    margin: 16px 0;
}

.centered-line {
    margin: 16px auto;
}

.line-orange {
    background-color: var(--secondary);
}

.line-blue {
    background-color: var(--primary);
}

.line-green {
    background-color: var(--accent-green);
}

.sejarah-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 48px;
    align-items: start;
}

.sejarah-text-panel {
    position: sticky;
    top: calc(var(--header-height) + 30px);
}

.panel-info {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
}


.panel-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 16px;
}

.panel-info p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.panel-info p:last-child {
    margin-bottom: 0;
}

/* --- Timeline Panel --- */
.timeline-container {
    position: relative;
    padding-left: 36px;
}

.timeline-line {
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 7.5px;
    width: 2px;
    background: rgba(255, 255, 255, 0.15);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-badge {
    position: absolute;
    left: -36px;
    top: 15px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    background-color: #ffffff;
    z-index: 10;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-badge span {
    display: none;
}

.badge-orange {
    background-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(255, 184, 0, 0.3);
}

.badge-blue {
    background-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(0, 168, 89, 0.3);
}

.badge-green {
    background-color: var(--accent-green);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.3);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.timeline-content:hover {
    transform: translateX(8px);
    background: rgba(255, 255, 255, 0.1);
}

.timeline-date {
    font-size: 12px;
    font-weight: 800;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.timeline-content h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* ==========================================================================
   TUJUAN SECTION
   ========================================================================== */
.tujuan-section {
    position: relative;
    padding: 120px 0;
}

.section-white-bg {
    background-color: var(--bg-base);
}

.section-tag-dark {
    font-size: 13px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title-dark {
    font-size: 38px;
    font-weight: 800;
    color: var(--primary);
    margin-top: 8px;
}

.section-subtitle-dark {
    font-size: 16px;
    color: var(--text-muted);
    margin-top: 8px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.tujuan-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    margin-top: 56px;
}

.tujuan-card-wrapper {
    perspective: 1000px;
}

.tujuan-card {
    height: 100%;
    position: relative;
    overflow: hidden;
    padding: 40px 32px;
}

.tujuan-card:hover {
    transform: translateY(-10px);
}

.tujuan-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.box-blue {
    background-color: var(--primary-glow);
    color: var(--primary);
}

.box-orange {
    background-color: var(--secondary-glow);
    color: var(--secondary);
}

.box-green {
    background-color: hsla(142, 70%, 45%, 0.15);
    color: var(--accent-green);
}

.box-purple {
    background-color: hsla(262, 70%, 58%, 0.15);
    color: var(--accent-purple);
}

.tujuan-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.tujuan-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.tujuan-number {
    position: absolute;
    bottom: -15px;
    right: -10px;
    font-size: 90px;
    font-weight: 900;
    color: var(--border-color);
    opacity: 0.25;
    user-select: none;
    pointer-events: none;
    line-height: 1;
}

/* --- Tujuan graphic banner callout --- */
.tujuan-cta-banner {
    margin-top: 64px;
    padding: 40px;
    background: var(--bg-card);
}

.banner-flex {
    display: flex;
    align-items: center;
    gap: 40px;
}

.banner-img-area {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #ffffff;
    box-shadow: var(--shadow-glow);
}

.banner-side-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-text-area {
    flex-grow: 1;
}

.banner-text-area h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.banner-text-area p {
    font-size: 14.5px;
    color: var(--text-muted);
    margin-bottom: 20px;
    max-width: 800px;
}

/* ==========================================================================
   VISI & MISI SECTION
   ========================================================================== */
.visi-misi-section {
    position: relative;
    padding: 120px 0 160px;
}

.section-darkblue-bg {
    background-color: var(--bg-darkblue);
    color: var(--text-light);
}

.visi-misi-split-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 48px;
    margin-top: 56px;
    align-items: start;
}

.visi-hero-card {
    border-color: rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    text-align: center;
    padding: 56px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    position: sticky;
    top: calc(var(--header-height) + 30px);
}

.visi-icon-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: var(--secondary-glow);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(255, 184, 0, 0.2);
}

.visi-svg-eye {
    animation: eye-scan 4s linear infinite;
}

@keyframes eye-scan {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); filter: drop-shadow(0 0 8px var(--secondary)); }
}

.visi-hero-card h3 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #ffffff;
}

.visi-text {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.6;
    color: var(--text-light);
}

.decor-waves {
    display: flex;
    gap: 6px;
}

.decor-waves span {
    width: 25px;
    height: 4px;
    border-radius: 2px;
    background-color: var(--secondary);
    opacity: 0.6;
}

.decor-waves span:nth-child(2) {
    width: 40px;
    background-color: var(--primary);
}

/* --- Misi Content --- */
.misi-list-card {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.misi-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.misi-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background-color: var(--primary-glow);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.misi-header h3 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 2px;
}

.misi-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.misi-item {
    display: flex;
    gap: 20px;
    align-items: start;
    transition: var(--transition-smooth);
}

.misi-item:hover {
    transform: translateX(8px);
}

.misi-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background-color: var(--secondary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 5px 15px rgba(255, 184, 0, 0.2);
}

.misi-desc p {
    font-size: 14.5px;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
}

/* ==========================================================================
   KEUNTUNGAN SECTION
   ========================================================================== */
.keuntungan-section {
    position: relative;
    padding: 120px 0;
}

.section-gray-bg {
    background-color: var(--bg-base);
}

.keuntungan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
    margin-top: 56px;
}

.keuntungan-card {
    height: 100%;
    display: flex;
    gap: 20px;
    align-items: start;
    padding: 32px;
    background-color: var(--bg-card);
    border-radius: 20px;
    transition: var(--transition-bounce);
}

.keuntungan-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent-green);
}

.check-badge-box {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background-color: hsla(142, 70%, 45%, 0.15);
    color: var(--accent-green);
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-content h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary);
}

.benefit-content p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   SEKRETARIAT & WAVES FOOTER SECTION
   ========================================================================== */
.sekretariat-section {
    position: relative;
    padding: 100px 0 0;
    background-color: var(--primary);
    overflow: hidden;
}

.wave-orange-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-orange-top svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.wave-fill-orange {
    fill: var(--bg-base);
}

.kontak-container {
    padding-bottom: 80px;
    z-index: 20;
}

.contact-box-card {
    max-width: 680px;
    margin: 40px auto 0;
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.3);
    text-align: center;
}


.contact-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

.contact-header p {
    font-size: 14.5px;
    color: var(--text-muted);
    margin-top: 12px;
}

.email-widget-box {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.email-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.email-input-wrapper {
    display: flex;
    width: 100%;
    max-width: 480px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    border: 1px solid var(--border-color);
    background: #ffffff;
}


#secretariat-email {
    flex-grow: 1;
    padding: 16px 20px;
    border: none;
    outline: none;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    background: transparent;
}

.btn-copy {
    padding: 0 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-copy:hover {
    filter: brightness(1.1);
}

.direct-email-link {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--secondary);
    margin-top: 8px;
}

.direct-email-link:hover {
    color: var(--primary);
}

.brochure-footer-graphics {
    position: relative;
    width: 100%;
    height: 180px;
    margin-top: -80px;
    z-index: 10;
    pointer-events: none;
}

.yellow-wave-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- FOOTER AREA --- */
.footer-area {
    background-color: #ffffff;
    color: var(--text-main);
    padding: 80px 0 32px;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 15;
}


.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.8fr 1.1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.logo-txt-combined {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
}

.brand-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-top: 16px;
    line-height: 1.6;
}

.footer-links-column h4, .footer-assoc-column h4 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--primary);
}

.footer-links-column ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-column a {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.footer-links-column a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.assoc-card {
    padding: 24px;
    border-radius: 16px;
    border-color: var(--border-color);
}

.assoc-card p {
    font-size: 13.5px;
    margin-bottom: 8px;
}

.assoc-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 0 !important;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
	padding-left: 24px;
    font-size: 12.5px;
    color: var(--text-muted);
}

/* ==========================================================================
   INTERACTIVE FLOATING MECHANICS
   ========================================================================== */
/* --- Scroll to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(0, 51, 160, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(15px);
    transition: var(--transition-bounce);
    z-index: 900;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--primary-light);
    transform: translateY(-5px);
}

/* --- Scroll triggered reveal animations --- */
.anim-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-fade-in.animate-active {
    opacity: 1;
    transform: translateY(0);
}

.anim-delay-1 {
    transition-delay: 0.15s;
}

.anim-delay-2 {
    transition-delay: 0.3s;
}

.anim-delay-3 {
    transition-delay: 0.45s;
}

.anim-delay-4 {
    transition-delay: 0.6s;
}

/* Base scroll reveal for general sections */
.anim-scroll-trigger {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-scroll-trigger.animate-active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */
@media (max-width: 1024px) {
    .brand-title {
        font-size: 18px;
    }
    
    .hero-main-title {
        font-size: 38px;
    }
    
    .hero-content-grid {
        grid-template-columns: 1fr;
        gap: 56px;
    }
    
    .hero-graphic-block {
        order: -1;
    }
    
    .sejarah-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .sejarah-text-panel {
        position: static;
    }
    
    .visi-misi-split-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .visi-hero-card {
        position: static;
        padding: 40px 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-assoc-column {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-main-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 15px;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .section-title-light, .section-title-dark {
        font-size: 28px;
    }
    
    .banner-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .banner-img-area {
        width: 100px;
        height: 100px;
    }
    
    .tujuan-cta-banner {
        padding: 24px;
    }
    
    .contact-box-card {
        padding: 24px 16px;
    }
    
    .email-input-wrapper {
        flex-direction: column;
        background: transparent !important;
        border: none;
        box-shadow: none;
    }
    
    #secretariat-email {
        background-color: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: 16px;
        text-align: center;
        margin-bottom: 12px;
    }
    
    .btn-copy {
        width: 100%;
        border-radius: 16px;
        padding: 16px;
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-assoc-column {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    .brand-subtitle {
        display: none;
    }
    
    .tag-top, .tag-bottom {
        display: none;
    }
    
    .timeline-container {
        padding-left: 20px;
    }
    
    .timeline-line {
        left: 2.5px;
    }
    
    .timeline-item {
        padding-left: 15px;
    }
    
    .timeline-badge {
        left: -20px;
        width: 13px;
        height: 13px;
    }
    
    .timeline-content {
        padding: 20px 16px;
    }
    
    .tujuan-card {
        padding: 28px 20px;
    }
    
    .keuntungan-grid {
        grid-template-columns: 1fr;
    }
    
    .keuntungan-card {
        padding: 20px;
    }
}
