/**
 * ScaleOpsHub — Main Theme Stylesheet
 *
 * Dark theme: bg #0F172A, text #E2E8F0, accent #2563EB
 * Font: 'Inter', system-ui, -apple-system, sans-serif
 *
 * TABLE OF CONTENTS:
 *  0. CSS Reset & Variables
 *  1. Typography
 *  2. Header / Navigation
 *  3. Hero Section
 *  4. Preloader
 *  5. Back to Top
 *  6. Buttons
 *  7. Sections / Layout
 *  8. Grids & Cards
 *  9. Comparison Table
 * 10. Lead Magnet
 * 11. Blog Grid (homepage)
 * 12. About / UAE Guide Sections (homepage)
 * 13. Footer
 * 14. Review Page Layout
 * 15. UAE Guide Page Layout
 * 16. Blog Post (single)
 * 17. Archive
 * 18. 404 Page
 * 19. Responsive
 */

/* ============================================================
   0. CSS RESET & VARIABLES
   ============================================================ */

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

:root {
    --bg: #0F172A;
    --text: #E2E8F0;
    --accent: #2563EB;
    --accent-hover: #1D4ED8;
    --heading: #FFFFFF;
    --footer-bg: #0B1120;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.1);
    --border-card: #1E293B;
    --muted: #94A3B8;
    --dim: #64748B;
    --pros: #10B981;
    --cons: #EF4444;
    --header-height: 80px;
    --max-width: 1200px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}



body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #3b82f6;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================================
   1. TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
    color: var(--heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 3rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    color: var(--text);
}

/* ============================================================
   2. TOP-BAR HAMBURGER (inside main nav)
   ============================================================ */

/* Top-bar hamburger (3 lines) */
.topbar-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.topbar-hamburger:hover {
    background: rgba(255, 255, 255, 0.08);
}

.topbar-line {
    display: block;
    width: 18px;
    height: 2px;
    background-color: #94A3B8;
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger → X animation */
.topbar-hamburger.active .topbar-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.topbar-hamburger.active .topbar-line:nth-child(2) {
    opacity: 0;
}

.topbar-hamburger.active .topbar-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Right-side action group in nav */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Top-bar dropdown menu */
.top-bar-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #0B1120;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    min-width: 200px;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    z-index: 1002;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.top-bar-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.top-bar-dropdown li {
    margin: 0;
    padding: 0;
}

.top-bar-dropdown a {
    display: block;
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 10px 20px;
    transition: background 0.2s ease, color 0.2s ease;
}

.top-bar-dropdown a:hover {
    color: var(--heading);
    background: rgba(255, 255, 255, 0.06);
    text-decoration: none;
}

/* ============================================================
   3. HEADER / NAVIGATION
   ============================================================ */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.25rem 2rem;
    position: relative;
}

.logo {
    color: var(--heading);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo:hover {
    color: var(--heading);
    text-decoration: none;
}

/* WP custom logo override */
.custom-logo-link .custom-logo {
    max-height: 64px;
    width: auto;
}

/* Inline logo image fallback */
.logo-img-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    max-height: 64px;
    width: auto;
    display: block;
}

.logo-img:hover {
    opacity: 0.9;
}

/* Preloader logo */
.preloader-logo {
    max-height: 80px;
    width: auto;
    animation: pulseGlow 1.5s ease-in-out infinite;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
    text-decoration: none;
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px auto;
    background-color: var(--heading);
    transition: all 0.3s ease-in-out;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   3. HERO SECTION
   ============================================================ */

#home,
.hero-home {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    background: linear-gradient(160deg, #0F172A 0%, #132044 40%, #0F172A 70%, #0d1425 100%);
    position: relative;
    overflow: hidden;
}

#home::before,
.hero-home::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(37, 99, 235, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(37, 99, 235, 0.04) 0%, transparent 40%);
    pointer-events: none;
}

#home > *,
.hero-home > * {
    position: relative;
    z-index: 1;
}

#home h1,
.hero-home h1 {
    font-size: 3.5rem;
    max-width: 800px;
}

#home p,
.hero-home p {
    max-width: 640px;
    margin: 0 auto 2.5rem auto;
    font-size: 1.25rem;
    color: var(--muted);
}

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--dim);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    text-decoration: none;
    z-index: 1;
}

.scroll-indicator:hover {
    text-decoration: none;
    color: var(--dim);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ============================================================
   4. PRELOADER
   ============================================================ */

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0F172A;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#preloader .loader-bar {
    width: 160px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-top: 1.5rem;
    overflow: hidden;
}

#preloader .loader-bar-inner {
    width: 0%;
    height: 100%;
    background-color: var(--accent);
    border-radius: 4px;
    animation: loaderFill 1.2s ease forwards;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes loaderFill {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ============================================================
   5. BACK TO TOP
   ============================================================ */

#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background-color: var(--accent);
    color: var(--heading);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.6);
    text-decoration: none;
    color: var(--heading);
}

/* ============================================================
   6. BUTTONS
   ============================================================ */

.btn {
    display: inline-block;
    background-color: var(--accent);
    color: var(--heading);
    padding: 1rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    color: var(--heading);
    text-decoration: none;
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--accent);
    padding: 1rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    border: 2px solid var(--accent);
    cursor: pointer;
}

.btn-outline:hover {
    background-color: var(--accent);
    color: var(--heading);
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: var(--accent);
    color: var(--heading);
    text-align: center;
    font-weight: 700;
    border-radius: 9999px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    text-decoration: none;
    color: var(--heading);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
}

.review-btn {
    display: inline-block;
    background-color: var(--accent);
    color: var(--heading);
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
}

.review-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    text-decoration: none;
    color: var(--heading);
}

.tool-btn {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 8px;
}

.tool-btn:hover {
    background: var(--accent);
    color: var(--heading);
    text-decoration: none;
}

/* ============================================================
   7. SECTIONS / LAYOUT
   ============================================================ */

section,
.wp-block-group {
    padding: 6rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.page-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
}

/* ============================================================
   8. GRIDS & CARDS
   ============================================================ */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
    display: block;
}

/* Feature Cards (homepage) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 2.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.1);
}

.feature-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

/* ============================================================
   9. COMPARISON TABLE
   ============================================================ */

.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid var(--border-card);
}

#tools .subtitle {
    text-align: center;
    max-width: 720px;
    margin: -2rem auto 3rem auto;
    color: var(--muted);
    font-size: 1.1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
    font-size: 0.95rem;
}

thead {
    background-color: rgba(37, 99, 235, 0.08);
}

thead th {
    padding: 1.25rem 1rem;
    text-align: left;
    color: var(--heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-card);
    white-space: nowrap;
}

thead th:first-child {
    padding-left: 1.5rem;
}

tbody td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(30, 41, 59, 0.6);
    vertical-align: top;
    line-height: 1.5;
}

tbody td:first-child {
    padding-left: 1.5rem;
    font-weight: 700;
    color: var(--heading);
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background-color: rgba(37, 99, 235, 0.03);
}

/* ============================================================
   10. LEAD MAGNET
   ============================================================ */

.lead-magnet {
    margin-top: 3rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(15, 23, 42, 1) 100%);
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
}

.lead-magnet h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.lead-magnet p {
    color: var(--muted);
    margin-bottom: 1.5rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.lead-magnet-form {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 500px;
    margin: 0 auto;
}

.lead-magnet-form input[type="email"] {
    flex: 1;
    min-width: 220px;
    padding: 0.9rem 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--border-card);
    background-color: var(--bg);
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease;
}

.lead-magnet-form input[type="email"]:focus {
    border-color: var(--accent);
}

.lead-magnet-form input[type="email"]::placeholder {
    color: #475569;
}

.lead-magnet-form .btn {
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
}

/* Lead Magnet (guide page variant) */
.lead-magnet-guide {
    background: linear-gradient(145deg, rgba(15, 23, 42, 1) 0%, rgba(37, 99, 235, 0.1) 100%);
    border: 2px solid var(--accent);
    border-radius: 16px;
    padding: 50px 40px;
    text-align: center;
    margin-top: 60px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.lead-magnet-guide h3 {
    color: var(--heading);
    font-size: 2rem;
    margin-bottom: 16px;
}

.lead-magnet-guide p {
    color: var(--muted);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.lead-form {
    display: flex;
    gap: 15px;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

.lead-form input {
    flex: 1;
    padding: 14px 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    color: var(--heading);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    outline: none;
}

.lead-form input:focus {
    border-color: var(--accent);
}

.lead-form button {
    padding: 14px 28px;
    background: var(--accent);
    color: var(--heading);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'Inter', sans-serif;
}

.lead-form button:hover {
    background: var(--accent-hover);
}

/* ============================================================
   11. BLOG GRID (homepage latest insights)
   ============================================================ */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    text-decoration: none;
    color: inherit;
}

.blog-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--border-card) 0%, var(--bg) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--accent);
    opacity: 0.7;
}

.blog-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--border-card) 0%, var(--bg) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--accent);
    opacity: 0.7;
}

.blog-body {
    padding: 1.5rem;
}

.blog-body h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.blog-body p {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.blog-date {
    font-size: 0.85rem;
    color: var(--dim);
}

/* ============================================================
   12. ABOUT / UAE GUIDE SECTIONS (homepage)
   ============================================================ */

#about {
    text-align: center;
    max-width: 800px;
}

#uae-business-guide {
    background-color: rgba(37, 99, 235, 0.05);
    border-radius: 24px;
    margin-top: 4rem;
    margin-bottom: 4rem;
    text-align: center;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

#uae-business-guide p {
    max-width: 800px;
    margin: 0 auto 2rem auto;
}

/* ============================================================
   13. FOOTER
   ============================================================ */

footer {
    background-color: var(--footer-bg);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s ease;
    font-weight: bold;
}

.social-links a:hover {
    color: var(--accent);
    text-decoration: none;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--heading);
    text-decoration: none;
}

.copyright {
    color: var(--dim);
    font-size: 0.875rem;
}

.footer-menu {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: var(--heading);
    text-decoration: none;
}

/* ============================================================
   14. REVIEW PAGE LAYOUT
   ============================================================ */

.review-container {
    max-width: var(--max-width);
    margin: 3rem auto;
    padding: 0 5%;
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.review-main {
    flex: 1 1 65%;
    min-width: 0;
}

.review-sidebar {
    flex: 1 1 30%;
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-sidebar-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.tool-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--border-card) 0%, var(--bg) 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 800;
    color: var(--heading);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.tool-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 0.5rem;
}

.rating {
    color: var(--accent);
    font-size: 1.25rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.sidebar-features {
    text-align: left;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    list-style: none;
}

.sidebar-features li {
    margin-bottom: 0.5rem;
}

.pricing-info {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Review sidebar lead magnet */
.lead-magnet-sidebar {
    background-color: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.lead-magnet-sidebar h4 {
    font-size: 1.1rem;
    color: var(--heading);
    margin-bottom: 1rem;
}

.lead-magnet-sidebar form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lead-magnet-sidebar input[type="email"] {
    width: 100%;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--text);
    font-family: 'Inter', sans-serif;
}

.lead-magnet-sidebar input[type="email"]:focus {
    outline: none;
    border-color: var(--accent);
}

.lead-magnet-sidebar button {
    width: 100%;
    padding: 0.75rem;
    border-radius: 6px;
    border: none;
    background-color: var(--heading);
    color: var(--bg);
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.lead-magnet-sidebar button:hover {
    background-color: #e2e8f0;
}

/* TOC */
.toc {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
}

.toc h3 {
    margin-top: 0;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text);
    border: none;
}

.toc ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
}

.toc li {
    margin-bottom: 0.75rem;
}

.toc a {
    color: var(--text);
    font-weight: 500;
}

.toc a:hover {
    color: var(--accent);
}

/* Verdict Box */
.verdict-box {
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.1) 0%, rgba(15, 23, 42, 0) 100%);
    border-left: 4px solid var(--accent);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 2.5rem;
}

.verdict-box h3 {
    margin-top: 0;
    color: var(--accent);
}

/* Pros & Cons */
.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.pros-card,
.cons-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
}

.pros-card h3 {
    color: var(--pros);
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cons-card h3 {
    color: var(--cons);
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pros-card ul,
.cons-card ul {
    list-style-type: none;
    padding-left: 0;
}

.pros-card li::before {
    content: "✓";
    color: var(--pros);
    font-weight: bold;
    margin-right: 0.5rem;
}

.cons-card li::before {
    content: "✕";
    color: var(--cons);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Review Pricing List */
.pricing-list {
    list-style: none;
    padding: 0;
}

.pricing-list li {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pricing-tier {
    font-weight: 700;
    color: var(--heading);
    font-size: 1.1rem;
}

.pricing-price {
    font-weight: 600;
    color: var(--accent);
}

/* Review page heading styles */
.review-main h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--heading);
}

.review-main h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    color: var(--heading);
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
    text-align: left;
}

.review-main h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: var(--heading);
}

.review-main p {
    margin-bottom: 1.25rem;
}

.review-main ul,
.review-main ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.review-main li {
    margin-bottom: 0.5rem;
}

/* ============================================================
   15. UAE GUIDE PAGE LAYOUT
   ============================================================ */

.guide-hero {
    padding: 160px 20px 80px;
    background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.15) 0%, var(--bg) 70%);
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.guide-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.guide-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--heading);
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.guide-hero p {
    font-size: 1.2rem;
    color: var(--muted);
    max-width: 700px;
    margin: 0 auto;
}

.layout-container {
    max-width: var(--max-width);
    margin: 60px auto;
    padding: 0 20px;
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.guide-main {
    flex: 1;
    min-width: 0;
    width: 65%;
}

.guide-sidebar {
    width: 30%;
    position: sticky;
    top: 120px;
    flex-shrink: 0;
}

/* Guide TOC */
.toc-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 50px;
}

.toc-card h3 {
    color: var(--heading);
    margin-bottom: 20px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toc-list {
    list-style: none;
}

.toc-list li {
    margin-bottom: 12px;
}

.toc-list a {
    color: var(--muted);
    font-size: 0.95rem;
}

.toc-list a:hover {
    color: var(--accent);
}

/* Guide Content Sections */
.content-section {
    margin-bottom: 60px;
}

.content-section h2 {
    color: var(--heading);
    font-size: 2rem;
    margin-bottom: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.content-section p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: #cbd5e1;
}

/* Callout Boxes */
.callout {
    background: rgba(37, 99, 235, 0.05);
    border-left: 4px solid var(--accent);
    padding: 24px;
    border-radius: 0 8px 8px 0;
    margin: 30px 0;
}

.callout strong {
    color: var(--heading);
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

/* Guide Sidebar Tool Cards */
.guide-sidebar h3 {
    color: var(--heading);
    margin-bottom: 24px;
    font-size: 1.2rem;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.tool-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s, border-color 0.2s;
}

.tool-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.tool-card .tool-logo {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--accent);
    font-size: 1.2rem;
    margin: 0;
    box-shadow: none;
}

.tool-info {
    flex: 1;
}

.tool-info h4 {
    color: var(--heading);
    font-size: 1rem;
    margin-bottom: 4px;
}

/* Author Box */
.author-box {
    display: flex;
    gap: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: 16px;
    margin: 50px 0;
    align-items: center;
}

.avatar {
    width: 80px;
    height: 80px;
    min-width: 80px;
    background: linear-gradient(135deg, var(--accent), #1e3a8a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--heading);
    flex-shrink: 0;
}

.author-info h4 {
    color: var(--heading);
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.author-info span {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
    margin-bottom: 12px;
}

.author-info p {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Social Share */
.social-share {
    display: flex;
    gap: 12px;
    margin-bottom: 50px;
    align-items: center;
}

.social-share span {
    color: var(--heading);
    font-weight: 600;
    margin-right: 10px;
}

.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--heading);
    font-weight: bold;
    transition: all 0.2s;
    text-decoration: none;
}

.share-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    text-decoration: none;
    transform: translateY(-2px);
    color: var(--heading);
}

.comments-placeholder {
    background: rgba(0, 0, 0, 0.2);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    padding: 40px;
    text-align: center;
    border-radius: 12px;
    color: var(--dim);
}

/* ============================================================
   16. BLOG POST (single)
   ============================================================ */

.single-post-container {
    max-width: var(--max-width);
    margin: 8rem auto 3rem;
    padding: 0 2rem;
}

.single-post-container .post-thumbnail {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
}

.single-post-container .post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.single-post-container h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-align: left;
}

.post-meta {
    color: var(--dim);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    display: block;
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
}

.post-content p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.post-content img {
    border-radius: 8px;
    margin: 2rem 0;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: 2.5rem;
    text-align: left;
}

/* ============================================================
   17. ARCHIVE
   ============================================================ */

.archive-header {
    padding: 8rem 2rem 3rem;
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.archive-header h1 {
    font-size: 2.5rem;
}

.archive-header p {
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.archive-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.archive-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
}

.archive-card .card-body {
    padding: 1.5rem;
}

.archive-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.archive-card h3 a {
    color: var(--heading);
    text-decoration: none;
}

.archive-card h3 a:hover {
    color: var(--accent);
}

.archive-card p {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.archive-card .blog-date {
    font-size: 0.85rem;
    color: var(--dim);
}

/* Pagination */
.pagination {
    text-align: center;
    padding: 2rem 0 4rem;
}

.pagination .nav-links {
    display: inline-flex;
    gap: 0.5rem;
    list-style: none;
    position: static;
    background: none;
    padding: 0;
    width: auto;
    height: auto;
    flex-direction: row;
    justify-content: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s;
}

.pagination .page-numbers:hover {
    background: var(--accent);
    color: var(--heading);
    border-color: var(--accent);
    text-decoration: none;
}

.pagination .page-numbers.current {
    background: var(--accent);
    color: var(--heading);
    border-color: var(--accent);
}

/* ============================================================
   18. 404 PAGE
   ============================================================ */

.page-404 {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 6rem 2rem;
}

.page-404 h1 {
    font-size: 6rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.page-404 h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.page-404 p {
    color: var(--muted);
    max-width: 500px;
    margin-bottom: 2rem;
}

/* ============================================================
   19. RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
    .review-container {
        flex-direction: column;
        gap: 3rem;
    }

    .review-main,
    .review-sidebar {
        flex: 1 1 100%;
        width: 100%;
    }

    .review-sidebar {
        position: static;
    }

    .layout-container {
        flex-direction: column;
    }

    .guide-main {
        width: 100%;
    }

    .guide-sidebar {
        width: 100%;
        position: static;
        margin-top: 40px;
    }

    .guide-hero h1 {
        font-size: 2.2rem;
    }

    .lead-form {
        flex-direction: column;
    }

    .lead-form input {
        width: 100%;
        max-width: 100%;
        margin-right: 0;
    }

    .pros-cons-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.25rem; }

    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        gap: 2.5rem;
        z-index: 1000;
        display: flex;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.25rem;
    }

    section {
        padding: 4rem 1.5rem;
    }

    .btn-group {
        flex-direction: column;
        align-items: center;
    }

    .btn-group .btn,
    .btn-group .btn-outline {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }

    .features-grid,
    .blog-grid,
    .grid {
        grid-template-columns: 1fr;
    }

    .lead-magnet {
        padding: 2rem 1.5rem;
    }

    .lead-magnet-form {
        flex-direction: column;
        align-items: center;
    }

    .lead-magnet-form input[type="email"] {
        width: 100%;
        min-width: unset;
    }

    .lead-magnet-form .btn {
        width: 100%;
    }

    .footer-links,
    .footer-menu {
        flex-direction: column;
        gap: 1rem;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .single-post-container h1 {
        font-size: 2rem;
    }

    .review-main h1 {
        font-size: 2rem;
    }

    .guide-hero h1 {
        font-size: 2rem;
    }

    .page-404 h1 {
        font-size: 4rem;
    }

    .lead-magnet-guide {
        padding: 30px 20px;
    }
}

/* ============================================================
   19. SEARCH FORM
   ============================================================ */

.search-header .search-form {
    max-width: 480px;
    margin: 1.5rem auto 0;
}

.search-form {
    display: flex;
    gap: 0;
    max-width: 480px;
    width: 100%;
}

.search-input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-right: none;
    border-radius: 8px 0 0 8px;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    border-color: var(--accent);
}

.search-input::placeholder {
    color: var(--dim);
}

.search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.2rem;
    background-color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 0 8px 8px 0;
    color: var(--heading);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-submit:hover {
    background-color: var(--accent-hover);
}

.search-query {
    color: var(--accent);
}

/* Search icon in header */
.search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
}

.search-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent);
}

/* Search overlay panel */
.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.search-overlay.active {
    display: flex;
}

.search-overlay .search-form {
    max-width: 600px;
    width: 100%;
}

.search-overlay .search-input {
    font-size: 1.25rem;
    padding: 1rem 1.5rem;
}

.search-overlay .search-submit {
    padding: 1rem 1.5rem;
}

.search-overlay .search-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.search-overlay .search-close:hover {
    color: var(--heading);
}

/* ============================================================
   20. COMMENTS
   ============================================================ */

.comments-area {
    max-width: 800px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--heading);
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list ol.children {
    list-style: none;
    margin-left: 3rem;
    padding-left: 0;
}

.comment-body {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.comment-meta-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-author-avatar img {
    border-radius: 50%;
    width: 48px;
    height: 48px;
}

.comment-author-info .fn {
    font-style: normal;
    font-weight: 600;
    font-size: 1rem;
    color: var(--heading);
}

.comment-author-info .fn a {
    color: var(--heading);
    text-decoration: none;
}

.comment-author-info .fn a:hover {
    color: var(--accent);
}

.comment-date {
    display: block;
    font-size: 0.85rem;
    color: var(--dim);
    margin-top: 2px;
}

.comment-date a {
    color: var(--dim);
    text-decoration: none;
}

.comment-date a:hover {
    color: var(--accent);
}

.comment-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
}

.comment-text p {
    margin-bottom: 0.75rem;
}

.comment-awaiting-moderation {
    color: var(--accent);
    font-style: italic;
    font-size: 0.9rem;
}

.comment-actions {
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

.comment-actions a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.comment-actions a:hover {
    text-decoration: underline;
}

.edit-link-sep {
    color: var(--dim);
}

/* Comment form */
.comment-respond {
    margin-top: 2rem;
    padding-top: 2rem;
}

.comment-reply-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--heading);
}

.comment-respond .comment-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.comment-respond .comment-form p {
    margin: 0;
}

.comment-respond label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.comment-respond input:focus,
.comment-respond textarea:focus {
    border-color: var(--accent);
}

.comment-respond textarea {
    resize: vertical;
    min-height: 120px;
}

.comment-respond .required {
    color: var(--error);
}

.comment-respond .form-submit {
    margin: 0;
}

.comment-respond .submit {
    padding: 0.8rem 2rem;
    font-size: 1rem;
}

.comment-respond .comment-notes {
    font-size: 0.85rem;
    color: var(--dim);
}

.comment-navigation {
    display: flex;
    justify-content: space-between;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.comment-navigation a {
    color: var(--accent);
    text-decoration: none;
}

.comment-navigation a:hover {
    text-decoration: underline;
}

.no-comments {
    color: var(--dim);
    font-style: italic;
    margin-top: 1rem;
}

.page-comments {
    margin-top: 3rem;
}

/* ============================================================
   21. SEARCH RESULTS HEADER
   ============================================================ */

.search-header {
    padding: 8rem 2rem 3rem;
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.search-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.search-header > p {
    color: var(--muted);
    max-width: 600px;
    margin: 0.5rem auto 0;
}
