/* --- Global Variables & Root --- */
:root {
    --bg-dark: #0d0d0d;
    --bg-card: #141414;
    --gold-primary: #d4af37;
    --gold-gradient: linear-gradient(135deg, #f3e5ab 0%, #d4af37 50%, #aa7c11 100%);
    --text-light: #f5f5f5;
    --text-muted: #a0a0a0;
    --white: #ffffff;
    --purple-accent: #4a154b; /* Inspired by IUC logo */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Side Nav CSS --- */
    /* --- Floating Side Navigation Dots --- */
    .side-nav-dots {
        position: fixed;
        right: 25px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 999;
    }

    .side-nav-dots ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 1.2rem;
    }

    .side-nav-dots li {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    /* Individual Dot Styling */
    .side-nav-dots a {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.25);
        border: 1.5px solid var(--gold-primary, #d4af37);
        display: block;
        transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
        position: relative;
    }

    /* Hover State */
    .side-nav-dots a:hover {
        background: var(--gold-primary, #d4af37);
        transform: scale(1.3);
    }

    /* Active Section State */
    .side-nav-dots a.active {
        background: var(--gold-primary, #d4af37);
        transform: scale(1.4);
        box-shadow: 0 0 10px var(--gold-primary, #d4af37), 0 0 20px rgba(212, 175, 55, 0.4);
    }

    /* Section Title Tooltip Popup */
    .side-nav-dots a::before {
        content: attr(data-label);
        position: absolute;
        right: 25px;
        top: 50%;
        transform: translateY(-50%) translateX(10px);
        background: rgba(18, 18, 18, 0.95);
        color: #ffffff;
        border: 1px solid var(--gold-primary, #d4af37);
        padding: 0.3rem 0.75rem;
        border-radius: 4px;
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.5px;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    /* Tooltip Hover Visibility */
    .side-nav-dots a:hover::before {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }

    /* Hide side dots on mobile screens to save screen space */
    @media (max-width: 768px) {
        .side-nav-dots {
            display: none;
        }
    }
/*------------------------------------------------------------------*/

/* --- Geometric Gold Accents --- */
.gold-border-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    border: 4px solid var(--gold-primary);
    transform: rotate(45deg) translate(-150px, -150px);
    pointer-events: none;
    opacity: 0.6;
}

.gold-border-bottom {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 400px;
    height: 400px;
    border: 6px solid var(--gold-primary);
    transform: rotate(45deg) translate(200px, 200px);
    pointer-events: none;
    opacity: 0.3;
    z-index: 0;
}

/* --- Header & Branding --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 10;
}

/* Dynamic Animated Diamond Canvas Container */
.logo-container {
    position: relative;
    padding: 10px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    overflow: hidden;
    
    /* 1. Shifting Gradient Background */
    background: linear-gradient(-45deg, #ffffff, #aeb1b7, #b9b8bb, #0f2027);
    background-size: 400% 400%;
    animation: diamondGradientShift 8s ease infinite;

    /* Subtle Border and Soft Glow */
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(243, 242, 242, 0.3), 
                0 0 15px rgba(239, 239, 240, 0.2);
    isolation: isolate;
}

/* 2. Moving Diamond Mesh Pattern Overlay */
.logo-container::before {
    content: '';
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%),
        linear-gradient(225deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%),
        linear-gradient(315deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%),
        linear-gradient(45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    animation: diamondPatternMove 12s linear infinite;
    pointer-events: none;
    z-index: 1;
}

/* 3. Sweeping Light Flare / Pulse Effect */
.logo-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.25) 50%, 
        transparent 100%
    );
    transform: skewX(-25deg);
    animation: diamondShimmer 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

/* Ensures Logo Image or Text Renders Crisply Above Animated Elements */
.logo-img,
.logo-text {
    position: relative;
    z-index: 3;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.logo-text {
    color: #ffffff;
    font-weight: 800;
    font-size: 1.2rem;
    line-height: 1.1;
    text-transform: uppercase;
}

.logo-text span {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
}

.reg-num {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* Styling for Logo Container 2 */
.logo-container-2 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(90px, 12vw, 150px);
    height: auto;
    transition: width 0.3s ease;
}

.logo-container-2 .logo-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Mobile Fine-Tuning */
@media (max-width: 600px) {
    .logo-container-2 {
        width: clamp(60px, 18vw, 90px);
    }

    header {
        padding: 0.75rem 4%;
    }
}

/* --- Animations --- */
@keyframes diamondGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes diamondPatternMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

@keyframes diamondShimmer {
    0%, 30% { left: -150%; }
    80%, 100% { left: 150%; }
}

/* --- Buttons --- */
.btn-gold {
    display: inline-block;
    background: var(--gold-gradient);
    color: #000000;
    padding: 1rem 3rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.btn-gold:hover {
    opacity: 0.9;
    transform: scale(1.03);
}

.btn-outline-gold {
    display: block;
    text-align: center;
    border: 2px solid var(--gold-primary);
    color: var(--gold-primary);
    padding: 0.9rem 1.5rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: background 0.3s ease, color 0.3s ease;
}

.btn-outline-gold:hover {
    background: var(--gold-primary);
    color: #000000;
}

/* =========================================================
   Hero Section
   ========================================================= */
.hero {
    position: relative;
    z-index: 2;
    padding: 1rem 5% 5rem; /* Reduced top padding to pull hero content closer to header */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 110px); /* Accurately accounts for standard header height */
}

.hero-text h2 {
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-text h1 .gold-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ai-tag {
    display: inline-block;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image-frame {
    border: 3px solid var(--gold-primary);
    padding: 10px;
    background: var(--bg-dark);
    max-width: 400px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-image-frame img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(20%) contrast(110%);
}

/* --- Hero Scroll Indicator --- */
.hero-scroll-indicator {
    grid-column: 1 / -1;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-muted);
    z-index: 5;
    transition: color 0.3s ease;
}

.hero-scroll-indicator:hover {
    color: var(--gold-primary);
}

.scroll-text {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-align: center;
    opacity: 0.85;
}

.scroll-arrow {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    animation: bounceGold 2s infinite ease-in-out;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

.hero-scroll-indicator:hover .scroll-arrow {
    border-color: var(--gold-primary);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

@keyframes bounceGold {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(6px);
    }
    60% {
        transform: translateY(3px);
    }
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 2rem;
        padding-bottom: 6rem;
        min-height: auto; /* Reverts to natural height on mobile so content doesn't overflow */
    }

    .hero-image-wrapper {
        order: -1;
    }
}

@media (max-width: 600px) {
    .scroll-text {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }
}

/* --- Invitation Envelope Section (Fixed) --- */
.invitation-section {
    padding: 25rem 5% 0rem 5%;
    position: relative;
    z-index: 2;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.envelope-wrapper {
    position: relative;
    width: 100%;
    max-width: 850px;
    min-height: 520px;
    background: #111111;
    border: 2px solid var(--gold-primary);
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.1);
    cursor: pointer;
    transition: box-shadow 0.4s ease, transform 0.4s ease;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.envelope-wrapper:hover {
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.9), 0 0 30px rgba(212, 175, 55, 0.25);
}

/* Top Fold Flap */
.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 55%;
    background: linear-gradient(180deg, #cba516 0%, #111111 100%);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transform-origin: top center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), z-index 0.2s 0.4s;
    z-index: 4;
}

/* Front Cover Pocket */
.envelope-pocket {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(0deg, #181818 0%, #111111 100%);
    border-bottom: 2px solid var(--gold-primary);
    clip-path: polygon(0 100%, 0 0, 50% 35%, 100% 0, 100% 100%);
    z-index: 3;
    pointer-events: none;
}

/* Gold Wax Seal */
.envelope-seal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #000000;
    font-weight: 800;
    font-size: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    z-index: 5;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.envelope-seal i {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

/* Inner Card Structure */
.invitation-card {
    position: relative;
    width: 90%;
    margin: 0 auto;
    border: 1px solid var(--gold-primary);
    padding: 3rem 2.5rem;
    background: rgba(13, 13, 13, 0.98);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.05);
    z-index: 2;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease, z-index 0.1s 0.3s;
}

.invitation-card::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 1px dashed var(--gold-primary);
    pointer-events: none;
    opacity: 0.4;
}

.invitation-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.invitation-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--gold-primary);
    margin-bottom: 0.5rem;
}

.invitation-subtitle {
    color: var(--gold-primary);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.invitation-body {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: #d1d1d1;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.invitation-body p {
    margin-bottom: 1rem;
}

.invitation-footer {
    text-align: right;
    font-family: 'Playfair Display', serif;
    color: var(--gold-primary);
    font-style: italic;
}

/* --- Interactive Open State --- */
.envelope-wrapper.open {
    cursor: default;
}

.envelope-wrapper.open .envelope-flap {
    transform: rotateX(180deg);
    z-index: 1;
}

.envelope-wrapper.open .envelope-seal {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3);
    pointer-events: none;
}

.envelope-wrapper.open .invitation-card {
    transform: translateY(0);
    opacity: 1;
    z-index: 5;
}

/* --- Program Details Section --- */
.details-section {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 3rem;
    letter-spacing: 1px;
}

.section-title span {
    color: var(--gold-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 2.5rem 1.5rem;
    border-radius: 4px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-primary);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--gold-primary);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Introduction Section --- */
.intro-section {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.intro-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.intro-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--gold-primary);
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.intro-main-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.target-audience h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.target-audience ul {
    list-style: none;
    padding-left: 0;
}

.target-audience li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.9rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    line-height: 1.5;
}

.target-audience li::before {
    content: "•";
    color: var(--gold-primary);
    font-size: 1.8rem;
    position: absolute;
    left: 0;
    top: -4px;
}

.intro-image-wrapper {
    display: flex;
    justify-content: center;
}

.intro-image-frame {
    border: 3px solid var(--gold-primary);
    padding: 10px;
    background: var(--bg-dark);
    max-width: 450px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.intro-image-frame img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* =========================================================
   Program Objectives Styles
   ========================================================= */
.objectives-section {
    padding: 5rem 5%;
    position: relative;
    z-index: 2;
}

.objectives-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 3.5rem;
}

.section-header .sub-title {
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.section-header .main-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-header .section-description {
    color: var(--text-muted, #aeb1b7);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Objectives Grid */
.objectives-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.objective-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    padding: 2.2rem 1.8rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.objective-card:hover {
    transform: translateY(-5px) !important;
    border-color: var(--gold-primary);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.12);
}

.objective-card.highlight-card {
    background: rgba(212, 175, 55, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.4);
}

/* Card Elements */
.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.objective-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: #ffffff;
}

.objective-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.objective-list li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.9rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

.objective-list li::before {
    content: "■";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--gold-primary);
    font-size: 0.65rem;
}

.objective-list li strong {
    color: #ffffff;
}

/* Banner Section */
.experience-banner {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(15, 32, 39, 0.8) 100%);
    border: 1px solid var(--gold-primary);
    border-radius: 8px;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner-content h3 {
    font-size: 1.5rem;
    text-transform: uppercase;
    color: var(--gold-primary);
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
}

.banner-content p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* =========================================================
   Scroll Reveal & Hide Animations (Bidirectional)
   ========================================================= */

/* Initial hidden state: pushed down 40px and invisible */
.objectives-section .section-header,
.objectives-section .objective-card,
.objectives-section .experience-banner {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease, 
                box-shadow 0.3s ease;
    will-change: opacity, transform;
}

/* Visible state when scrolled into view */
.objectives-section .section-header.is-visible,
.objectives-section .objective-card.is-visible,
.objectives-section .experience-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered card entry effect */
.objectives-grid .objective-card:nth-child(1) {
    transition-delay: 0s, 0s, 0s, 0s;
}

.objectives-grid .objective-card:nth-child(2) {
    transition-delay: 0.15s, 0.15s, 0s, 0s;
}

.objectives-grid .objective-card:nth-child(3) {
    transition-delay: 0.3s, 0.3s, 0s, 0s;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .objectives-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    .section-header .main-title {
        font-size: 1.8rem;
    }
    
    .experience-banner {
        padding: 1.8rem 1.2rem;
    }
}

/* --- Program Outcome Section --- */
.outcome-section {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.outcome-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--gold-primary);
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-align: center;
}

.outcome-intro {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 2rem;
    text-align: center;
}

.outcome-list {
    list-style: none;
    padding-left: 0;
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
}

.outcome-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.5;
}

.outcome-list li::before {
    content: "•";
    color: var(--gold-primary);
    font-size: 2rem;
    position: absolute;
    left: 0;
    top: -5px;
}

.outcome-disclaimers {
    max-width: 800px;
    margin: 0 auto 3.5rem auto;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.5;
}

.outcome-disclaimers p {
    margin-bottom: 0.4rem;
}

/* Certificate Cards & Scroll Reveal */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.cert-card {
    text-align: center;
}

.cert-frame {
    position: relative;
    border: 3px solid var(--gold-primary);
    padding: 8px;
    background: var(--bg-card);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.cert-frame img {
    width: 100%;
    height: auto;
    display: block;
    background: #ffffff;
}

.sample-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-25deg);
    font-size: 2.2rem;
    font-weight: 900;
    color: rgba(200, 0, 0, 0.45);
    border: 4px solid rgba(200, 0, 0, 0.45);
    padding: 4px 18px;
    letter-spacing: 4px;
    pointer-events: none;
    text-transform: uppercase;
}

.cert-caption {
    margin-top: 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gold-primary);
}

/* Initial hidden state for scroll animation */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Revealed state triggered by JS */
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Pricing & Payments Section --- */
.pricing-section {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.pricing-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.pricing-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-top: -2rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    align-items: stretch;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 8px;
    padding: 3rem 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold-primary);
}

.pricing-card.featured {
    border: 2px solid var(--gold-primary);
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.95) 0%, rgba(35, 28, 10, 0.95) 100%);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.15);
}

.pricing-card .badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold-gradient);
    color: #000000;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 18px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.card-header h3 {
    font-size: 1.6rem;
    color: var(--white);
    margin-bottom: 0.3rem;
}

.card-tagline {
    font-size: 0.85rem;
    color: var(--gold-primary);
    margin-bottom: 1.5rem;
}

.price-box {
    margin-bottom: 1.5rem;
}

.price-box .currency {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold-primary);
    vertical-align: top;
}

.price-box .amount {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.price-box .period {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.price-breakdown {
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem;
    border-radius: 4px;
    border-left: 3px solid var(--gold-primary);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.price-breakdown p {
    margin-bottom: 0.3rem;
}

.price-breakdown p:last-child {
    margin-bottom: 0;
}

.pricing-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.pricing-features li {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li i {
    color: var(--gold-primary);
}

.schedule-box {
    background: rgba(0, 0, 0, 0.4);
    padding: 1.2rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.schedule-box h4 {
    font-size: 0.9rem;
    color: var(--gold-primary);
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.schedule-box ol {
    padding-left: 1.2rem;
}

.schedule-box li {
    font-size: 0.85rem;
    color: var(--white);
    margin-bottom: 0.7rem;
}

.schedule-box li span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.pricing-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 1.8rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 12px;
    border-radius: 4px;
}

.pricing-note i {
    color: var(--gold-primary);
    margin-right: 4px;
}

.pricing-card .btn-gold {
    display: block;
    text-align: center;
    width: 100%;
}

/* --- Testimonials 3D Carousel --- */
.testimonials-section {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    perspective: 1000px;
}

.carousel-track {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Base Card Styling */
.testimonial-card {
    position: absolute;
    width: 520px;
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    cursor: pointer;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), 
                opacity 0.6s ease, 
                filter 0.6s ease, 
                border-color 0.3s ease;
    will-change: transform, opacity, filter;
}

/* Left side inside card */
.testimonial-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.testimonial-frame {
    width: 90px;
    height: 90px;
    border: 2px solid var(--gold-primary);
    padding: 4px;
    background: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.testimonial-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rating-stars {
    color: var(--gold-primary);
    font-size: 0.95rem;
    margin-top: 0.5rem;
    letter-spacing: 2px;
}

/* Right side inside card */
.testimonial-right {
    display: flex;
    flex-direction: column;
}

.testimonial-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.1rem;
}

.testimonial-role {
    font-size: 0.8rem;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
}

.testimonial-comment {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    line-height: 1.5;
    margin: 0;
}

/* --- Carousel 3D Positioning States --- */

/* Center Active Card */
.testimonial-card.active {
    transform: translateX(0) scale(1) translateZ(0);
    opacity: 1;
    filter: brightness(100%);
    z-index: 3;
    border-color: var(--gold-primary);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.15);
    cursor: default;
}

/* Left Card */
.testimonial-card.prev {
    transform: translateX(-55%) scale(0.82) rotateY(15deg);
    opacity: 0.6;
    filter: brightness(40%);
    z-index: 2;
}

/* Right Card */
.testimonial-card.next {
    transform: translateX(55%) scale(0.82) rotateY(-15deg);
    opacity: 0.6;
    filter: brightness(40%);
    z-index: 2;
}

/* Off-screen hidden cards (for 4+ testimonials) */
.testimonial-card.hidden {
    transform: translateX(0) scale(0.5);
    opacity: 0;
    filter: brightness(20%);
    z-index: 1;
    pointer-events: none;
}

/* Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--gold-primary);
    color: #000000;
    transform: translateY(-50%) scale(1.1);
}

.btn-prev { left: 2%; }
.btn-next { right: 2%; }

/* Mobile Adaptations */
@media (max-width: 768px) {
    .testimonial-card {
        width: 85%;
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .testimonial-card.prev { transform: translateX(-20%) scale(0.8); }
    .testimonial-card.next { transform: translateX(20%) scale(0.8); }
    
    .carousel-btn { width: 36px; height: 36px; font-size: 0.9rem; }
    .btn-prev { left: 0; }
    .btn-next { right: 0; }
}

/* --- Application Form Section --- */
.application-section {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.form-container {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    padding: 3.5rem 3rem;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(212, 175, 55, 0.05);
    position: relative;
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--white);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.form-title span {
    color: var(--gold-primary);
}

.form-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Form Layout Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold-primary);
    margin-bottom: 0.5rem;
}

/* Inputs & Select Elements */
.form-group input,
.form-group select {
    width: 100%;
    background: rgba(13, 13, 13, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 4px;
    padding: 0.9rem 1rem;
    color: var(--text-light);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input::placeholder {
    color: rgba(160, 160, 160, 0.5);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

/* Form Validation & Feedback Styles */
.form-group.error input,
.form-group.error select {
    border-color: #ff4d4d !important;
    box-shadow: 0 0 8px rgba(255, 77, 77, 0.4) !important;
}

.error-message {
    color: #ff4d4d;
    font-size: 0.75rem;
    margin-top: 0.3rem;
}

.form-response-msg {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    font-size: 0.95rem;
    display: none;
}

.form-response-msg.success {
    display: block;
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid #2ecc71;
    color: #2ecc71;
}

.form-response-msg.error-alert {
    display: block;
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid #e74c3c;
    color: #e74c3c;
}

/* Custom Styled Dropdown Arrow */
.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: "▼";
    font-size: 0.75rem;
    color: var(--gold-primary);
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.select-wrapper select option {
    background: var(--bg-card);
    color: var(--text-light);
}

/* Button & Actions */
.form-submit {
    text-align: center;
    margin-top: 2rem;
}

.form-btn {
    border: none;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
    font-size: 1rem;
}

/* Responsive Rules */
@media (max-width: 650px) {
    .form-container {
        padding: 2.5rem 1.5rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }
}

/* --- Contact Info & Footer --- */
footer {
    background: #050505;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding: 4rem 5% 2rem;
    position: relative;
    z-index: 2;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 1.2rem;
}

.contact-item i {
    color: var(--gold-primary);
    font-size: 1.2rem;
    margin-top: 4px;
}

.contact-item a, 
.contact-item p {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
}

.contact-item a:hover {
    color: var(--gold-primary);
}

.copyright {
    text-align: center;
    color: #555555;
    font-size: 0.85rem;
    border-top: 1px solid #1a1a1a;
    padding-top: 2rem;
}

/* =========================================================
   Bidirectional Scroll Reveal Animations
   ========================================================= */

/* Elements starting off-screen to the LEFT */
.reveal-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
}

/* Elements starting off-screen to the RIGHT */
.reveal-right {
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
}

/* Active State: Move back to original center position */
.reveal-left.is-visible,
.reveal-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* =========================================================
    Timetable Section 
   ========================================================= */
.timetable-section {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.timetable-subtitle {
    text-align: center;
    color: var(--gold-primary);
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: -2rem;
    margin-bottom: 2.5rem;
    letter-spacing: 0.5px;
}

/* Filter Controls */
.timetable-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-card);
    color: var(--text-muted);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 0.6rem 1.4rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gold-gradient);
    color: #000000;
    border-color: var(--gold-primary);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* Table Container for Responsiveness */
.timetable-table-container {
    width: 100%;
    overflow-x: auto;
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    margin-bottom: 2rem;
}

.timetable-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 750px;
    text-align: center;
    font-size: 0.9rem;
}

/* Table Headers */
.timetable-table th {
    background: rgba(20, 20, 20, 0.95);
    color: var(--gold-primary);
    padding: 1.2rem 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--gold-primary);
}

.timetable-table th span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 400;
    margin-top: 4px;
    text-transform: none;
}

/* Table Rows & Cells */
.timetable-table td {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    transition: background 0.2s ease;
}

.timetable-table tr:hover td {
    background: rgba(212, 175, 55, 0.05);
}

.timetable-table tr.row-alt {
    background: rgba(255, 255, 255, 0.015);
}

/* Badges & Tags */
.badge-week {
    display: inline-block;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
}

.badge-week.break-tag {
    border-color: #888;
    color: #aaa;
    background: rgba(255, 255, 255, 0.05);
}

.badge-week.gold-tag {
    background: var(--gold-gradient);
    color: #000;
}

.date-cell {
    font-size: 0.85rem;
    white-space: nowrap;
}

.date-cell strong {
    color: var(--white);
}

.session-cell {
    font-size: 0.95rem;
}

.session-cell small {
    display: block;
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-top: 4px;
}

/* Special Module Highlights */
.session-cell.highlight {
    color: var(--gold-primary);
    font-weight: 600;
}

.session-cell.ai-highlight {
    background: rgba(74, 21, 75, 0.3);
    border-left: 2px solid var(--gold-primary);
    color: #ffffff;
    font-weight: 600;
}

.break-cell {
    background: rgba(0, 0, 0, 0.4);
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.85rem;
    vertical-align: middle;
}

.break-row {
    background: rgba(0, 0, 0, 0.3);
}

.full-break-cell {
    color: var(--text-muted);
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Remarks Section */
.timetable-remarks {
    background: var(--bg-card);
    border-left: 3px solid var(--gold-primary);
    padding: 1.5rem;
    border-radius: 4px;
}

.timetable-remarks h4 {
    color: var(--gold-primary);
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timetable-remarks ol {
    padding-left: 1.2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

.timetable-remarks li {
    margin-bottom: 0.4rem;
}

/* --- Responsive Layouts --- */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-image-wrapper {
        order: -1;
    }

    .intro-container {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .intro-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .invitation-card {
        width: 95%;
        padding: 2rem 1.2rem;
    }

    .invitation-header h2 {
        font-size: 1.7rem;
    }
}

@media (max-width: 600px) {
    .outcome-title {
        font-size: 2rem;
    }
}