/* ============================================
   APEX MARKET — CASE STUDY SYSTEM
   Premium Fintech SaaS Styling
   ============================================ */

/* ── ROOT VARIABLES ── */
:root {
    --apex-bg: #E9ECEF;
    --apex-card: rgba(255,255,255,0.7);
    --apex-card-solid: #FFFFFF;
    --apex-card-hover: rgba(255,255,255,0.9);
    --apex-yellow: #FFCD57;
    --apex-yellow-dim: rgba(255,205,87,0.15);
    --apex-yellow-glow: rgba(255,205,87,0.3);
    --apex-white: #131313;
    --apex-gray: #4E4E4E;
    --apex-gray-light: #9b8f7c;
    --apex-border: rgba(0,0,0,0.05);
    --apex-border-card: rgba(0,0,0,0.05);
    --apex-border-hover: rgba(255,205,87,0.5);
    --apex-green: #00C087;
    --apex-red: #FF3B3B;
    --apex-radius: 12px;
    --apex-radius-sm: 8px;
    --apex-radius-xs: 4px;
    --apex-font: 'Inter', 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
    --apex-font-headline: 'Sora', 'Inter', sans-serif;
    --apex-transition: 0.35s cubic-bezier(0.4,0,0.2,1);
    --apex-glass: rgba(255,255,255,0.7);
    --apex-blur: blur(20px);
    --apex-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --apex-shadow-hover: 0 10px 25px -5px rgba(255,205,87,0.2);
}

/* ── RESET / BASE ── */
.apex-cs-section, .apex-archive-page, .apex-single-page {
    font-family: var(--apex-font);
    color: var(--apex-white);
    background: var(--apex-bg);
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}
.apex-cs-section *, .apex-archive-page *, .apex-single-page * {
    box-sizing: border-box;
    margin: 0; padding: 0;
}

/* ── BREAKOUT TO FULL WIDTH (Overrides Theme Containers) ── */
html:has(.apex-archive-page),
html:has(.apex-single-page) {
    overflow-x: hidden !important;
}
.apex-archive-page, .apex-single-page {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    max-width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow-x: hidden !important;
}

/* ── CONTAINER ── */
.apex-cs-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* ── BG GRID PATTERN ── */
.apex-cs-section__bg-grid,
.apex-archive-page__bg-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0; pointer-events: none;
}

/* ── GLOW EFFECTS ── */
.apex-cs-section__glow {
    position: absolute; width: 500px; height: 500px;
    border-radius: 50%; filter: blur(150px); opacity: 0.12;
    pointer-events: none; z-index: 0;
}
.apex-cs-section__glow--left { top: -100px; left: -100px; background: var(--apex-yellow); }
.apex-cs-section__glow--right { bottom: -100px; right: -100px; background: var(--apex-yellow); }

/* ── LIVE DOT ── */
.apex-live-dot {
    display: inline-block; width: 8px; height: 8px;
    background: var(--apex-green); border-radius: 50%;
    margin-right: 6px; animation: apexPulse 1.5s ease-in-out infinite;
}
@keyframes apexPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,230,118,0.5); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(0,230,118,0); }
}

/* ============================================
   HOMEPAGE SECTION
   ============================================ */
.apex-cs-section {
    position: relative; padding: 100px 0 80px; overflow: hidden;
}

/* ── HEADER ── */
.apex-cs-header { text-align: center; margin-bottom: 60px; }
.apex-cs-header__badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,212,0,0.08); border: 1px solid rgba(255,212,0,0.2);
    padding: 8px 20px; border-radius: 50px; font-size: 12px;
    font-weight: 700; letter-spacing: 2px; color: var(--apex-yellow);
    text-transform: uppercase; margin-bottom: 24px;
}
.apex-cs-header__title {
    font-family: var(--apex-font-headline);
    font-size: clamp(32px, 5vw, 56px); font-weight: 800;
    line-height: 1.15; margin-bottom: 20px; letter-spacing: -1px;
}
.apex-cs-header__accent {
    background: linear-gradient(135deg, var(--apex-yellow), #FFA000);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.apex-cs-header__subtitle {
    font-size: 17px; color: var(--apex-gray); max-width: 680px;
    margin: 0 auto; line-height: 1.7;
}

/* ── CAROUSEL CARD ── */
.apex-cs-card {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    background: var(--apex-glass); backdrop-filter: var(--apex-blur);
    -webkit-backdrop-filter: var(--apex-blur);
    border-radius: var(--apex-radius); border: 1px solid var(--apex-border-card);
    border-top-color: var(--apex-yellow-glow); border-left-color: var(--apex-yellow-glow);
    box-shadow: var(--apex-shadow); color: var(--apex-white);
    overflow: hidden; transition: var(--apex-transition); min-height: 480px;
}
.apex-cs-card:hover {
    border-color: var(--apex-border-hover);
    background: var(--apex-card-hover);
    box-shadow: var(--apex-shadow-hover);
    transform: translateY(-4px);
}

/* LEFT */
.apex-cs-card__left {
    padding: 48px 40px; display: flex; flex-direction: column; justify-content: center;
}
.apex-cs-card__top-bar {
    display: flex; align-items: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap;
}
.apex-cs-card__industry {
    background: var(--apex-yellow-dim); color: var(--apex-yellow);
    padding: 5px 14px; border-radius: 50px; font-size: 11px;
    font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
}
.apex-cs-card__status {
    display: inline-flex; align-items: center;
    padding: 5px 14px; border-radius: 50px; font-size: 11px;
    font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
}
.apex-cs-card__status--active { background: rgba(0,230,118,0.1); color: var(--apex-green); }
.apex-cs-card__status--completed { background: rgba(100,181,246,0.1); color: #64B5F6; }
.apex-cs-card__status--paused { background: rgba(255,82,82,0.1); color: var(--apex-red); }

.apex-cs-card__brand {
    font-size: 32px; font-weight: 800; line-height: 1.2;
    margin-bottom: 12px; letter-spacing: -0.5px;
}
.apex-cs-card__goal {
    font-size: 15px; color: var(--apex-gray); line-height: 1.6; margin-bottom: 28px;
}

/* METRIC CARDS */
.apex-cs-card__metrics {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 32px;
}
.apex-metric-card {
    display: flex; align-items: center; gap: 12px;
    background: rgba(0,0,0,0.02); border: 1px solid var(--apex-border);
    padding: 14px 16px; border-radius: var(--apex-radius-sm);
    transition: var(--apex-transition);
}
.apex-metric-card:hover {
    border-color: var(--apex-border-hover);
    background: rgba(255,212,0,0.04);
    box-shadow: 0 0 20px rgba(255,212,0,0.05);
}
.apex-metric-card__icon {
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    background: var(--apex-yellow-dim); border-radius: var(--apex-radius-xs); flex-shrink: 0;
}
.apex-metric-card__value {
    display: block; font-size: 18px; font-weight: 800; color: var(--apex-white);
}
.apex-metric-card__label {
    display: block; font-size: 11px; color: var(--apex-gray);
    text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px;
}

/* CTA BUTTON */
.apex-cs-card__cta {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--apex-yellow); color: #000; padding: 14px 32px;
    border-radius: var(--apex-radius-sm); font-weight: 700; font-size: 14px;
    text-decoration: none; transition: var(--apex-transition);
    align-self: flex-start; letter-spacing: 0.3px;
}
.apex-cs-card__cta:hover {
    background: #FFC107; transform: translateX(4px);
    box-shadow: 0 0 30px rgba(255,212,0,0.3);
}

/* RIGHT — GRAPH */
.apex-cs-card__right {
    background: rgba(0,0,0,0.02); padding: 40px; display: flex;
    flex-direction: column; justify-content: center; align-items: center;
    position: relative; border-left: 1px solid var(--apex-border);
}
.apex-cs-card__highlight-badge {
    position: absolute; top: 24px; right: 24px;
    background: linear-gradient(135deg, var(--apex-yellow), #FFA000);
    color: #000; padding: 8px 20px; border-radius: 50px;
    font-size: 13px; font-weight: 800; letter-spacing: 0.3px;
    box-shadow: 0 4px 20px rgba(255,212,0,0.3);
    animation: apexBadgeFloat 3s ease-in-out infinite;
}
@keyframes apexBadgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.apex-cs-card__graph-area {
    width: 100%; max-width: 480px; position: relative;
}
.apex-cs-card__graph-area canvas { width: 100% !important; height: auto !important; }
.apex-cs-card__graph-img {
    width: 100%; border-radius: var(--apex-radius-sm);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.apex-cs-card__growth-badge {
    display: flex; align-items: center; gap: 8px; margin-top: 20px;
    background: rgba(255,212,0,0.08); border: 1px solid rgba(255,212,0,0.15);
    padding: 8px 18px; border-radius: 50px; font-size: 13px;
    font-weight: 700; color: var(--apex-yellow);
}

/* ── SWIPER NAV ── */
.apex-cs-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    height: 150px;
}

.apex-cs-nav-btn-ctn{
    display: flex; align-items: top;
    column-gap: 20px;
}

.apex-cs-nav__btn {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--apex-card-solid); border: 1px solid var(--apex-border);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: var(--apex-transition); 
}
.apex-cs-nav__btn:hover {
    border-color: var(--apex-yellow); background: var(--apex-yellow-dim);
    box-shadow: 0 0 20px rgba(255,212,0,0.15);
}
.apex-cs-pagination .swiper-pagination-bullet {
    width: 10px; height: 10px; background: var(--apex-gray-light);
    opacity: 1; transition: var(--apex-transition);
}
.apex-cs-pagination .swiper-pagination-bullet-active {
    background: var(--apex-yellow); width: 32px; border-radius: 5px;
    box-shadow: 0 0 12px rgba(255,212,0,0.4);
}
.apex-cs-empty { text-align: center; padding: 80px 20px; color: var(--apex-gray); }

/* ============================================
   ARCHIVE PAGE
   ============================================ */
.apex-archive-page {
    position: relative; min-height: 100vh;
    background: var(--apex-bg); overflow: hidden;
}

/* HERO */
.apex-archive-hero {
    position: relative; padding: 100px 0 60px; text-align: center;
}
.apex-archive-hero__glow {
    position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
    width: 600px; height: 400px; background: var(--apex-yellow);
    border-radius: 50%; filter: blur(200px); opacity: 0.08; pointer-events: none;
}
.apex-archive-hero__badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,212,0,0.08); border: 1px solid rgba(255,212,0,0.2);
    padding: 8px 20px; border-radius: 50px; font-size: 12px;
    font-weight: 700; letter-spacing: 2px; color: var(--apex-yellow);
    text-transform: uppercase; margin-bottom: 24px;
}
.apex-archive-hero__title {
    font-family: var(--apex-font-headline);
    font-size: clamp(32px, 5vw, 52px); font-weight: 800;
    line-height: 1.15; margin-bottom: 20px;
}
.apex-archive-hero__desc {
    font-size: 17px; color: var(--apex-gray); max-width: 600px;
    margin: 0 auto; line-height: 1.7;
}

/* FILTERS */
.apex-archive-filters { padding: 0 0 40px; }
.apex-archive-filters__bar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; flex-wrap: wrap; background: #FFFFFF;
    border: 1px solid var(--apex-border); color: var(--apex-white); border-radius: var(--apex-radius);
    padding: 16px 24px;
}
.apex-archive-filters__cats {
    display: flex; gap: 8px; flex-wrap: wrap;
}
.apex-filter-btn {
    background: transparent; border: 1px solid var(--apex-border);
    color: var(--apex-gray); padding: 8px 20px; border-radius: 50px;
    font-size: 13px; font-weight: 600; cursor: pointer;
    transition: var(--apex-transition); font-family: var(--apex-font);
}
.apex-filter-btn:hover, .apex-filter-btn--active {
    background: var(--apex-yellow); color: #000;
    border-color: var(--apex-yellow);
}
.apex-archive-filters__search {
    display: flex; align-items: center; gap: 10px;
    background: rgba(0,0,0,0.04); border: 1px solid var(--apex-border);
    border-radius: var(--apex-radius-sm); padding: 0 16px;
}
.apex-archive-filters__search input {
    background: none; border: none; color: var(--apex-white);
    font-size: 14px; padding: 10px 0; outline: none;
    font-family: var(--apex-font); width: 200px;
}
.apex-archive-filters__search input::placeholder { color: var(--apex-gray); }

/* GRID */
.apex-archive-grid-section { padding: 0 0 80px; }
.apex-archive-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px; width: 100%; max-width: 100%;
}

/* ARCHIVE CARD */
.apex-archive-card__inner {
    background: var(--apex-glass); backdrop-filter: var(--apex-blur);
    -webkit-backdrop-filter: var(--apex-blur);
    border: 1px solid var(--apex-border-card); border-top-color: var(--apex-yellow-glow);
    border-left-color: var(--apex-yellow-glow); box-shadow: var(--apex-shadow);
    color: var(--apex-white); border-radius: var(--apex-radius); padding: 28px;
    height: 100%; display: flex; flex-direction: column; transition: var(--apex-transition);
}
.apex-archive-card__inner:hover {
    border-color: var(--apex-border-hover); transform: translateY(-6px);
    background: var(--apex-card-hover); box-shadow: var(--apex-shadow-hover);
}
.apex-archive-card__header {
    display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
}
.apex-archive-card__logo {
    width: 48px; height: 48px; border-radius: var(--apex-radius-xs);
    overflow: hidden; flex-shrink: 0; background: var(--apex-gray-light);
}
.apex-archive-card__logo img { width: 100%; height: 100%; object-fit: cover; }
.apex-archive-card__logo--placeholder {
    display: flex; align-items: center; justify-content: center;
    background: var(--apex-yellow-dim); color: var(--apex-yellow);
    font-weight: 800; font-size: 16px;
}
.apex-archive-card__meta { flex: 1; min-width: 0; }
.apex-archive-card__brand {
    font-size: 18px; font-weight: 700; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}
.apex-archive-card__industry {
    font-size: 11px; color: var(--apex-yellow); font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.apex-archive-card__status {
    display: inline-flex; align-items: center; padding: 4px 12px;
    border-radius: 50px; font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px; flex-shrink: 0;
}
.apex-archive-card__status--active { background: rgba(0,230,118,0.1); color: var(--apex-green); }
.apex-archive-card__status--completed { background: rgba(100,181,246,0.1); color: #64B5F6; }
.apex-archive-card__status--paused { background: rgba(255,82,82,0.1); color: var(--apex-red); }

/* METRICS */
.apex-archive-card__metrics {
    display: flex; gap: 16px; margin-bottom: 16px;
}
.apex-archive-card__metric { text-align: center; flex: 1; }
.apex-archive-card__metric-value {
    display: block; font-size: 16px; font-weight: 800; color: var(--apex-white);
}
.apex-archive-card__metric-label {
    display: block; font-size: 10px; color: var(--apex-gray);
    text-transform: uppercase; margin-top: 2px;
}

/* CHART */
.apex-archive-card__chart-wrap {
    background: rgba(0,0,0,0.04); border-radius: var(--apex-radius-sm);
    padding: 12px; margin-bottom: 16px; flex: 1;
    display: flex; align-items: center; justify-content: center;
    min-height: 80px;
}
.apex-archive-card__chart-wrap img {
    width: 100%; border-radius: var(--apex-radius-xs);
}
.apex-archive-card__chart-wrap canvas { width: 100% !important; height: auto !important; }

/* FOOTER */
.apex-archive-card__footer {
    display: flex; align-items: center; justify-content: space-between;
}
.apex-archive-card__growth {
    display: flex; align-items: center; gap: 6px;
    font-size: 14px; font-weight: 700; color: var(--apex-yellow);
}
.apex-archive-card__cta {
    color: var(--apex-yellow); font-size: 13px; font-weight: 700;
    text-decoration: none; transition: var(--apex-transition);
    display: flex; align-items: center; gap: 4px;
}
.apex-archive-card__cta:hover { text-decoration: underline; }
.apex-archive-empty {
    grid-column: 1 / -1; text-align: center;
    padding: 80px 20px; color: var(--apex-gray);
}

/* PAGINATION */
.apex-archive-pagination { margin-top: 48px; text-align: center; }
.apex-archive-pagination .nav-links {
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.apex-archive-pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: var(--apex-radius-xs);
    background: var(--apex-card-solid); border: 1px solid var(--apex-border);
    color: var(--apex-gray); text-decoration: none; font-weight: 600;
    transition: var(--apex-transition);
}
.apex-archive-pagination .page-numbers.current,
.apex-archive-pagination .page-numbers:hover {
    background: var(--apex-yellow); color: #000; border-color: var(--apex-yellow);
}

/* ============================================
   SINGLE CASE STUDY PAGE
   ============================================ */
.apex-single-page { position: relative; background: var(--apex-bg); overflow: hidden; }

/* HERO */
.apex-single-hero { position: relative; padding: 80px 0 60px; }
.apex-single-hero__glow {
    position: absolute; top: -150px; left: 50%; transform: translateX(-50%);
    width: 600px; height: 400px; background: var(--apex-yellow);
    border-radius: 50%; filter: blur(200px); opacity: 0.06; pointer-events: none;
}
.apex-single-hero__breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--apex-gray); margin-bottom: 32px;
}
.apex-single-hero__breadcrumb a {
    color: var(--apex-yellow); text-decoration: none; font-weight: 600;
}
.apex-single-hero__content {
    display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.apex-single-hero__badges { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.apex-single-hero__title {
    font-family: var(--apex-font-headline);
    font-size: clamp(36px, 5vw, 60px); font-weight: 900;
    line-height: 1.1; letter-spacing: -1px; margin-bottom: 16px;
}
.apex-single-hero__highlight {
    display: inline-block; background: linear-gradient(135deg, var(--apex-yellow), #FFA000);
    color: #000; padding: 10px 28px; border-radius: 50px;
    font-size: 16px; font-weight: 800;
    box-shadow: 0 4px 30px rgba(255,212,0,0.3);
}
.apex-single-hero__logo-wrap {
    width: 140px; height: 140px; border-radius: var(--apex-radius);
    overflow: hidden; flex-shrink: 0; border: 2px solid var(--apex-border);
    background: var(--apex-card);
}
.apex-single-hero__logo { width: 100%; height: 100%; object-fit: cover; }

/* SECTIONS */
.apex-single-section { padding: 60px 0; }
.apex-single-section__title {
    font-family: var(--apex-font-headline);
    font-size: clamp(28px, 4vw, 42px); font-weight: 800;
    text-align: center; margin-bottom: 48px; letter-spacing: -0.5px;
}

/* TWO COL */
.apex-single-two-col {
    display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
}

/* BLOCKS */
.apex-single-block {
    background: var(--apex-glass); backdrop-filter: var(--apex-blur);
    -webkit-backdrop-filter: var(--apex-blur);
    border: 1px solid var(--apex-border-card); border-top-color: var(--apex-yellow-glow);
    border-left-color: var(--apex-yellow-glow); box-shadow: var(--apex-shadow);
    color: var(--apex-white); border-radius: var(--apex-radius); padding: 36px;
}
.apex-single-block--full { grid-column: 1 / -1; }
.apex-single-block--accent { border-color: rgba(255,212,0,0.15); }
.apex-single-block--results {
    border-color: rgba(255,205,87,0.2);
    background: linear-gradient(135deg, var(--apex-glass), rgba(255,205,87,0.08));
}
.apex-single-block__label {
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; font-weight: 700; color: var(--apex-yellow);
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px;
}
.apex-single-block__content {
    font-size: 16px; color: var(--apex-gray); line-height: 1.8;
}
.apex-single-block__content p { margin-bottom: 16px; }
.apex-single-block__content ul,
.apex-single-block__content ol { padding-left: 20px; margin-bottom: 16px; }

/* METRICS DASHBOARD */
.apex-single-metrics__grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.apex-single-metric-card {
    background: var(--apex-glass); backdrop-filter: var(--apex-blur);
    -webkit-backdrop-filter: var(--apex-blur);
    border: 1px solid var(--apex-border-card); border-top-color: var(--apex-yellow-glow);
    border-left-color: var(--apex-yellow-glow); box-shadow: var(--apex-shadow);
    color: var(--apex-white); border-radius: var(--apex-radius); padding: 32px 24px;
    text-align: center; position: relative; overflow: hidden;
    transition: var(--apex-transition);
    animation: apexFadeUp 0.6s ease forwards;
    opacity: 0; transform: translateY(20px);
}
@keyframes apexFadeUp {
    to { opacity: 1; transform: translateY(0); }
}
.apex-single-metric-card:hover {
    border-color: var(--apex-border-hover); transform: translateY(-4px);
    box-shadow: 0 0 40px rgba(255,212,0,0.08);
}
.apex-single-metric-card__icon { margin-bottom: 16px; }
.apex-single-metric-card__value {
    font-family: var(--apex-font-headline);
    font-size: 36px; font-weight: 900; color: var(--apex-white);
    margin-bottom: 8px;
    text-shadow: 0 0 15px rgba(255,205,87,0.3);
}
.apex-single-metric-card__label {
    font-size: 12px; color: var(--apex-gray);
    text-transform: uppercase; letter-spacing: 1px;
}
.apex-single-metric-card__glow {
    position: absolute; bottom: -40px; left: 50%; transform: translateX(-50%);
    width: 120px; height: 60px; background: var(--apex-yellow);
    border-radius: 50%; filter: blur(40px); opacity: 0;
    transition: var(--apex-transition);
}
.apex-single-metric-card:hover .apex-single-metric-card__glow { opacity: 0.15; }

/* GRAPH CARDS */
.apex-single-graphs__grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.apex-single-graph-card {
    background: var(--apex-glass); backdrop-filter: var(--apex-blur);
    -webkit-backdrop-filter: var(--apex-blur);
    border: 1px solid var(--apex-border-card); border-top-color: var(--apex-yellow-glow);
    border-left-color: var(--apex-yellow-glow); box-shadow: var(--apex-shadow);
    color: var(--apex-white); border-radius: var(--apex-radius); padding: 28px; overflow: hidden;
}
.apex-single-graph-card--full { grid-column: 1 / -1; }
.apex-single-graph-card__header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px;
}
.apex-single-graph-card__header h4 { font-size: 16px; font-weight: 700; }
.apex-single-graph-card__badge {
    background: var(--apex-yellow-dim); color: var(--apex-yellow);
    padding: 4px 12px; border-radius: 50px; font-size: 11px; font-weight: 700;
}
.apex-single-graph-card canvas { width: 100% !important; height: auto !important; }
.apex-single-graph-card__img { width: 100%; border-radius: var(--apex-radius-sm); }

/* RESULTS HIGHLIGHT */
.apex-single-results__highlight {
    display: inline-block; margin-top: 24px;
    background: linear-gradient(135deg, var(--apex-yellow), #FFA000);
    color: #000; padding: 12px 28px; border-radius: 50px;
    font-size: 18px; font-weight: 800;
    box-shadow: 0 4px 30px rgba(255,212,0,0.3);
}

/* CTA SECTION */
.apex-single-cta-section { padding: 80px 0 100px; }
.apex-single-cta-card {
    background: var(--apex-glass); backdrop-filter: var(--apex-blur);
    -webkit-backdrop-filter: var(--apex-blur);
    border: 1px solid var(--apex-border-card); border-top-color: var(--apex-yellow-glow);
    border-left-color: var(--apex-yellow-glow); box-shadow: var(--apex-shadow);
    color: var(--apex-white); border-radius: var(--apex-radius); padding: 80px 60px;
    text-align: center; position: relative; overflow: hidden;
}
.apex-single-cta-card__glow {
    position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
    width: 400px; height: 200px; background: var(--apex-yellow);
    border-radius: 50%; filter: blur(120px); opacity: 0.1;
}
.apex-single-cta-card__title {
    font-family: var(--apex-font-headline);
    font-size: clamp(28px, 4vw, 40px); font-weight: 800;
    margin-bottom: 16px; position: relative;
}
.apex-single-cta-card__desc {
    font-size: 17px; color: var(--apex-gray); max-width: 500px;
    margin: 0 auto 36px; line-height: 1.7; position: relative;
}
.apex-single-cta-card__actions {
    display: flex; gap: 16px; justify-content: center;
    flex-wrap: wrap; position: relative;
}
.apex-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 16px 36px; border-radius: var(--apex-radius-sm);
    font-size: 15px; font-weight: 700; text-decoration: none;
    transition: var(--apex-transition); cursor: pointer; border: none;
    font-family: var(--apex-font);
}
.apex-btn--primary {
    background: var(--apex-yellow); color: #000;
}
.apex-btn--primary:hover {
    background: #FFC107; box-shadow: 0 0 40px rgba(255,212,0,0.3);
    transform: translateY(-2px);
}
.apex-btn--outline {
    background: transparent; color: var(--apex-white);
    border: 1px solid var(--apex-border);
}
.apex-btn--outline:hover {
    border-color: var(--apex-yellow); color: var(--apex-yellow);
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* -- TABLET LANDSCAPE (<=1024px) -- */
@media (max-width: 1024px) {
    .apex-cs-card { grid-template-columns: 1fr; min-height: auto; }
    .apex-cs-card__right { border-left: none; border-top: 1px solid var(--apex-border); }
    .apex-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .apex-single-two-col { grid-template-columns: 1fr; }
    .apex-single-graphs__grid { grid-template-columns: 1fr; }
    .apex-single-hero__content { flex-direction: column; text-align: center; }
    .apex-single-hero__badges { justify-content: center; }
    .apex-single-hero__highlight { margin: 0 auto; }
    .apex-cs-container { max-width: 100%; }
    .apex-archive-hero { padding: 80px 0 50px; }
    .apex-single-cta-card { padding: 60px 40px; }
}

/* -- TABLET PORTRAIT (<=768px) -- */
@media (max-width: 768px) {
    .apex-cs-section { padding: 60px 0 40px; }
    .apex-cs-header { margin-bottom: 40px; }
    .apex-cs-header__title { font-size: 32px; }
    .apex-cs-header__subtitle { font-size: 15px; }
    .apex-cs-card__left { padding: 28px 24px; }
    .apex-cs-card__right { padding: 24px; }
    .apex-cs-card__brand { font-size: 24px; }
    .apex-cs-card__goal { font-size: 14px; }
    .apex-cs-card__metrics { grid-template-columns: 1fr; }
    .apex-cs-card__graph-area { max-width: 100%; }
    .apex-cs-nav { gap: 16px; margin-top: 32px; }
    .apex-cs-nav__btn { width: 40px; height: 40px; }
    .apex-archive-grid { grid-template-columns: 1fr; }
    .apex-archive-hero { padding: 60px 0 40px; }
    .apex-archive-hero__title { font-size: 32px; }
    .apex-archive-hero__desc { font-size: 15px; }
    .apex-archive-filters__bar { flex-direction: column; align-items: stretch; gap: 12px; }
    .apex-archive-filters__cats { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
    .apex-archive-filters__search { width: 100%; }
    .apex-archive-filters__search input { width: 100%; }
    .apex-archive-card__inner { padding: 20px; }
    .apex-archive-card__brand { font-size: 16px; }
    .apex-archive-pagination .page-numbers { width: 36px; height: 36px; font-size: 13px; }
    .apex-single-hero { padding: 60px 0 40px; }
    .apex-single-hero__title { font-size: 32px; }
    .apex-single-hero__logo-wrap { width: 100px; height: 100px; }
    .apex-single-section { padding: 40px 0; }
    .apex-single-section__title { font-size: 28px; margin-bottom: 32px; }
    .apex-single-block { padding: 24px; }
    .apex-single-block__content { font-size: 15px; }
    .apex-single-metric-card { padding: 24px 16px; }
    .apex-single-metric-card__value { font-size: 28px; }
    .apex-single-metrics__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .apex-single-graph-card { padding: 20px; }
    .apex-single-graph-card__header h4 { font-size: 14px; }
    .apex-single-cta-card { padding: 48px 24px; }
    .apex-single-cta-card__title { font-size: 28px; }
    .apex-single-cta-card__desc { font-size: 15px; }
    .apex-single-results__highlight { font-size: 15px; padding: 10px 20px; }
}

/* -- MOBILE (<=480px) -- */
@media (max-width: 480px) {
    .apex-cs-container { padding: 0 16px; }
    .apex-cs-header__title { font-size: 26px; }
    .apex-cs-header__subtitle { font-size: 14px; }
    .apex-cs-header__badge { font-size: 10px; padding: 6px 14px; }
    .apex-cs-card__left { padding: 20px 16px; }
    .apex-cs-card__right { padding: 16px; }
    .apex-cs-card__brand { font-size: 22px; }
    .apex-cs-card__top-bar { gap: 6px; }
    .apex-cs-card__industry, .apex-cs-card__status { font-size: 10px; padding: 4px 10px; }
    .apex-metric-card { padding: 10px 12px; gap: 8px; }
    .apex-metric-card__icon { width: 32px; height: 32px; }
    .apex-metric-card__value { font-size: 15px; }
    .apex-metric-card__label { font-size: 10px; }
    .apex-cs-card__cta { width: 100%; justify-content: center; padding: 12px 24px; }
    .apex-cs-card__highlight-badge { font-size: 11px; padding: 6px 14px; top: 12px; right: 12px; }
    .apex-cs-card__growth-badge { font-size: 12px; padding: 6px 12px; }
    .apex-archive-hero { padding: 48px 0 32px; }
    .apex-archive-hero__title { font-size: 26px; }
    .apex-archive-hero__desc { font-size: 14px; }
    .apex-archive-hero__badge { font-size: 10px; padding: 6px 14px; }
    .apex-archive-filters { padding: 0 0 24px; }
    .apex-filter-btn { font-size: 12px; padding: 6px 14px; white-space: nowrap; }
    .apex-archive-card__inner { padding: 16px; }
    .apex-archive-card__logo { width: 40px; height: 40px; }
    .apex-archive-card__brand { font-size: 15px; }
    .apex-archive-card__metrics { flex-direction: column; gap: 8px; }
    .apex-archive-card__metric-value { font-size: 14px; }
    .apex-archive-card__chart-wrap { min-height: 60px; padding: 8px; }
    .apex-archive-card__growth { font-size: 12px; }
    .apex-archive-card__cta { font-size: 12px; }
    .apex-archive-grid-section { padding: 0 0 48px; }
    .apex-archive-pagination { margin-top: 32px; }
    .apex-archive-pagination .page-numbers { width: 32px; height: 32px; font-size: 12px; }
    .apex-single-hero { padding: 48px 0 32px; }
    .apex-single-hero__title { font-size: 28px; }
    .apex-single-hero__breadcrumb { font-size: 12px; margin-bottom: 20px; }
    .apex-single-hero__highlight { font-size: 13px; padding: 8px 20px; }
    .apex-single-hero__logo-wrap { width: 80px; height: 80px; }
    .apex-single-section { padding: 32px 0; }
    .apex-single-section__title { font-size: 24px; margin-bottom: 24px; }
    .apex-single-block { padding: 20px; }
    .apex-single-block__label { font-size: 12px; }
    .apex-single-block__content { font-size: 14px; }
    .apex-single-metrics__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .apex-single-metric-card { padding: 20px 12px; }
    .apex-single-metric-card__value { font-size: 24px; }
    .apex-single-metric-card__label { font-size: 10px; }
    .apex-single-graph-card { padding: 16px; }
    .apex-single-graph-card__header h4 { font-size: 13px; }
    .apex-single-graph-card__badge { font-size: 10px; padding: 3px 8px; }
    .apex-single-cta-section { padding: 48px 0 60px; }
    .apex-single-cta-card { padding: 36px 20px; }
    .apex-single-cta-card__title { font-size: 24px; }
    .apex-single-cta-card__desc { font-size: 14px; margin-bottom: 24px; }
    .apex-single-cta-card__actions { flex-direction: column; }
    .apex-btn { width: 100%; justify-content: center; padding: 14px 24px; font-size: 14px; }
    .apex-single-results__highlight { font-size: 14px; padding: 8px 18px; }
}

/* -- SMALL MOBILE (<=360px) -- */
@media (max-width: 360px) {
    .apex-cs-container { padding: 0 12px; }
    .apex-cs-header__title { font-size: 22px; }
    .apex-cs-card__brand { font-size: 20px; }
    .apex-cs-card__left { padding: 16px 12px; }
    .apex-cs-card__right { padding: 12px; }
    .apex-archive-hero__title { font-size: 22px; }
    .apex-single-hero__title { font-size: 24px; }
    .apex-single-section__title { font-size: 20px; }
    .apex-single-metrics__grid { grid-template-columns: 1fr; }
    .apex-single-metric-card__value { font-size: 22px; }
    .apex-single-block { padding: 16px; }
    .apex-single-cta-card { padding: 28px 16px; }
    .apex-single-cta-card__title { font-size: 20px; }
}
