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

:root {
    --blue: #2e67f6;
    --blue-dark: #1f44b8;
    --yellow: #ffd35a;
    --cream: #fff6d8;
    --white: #ffffff;
    --ink: #1c1c1c;
    --ink-soft: #4a4a4a;
    --shadow: 0 20px 50px rgba(32, 46, 88, 0.12);
    --radius: 22px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    color: var(--ink);
    background: linear-gradient(180deg, #fff 0%, #f2f7ff 100%);
}

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

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

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(46, 103, 246, 0.1);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Baloo 2', cursive;
    font-size: 20px;
    font-weight: 700;
    color: var(--blue-dark);
}

.logo img {
    height: 80px;
    width: auto;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: var(--yellow);
    color: var(--blue-dark);
    font-weight: 800;
}

.nav-links {
    display: flex;
    gap: 22px;
    align-items: center;
    font-weight: 700;
    color: var(--ink-soft);
}

.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 3px;
    border-radius: 999px;
    background: var(--yellow);
    transition: width 0.2s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
}

.nav-toggle span {
    width: 26px;
    height: 3px;
    background: var(--blue-dark);
    border-radius: 999px;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
    background: linear-gradient(120deg, rgba(255, 255, 240, 0.75) 50%, rgba(255, 246, 216, 0.92) 50%, rgba(255, 246, 216, 0) 50%),
        url("../images/hero.png") center/cover no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    left: -120px;
    bottom: -120px;
    width: 280px;
    height: 280px;
    background: rgba(46, 103, 246, 0.18);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    right: -80px;
    top: -80px;
    width: 220px;
    height: 220px;
    background: rgba(255, 211, 90, 0.6);
    border-radius: 50%;
}

.hero-grid {
    display: grid;
    gap: 32px;
    align-items: center;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.hero-text h1 {
    font-family: 'Baloo 2', cursive;
    font-size: clamp(36px, 4vw, 56px);
    color: var(--blue-dark);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--ink-soft);
    margin: 16px 0 24px;
}

.badge {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--blue);
    color: var(--white);
    font-weight: 700;
    font-size: 0.85rem;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
    display: grid;
    gap: 16px;
    animation: fadeUp 0.8s ease;
}

.video-preview {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: var(--cream);
}

.video-preview img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.video-preview.empty {
    padding: 32px;
    text-align: center;
    color: var(--ink-soft);
}

.video-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--blue-dark);
    font-weight: 700;
}

.video-play {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: var(--blue);
    color: var(--white);
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 700;
}

.video-meta h3 {
    font-size: 1.2rem;
    color: var(--blue-dark);
}

.video-label {
    font-weight: 700;
    color: var(--blue);
}

.section {
    padding: 70px 0;
}

.section-alt {
    background: linear-gradient(180deg, #ffffff 0%, #fff6d8 100%);
}

.section-about {
    background: linear-gradient(130deg, #e8f0ff 0%, #ffffff 60%);
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
}

.section-head h2 {
    font-family: 'Baloo 2', cursive;
    font-size: clamp(26px, 3vw, 36px);
    color: var(--blue-dark);
}

.link-more {
    font-weight: 700;
    color: var(--blue);
}

.grid {
    display: grid;
    gap: 22px;
}

.grid.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.cards {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid.posts {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.pagination {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.pagination-link {
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    color: var(--blue-dark);
    font-weight: 700;
    box-shadow: var(--shadow);
}

.pagination-link.active {
    background: var(--blue);
    color: #fff;
    pointer-events: none;
}

.card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.2s ease;
}

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

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-body {
    padding: 18px;
    display: grid;
    gap: 8px;
}

.card-body h3 {
    font-size: 1.05rem;
    color: var(--ink);
}

.card-action {
    display: inline-flex;
    color: var(--blue);
    font-weight: 700;
}

.affiliate-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.affiliate-links .btn-primary,
.affiliate-links .btn-ghost {
    padding: 8px 14px;
    font-size: 0.85rem;
}

.post-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.2s ease;
}

.post-card:hover {
    transform: translateY(-6px);
}

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-body {
    padding: 18px;
    display: grid;
    gap: 8px;
}

.post-date {
    font-size: 0.9rem;
    color: var(--blue-dark);
    font-weight: 700;
}

.about-grid {
    display: grid;
    gap: 26px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: center;
}

.about-highlight {
    display: grid;
    gap: 16px;
}

.about-card {
    background: var(--white);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 18px;
}

.lead {
    font-size: 1.1rem;
    color: var(--ink-soft);
    margin-bottom: 12px;
}

.about-page {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.about-tiles {
    display: grid;
    gap: 16px;
}

.about-illustration {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    filter: drop-shadow(0 20px 40px rgba(31, 68, 184, 0.15));
}

.contact-section .section-head {
    justify-content: flex-start;
}

.contact-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 24px;
}

.contact-form {
    display: grid;
    gap: 16px;
}

.contact-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.form-field {
    display: grid;
    gap: 8px;
}

.form-field.full {
    grid-column: 1 / -1;
}

.form-field label {
    font-weight: 700;
    color: var(--blue-dark);
}

.form-field input,
.form-field textarea {
    border: 1px solid rgba(31, 68, 184, 0.2);
    border-radius: 12px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 1rem;
    background: #fff;
}

.form-message {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-weight: 600;
}

.form-message.success {
    background: #e7f9ef;
    color: #196b3a;
}

.form-message.error {
    background: #ffeceb;
    color: #9b2c2c;
}

.page-hero {
    padding: 30px 0 20px;
    background: linear-gradient(120deg, #fff4c9 0%, #ffffff 50%, #e9f2ff 100%);
}

.hero-with-figure .hero-grid {
    align-items: center;
}

.hero-figure {
    display: flex;
    justify-content: flex-end;
}

.hero-figure img {
    width: min(300px, 100%);
    height: auto;
    filter: drop-shadow(0 18px 36px rgba(31, 68, 184, 0.2));
}

.page-hero h1 {
    font-family: 'Baloo 2', cursive;
    font-size: clamp(30px, 4vw, 44px);
    color: var(--blue-dark);
}

.eyebrow {
    font-weight: 700;
    color: var(--blue);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.cover-image img {
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.article-content {
    margin-top: 24px;
    background: var(--white);
    padding: 28px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.article-content h2,
.article-content h3 {
    font-family: 'Baloo 2', cursive;
    color: var(--blue-dark);
    margin: 16px 0 10px;
}

.article-content p {
    margin-bottom: 16px;
}

.product-detail {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 16px;
}

.product-image img {
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.product-carousel {
    position: relative;
    display: grid;
    align-items: center;
    gap: 12px;
    grid-template-columns: auto 1fr auto;
}

.carousel-viewport {
    overflow: hidden;
    border-radius: 22px;
    box-shadow: var(--shadow);
    background: var(--white);
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease;
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    padding: 0;
}

.carousel-slide img,
.carousel-slide iframe,
.carousel-slide video {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.carousel-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.carousel-video iframe,
.carousel-video video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--white);
    box-shadow: var(--shadow);
    color: var(--blue-dark);
    font-size: 20px;
    cursor: pointer;
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

@media (max-width: 720px) {
    .product-carousel {
        grid-template-columns: 1fr;
    }

    .carousel-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
    }

    .carousel-btn.prev {
        left: 12px;
    }

    .carousel-btn.next {
        right: 12px;
    }
}

.product-actions {
    display: grid;
    gap: 12px;
}

.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 700;
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 10px 24px rgba(46, 103, 246, 0.3);
}

.btn-ghost {
    background: var(--yellow);
    color: var(--blue-dark);
}

.empty-state {
    padding: 28px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    color: var(--ink-soft);
}

.site-footer {
    padding: 50px 0;
    background: #0f1d3d;
    color: #d8e0ff;
}

.footer-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.footer-grid h3,
.footer-grid h4 {
    color: #fff;
    font-family: 'Baloo 2', cursive;
}

.footer-grid a {
    color: #d8e0ff;
    margin: 6px 0;
    display: inline-flex;
}

.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.social-links a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.social-links a svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.about-social {
    margin-bottom: 16px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.footer-bottom {
    margin-top: 24px;
    border-top: 1px solid rgba(216, 224, 255, 0.2);
    padding-top: 16px;
    font-size: 0.9rem;
}

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

@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        top: 70px;
        right: 20px;
        flex-direction: column;
        background: #fff;
        padding: 18px;
        border-radius: 16px;
        box-shadow: var(--shadow);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: 0.2s ease;
    }

    .nav-links.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-toggle {
        display: flex;
    }
}

@media (max-width: 700px) {
    .grid.two-col {
        grid-template-columns: 1fr;
    }

    .hero-figure {
        justify-content: center;
        margin-top: 16px;
    }
}

@media (max-width: 640px) {
    .hero {
        padding-top: 100px;
    }

    .hero-card {
        padding: 18px;
    }

    .section {
        padding: 50px 0;
    }
}
