html {
    scroll-behavior: smooth;
}

:root {
    --color-blue: #1b3d7a;
    --color-blue-dark: #122b59;
    --color-blue-grad: linear-gradient(135deg, #1A428A, #122b59);
    --color-yellow: #FFB800;
    --color-yellow-light: #FFC708;
    --color-red: #E82A2A;
    --color-red-hover: #cc1b21;
    --color-white: #ffffff;
    --color-dark: #333333;
    --color-grey: #f0f0f0;
}

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

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    color: var(--color-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--color-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Helpers */
.text-center {
    text-align: center;
}

.text-blue {
    color: var(--color-blue);
}

.text-dark {
    color: var(--color-dark);
}

.mb-4 {
    margin-bottom: 20px;
}

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

/* Typography */
h1,
h2,
h3,
h4 {
    line-height: 1.2;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.15rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-inline: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-weight: 800;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-red-pill {
    background-color: var(--color-red);
    color: var(--color-white);
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(233, 33, 40, 0.4);
    text-transform: uppercase;
}

.btn-red-pill:hover {
    background-color: var(--color-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(233, 33, 40, 0.5);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.shadow {
    box-shadow: 0 8px 20px rgba(233, 33, 40, 0.6);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--color-white);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--color-dark);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--color-blue);
}

.nav-btn {
    font-size: 0.9rem;
    padding: 10px 25px;
}

/* Blue Grad Background */
.blue-grad {
    background: var(--color-blue-grad);
    color: var(--color-white);
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 130px;
    /* offset navbar */
    padding-bottom: 80px;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
}

.hero-text {
    text-align: center;
    max-width: 800px;
    z-index: 2;
}

.hero-top-text {
    background-color: var(--color-red);
    display: inline-block;
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 15px;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 2.2rem;
    color: var(--color-yellow);
    margin-bottom: 20px;
    font-weight: 400;
}

.hero-subtitle strong {
    font-weight: 900;
    font-size: 2.8rem;
}

.hero-desc {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

/* Waves */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

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

.yellow-wave-bottom svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* Pain Points (Yellow bg) */
.yellow-bg {
    background: var(--color-yellow-light);
    position: relative;
    padding: 80px 0 140px;
    /* space for bottom wave */
}

.card-horizontal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.step-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.step-card:hover {
    transform: translateY(-5px);
}

.card-header {
    background: var(--color-blue);
    color: var(--color-white);
    padding: 15px;
    text-align: center;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.card-body {
    padding: 25px 20px;
    min-height: 200px;
}

.card-body ul {
    list-style: none;
}

.card-body ul li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
    font-size: 0.95rem;
    color: #444;
}

.card-body ul li::before {
    content: '•';
    color: var(--color-red);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
}

/* Story Section */
.story-section {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.banner-box {
    background: var(--color-grey);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    position: relative;
    box-shadow: inset 0 0 0 4px var(--color-blue);
}

.banner-badge {
    background: var(--color-yellow);
    color: var(--color-blue-dark);
    font-weight: 800;
    padding: 5px 15px;
    border-radius: 20px;
    text-transform: uppercase;
    font-size: 0.85rem;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.banner-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.banner-content .quote {
    font-style: italic;
    font-size: 1.3rem;
    color: var(--color-blue-dark);
    max-width: 800px;
    margin: 0 auto 30px;
    border-left: 4px solid var(--color-red);
    border-right: 4px solid var(--color-red);
    padding: 0 20px;
}

.banner-content .desc {
    max-width: 900px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    color: #555;
    font-weight: 600;
}

/* Registration Section */
.registration-section {
    padding: 80px 0;
    background: #fafafa;
}

.reg-container {
    display: flex;
    justify-content: center;
}

.reg-form-wrapper {
    background: var(--color-white);
    padding: 40px 50px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 600px;
    border-top: 8px solid var(--color-blue);
}

.reg-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(27, 61, 122, 0.1);
}

.form-note {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    margin-top: 10px;
}

/* Footer */
.footer {
    padding: 60px 0 20px;
}

/* Guide Section */
.guide-section {
    padding: 100px 0;
    background-color: #f8fbff;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.guide-step {
    background: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.guide-step:hover {
    transform: translateY(-10px);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--color-blue-dark);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
    border: 4px solid #f8fbff;
}

.guide-step:nth-child(2) .step-number {
    background: var(--color-yellow);
}

.guide-step:nth-child(3) .step-number {
    background: var(--color-red);
}

.guide-step.step-blue {
    border-bottom: 6px solid var(--color-blue);
}

.guide-step.step-yellow {
    border-bottom: 6px solid var(--color-yellow);
}

.guide-step.step-red {
    border-bottom: 6px solid var(--color-red);
}

.guide-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.guide-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.guide-step.step-blue .guide-title {
    color: var(--color-blue);
}

.guide-step.step-yellow .guide-title {
    color: var(--color-yellow);
}

.guide-step.step-red .guide-title {
    color: var(--color-red);
}

.guide-text {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

.topik4u-preview {
    margin-top: 60px;
    text-align: center;
}

.topik4u-preview img {
    max-width: 1000px;
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.guide-images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.instruction-box {
    text-align: center;
}

.instruction-box img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #ddd;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.instruction-box img:hover {
    transform: scale(1.02);
}

.instruction-box p {
    font-weight: 700;
    color: var(--color-blue-dark);
    font-size: 1rem;
}

/* Footer */

.footer-layout {
    display: flex;
    justify-content: center;
    text-align: center;
    margin-bottom: 40px;
}

.footer-title {
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--color-yellow);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 992px) {
    .card-horizontal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-subtitle strong {
        font-size: 2rem;
    }

    .card-horizontal-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding-top: 100px;
    }

    .reg-form-wrapper {
        padding: 30px 20px;
    }
}

/* Director's Story Section */
.director-story {
    position: relative;
    overflow: hidden;
    background: #ffffff;
}

.director-story::before {
    content: "“";
    position: absolute;
    top: 50px;
    right: 5%;
    font-size: 15rem;
    color: #f0f0f0;
    font-family: serif;
    line-height: 1;
    z-index: 0;
}

.director-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.director-image {
    position: relative;
}

.director-image::after {
    content: "";
    position: absolute;
    top: 20px;
    left: -20px;
    right: 20px;
    bottom: -20px;
    border: 2px solid var(--color-yellow);
    border-radius: 20px;
    z-index: -1;
}

.director-image img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: top;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: block;
}

.director-text {
    padding-right: 20px;
}

.director-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #444;
}

.director-text .intro-text {
    font-size: 1.2rem;
    line-height: 1.8;
}

.highlight-box {
    background: #f8fbff;
    padding: 25px;
    border-left: 5px solid var(--color-red);
    border-radius: 0 15px 15px 0;
    margin-bottom: 30px;
}

.highlight-box p {
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--color-blue);
    font-style: italic;
}

.final-quote {
    font-size: 1.3rem !important;
    font-weight: 800;
    color: var(--color-red) !important;
}

@media (max-width: 992px) {
    .director-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .director-image::after {
        display: none;
    }

    .director-story::before {
        font-size: 10rem;
    }
}

.director-caption {
    margin-top: 20px;
    padding: 0 20px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-blue);
    text-align: center;
    line-height: 1.4;
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .guide-grid, 
    .guide-images-grid, 
    .card-horizontal-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    .section-title {
        font-size: 2rem !important;
        margin-bottom: 30px !important;
    }

    .hero-v2-container {
        grid-template-columns: 1fr !important;
    }

    .hero-text.text-left {
        text-align: center !important;
    }
    
    .hero-form-box {
        margin-top: 30px;
    }

    /* Button font size reduction 10% */
    .btn-gift-cta, .btn-reg-cta {
        font-size: 1.15rem !important;
        padding: 15px 30px !important;
    }
}