/* ========================= */
/* LIGHT THEME OVERRIDES */

/* THEME TOGGLE */
/* ========================= */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.theme-toggle span {
    position: absolute;
    font-size: 1.1rem;
    transition: transform .3s ease, opacity .3s ease;
}

.theme-toggle .sun {
    opacity: 0;
    transform: scale(0);
}

[data-theme="light"] .theme-toggle .sun {
    opacity: 1;
    transform: scale(1);
}

[data-theme="light"] .theme-toggle .moon {
    opacity: 0;
    transform: scale(0);
}

.mobile-theme-toggle {
    margin-bottom: 20px;
}



/* --- VARIABLES & RESET --- */
:root {
    --nav-bg: rgba(11, 14, 20, 0.8);
    --bg-dark: #0B0E14;
    --bg-card: #151922;
    --primary: #3B82F6;
    /* Electric Blue */
    --accent: #8B5CF6;
    /* Violet */
    --success: #10B981;
    --text-main: #F1F5F9;
    --text-muted: #94A3B8;
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
    --glow: 0 0 80px -20px rgba(59, 130, 246, 0.5);
}


/* ========================= */
[data-theme="light"] {
    --bg-dark: #F8FAFC;
    --bg-card: #FFFFFF;
    --primary: #2563EB;
    --accent: #7C3AED;
    --success: #059669;
    --text-main: #0F172A;
    /* main text (black) */
    --text-muted: #475569;
    --border: rgba(0, 0, 0, 0.08);
    --glass: rgba(0, 0, 0, 0.04);

    /* Nav & Footer overrides */
    --nav-bg: rgba(255, 255, 255, 0.95);
    /* navbar light */
    --footer-heading: #0F172A;
    /* footer h5 black */
    --btn-secondary-text: #0F172A;
    /* secondary button text black */
}

/* ========================= */



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* --- UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    /* Default Desktop Padding */
    padding: 0 24px;
}

.gradient-text {
    background: linear-gradient(to right, #60A5FA, #A78BFA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
    background: var(--btn-secondary-bg);
    color: var(--btn-secondary-text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--btn-secondary-bg);
    color: var(--btn-secondary-text);
    border: 1px solid var(--border);
}

/* --- NAVIGATION --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

a:hover.logo{
    color:var(--text-main);
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--text-main);
}

/* The desktop button is here, but the mobile button is inside .mobile-menu */
.nav-desktop-btn {
    display: inline-flex;
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* --- MOBILE MENU & HAMBURGER STYLES --- */
.hamburger {
    display: none;
    /* Hidden by default on desktop */
    cursor: pointer;
    padding: 5px;
    font-size: 1.5rem;
    z-index: 1100;
}

.mobile-menu {
    display: none;
    /* Hide on desktop */
}

.nav-desktop-buttons {
    display: flex;
    gap: 16px;
}

.mobile-menu .nav-desktop-buttons {
    flex-direction: column;
    gap: 12px;
}

/* ========================================= */
/* 1. DESKTOP & TABLET VIEW (768px and up)   */
/* ========================================= */
@media (min-width: 768px) {

    /* Show links and buttons horizontally */
    .nav-links,
    .nav-content>.nav-desktop-buttons {
        display: flex !important;
        align-items: center;
    }

    /* Hide the hamburger and the mobile slide-out menu container */
    .hamburger,
    .mobile-menu {
        display: none !important;
    }
}

/* ========================================= */
/* 2. MOBILE VIEW (Below 768px)              */
/* ========================================= */
@media (max-width: 767px) {

    /* Hide the main horizontal nav items */
    .nav-links,
    .nav-content>.nav-desktop-buttons {
        display: none !important;
    }

    /* Show the hamburger icon */
    .hamburger {
        display: block !important;
    }

    /* Fix the Mobile Slide-out Panel */
    .mobile-menu {
        display: flex;
        /* Required for the slide-out logic */
        width: 85%;
        max-width: 300px;
        right: 0;
        overflow-y: auto;
        padding: 30px 20px;
    }

    /* Ensure links inside the mobile menu are visible and stacked */
    .mobile-menu .nav-links {
        display: flex !important;
        flex-direction: column;
        gap: 20px;
        margin-bottom: 30px;
    }

    /* Ensure buttons inside mobile menu are visible and stacked */
    .mobile-menu .nav-desktop-buttons {
        display: flex !important;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .mobile-menu .btn {
        width: 100%;
        justify-content: center;
        padding: 12px !important;
    }

    /* Container padding for mobile phones */
    .nav-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* --- HERO SECTION --- */
.hero {
    padding: 180px 0 100px;
    position: relative;
    text-align: center;
}

    /* Fix for horizontal scroll caused by perspective transform on UI preview */
    .hero > .container {
        overflow: hidden;
    }

    .hero::before {
        content: '';
        position: absolute;
        top: -10%;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        height: 600px;
        background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(11, 14, 20, 0) 70%);
        z-index: -1;
        filter: blur(60px);
    }

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}


/*.hero {
    padding: 180px 0 100px;
    position: relative;
    text-align: center;
}
 
.hero>.container {
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(11, 14, 20, 0) 70%);
    z-index: -1;
    filter: blur(60px);
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
}

.hero p {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}*/
/* end slider */

/* --- UI PREVIEW (The "Console") --- */
.ui-preview-wrapper {
    margin-top: 80px;
    perspective: 1000px;
}

.ui-preview {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    /* transform: rotateX(5deg); */
    transition: transform 0.5s ease;
}

.ui-preview:hover {
    transform: rotateX(0deg);
}

.ui-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 20px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red {
    background: #EF4444;
}

.dot.yellow {
    background: #F59E0B;
}

.dot.green {
    background: #10B981;
}

.ui-body {
    padding: 30px;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    text-align: left;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.stat-card small {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.stat-card .value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 5px;
}

.log-list {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.log-item {
    padding: 10px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
}

.log-item span.blocked {
    color: #EF4444;
}

.log-item span.ip {
    color: var(--text-muted);
}

/* --- LOGO STRIP --- */
.logos {
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.logos p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.logo-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    opacity: 0.5;
    filter: grayscale(100%);
}

/* --- FEATURES GRID --- */
.features {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 12px;
    transition: 0.3s;
}

.feature-card:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.03);
    transform: translateY(-5px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary);
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- COMPARISON TABLE --- */
.comparison {
    background: var(--bg-dark);
    padding: 100px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.table-container {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.comp-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
}

.comp-row:last-child {
    border-bottom: none;
}

.comp-head {
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.our-brand {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
}

.others {
    color: var(--text-muted);
    text-decoration: line-through;
}

.check {
    color: var(--success);
}

.cross {
    color: #EF4444;
}

/* --- CTA --- */
.cta {
    padding: 120px 0;
    text-align: center;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1) 0%, rgba(11, 14, 20, 0) 70%);
}

.cta h2 {
    font-size: 3.5rem;
    margin-bottom: 24px;
}

/* --- FOOTER --- */
footer {
    border-top: 1px solid var(--border);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand h4 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 300px;
}

.footer-col h5 {
    color: var(--text-main);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ========================================= */
/* --- RESPONSIVE ADJUSTMENTS: TABLET (1024px and down) --- */
/* ========================================= */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 4rem;
    }

    .nav-content {
        height: 70px;
    }

    .nav-desktop-btn {
        padding: 8px 16px !important;
        font-size: 0.8rem !important;
    }

    .nav-links a {
        font-size: 0.9rem;
        gap: 20px;
    }

    .features,
    .comparison,
    .cta,
    footer {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 60px;
        margin-top: 60px;
    }
}

/* ========================================= */
/* --- RESPONSIVE ADJUSTMENTS: MOBILE (640px and down) --- */
/* ========================================= */
@media (max-width: 640px) {

    /* **FIX**: MOVE HORIZONTAL PADDING TO SECTIONS, REMOVE FROM CONTAINER */
    .container {
        padding: 0;
        /* Remove container padding entirely on mobile */
        width: 100%;
        /* Ensure it uses 100% width, though usually default */
    }

    /* Apply padding directly to full-width sections/wrappers */
    .nav-content,
    .logos .container,
    .features .container,
    .comparison .table-container,
    .cta .container,
    footer .container {
        padding-left: 8px;
        padding-right: 8px;
    }

    /* Need to manually apply padding to nav-content since it's used instead of .container */
    .nav-content {
        padding-left: 8px;
        padding-right: 8px;
    }

    /* Also the logos container needs padding */
    .logos .container {
        padding-left: 8px;
        padding-right: 8px;
    }

    /* Also the table container needs padding */
    .table-container {
        padding: 20px 8px;
    }


    /* Navigation */
    .nav-content {
        height: 60px;
    }

    .logo {
        font-size: 1.3rem;
    }

    /* Hide desktop links and button */
    .nav-links,
    .nav-desktop-btn {
        display: none;
    }

    /* Show hamburger */
    .hamburger {
        display: block;
        order: 3;
        /* Push to the right */
    }

    /* Mobile Menu Styles (Slide-out) */
    .mobile-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 60px;
        right: 0;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-dark);
        border-left: 1px solid var(--border);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        padding: 30px;
        z-index: 999;
    }

    /* Class to show the menu */
    .mobile-menu.menu-open {
        transform: translateX(0);
    }

    .mobile-menu .nav-links {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-bottom: 30px;
    }

    .mobile-menu .nav-links a {
        color: var(--text-main);
        font-size: 1.1rem;
        padding: 5px 0;
    }

    .mobile-menu .btn-primary {
        width: 100%;
        justify-content: center;
        padding: 12px 20px !important;
        font-size: 1rem !important;
    }

    /* Hero */
    .hero {
        padding: 120px 0 60px;
    }

    .hero h1 {
        font-size: 4.5rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    /* Make buttons full width */

    /* UI Preview Fixes (Horizontal Scroll) */
    .ui-preview-wrapper {
        margin-top: 40px;
        perspective: none;
    }

    .ui-preview {
        transform: none;
    }

    .ui-preview:hover {
        transform: none;
    }

    /* UI Body */
    .ui-body {
        grid-template-columns: 1fr;
        /* Stack sidebar and main content */
        padding: 20px;
        gap: 20px;
    }

    .log-list {
        font-size: 0.8rem;
    }

    .log-item {
        padding: 8px 0;
    }

    /* Logos */
    .logos {
        padding: 40px 0;
    }

    .logo-grid {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }

    .logo-grid h3 {
        font-size: 1rem;
        min-width: 80px;
    }

    /* Features */
    .features {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .feature-card {
        padding: 30px;
    }

    /* Comparison */
    .comparison {
        padding: 60px 0;
    }

    /* table-container padding adjusted above in FIX block */
    .comp-row {
        grid-template-columns: 1fr 1fr 1fr;
        font-size: 0.85rem;
        padding: 15px 0;
    }

    /* CTA */
    .cta {
        padding: 80px 0;
    }

    .cta h2 {
        font-size: 2.5rem;
    }

    .cta .btn-primary {
        font-size: 1rem !important;
        padding: 14px 30px !important;
        width: auto;
    }

    /* Footer */
    footer {
        padding: 60px 0 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 40px;
    }
}

body,
nav,
section,
footer,
.feature-card {
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

[data-theme="light"] nav {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

ol,
ul {
    padding-left: 0rem;
}

/* ===============================
   BLOG SECTION
================================ */
.blogs {
    padding: 20px 0;
    border-top: 1px solid var(--border);
}

.blogs .section-header {
    text-align: center;
    margin-bottom: 64px;
    margin-top: 64px;
}

/* ===============================
   SPLIT LAYOUT
================================ */
.blog-split {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 36px;
    align-items: stretch;
}

/* ===============================
   BLOG CARD BASE
================================ */
.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 24px 50px rgba(0, 0, 0, .35);
}

/* ===============================
   FEATURED BLOG
================================ */
.blog-card.featured {
    display: flex;
    flex-direction: column;
}

.blog-card.featured h3 {
    font-size: 1.6rem;
    line-height: 1.35;
}

/* ===============================
   COMPACT BLOGS (RIGHT)
================================ */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.blog-card.compact {
    display: flex;
    gap: 16px;
}

.blog-card.compact .blog-thumb {
    width: 120px;
    aspect-ratio: 16 / 10;
    flex-shrink: 0;
}

.blog-card.compact h4 {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 6px;
}

/* ===============================
   THUMBNAIL
================================ */
.blog-thumb {
    position: relative;
    overflow: hidden;
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.blog-card:hover .blog-thumb img {
    transform: scale(1.08);
}

/* ===============================
   BADGE
================================ */
.blog-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(0, 0, 0, .65);
    color: #fff;
    padding: 6px 12px;
    font-size: 0.7rem;
    border-radius: 999px;
    letter-spacing: .06em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}

/* ===============================
   CONTENT
================================ */
.blog-content {
    padding: 24px;
}

.blog-card.compact .blog-content {
    padding: 16px 18px;
}

.blog-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.blog-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 18px;
}

.blog-content a {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 1024px) {
    .blog-split {
        grid-template-columns: 1fr;
    }

    .blog-card.compact {
        gap: 14px;
    }
}

@media (max-width: 640px) {
    .blogs {
        padding: 20px 0;
    }

    .blog-card.compact .blog-thumb {
        width: 90px;
    }
}

/* Featured blog thumbnail height control */
.blog-card.featured .blog-thumb {
    height: 270px;
}

.blog-card.featured .blog-thumb img {
    height: 100%;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .blog-card.featured .blog-thumb {
        height: 240px;
    }
}

@media (max-width: 640px) {
    .blog-card.featured .blog-thumb {
        height: 200px;
    }
}

/* Blog Section Spacing */
.blog-section {
    padding: 120px 0 100px;
}

/* Tablet */
@media (max-width: 1024px) {
    .blog-section {
        padding: 90px 0 80px;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .blog-section {
        padding: 70px 0 60px;
    }
}

/* Blog CTA container */
.blog-cta {
    display: flex;
    justify-content: center;
    margin-top: 60px;
    margin-bottom: 60px;
}

/* Button fine-tuning */
.view-all-btn {
    padding: 14px 32px;
    font-size: 1rem;
}

/* Responsive spacing */
@media (max-width: 1024px) {
    .blog-cta {
        margin-top: 45px;
        margin-bottom: 45px;
    }
}

@media (max-width: 640px) {
    .blog-cta {
        margin-top: 35px;
        margin-bottom: 35px;
    }
}

/* ------------------ wrapper section ----------------------- */
.ui-preview-section {
    padding: 100px 0;
    /* top & bottom spacing */
    background-color: var(--bg-card);
    /* contrast with hero */
}

.ui-preview-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .ui-preview-section {
        padding: 80px 20px;
    }
}

@media (max-width: 640px) {
    .ui-preview-section {
        padding: 60px 15px;
    }
}

/* Two main sections side-by-side */
.alert-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Section heading */
.section-title {
    margin-bottom: 16px;
    font-size: .9rem;
}

/* Make each column feel like a panel */
.alert-column {
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
}

/* Keep existing alert styles */
.alert-item {
    background: var(--dark);
    border: 1px solid var(--border);
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}

/* Mobile layout */
@media (max-width: 900px) {
    .alert-sections {
        grid-template-columns: 1fr;
    }
}

.alert-source {
    font-size: 0.6rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.alert-title {
    font-weight: 600;
    font-size: 0.8rem;
}

.alert-sub {
    font-size: 0.8rem;
}

/* Responsive font sizes */
@media (max-width: 1200px) {
    .alert-source {
        font-size: 0.55rem;
    }

    .alert-title {
        font-size: 0.75rem;
    }

    .alert-sub {
        font-size: 0.75rem;
    }
}

@media (max-width: 992px) {
    .alert-source {
        font-size: 0.5rem;
    }

    .alert-title {
        font-size: 0.7rem;
    }

    .alert-sub {
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {

    .alert-source {
        font-size: 0.45rem;
    }

    .alert-title {
        font-size: 0.65rem;
    }

    .alert-sub {
        font-size: 0.65rem;
    }
}

@media (max-width: 576px) {
    .alert-source {
        font-size: 0.4rem;
    }

    .alert-title {
        font-size: 0.6rem;
    }

    .alert-sub {
        font-size: 0.6rem;
    }
}

.alert-container {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.alert-source,
.alert-title,
.alert-sub {
    display: block;
    align-items:center;
}
.alert-geo img {
    display: block; /* removes baseline gap */
}

.alert-info {
    display: flex;
    align-items: center;
    /* vertical alignment fix */
    gap: 0.5rem;
}

.alert-volume {
    font-size: 0.8rem;

    line-height: 1;
    /* ensures it aligns with badge */
    display: inline-block;
}

.alert-geo.badge {
    font-size: 0.7rem;

    background-color: var(--success);
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 0px !important;
    line-height: 1;
    /* aligns with Ad Volume */
    display: inline-block;
    margin-bottom: 0px;
}

.alert-sub {
    font-size: 0.8rem;
    display: block;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .alert-volume {
        font-size: 0.7rem;
    }

    .alert-geo.badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
        margin-bottom: 0px;
    }

    .alert-sub {
        font-size: 0.7rem;
    }
}

.stat-card {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    text-align: left;
    /* left-align content */
}

.stat-card small {
    font-size: 0.7rem;
    /* smaller than default */
    color: var(--success);
    display: block;
    margin-bottom: 4px;
}

.stat-card .value {
    font-size: 1rem;
    /* slightly smaller numbers */
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.2;
}

.stat-card .value p {
    font-size: 0.65rem;
    /* label under number */
    color: var(--text-muted);
    margin: 2px 0 0 0;
    font-weight: 400;
}

/*- tooltip */
/* Ensure parents do NOT clip */
.alert-item,
.alert-meta,
.alert-container,
.alert-source {
    overflow: visible !important;
}

/* Tooltip wrapper */
.has-tooltip {
    position: relative;
    display: inline-block;
   /* margin-left: 6px;*/
}

/* Flag image */
.has-tooltip img {
    width: 22px;
    height: auto;
    display: inline-block;
    vertical-align: middle;
}

/* Tooltip bubble */
    .has-tooltip .tooltip-text {
        position: absolute;
        width: max-content;
        max-width: 320px;
        bottom: calc(100% + 8px);
        left: 50%;
        transform: translateX(-50%);
        background: var(--bg-dark);
        color: var(--text-main);
        padding: 6px 10px;
        font-size: 0.7rem;
        border: 1px solid var(--border);
        border-radius: 6px;
        white-space: normal;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease;
        z-index: 9999;
    }

/* Arrow */
.has-tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #111827;
}

/* Show tooltip */
.has-tooltip:hover .tooltip-text {
    opacity: 1;
    visibility: visible;
}

/* ---------------- ---------------------------- */

/* ----------------------- sliders -------------------------- */
/* --- Container & Perspective Setup --- */
/* --- Hero & Container --- */
/* --- Hero & Container --- */
/* --- Container Setup --- */
/*.hero {
    padding: 60px 0;
    overflow: hidden;
     
}

.custom-slider-container {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1500px;
    margin-top: 50px;
    position: relative;
    width: 100%;
    height: 540px;  
    touch-action: pan-y;  
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
    
    transition: font-size 0.5s ease;
}
 
.hero-slide {
    position: absolute;
    width: 320px;
    border: 1px solid #1e293b;
    border-radius: 24px;
    padding: 40px 24px;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-align: center;
    opacity: 0;
    transform: scale(0.5) translateZ(-500px);
}
 
.hero-slide.active {
    opacity: 1;
    width: 500px;
    transform: translateX(0) scale(1) translateZ(100px);
    z-index: 10;
    filter: blur(0px);
    border-color: #6366f1;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.hero-slide.left {
    opacity: 0.5;
    transform: translateX(-420px) scale(0.8) rotateY(25deg);
    z-index: 5;
    filter: blur(2px);
}

.hero-slide.right {
    opacity: 0.5;
    transform: translateX(420px) scale(0.8) rotateY(-25deg);
    z-index: 5;
    filter: blur(2px);
}
*/
/* --- RESPONSIVE BREAKPOINTS --- */

@media (max-width: 1024px) {
    .hero h1 { font-size: 2.5rem; }
    .hero-slide.active { width: 450px; }
    .hero-slide.left { transform: translateX(-320px) scale(0.75) rotateY(20deg); }
    .hero-slide.right { transform: translateX(320px) scale(0.75) rotateY(-20deg); }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .custom-slider-container { height: 500px; }
    .hero-slide.active {
        width: 85%;
        transform: translateX(0) scale(1) translateZ(50px);
    }
    /* Side slides "peek" in from the edges on mobile */
    .hero-slide.left { transform: translateX(-90%) scale(0.7); opacity: 0.2; }
    .hero-slide.right { transform: translateX(90%) scale(0.7); opacity: 0.2; }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 16px;
    }

    /* REDUCED HEIGHT */
    .custom-slider-container {
        height: 380px; /* Your requested height */
        margin-top: 20px;
    }

    .hero-slide.active {
        width: 92%;
        padding: 25px 15px; /* Slightly reduced padding for tighter fit */
    }

    /* Hide side slides to focus on content */
    .hero-slide.left, .hero-slide.right {
        display: none;
    }

    /* Show Navigation controls on mobile */
    .slider-nav-mobile {
        display: flex !important;
    }
}
    /* end */

.trim-text-more {
    display:inline-block;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    max-width: 215px;
}
.text-primary{
    color:var(--primary);
}
.sub-title-features {
    font-size: 11px;
    color: #3b82f6;
}