/* poppins-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/poppins-v24-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* poppins-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/poppins-v24-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* poppins-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  src: url('/fonts/poppins-v24-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* poppins-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  src: url('/fonts/poppins-v24-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* poppins-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  src: url('/fonts/poppins-v24-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
        /* ----- RESET & GLOBAL ----- */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary: #5100db;
            --secondary: #fc00ff;
            --accent: #ffd166;
            --bg-dark: #0f0f1a;
            --text-dark: #f1f5f9;
            --card-dark: #1e293b;
            --border-dark: #334155;
            --glow-purple: rgba(81, 0, 219, 0.4);
            --glow-pink: rgba(252, 0, 255, 0.3);
        }

        body {
            font-family: 'Poppins', sans-serif;
            background-color: var(--bg-dark);
            color: var(--text-dark);
            overflow-x: hidden;
            line-height: 1.6;
        }

        /* custom scroll */
        ::-webkit-scrollbar {
            width: 6px;
        }

        ::-webkit-scrollbar-track {
            background: #1a1a2e;
        }

        ::-webkit-scrollbar-thumb {
            background: var(--secondary);
            border-radius: 6px;
        }

        .gradient-text {
            background: linear-gradient(90deg, #0aa6f5 20%, #fc00ff 40%, #5100db 80%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

        /* ----- NAVIGATION (DESKTOP + MOBILE, same as original) ----- */
        .desktop-nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            background: rgba(15, 15, 26, 0.96);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }

        .dropdown {
            position: relative;
            display: inline-block;
        }

        .dropdown-menu {
            position: absolute;
            top: 100%;
            left: 0;
            background: var(--card-dark);
            border: 1px solid var(--border-dark);
            border-radius: 12px;
            min-width: 200px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s ease;
            z-index: 1001;
            backdrop-filter: blur(12px);
            background: rgba(30, 41, 59, 0.98);
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
        }

        .dropdown:hover .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .dropdown-menu a {
            display: block;
            padding: 10px 20px;
            color: var(--text-dark);
            text-decoration: none;
            transition: all 0.2s;
            font-size: 0.875rem;
        }

        .dropdown-menu a:hover {
            background: rgba(81, 0, 219, 0.6);
            padding-left: 24px;
        }

        .mobile-menu {
            position: fixed;
            top: 0;
            right: -100%;
            width: 300px;
            height: 100%;
            background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
            z-index: 9999;
            transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
            overflow-y: auto;
        }

        .mobile-menu.active {
            right: 0;
        }

        .mobile-menu-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: 9998;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }

        .mobile-menu-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .mobile-dropdown-btn {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            background: transparent;
            border: none;
            color: var(--text-dark);
            padding: 12px 16px;
            cursor: pointer;
        }

        .mobile-dropdown-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s ease-out;
            padding-left: 24px;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 8px;
        }

        .mobile-dropdown-content.open {
            max-height: 300px;
        }

        /* ----- BLOG ENHANCED STYLES (magazine / editorial) ----- */
        .blog-container {
            max-width: 960px;
            margin: 120px auto 60px auto;
            padding: 0 24px;
        }

        /* hero area with gradient border */
        .blog-header {
            margin-bottom: 2.5rem;
            position: relative;
        }

        .hero-badge {
            display: inline-block;
            background: rgba(252, 0, 255, 0.15);
            backdrop-filter: blur(4px);
            padding: 0.3rem 1rem;
            border-radius: 40px;
            font-size: 0.75rem;
            letter-spacing: 1px;
            font-weight: 500;
            border-left: 2px solid var(--secondary);
            margin-bottom: 1.2rem;
            color: #e2e2ff;
        }

        .hero-title {
            font-size: 3.5rem;
            font-weight: 800;
            letter-spacing: -0.02em;
            line-height: 1.2;

            -webkit-background-clip: text;
            background-clip: text;
            color: #ffffff;
            margin-bottom: 1rem;
        }

        .subhead {
            font-size: 1.10rem;
            color: #cbd5e6;


            margin-bottom: 2rem;
            font-weight: 400;
            line-height: 1.4;
        }

        .blog-meta {
            display: flex;
            gap: 1.5rem;
            margin-bottom: 2rem;
            font-size: 0.85rem;
            color: #94a3b8;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            padding-bottom: 1rem;
        }

        .blog-meta span i {
            margin-right: 6px;
            color: var(--secondary);
        }

        /* feature image with cinematic overlay */
        .feature-image-wrapper {
            border-radius: 32px;
            overflow: hidden;
            margin: 1.8rem 0 2.5rem;
            box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.5);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .feature-image-wrapper img {
            width: 100%;
            height: auto;
            display: block;
            transition: transform 0.4s ease;
            border-radius: 30px;
        }

        .content-section img {
            width: 100%;
            height: auto;
            display: block;
            transition: transform 0.4s ease;
            border-radius: 30px;
        }

        /* rich content styles */
        .content-section {
            font-size: 1.05rem;
            color: #eef2ff;
        }

        .content-section h2 {
            font-size: 2rem;
            font-weight: 700;
            margin: 2.8rem 0 1rem 0;
            background: linear-gradient(120deg, #fff, #c7b9ff);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            letter-spacing: -0.3px;
            border-left: 4px solid #ffffff;
            padding-left: 1rem;
        }

        .content-section h3 {
            font-size: 1.6rem;
            font-weight: 600;
            margin: 2rem 0 0.8rem 0;
            color: #f0eefb;
        }

        .content-section p {
            margin-bottom: 1.3rem;
            color: #e2e8f0;
            line-height: 1.7;
        }

        .content-section ul,
        .content-section ol {
            margin: 1.2rem 0 1.5rem 2rem;
        }

        .content-section li {
            margin-bottom: 0.5rem;
            color: #cbd5e1;
        }

        .content-section li::marker {
            color: var(--secondary);
        }

        .content-section blockquote {
            margin: 2rem 0;
            padding: 1.2rem 1.8rem;
            background: rgba(30, 41, 59, 0.6);
            border-left: 4px solid var(--accent);
            border-radius: 20px;
            font-style: italic;
            font-weight: 400;
            backdrop-filter: blur(4px);
        }

        .content-section blockquote p {
            margin-bottom: 0;
            color: #facc15;
        }

        /* custom card highlight / cta */
        .insight-card {
            background: linear-gradient(145deg, #1e293b, #111827);
            padding: 1.5rem;
            border-radius: 28px;
            margin: 2rem 0;
            border: 1px solid rgba(252, 0, 255, 0.2);
            box-shadow: 0 15px 30px -12px rgba(0, 0, 0, 0.3);
        }

        .insight-card p:last-child {
            margin-bottom: 0;
        }

        .stat-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: rgba(255, 209, 102, 0.15);
            border-radius: 100px;
            padding: 0.3rem 1rem;
            font-size: 0.8rem;
            font-weight: 500;
        }

        /* responsive tweaks */
        @media (max-width: 768px) {
            .blog-container {
                margin-top: 90px;
                padding: 0 20px;
            }

            .hero-title {
                font-size: 2.3rem;
            }

            .content-section h2 {
                font-size: 1.7rem;
            }

            .content-section h3 {
                font-size: 1.4rem;
            }
        }

        /* ===== LINK STYLES ===== */


        .content-section a,
        .blog-container a {
            color: #fc00ff !important;
            text-decoration: none !important;
            border-bottom: 2px solid rgba(252, 0, 255, 0.3) !important;
            transition: all 0.25s ease !important;
            font-weight: 500 !important;
        }

        /* Link hover state */
        .content-section a:hover,
        .blog-container a:hover {
            color: #ff99ff !important;
            border-bottom-color: #fc00ff !important;
        }

        /* ===== TABLE STYLES - For CKEditor's <figure class="table"> wrapper ===== */

        /* Make figure wrapper full width */
        figure.table,
        .content-section figure.table,
        .blog-container figure.table {
            width: 100% !important;
            max-width: 100% !important;
            margin: 1.8rem 0 !important;
            padding: 0 !important;
            overflow-x: auto !important;
            display: block !important;
            background: transparent !important;
        }

        /* Force ALL tables inside figure to be full width */
        figure.table table,
        .content-section figure.table table,
        .blog-container figure.table table,
        figure.table table[style] {
            width: 100% !important;
            max-width: 100% !important;
            min-width: 100% !important;
            display: table !important;
            border-collapse: collapse !important;
            margin: 0 !important;
            font-size: 0.95rem !important;
            background-color: #1a1a2e !important;
            border-radius: 12px !important;
            overflow: hidden !important;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
        }

        /* Table headers */
        figure.table th,
        .content-section figure.table th {
            background: linear-gradient(135deg, #1e293b, #0f172a) !important;
            color: #fc00ff !important;
            font-weight: 600 !important;
            padding: 1rem 1rem !important;
            text-align: left !important;
            font-size: 0.9rem !important;
            border-bottom: 2px solid #fc00ff !important;
        }

        /* Table cells */
        figure.table td,
        .content-section figure.table td {
            padding: 0.8rem 1rem !important;
            color: #e2e8f0 !important;
            border-bottom: 1px solid #2d2d44 !important;
        }

        /* Remove border from last row */
        figure.table tr:last-child td,
        .content-section figure.table tr:last-child td {
            border-bottom: none !important;
        }

        /* Zebra striping */
        figure.table tr:nth-child(even) td,
        .content-section figure.table tr:nth-child(even) td {
            background-color: #151528 !important;
        }

        /* Hover effect */
        figure.table tr:hover td,
        .content-section figure.table tr:hover td {
            background-color: #1f1f3a !important;
            transition: background-color 0.2s ease !important;
        }

        /* First and last column padding */
        figure.table td:first-child,
        figure.table th:first-child {
            padding-left: 1.2rem !important;
        }

        figure.table td:last-child,
        figure.table th:last-child {
            padding-right: 1.2rem !important;
        }

        /* Bold text inside tables */
        figure.table td strong,
        figure.table th strong {
            color: #ffd166 !important;
        }

        /* Links inside tables */
        figure.table td a {
            color: #fc00ff !important;
            text-decoration: none !important;
            border-bottom: 1px dashed rgba(252, 0, 255, 0.5) !important;
        }

        figure.table td a:hover {
            border-bottom-style: solid !important;
        }

        /* ===== RESPONSIVE: Make table scroll on mobile ===== */
        @media (max-width: 768px) {

            figure.table,
            .content-section figure.table {
                display: block !important;
                width: 100% !important;
                overflow-x: auto !important;
                -webkit-overflow-scrolling: touch !important;
            }

            figure.table table {
                display: table !important;
                width: 100% !important;
                min-width: 500px !important;
            }
        }

        /* footer same as original but improve spacing */
        footer {
            margin-top: 3rem;
        }

        .btn-outline-glow {
            transition: all 0.2s;
        }
