/** -- BASE STYLE -- */
/* ===== GLOBAL RESETS ===== */
/* ===== GOOGLE BLUE ROOT VARIABLES ===== */
:root {
    --font-family: 'Roboto', 'Inter', sans-serif;

    /* Primary Blue Palette */
    --clr-blue: #4285F4;             /* main Google Blue */
    --clr-blue-dark: #3367D6;        /* hover / darker shade */
    --clr-blue-light: #D2E3FC;       /* background / subtle shade */
    --clr-blue-20: rgba(66,133,244,0.2); /* shadows / overlays */
    --clr-blue-30: rgba(66,133,244,0.3);
    --clr-blue-80: rgba(66,133,244,0.8);

    /* Text */
    --clr-text: #202124;             /* primary text */
    --clr-text-muted: #5F6368;       /* secondary text */

    /* Backgrounds */
    --clr-bg: #F8F9FA;               /* page background */
    --clr-white: #FFFFFF;            /* pure white */

    /* Gradients */
    --clr-primary-gradient: linear-gradient(to right, var(--clr-blue), var(--clr-blue-dark));
    --clr-primary-gradient-reverse: linear-gradient(to left, var(--clr-blue), var(--clr-blue-dark));
    --clr-primary-gradient-145deg: linear-gradient(145deg, var(--clr-blue), var(--clr-blue-dark));
    
    --clr-blue--10: rgba(66, 133, 244, 0.1); /* Light blue for icon bg */
    --clr-blue--20: rgba(66, 133, 244, 0.2); /* Slightly darker hover bg */

    /* Utility */
    --container-width: 980px;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Global reset */
body, html {
    background-color: var(--clr-bg);
    font-family: var(--font-family);
    scroll-behavior: smooth;
    min-height: 100vh;
    color: var(--clr-text);
}

body {
    display: flex;
    flex-direction: column;
}

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


/** -- COMPONENTS -- */

.toasted-container.top-center.top-center {
    top: 5%;
}

.icon-button {
    border: 0;
    outline: 0;
    cursor: pointer;
    text-decoration: none;
    --color: black;
    --bg-color: transparent;
    --hover-bg-color: hsla(0, 0%, 0%, .1);
    font-size: 1.25rem;
    --ring-color: var(--clr-primary--20);
    padding: 0.5em;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: var(--color);
    background-color: var(--bg-color);
    transition-property: color, background-color;
    transition-duration: 200ms;
    transition-timing-function: ease-in-out;
}

.icon-button svg {
    height: 1em;
    width: 1em;
}

.icon-button:hover,
.icon-button:focus-visible {
    background-color: var(--hover-bg-color);
}

.icon-button:focus-visible {
    outline: 2px solid var(--ring-color);
    outline-offset: 1px;
}

/** - ACCORDION - */

.accordion {
    background: var(--clr-white);
    border: 0.125rem solid rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    box-shadow: 0 1.5rem 2rem -0.75rem rgb(90 113 142 / 10%);
    backdrop-filter: blur(8px);
    border-radius: 0.5rem;
    width: 100%;
    color: var(--clr-text);
    font-size: 1.125rem;
    line-height: 1.26;
    display: flex;
    flex-direction: column;
    position: relative;
    margin-bottom: 0.5rem;
}

.accordion-toggle {
    all: initial;
    cursor: pointer;
    color: inherit;
    font-family: inherit;
    font-size: 1.2rem;
    line-height: 1;
    padding: 2rem 1.875rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: inherit;
    background-color: inherit;
    transition: background-color 200ms ease-in-out;
}

.accordion-toggle:hover,
.accordion-toggle:focus-visible {
    background-color: rgba(0, 0, 0, 0.025);
}

.accordion-toggle:focus-visible {
    outline: 2px solid var(--clr-primary--20);
    outline-offset: 1px;
}

.accordion-toggle h4 {
    font-size: inherit;
    line-height: inherit;
    font-weight: 700;
}

.accordion-toggle .icon {
    width: 1em;
    height: 1em;
    color: var(--clr-primary);
    flex-shrink: 0;
}

.accordion-toggle.is-open .icon {
    transform: rotateZ(180deg);
}

.accordion-content {
    padding: 0 1.875rem;
}

.accordion-content p {
    margin: 1.875rem 0;
}



/* ===== HERO SECTION ===== */
.splash {
    padding: 4rem 1.5rem;
    text-align: center;
}

.splash-hero {
    max-width: 700px;
    margin: 0 auto;
}

.splash-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--clr-blue);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.splash-hero .subtitle {
    font-size: 1.25rem;
    color: var(--clr-text-muted);
    margin-bottom: 2rem;
}

.splash-hero .seo-note {
    font-size: 0.95rem;
    color: var(--clr-text-muted);
    margin-top: 1.5rem;
}

/* ===== FORM ===== */
.splash-form {
    margin: 0 auto;
    width: 100%;
    max-width: 600px;
}

.splash-input-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.splash-input {
    width: 100%;
    height: 3.5rem;
    border-radius: 2rem;
    border: 1px solid #dadce0;
    padding: 0 3rem 0 1.25rem;
    font-size: 1rem;
    color: var(--clr-text);
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.splash-input:focus {
    border-color: var(--clr-blue);
    box-shadow: 0 0 0 2px var(--clr-blue-20);
}

/* Paste Button */
.paste-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: var(--clr-text-muted);
    transition: color 0.2s ease;
}

.paste-btn:hover {
    color: var(--clr-text);
}

/* Download Button */
.download-btn {
    width: 100%;
    height: 3.5rem;
    border: none;
    border-radius: 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--clr-white);
    cursor: pointer;
    background: var(--clr-primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.download-btn:hover {
    background-color: var(--clr-blue-dark);
    transform: translateY(-1px);
}

.download-btn:disabled {
    background-color: var(--clr-blue-light);
    color: var(--clr-text-muted);
    cursor: not-allowed;
}

/* Spinner */
.loader {
    width: 22px;
    height: 22px;
    border: 3px solid var(--clr-white);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Info text under button */
.download-info {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    text-align: center;
}

/* ===== VIDEO PREVIEW ===== */
.splash-video {
    max-width: 750px;
    margin: 0 auto;
    border-radius: 0.75rem;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    align-items: center;
    justify-content: center;
    text-align: center;
    --max-width: 550px;
    flex: 100%;
    background: var(--clr-blue-light);
}

.splash-video-bg {
    position: absolute;
    z-index: -2;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border-radius: inherit !important;
    object-fit: cover;
    object-position: center;
    opacity: 0.1;
}

.splash-video img {
    border-radius: 100%;
    width: 100px;
    height: 100px;
    border: 3px solid rgba(255,255,255,0.8);
    margin-bottom: 0.75rem;
}

.splash-video h2 {
    color: var(--clr-blue-dark);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.splash-video p {
    color: var(--clr-text-muted);
    font-weight: 500;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.splash-video a,
.splash-video button {
    all: unset;
    border-radius: 0.35rem;
    font-family: inherit;
    background-color: var(--clr-blue);
    color: var(--clr-white);
    font-size: 1.05rem;
    margin-top: 0.5rem;
    padding: 0.75rem 0.75rem;
    cursor: pointer;
    display: block;
    width: 100%;
    line-height: 1;
    text-align: center;
    max-width: var(--max-width);
    transition: background-color 0.2s ease;
}

.splash-video a:hover,
.splash-video button:hover {
    background-color: var(--clr-blue-dark);
}

.splash-video-wrapper {
    padding: 1rem 0;
}

.splash-video-wrapper .reset-video {
    all: unset;
    color: var(--clr-blue-dark);
    margin: 1rem auto 0;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    display: block;
    padding: 0.6rem 1.25rem;
    border-radius: 0.35rem;
    background-color: var(--clr-blue-light);
    transition: background-color 0.2s ease;
}

.splash-video-wrapper .reset-video:hover {
    background-color: var(--clr-blue-20);
}

.share-widget {
  padding: 3rem 1rem;
  background-color: var(--clr-surface, #f9f9f9);
  text-align: center;
}

.share-title {
  font-size: 1.5rem; /* like h3 */
  font-weight: 600;
  color: var(--clr-text, #202124);
  margin-bottom: 0.5rem;
}

.share-widget .subtitle {
  font-size: 1rem;
  color: #5f6368;
  margin-bottom: 2rem;
}

.share-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.share-buttons a,
.share-buttons .copy-link {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--clr-white, #fff);
  border: 1px solid #dadce0;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  color: #1a73e8;
  font-size: 24px;
  transition: background-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
  text-decoration: none; /* remove underline */
}

.share-buttons a:hover,
.share-buttons .copy-link:hover {
  background-color: #e8f0fe;
  color: #174ea6;
}

.copy-link {
  border: none;
}

.copy-feedback {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #188038; /* Google green for success */
  font-weight: 500;
  display: none;
}



/** -- LAYOUT -- */
/** - HEADER - */

.header {
    display: flex;
    background-color: var(--clr-white);
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header > * {
    display: flex;
    align-items: center;
}

.header .logo a {
    height: 40px;
    line-height: 1;
    display: flex;
}

.header .logo img {
    height: 100%;
    width: auto;
    object-position: left;
    object-fit: contain;
}

.header .menu-toggle {
    background-color: rgba(0, 0, 0, 0.05);
    border: 0;
    outline: 0;
    cursor: pointer;
    flex-shrink: 0;
    line-height: 1;
    display: flex;
    padding: 0.5rem;
    --mi-start: 0.5rem;
    border-radius: 0.25rem;
    transition: background-color 200ms ease-in-out;
}

.header .menu-toggle:hover,
.header .menu-toggle:focus-visible {
    background-color: rgba(0, 0, 0, 0.1);
}

.header .menu-toggle:focus-visible {
    outline: 2px solid var(--clr-primary--20);
    outline-offset: 1px;
}


.header .menu-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
}

@media screen and (min-width: 992px) {


    .header .menu-toggle {
        display: none;
    }

    .header ul {
        display: flex;
        align-items: center;
        list-style: none;
    }

    .header nav a {
        text-decoration: none;
        font-size: 18px;
        color: black;
        padding: 0.5rem 1rem;
        border-radius: 0.5rem;
        transition: color 200ms, background-color 200ms ease-in-out;
    }

    .header nav a:hover,
    .header nav a:focus-visible,
    .header nav a.is-active {
        color: var(--clr-primary);
    }

    .header nav a.is-active {
        background-color: rgba(0, 0, 0, 0.05);
    }

    .header nav a:focus-visible {
        outline: 2px solid var(--clr-primary--20);
        outline-offset: 1px;
    }
    .tiktok-mp3-btn {
    display: inline-block;
    margin-left: 16px;       /* spacing from other navbar items */
    padding: 8px 20px;       /* comfortable padding */
    background: var(--clr-primary-gradient);     /* TikTok pink color */
    color: #ffffff;          /* white text */
    font-weight: 600;        /* slightly bold text */
    font-size: 14px;
    border-radius: 8px;      /* rounded corners */
    text-decoration: none;   /* remove underline */
    transition: all 0.2s ease-in-out; /* smooth hover */
}

.tiktok-mp3-btn:hover {
    background: #e0244f;     /* slightly darker pink on hover */
    transform: translateY(-2px); /* subtle lift effect */
    box-shadow: 0 4px 8px rgba(0,0,0,0.15); /* small shadow on hover */
}

.tiktok-mp3-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

}

@media screen and (max-width: 991px) {
    .header {
        padding: 0.625rem 1rem;
        position: relative;
    }

    .header .logo a {
        height: 35px;
    }

    .header nav {
        display: none;
        position: absolute;
        width: 100%;
        top: calc(100% + 1px);
        left: 0;
        background-color: var(--clr-white);
        padding: 0.5rem 0;
    }

    .header nav.is-open {
        display: block;
    }

    .header nav ul {
        list-style: none;
    }

    .header nav a {
        display: flex;
        width: 100%;
        font-size: 1.125rem;
        color: var(--clr-text);
        text-decoration: none;
        padding: 0.75rem 0;
        align-items: center;
        justify-content: center;
        line-height: 1;
        text-align: center;
    }

    .header nav li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .header nav li:last-child {
        border-bottom: none;
    }
}

/** - FOOTER - */
.footer {
    background: var(--clr-text);
    color: var(--clr-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 1rem;
    width: 100%;
    margin-top: auto;
    gap: 2rem;
    font-size: 1.125rem;
    text-align: center;
}

.footer-nav {
    display: flex;
    gap: 1rem;
}

.footer-nav a {
    color: var(--clr-white);
    text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
    text-decoration: underline;
}

.footer b {
    font-weight: 700;
}

.footer p {
    opacity: 0.8;
}


/* ===== FEATURES SECTION ===== */
.features {
    padding: 4rem 1.5rem;
    background: var(--clr-bg); /* White or light Google background */
}

.features-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
}

.features-left {
    flex: 1 1 300px;
    max-width: 350px;
}

.features-left .section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--clr-text); /* Primary Google Blue */
    margin-bottom: 0.5rem;
}

.features-left .section-subtitle {
    font-size: 1.125rem;
    color: var(--clr-text-muted);
    line-height: 1.6;
}

.features-right {
    flex: 2 1 600px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.75rem;
}

/* ===== FEATURE CARD ===== */
.feature-card {
    background: var(--clr-white); /* Flat card */
    border-radius: 0.75rem;
    padding: 1.75rem 1.5rem;
    text-align: center;
    transition: transform 0.2s ease;
}

.feature-card:hover {
    transform: scale(1.02); /* subtle scale on hover */
}

/* ===== FEATURE ICON ===== */
.feature-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--clr-blue--10); /* Light Google Blue shade */
    color: var(--clr-blue); /* Icon color */
    font-size: 38px; /* Larger icon */
    margin: 0 auto 1rem auto; /* Centered & spaced below */
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.feature-card:hover .feature-icon {
    background-color: var(--clr-blue--20); /* Slightly darker blue on hover */
    transform: scale(1.05);
}

/* ===== FEATURE TITLE ===== */
.feature-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--clr-blue-dark);
    margin-bottom: 0.5rem;
}

/* ===== FEATURE TEXT ===== */
.feature-text {
    font-size: 1rem;
    color: var(--clr-text-muted);
    line-height: 1.5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .features-container {
        flex-direction: column;
    }

    .features-left,
    .features-right {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .features-right {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}


/* ===== HOW TO DOWNLOAD SECTION ===== */
.how-to-download {
    padding: 4rem 1.5rem;
    background: var(--clr-bg);
}

.how-to-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: flex-start;
}

/* ===== LEFT COLUMN ===== */
.how-to-left {
    flex: 1 1 300px;
    max-width: 400px;
}

.how-to-left .section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--clr-text);
    margin-bottom: 0.5rem;
}

.how-to-left .section-subtitle {
    font-size: 1.125rem;
    color: var(--clr-text-muted);
    line-height: 1.6;
}

/* ===== RIGHT COLUMN ===== */
.how-to-right {
    flex: 2 1 500px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ===== STEP ITEM ===== */
.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

/* ===== STEP NUMBER ===== */
.step-number {
    min-width: 40px;
    min-height: 40px;
    background-color: var(--clr-blue--10);
    color: var(--clr-blue);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

/* ===== STEP CONTENT ===== */
.step-content {
    display: flex;
    flex-direction: column;
}

.step-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--clr-blue-dark);
    margin-bottom: 0.25rem;
}

.step-text {
    font-size: 1rem;
    color: var(--clr-text-muted);
    line-height: 1.5;
}

/* Subtle divider between steps */
.step-item + .step-item {
    border-top: 1px solid rgba(66, 133, 244, 0.1);
    padding-top: 1.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .how-to-container {
        flex-direction: column;
    }

    .how-to-left,
    .how-to-right {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .step-item {
        flex-direction: row;
        gap: 1rem;
    }
}


/* ===== COMPARISON SECTION ===== */
.comparison {
  padding: 4rem 1.5rem;
  text-align: center;
}

.comparison h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 0.5rem;
}

.comparison .subtitle {
  font-size: 1.1rem;
  color: #5f6368;
  margin-bottom: 2rem;
}

/* Table Wrapper */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Table Styling */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  min-width: 600px;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  border: 1px solid #dadce0;
  text-align: center;
  vertical-align: middle;
}

.comparison-table th {
  background:var(--clr-blue--10);
  font-weight: 600;
  color: #202124;
}

/* First column sticky */
.comparison-table td:first-child,
.comparison-table th:first-child {
  text-align: left;
  font-weight: 600;
  color: #202124;
  position: sticky;
  left: 0;
  background: var(--clr-white);
  z-index: 2;
  min-width: 180px;
}

/* Circles */
.circle {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.circle.green {
  background: #34a853; /* Google Green */
}

.circle.red {
  background: #ea4335; /* Google Red */
}

.circle.yellow {
  background: #fbbc05; /* Google Yellow */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem;
    font-size: 0.9rem;
  }
  .comparison-table td:first-child,
  .comparison-table th:first-child {
    min-width: 140px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .comparison-table th,
  .comparison-table td {
    padding: 0.6rem;
    font-size: 0.85rem;
  }
  .comparison-table td:first-child,
  .comparison-table th:first-child {
    min-width: 120px;
    font-size: 0.9rem;
  }
  .circle {
    width: 14px;
    height: 14px;
  }
}


/** - USAGE SECTION - */
.usage-section {
    margin-top: 4rem;
    margin-bottom: 4rem;
    --container-width: 1180px;
}

.usage-section .usage-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.usage-section .usage {
    display: flex;
    gap: 1rem;
}

.usage-section .usage > * {
    flex: 1;
}

.usage-section .usage-image,
.usage-section .usage-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--clr-text);
}

.usage-section .usage img {
    width: 100%;
    height: 100%;
    aspect-ratio: attr(width) / attr(height);
}

.usage-section .usage img {
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.usage-section .usage-content h3 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.usage-section .usage-content p {
    font-size: 1.125rem;
    line-height: 1.26;
    margin: 1.25rem 0;
}


@media screen and (min-width: 992px) {
    .usage-section .usage:nth-child(2n+1) {
        flex-direction: row-reverse;
    }
}

@media screen and (max-width: 991px) {
    .usage-section .usage {
        flex-direction: column-reverse;
    }
}

.popular-videos-section {
    margin-top: 4rem;
    margin-bottom: 4rem;
    text-align: center;
}

.popular-videos-section h2 {
    margin-bottom: 0.5rem;
    font-size: 2rem;
    font-weight: 700;
    color: var(--clr-text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.popular-videos-section .subtitle {
    margin-bottom: 2rem;
    font-size: 1.25rem;
    color: var(--clr-text-muted);
    font-weight: 500;
}

/* Slider */
.popular-videos-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 0 2rem; /* breathing space for arrows */
}

.slider-track {
    display: flex;
    transition: transform 0.6s ease-in-out;
}

/* Video Card */
.popular-video {
    flex: 0 0 calc(100% / 3 - 1rem);
    aspect-ratio: 9 / 16;
    margin: 0 0.5rem;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    background: #111;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.popular-video:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}

.popular-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    z-index: 0;
}

/* Overlay content */
.popular-video-content {
    position: relative;
    z-index: 2;
    padding: 0.75rem 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

/* Download button */
.popular-video-action {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 3;
}
.popular-video-action .icon-button {
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 0.45rem;
    border-radius: 50%;
    transition: background 0.2s ease, transform 0.2s;
}
.popular-video-action .icon-button:hover {
    background: var(--clr-blue);
    transform: scale(1.1);
}

/* Navigation Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    border-radius: 50%;
    z-index: 5;
    transition: background 0.3s, transform 0.2s;
}
.slider-btn:hover {
    background: var(--clr-blue);
    transform: scale(1.1);
}
.slider-btn.prev { left: 0; }
.slider-btn.next { right: 0; }

/* Responsive */
@media screen and (max-width: 992px) {
    .popular-video {
        flex: 0 0 calc(100% / 2 - 1rem);
    }
}
@media screen and (max-width: 600px) {
    .popular-video {
        flex: 0 0 100%;
    }
    .popular-videos-slider {
        padding: 0 1rem;
    }
}


/** - TOS SECTION - */
.article-section {
    margin-top: 4rem;
    margin-bottom: 4rem;
    --container-width: 1180px;
}

.article-section h1 {
    margin-bottom: 3.5rem;
    font-size: 2.25rem;
    line-height: 1;
    text-align: center;
    font-weight: 700;
}

.article-section * {
    font-size: 1.125rem;
    line-height: 1.3;
    color: var(--clr-text);
}

.article-section p,
.article-section ol,
.article-section ul {
    margin-bottom: 1.25rem;
}

.article-section h2 {
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.article-section ul,
.article-section ol {
    list-style-position: outside;
    padding-left: 1.5rem;
}

.article-section ul li,
.article-section ol li {
    margin-bottom: 0.875rem;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    padding: 4rem 1.5rem;
    background: var(--clr-bg);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-section .section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--clr-text);
    margin-bottom: 0.5rem;
}

.faq-section .section-subtitle {
    font-size: 1.125rem;
    color: var(--clr-text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* ===== FAQ ITEM ===== */
.faq-item {
    border-top: 1px solid rgba(66, 133, 244, 0.1);
}

.faq-item:first-child {
    border-top: none;
}

/* ===== FAQ QUESTION ===== */
.faq-question {
    all: unset;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--clr-blue-dark);
    padding: 1rem 0;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--clr-blue);
}

.faq-toggle {
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

/* ===== FAQ ANSWER ===== */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    font-size: 1rem;
    color: var(--clr-text-muted);
    line-height: 1.6;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

/* Active FAQ */
.faq-item.active .faq-answer {
    max-height: 1000px; /* large enough to expand content */
    padding-top: 0.5rem;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .faq-question {
        font-size: 1rem;
    }

    .faq-toggle {
        font-size: 1.1rem;
    }

    .faq-answer {
        font-size: 0.95rem;
    }
}



/** -- UTIL CLASSES -- */

[x-cloak] {
    display: none !important;
}

[dir="ltr"] .mi-start {
    margin-left: var(--mi-start);
}

[dir="rtl"] .mi-start {
    margin-right: var(--mi-start);
}

[dir="ltr"] .mi-end {
    margin-right: var(--mi-end);
}

[dir="rtl"] .mi-end {
    margin-left: var(--mi-end);
}

[dir="ltr"] .pi {
    padding-left: var(--pi-start, var(--pi));
    padding-right: var(--pi-end, var(--pi));
}

[dir="rtl"] .pi {
    padding-right: var(--pi-start, var(--pi));
    padding-left: var(--pi-end, var(--pi));
}

[dir="ltr"] .pi-start {
    padding-left: var(--pi-start);
}

[dir="rtl"] .pi-start {
    padding-right: var(--pi-start);
}

[dir="ltr"] .pi-end {
    padding-right: var(--pi-end);
}

[dir="rtl"] .pi-end {
    padding-left: var(--pi-end);
}

[dir="ltr"] .inset-i-start,
[dir="ltr"] .inset-i-start::before {
    left: var(--inset-i-start);
}

[dir="rtl"] .inset-i-start,
[dir="rtl"] .inset-i-start::before {
    right: var(--inset-i-start);
}

[dir="ltr"] .inset-i-end {
    right: var(--inset-i-end);
}

[dir="rtl"] .inset-i-end {
    left: var(--inset-i-end);
}
