:root {
    --teal: #09ADAB;
    --teal-dark: #003634;
    --teal-soft: #b1fbf9;
    --ink: #000000;
    --ink-line: #dbdbdb;
    --text-2: #4a4a4a;
    --text-on-dark: #dbdbdb;
    --grey-bg: #f8f9fa;
    --line: #dbdbdb;
    --white: #FFFFFF;
    --error: #B42318;
    --accent: #00fffc;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --container-max: 1200px;
    --section-pad: clamp(60px, 8vw, 100px);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.12);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-sans);
    color: var(--ink);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img, svg, video {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: transparent;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-pad) 0;
}

.bg-grey {
    background-color: var(--grey-bg);
}

.text-teal {
    color: var(--teal);
}

.text-muted {
    color: var(--text-2);
}

.text-white {
    color: var(--white);
}

.text-on-dark {
    color: var(--text-on-dark);
}

.text-sm {
    font-size: 0.875rem;
}

.font-medium {
    font-weight: 500;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    text-transform: capitalize;
}

.h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    text-transform: capitalize;
}

.h3 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    text-transform: capitalize;
}

.lead {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: var(--text-2);
    max-width: 600px;
}

.kicker {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--teal);
    margin-bottom: 12px;
    text-transform: capitalize;
}

.badge {
    width: fit-content;
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    background: var(--ink);
    color: var(--white);
    margin-bottom: 24px;
    text-transform: capitalize;
}

.badge--soft {
    background: var(--teal-soft);
    color: var(--teal-dark);
    margin-bottom: 0;
}

.badge--outline {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--text-2);
    margin-bottom: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 24px;
    height: 48px;
    border-radius: 99px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: 2px solid transparent;
    text-transform: capitalize;
    white-space: nowrap;
}

.btn--primary {
    background: var(--teal);
    color: var(--white);
}

.btn--primary:hover {
    background: var(--teal-dark);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn--dark {
    background: var(--ink);
    color: var(--white);
}

.btn--dark:hover {
    background: var(--teal-dark);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn--outline {
    border-color: var(--teal-soft);
    color: var(--ink);
    background: var(--white);
}

.btn--outline:hover {
    border-color: var(--ink);
}

.btn--lg {
    height: 56px;
    padding: 0 32px;
    font-size: 1.125rem;
}

.btn--block {
    width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    height: 80px;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.brand__tag {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-2);
    border-left: 1px solid var(--line);
    padding-left: 12px;
    display: none;
}

.nav {
    display: none;
    gap: 32px;
}

.nav a {
    font-weight: 500;
    color: var(--text-2);
    text-transform: capitalize;
}

.nav a:hover {
    color: var(--teal);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header-actions .btn {
    padding: 0 20px;
    font-size: 0.875rem;
    height: 40px;
}

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--teal-soft);
    border-radius: 50%;
    color: var(--teal-dark);
    flex-shrink: 0;
}

.mobile-nav {
    display: none;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px;
    position: absolute;
    width: 100%;
}

.mobile-nav.is-open {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-nav a {
    font-size: 1.125rem;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    text-transform: capitalize;
}

.mobile-nav .mobile-nav__cta {
    border: none;
    color: var(--teal);
    font-weight: 700;
}

@media (min-width: 1024px) {
    .brand__tag {
        display: block;
    }
    .nav {
        display: flex;
    }
    .menu-toggle {
        display: none;
    }
    .header-actions .btn {
        padding: 0 24px;
        font-size: 1rem;
        height: 48px;
    }


}

@media (max-width: 768px) {
        .brand img {
    height: 42px;
    width: auto;
    object-fit: contain;
}
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.hero {
    padding: calc(var(--section-pad) * 1.2) 0 var(--section-pad);
    background: linear-gradient(to bottom, var(--white), var(--teal-soft));
    overflow: hidden;
    background-image: url(../img/bg/bg01.webp);
    background-position: center;
    background-size: cover
}

.hero__grid {
    display: grid;
    gap: 48px;
    align-items: center;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

.hero__visual {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .hero__grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero__visual {
        max-width: 100%;
        padding-left: 48px;
        margin: 0;
    }
}

.video-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 9/14;
    background: var(--ink);
    isolation: isolate;
    box-shadow: 7px 6px 10px 0px #b1fbf985;
    border: 4px solid #ffffff;
}

.video-card--hero {
    box-shadow: var(--shadow-md);
}

.video-card__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}


.video-card__poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: var(--transition);
    z-index: 1;
}

.video-card:hover .video-card__poster {
    transform: scale(1.05);
    opacity: 0.6;
}

.video-card__overlay {
    position: absolute;
    inset: 0;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    color: var(--white);
    z-index: 2;
}

.video-card__info {
    width: 100%;
    position: relative;
    z-index: 3;
}

.video-card__tag {
    font-size: 0.75rem;
    text-transform: capitalize;
    letter-spacing: 0.1em;
    opacity: 0.8;
    margin-bottom: 8px;
    display: block;
}

.video-card__duration {
    font-size: 0.875rem;
    font-weight: 600;
    background: rgba(0,0,0,0.6);
    padding: 4px 12px;
    border-radius: 99px;
    display: inline-block;
    margin-bottom: 12px;
    backdrop-filter: blur(4px);
}

.video-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: capitalize;
    background: rgba(0, 173, 171, 0.6);
    padding: 24px 22px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 22px;
    backdrop-filter: blur(4px);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--teal);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: -1px 0px 15px 9px #b1fbf9;
    z-index: 10;

}

.play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--accent);
    color: var(--teal-dark);
}

.video-card video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 15;
    background: #000;
}

.ticker {
    background: var(--ink);
    color: var(--white);
    padding: 16px 0;
    overflow: hidden;
    display: flex;
}

.ticker__track {
    display: flex;
    width: max-content;

    animation: ticker-loop 20s linear infinite;
}


.ticker:hover .ticker__track {
    animation-play-state: paused;
}

.ticker__group {
    display: flex;
    align-items: center;
}

.ticker__group span {
    padding: 0 24px;
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    text-transform: capitalize;
    white-space: nowrap;
    background: linear-gradient(
        to right,
        var(--white) 30%,
        var(--accent) 50%,
        var(--white) 70%
    );
    background-size: 400% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: text-shine 4s linear infinite;
}


@keyframes text-shine {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

.ticker .dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

@keyframes ticker-loop {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.rules__grid {
    display: grid;
    gap: 48px;
}

.rules__list {
    display: grid;
    gap: 24px;
}

.rule-item {
    display: flex;
    gap: 24px;
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    transition: var(--transition);
}

.rule-item:hover {
    border-color: var(--teal);
    box-shadow: var(--shadow-sm);
}

.rule-item__num {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--teal);
}

.rule-item__content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: capitalize;
}

.rule-item__content p {
    color: var(--text-2);
    margin: 0;
}

@media (min-width: 1024px) {
    .rules__grid {
        grid-template-columns: 1fr 2fr;
    }
    .rules__list {
        grid-template-columns: 1fr 1fr;
    }
}

.section-header {
    margin-bottom: 48px;
}

.flex-between {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 768px) {
    .flex-between {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
}

.card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 32px;
    border: 1px solid var(--line);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: var(--teal);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.discussion-card {
    gap: 24px;
    height: 100%;
}

.card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-2);
}

.card__title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    flex-grow: 1;
    text-transform: capitalize;
}

.card__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: stretch;
}

.blog-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    height: 100%;
    border: 1px solid var(--line);
    transition: var(--transition);
}

.blog-card:hover {
    border-color: var(--teal);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.blog-card__image {
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 4/3;
    width: 100%;
    flex-shrink: 0;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-card__image img {
    transform: scale(1.05);
}

.blog-card__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
    justify-content: flex-start;
}

.blog-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    text-transform: capitalize;
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .blog-card--featured {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: stretch;
        padding: 32px;
    }
    .blog-card--featured .blog-card__image {
        flex: 1;
        height: auto;
        aspect-ratio: 16/9;
        min-height: 320px;
    }
    .blog-card--featured .blog-card__content {
        flex: 1;
        justify-content: center;
        padding: 0 24px;
    }
    .blog-card--featured .blog-card__title {
        font-size: 2rem;
    }
}

.join__grid {
    display: grid;
    gap: 48px;
}

.join__content {
    display: flex;
    flex-direction: column;
}

.join__content .btn--primary {
    background: var(--teal-dark);
    color: var(--white);
    height: auto;
    padding: 24px 32px;
    font-size: 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 32px;
    white-space: normal;
}

.join__content .btn--primary:hover {
    background: var(--ink);
    color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.join__content .btn--primary svg {
    flex-shrink: 0;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.social-card:hover {
    border-color: var(--teal);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.social-card__icon {
    width: 48px;
    height: 48px;
    background: var(--teal-soft);
    color: var(--teal-dark);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.social-card__name {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 2px;
    text-transform: capitalize;
}

.social-card__sub {
    font-size: 0.875rem;
    color: var(--text-2);
}

.join-section {


}

.join__top {
    display: grid;
    gap: 32px;
    margin-bottom: 48px;
}

.join__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.join__fb-card {
    background: var(--teal-dark);
    color: var(--white);
    border-radius: var(--radius-md);
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.join__fb-card:hover {
    background: var(--ink);
    color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.social-card:hover {
    border-color: var(--teal);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.social-card__icon {
    width: 56px;
    height: 56px;
    background: var(--teal-soft);
    color: var(--teal-dark);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.social-card__name {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 4px;
    color: var(--ink);
}

.social-card__sub {
    font-size: 0.875rem;
    color: var(--text-2);
}

@media (min-width: 1024px) {
    .join__top {
        grid-template-columns: 1fr 1.2fr;
        align-items: stretch;
    }
    .social-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .join__grid {
        grid-template-columns: 1fr 1.2fr;
        align-items: start;
    }
}


.signup-sec {
    padding-bottom: 0px;
    background-image: url(../img/bg/bg02.webp);
    background-size: cover;
    background-position: left bottom;
}

/* Signup Section Base (Mobile & Tablet < 1024px) */
.signup-section {
    padding-bottom: calc(var(--section-pad) * 1.5);
}

.signup-box {
    background: rgba(0, 250, 250, 0.9);
    border-radius: var(--radius-lg);
    padding: 48px 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
    text-align: center;
     width: fit-content;


}

.signup-box__content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.signup-box__form {
    width: 100%;
    max-width: 500px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.input {
    width: 100%;
    height: 56px;
    padding: 0 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    font-size: 1rem;
    transition: var(--transition);
}

.input:focus {
    outline: none;
    border-color: var(--teal-dark);
    box-shadow: 0 0 0 4px rgba(9, 173, 171, 0.1);
}

.checkbox-label {
    display: flex;
    gap: 12px;
    font-size: 0.875rem;
    color: var(--text-2);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    text-align: left;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    accent-color: var(--teal-dark);
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}

.form-error {
    color: var(--error);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.form-success {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--teal);
    text-align: left;
}

.form-success h3 {
    color: var(--teal-dark);
    margin-bottom: 4px;
    text-transform: capitalize;
}

.hp {
    position: absolute;
    left: -9999px;
}


@media (min-width: 768px) and  (max-width: 1600px){

    .signup-section .container {
        display: flex;
        justify-content: flex-end;
    }


    .signup-box {
        width: 100%;
        max-width: 540px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 48px;
        gap: 24px;
    }

    .signup-box__content {
        align-items: flex-start;
    }

    .signup-box__form {
        max-width: 100%;
        width: 100%;
    }


    .form-row {
        flex-direction: row;
        width: 100%;
    }

    .form-row .btn {
        flex-shrink: 0;
    }

    .checkbox-label {
        justify-content: flex-start;
    }
}


@media (min-width: 1600px) {
    .signup-box {
        display: grid;
        grid-template-columns: 1fr 1fr;
        text-align: left;
        padding: 64px;
        gap: 48px;
            margin: auto;
        box-shadow: 2px 2px 15px 0px rgba(0, 173, 171, 0.6);

    }


    .signup-box__content {
        align-items: flex-start;
    }

    .signup-box__form {
        max-width: none;
    }

    .form-row {
        flex-direction: row;
    }

    .form-row .btn {
        flex-shrink: 0;
    }

    .checkbox-label {
        justify-content: flex-start;
    }
}
.site-footer {
    background: var(--ink);
    color: var(--text-on-dark);
    padding: 80px 0 40px;
}

.footer-top {
    display: grid;
    gap: 48px;
    margin-bottom: 64px;
}

.footer-brand p {
    margin-top: 16px;
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 0.875rem;
    text-transform: capitalize;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    margin-bottom: 12px;
    transition: var(--transition);
    text-transform: capitalize;
}

.footer-col a:hover {
    color: var(--white);
    transform: translateX(4px);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 32px;
    border-top: 1px solid var(--ink-line);
    font-size: 0.875rem;
}

.footer-brand img  {
   max-width: 260px;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    text-transform: capitalize;
}

.footer-legal a:hover {
    color: var(--white);
}

@media (min-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr 1.5fr;
    }
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}


.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 90;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--teal-dark);
    color: var(--accent);
    border-color: var(--teal-dark);
    transform: translateY(-4px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 24px;
        right: 24px;
        width: 48px;
        height: 48px;
    }
}

/* Lightbox Overlay */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

/* Lightbox Container */
.lightbox__container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 80vh;
    background-color: #000;
    border-radius: var(--radius-md);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.3s ease;
}

.lightbox.is-open .lightbox__container {
    transform: translateY(0) scale(1);
}

/* Close Button */
.lightbox__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox__close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Iframe Wrapper */
.lightbox__content {
    width: 100%;
    height: 100%;
}

.lightbox__content iframe {
    width: 100%;
    height: 100%;
    border: none;
}


/* ============ BREADCRUMBS ============ */
.breadcrumbs {
    padding: 24px 0;
    font-size: 0.875rem;
    color: var(--text-2);
}

.breadcrumbs__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
}

.breadcrumbs__item {
    display: inline-flex;
    align-items: center;
}

.breadcrumbs__link {
    color: var(--ink);
    font-weight: 500;
}

.breadcrumbs__link:hover {
    color: var(--teal);
}

.breadcrumbs__separator {
    margin: 0 12px;
    color: var(--line);
    font-size: 0.75rem;
}

.breadcrumbs__current {
    color: var(--text-2);
}

/* ============ BLOG HERO ============ */
.blog-hero {
    padding: 32px 0 80px;
    background-color: #EAF7F6;
    background-image: url('../img/bg/bg01.webp'); /* Full width background */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.blog-hero__layout {
    display: flex;
    flex-direction: column;
    gap: 48px;
    margin-top: 24px;
}

@media (min-width: 1024px) {
    .blog-hero__layout {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

.blog-hero__left {
    flex: 1;
    max-width: 520px;
}

.blog-hero__right {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 500px;
}

@media (min-width: 1024px) {
    .blog-hero__right {
        justify-content: flex-end;
        padding-bottom: 4px; /* Visually align with the search input */
    }
}

.blog-kicker {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--teal);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.blog-hero__title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 32px;
    color: var(--ink);
}

/* ============ BLOG SEARCH & CATEGORIES ============ */
.blog-search-form {
    position: relative;
    width: 100%;
}

.blog-search-form .input {
    width: 100%;
    height: 56px;
    border-radius: 99px;
    padding-left: 24px;
    padding-right: 56px;
    border: none;
    background: var(--white);
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    font-size: 1rem;
}

.blog-search-form .input:focus {
    outline: none;
    box-shadow: 0 4px 24px rgba(9, 173, 171, 0.15);
}

.blog-search-form__btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-2);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: color var(--transition);
}

.blog-search-form__btn:hover {
    color: var(--teal);
}

.category-pill {
    padding: 10px 24px;
    border-radius: 99px;
    background: var(--white);
    color: var(--text-2);
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: var(--transition);
    cursor: pointer;
}

.category-pill.is-active,
.category-pill:hover {
    background: var(--teal);
    color: var(--white);
}

/* ============ BLOG LISTING & GRID ============ */
.blog-listing {
    padding: 80px 0;
    background: var(--grey-bg);
}

/* Card Meta Data (Date & Time) */
.card-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: auto;
    padding-top: 16px;
    font-size: 0.875rem;
    color: var(--text-2);
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-meta svg {
    color: var(--text-2);
}

/* Featured Card */
.blog-featured {
    display: grid;
    gap: 40px;
    margin-bottom: 80px;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.04);
}

@media (min-width: 1024px) {
    .blog-featured {
        grid-template-columns: 1fr 1fr;
        padding: 32px 48px 32px 32px;
    }
}

.blog-featured__image {
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 100%;
}

.blog-featured__image img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.blog-featured__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.blog-featured__badge {
    margin-bottom: 16px;
}

.blog-featured__title {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--ink);
}

.blog-featured__excerpt {
    font-size: 1.125rem;
    color: var(--text-2);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Grid 3x3 */
.blog-grid-3x3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 56px 32px;
}

@media (min-width: 768px) {
    .blog-grid-3x3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .blog-grid-3x3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Standard Article Card */
.article-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.article-card__img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.article-card__img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-card__img-wrapper img {
    transform: scale(1.05);
}

.article-card__badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: var(--white);
    color: var(--teal-dark);
    margin: 0;
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: capitalize;
    box-shadow: var(--shadow-sm);
    z-index: 2;
}

.article-card__content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink);
    margin-bottom: 12px;
}

.article-card__excerpt {
    font-size: 0.9375rem;
    color: var(--text-2);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============ PAGINATION ============ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 80px;
}

.pagination__item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    transition: var(--transition);
}

.pagination__item:hover:not(.is-disabled) {
    border-color: var(--teal);
    color: var(--teal-dark);
    background: var(--teal-soft);
}

.pagination__item.is-active {
    background: var(--ink);
    color: var(--white);
    border-color: var(--ink);
}

.pagination__item.is-disabled {
    opacity: 0.4;
    pointer-events: none;
    background: transparent;
}

.pagination__nav {
    width: auto;
    padding: 0 20px;
}

/* ============ ARTICLE HERO ============ */
.article-hero {
    padding: 32px 0 48px;
    background-color: #EAF7F6;
    background-image: url(../img/bg/bg01.webp);
    background-size: cover
}

.article-hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--ink);
    max-width: 900px;
    margin-top: 16px;
}

/* ============ ARTICLE VISUAL & META ============ */
.article-content-wrapper {
    padding: 48px 0;
}

.article-main-visual {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 64px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--grey-bg);
}

.article-main-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-main-visual__meta {
    position: absolute;
    bottom: 32px;
    left: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 2;
}

.article-main-visual__date {
    background: var(--ink);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* ============ ARTICLE BODY ============ */
.article-body {
    max-width: 100%;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-2);
}

.article-body h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--ink);
    margin: 56px 0 24px;
}

.article-body h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
    margin: 40px 0 16px;
}

.article-body p {
    margin-bottom: 24px;
}

.article-body img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 40px 0;
}

/* ============ ARTICLE LISTS ============ */
.article-body ul,
.article-body ol {
    margin-bottom: 32px;
    padding-left: 24px;
}

.article-body li {
    margin-bottom: 12px;
}

.article-body li:last-child {
    margin-bottom: 0;
}


.article-body li::marker {
    color: var(--teal);
    font-weight: 700;
}

/* ============ ARTICLE AUTHOR ============ */
.article-author {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 32px;
    background: var(--grey-bg);
    border-radius: var(--radius-md);
    margin: 64px 0;
}

.article-author__img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

.article-author__info h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
}

.article-author__info p {
    font-size: 0.9375rem;
    color: var(--text-2);
    margin: 0;
}

/* ============ ARTICLE NAVIGATION ============ */
.article-nav {
    display: grid;
    gap: 24px;
    margin: 64px auto;
    max-width: 100%;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 40px 0;
}

@media (min-width: 768px) {
    .article-nav {
        grid-template-columns: 1fr 1fr;
    }
}

.article-nav__link {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--ink);
    transition: color var(--transition);
}

.article-nav__link:hover {
    color: var(--teal);
}

.article-nav__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--grey-bg);
    flex-shrink: 0;
    transition: background var(--transition);
}

.article-nav__link:hover .article-nav__icon {
    background: var(--teal-soft);
}

.article-nav__text span {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-2);
    margin-bottom: 4px;
}

.article-nav__text h4 {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
}

.article-nav__next {
    text-align: right;
    flex-direction: row-reverse;
}

.article-actions {
    text-align: center;
    margin-bottom: 80px;
}


/* ============ SEARCH RESULTS PAGE ============ */
.search-hero {
    padding: 48px 0;
    background: var(--grey-bg);
    text-align: center;
    border-bottom: 1px solid var(--line);
}

.search-hero__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 16px;
}

.search-hero__meta {
    font-size: 1.125rem;
    color: var(--text-2);
    margin-bottom: 32px;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 900px;
    margin: 64px auto 0;
}

/* Search Result Card */
.search-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    transition: var(--transition);
    text-decoration: none;
}

@media (min-width: 768px) {
    .search-card {
        flex-direction: row;
        align-items: center;
    }
}

.search-card:hover {
    border-color: var(--teal);
    box-shadow: 0 12px 24px rgba(0,0,0,0.04);
    transform: translateY(-2px);
}

.search-card__img-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--grey-bg);
}

@media (min-width: 768px) {
    .search-card__img-wrapper {
        width: 140px;
        aspect-ratio: 1/1; /* Square thumbnail as requested */
    }
}

.search-card__img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-card__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.search-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 12px;
    line-height: 1.3;
}

.search-card__snippet {
    font-size: 1rem;
    color: var(--text-2);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Highlight for the matched search phrase */
.search-highlight {
    background: var(--teal-soft);
    color: var(--ink);
    font-weight: 700;
    padding: 0 4px;
    border-radius: 4px;
}

/* ============ ABOUT PAGE ============ */
.about-hero {
    padding: 64px 0 80px;
    background: var(--grey-bg);
}

.about-hero__inner {
    display: grid;
    gap: 48px;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-hero__inner {
        grid-template-columns: 1fr 1fr;
    }
}

.about-hero__text {
    max-width: 540px;
}

.about-hero__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-md);
}

.about-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============ ABOUT STORY ============ */
.about-story {

    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-2);
    text-align: center;
}

.about-story p {
    margin-bottom: 24px;
}

.about-story .highlight {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--ink);
    font-weight: 800;
    margin: 48px 0;
    line-height: 1.3;
}
/* ============ ABOUT STORY IMAGE ============ */
.about-story__image {
    margin: 48px auto;
    text-align: center;
}

.about-story__image img {
    max-width: 100%;
    height: auto;

    display: inline-block;
}

.about-story__image--avatar img {
    max-width: 200px;
    border-radius: 50%;
}

/* ============ CORE VALUES ============ */
.values-grid {
    display: grid;
    gap: 24px;
    margin-top: 48px;
}

@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.value-card {
    background: var(--white);
    padding: 48px 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    text-align: center;
    transition: var(--transition);
}

.value-card:hover {
    border-color: var(--teal);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.04);
}

.value-card__icon {
    width: 72px;
    height: 72px;
    background: var(--teal-soft);
    color: var(--teal-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.value-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--ink);
}

.value-card__text {
    font-size: 0.9375rem;
    color: var(--text-2);
    margin: 0;
}

/* ============ VALUE CARD VISUALS (FLOATING MASCOTS) ============ */
.value-card {
    /* Ensure the card pushes the visual to the bottom */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.value-card__text {
    margin-bottom: 32px;
}

.value-card__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    padding-top: 24px;
}

.value-card__visual::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    aspect-ratio: 1/1;
    background: radial-gradient(circle, var(--teal-soft) 0%, rgba(177,251,249,0) 70%);
    z-index: 0;
    border-radius: 50%;
}

.value-card__visual img {
    position: relative;
    z-index: 1;
    max-width: 100%;
    height: auto;
    max-height: 240px;
    object-fit: contain;
    animation: float 6s ease-in-out infinite;
}

/* Add slight animation delays so they don't bounce in perfect sync */
.value-card:nth-child(1) .value-card__visual img {
    animation-delay: 0s;
}
.value-card:nth-child(2) .value-card__visual img {
    animation-delay: -2s;
}
.value-card:nth-child(3) .value-card__visual img {
    animation-delay: -4s;
}

/* ============ SHOP BANNER ============ */
.shop-banner {
    background: var(--ink);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 80px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 32px;
    box-shadow: var(--shadow-lg);
}

.shop-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(9,173,171,0.15) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}

.shop-banner__content {
    position: relative;
    z-index: 2;
    max-width: 640px;
    margin: 0 auto;
}

.shop-banner__title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--white);
}

/* ============ MINI FAQ ============ */
.faq-grid {
    display: grid;
    gap: 24px;

    margin: 48px auto 0;
}

@media (min-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.faq-item {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--teal);
}

.faq-item h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--ink);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.faq-item h3 svg {
    color: var(--teal);
    flex-shrink: 0;
    margin-top: 2px;
}

.faq-item p {
    color: var(--text-2);
    font-size: 0.9375rem;
    margin: 0;
    padding-left: 36px;
    line-height: 1.6;
}

/* ============ UTILITY PAGES (404 & THANKS) ============ */
.utility-hero {
    padding: 80px 0 120px;
    background: var(--grey-bg);
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.utility-hero__inner {
    display: grid;
    gap: 64px;
    align-items: center;
}

@media (min-width: 1024px) {
    .utility-hero__inner {
        grid-template-columns: 1fr 1fr;
    }
}

.utility-hero__content {
    max-width: 540px;
}

.utility-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 40px;
}

.utility-hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Glowing effect behind the transparent mascot */
.utility-hero__visual::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(300px, 40vw, 500px);
    aspect-ratio: 1/1;
    background: radial-gradient(circle, var(--teal-soft) 0%, rgba(177,251,249,0) 70%);
    z-index: 0;
    border-radius: 50%;
}

.utility-hero__visual img {
    position: relative;
    z-index: 1;
    max-width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    animation: float 6s ease-in-out infinite;
}

/* Subtle floating animation for the mascot */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@media (max-width: 1023px) {
    .utility-hero {
        padding: 48px 0 80px;
        text-align: center;
    }
    .utility-hero__content {
        margin: 0 auto;
    }
    .utility-hero__actions {
        justify-content: center;
    }
    .utility-hero__inner {
        display: flex;
        flex-direction: column-reverse;
    }
}


/* ============ COOKIE BANNER ============ */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 480px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    transform: translateY(150%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease, visibility 0.5s;
}

.cookie-banner.is-visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.cookie-banner__inner {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookie-banner__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-banner__title svg {
    color: var(--teal);
}

.cookie-banner__text {
    font-size: 0.875rem;
    color: var(--text-2);
    line-height: 1.6;
    margin: 0;
}

.cookie-banner__text a {
    color: var(--teal-dark);
    text-decoration: underline;
    font-weight: 600;
    transition: color var(--transition);
}

.cookie-banner__text a:hover {
    color: var(--teal);
}

.cookie-banner__actions {
    display: flex;
    gap: 12px;
}

.cookie-banner__actions .btn {
    flex: 1;
    height: 44px;
    font-size: 0.875rem;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .cookie-banner {
        bottom: 32px;
        left: 32px;
        right: auto;
    }
}

/* ===== Blog article: tables + links =====
   Uses the global :root variables of the site.
   Works for tables WITH <thead> (header = thead) and for Word-pasted tables
   WITHOUT <thead> (header = first row of tbody). */

.article-hero   .article-hero__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--ink);
    max-width: 900px;
    margin-top: 16px;
}

/* ---------- Tables ---------- */
.article-body table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--white);
    color: var(--text-2);
    font-size: 0.95rem;
    line-height: 1.5;
}

.article-body table th,
.article-body table td {
    padding: 0.9rem 1.1rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
}

.article-body table tr > *:last-child { border-right: 0; }
.article-body table tbody tr:last-child > * { border-bottom: 0; }

/* Remove Word paragraph spacing inside cells */
.article-body table p,
.article-body table p.MsoNormal { margin: 0; }
.article-body table p + p { margin-top: 0.5rem; }

/* Header: <thead> */
.article-body table thead th,
.article-body table thead td {
    background: var(--teal-dark);
    color: var(--white);
    font-weight: 700;
    border-bottom: 3px solid var(--teal);
    border-right-color: rgba(255, 255, 255, 0.12);
}

/* Header: no <thead> -> first row of tbody */
.article-body table:not(:has(thead)) tbody tr:first-child > th,
.article-body table:not(:has(thead)) tbody tr:first-child > td {
    background: var(--teal-dark);
    color: var(--white);
    font-weight: 700;
    border-bottom: 3px solid var(--teal);
    border-right-color: rgba(255, 255, 255, 0.12);
}

.article-body table thead strong,
.article-body table:not(:has(thead)) tbody tr:first-child strong { color: inherit; }

/* Zebra rows + hover (body rows only) */
.article-body table tbody tr:nth-child(even) > td { background: var(--grey-bg); }
.article-body table tbody tr:hover > td {
    background: color-mix(in srgb, var(--teal-soft) 35%, var(--white));
}
.article-body table:not(:has(thead)) tbody tr:first-child:hover > td {
    background: var(--teal-dark);
}

/* First column emphasized */
.article-body table tbody td:first-child {
    color: var(--ink);
    font-weight: 600;
}

/* Small screens: horizontal scroll, columns stay aligned.
   thead/tbody use display:contents so ALL rows form ONE table. */
@media (max-width: 720px) {
    .article-body table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .article-body table thead,
    .article-body table tbody { display: contents; }
    .article-body table th,
    .article-body table td {
        min-width: 150px;
        padding: 0.7rem 0.85rem;
    }
}

/* ---------- Links ---------- */
.article-body a {
    color: var(--teal-dark);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: var(--teal);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    border-radius: 4px;
    transition: background-color var(--transition), color var(--transition),
                text-decoration-color var(--transition);
}

.article-body a:hover {
    color: var(--ink);
    background-color: var(--teal-soft);
    text-decoration-color: var(--teal-dark);
}

.article-body a:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}

/* Links wrapping images: no underline/background */
.article-body a:has(> img) {
    text-decoration: none;
    background: none;
}

/* Links inside the dark table header */
.article-body table thead a,
.article-body table:not(:has(thead)) tbody tr:first-child a {
    color: var(--accent);
    text-decoration-color: var(--accent);
}
.article-body table thead a:hover,
.article-body table:not(:has(thead)) tbody tr:first-child a:hover {
    color: var(--teal-dark);
    background-color: var(--teal-soft);
}