/* ============================================
   AKBATI DİJİTAL - FRONTEND STYLES
   Modern, Professional, Corporate Design
   ============================================ */

/* CSS Variables */
:root {
    --primary: #0033c5;
    --primary-dark: #0a1f44;
    --primary-light: #2563eb;
    --secondary: #1e3a5f;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --text-light: #94a3b8;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
    background: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   TOP BAR (Koyu Lacivert)
   ============================================ */
.top-bar {
    background: linear-gradient(135deg, #0a1f44 0%, #1e3a5f 100%);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.875rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.top-bar-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.9);
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.top-bar-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.top-bar-link i {
    font-size: 0.9rem;
}

/* ============================================
   MAIN HEADER (Beyaz)
   ============================================ */
/* ============================================
   MAIN HEADER (Beyaz)
   ============================================ */
.main-header {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
    /* Changed from sticky to relative so toggle works */
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    gap: 40px;
}

/* Logo */
.header-logo a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo img {
    height: 40px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text strong {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 1.5px;
}

/* Sticky Header - Controlled by PHP Toggle */
.main-header.sticky-enabled {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Optional: Add a transition or shadow when actually scrolled (handled by JS .scrolled class if needed) */
.main-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Navigation */
.main-nav {
    flex: 1;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

/* Navigation Items */
.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 30px 16px;
    /* Increased top/bottom padding to fill header height and bridge gap */
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    z-index: 1001;
    /* Keep link above menu */
    transition: color 0.3s ease;
}

/* Hover line effect instead of background */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-item.active .nav-link::after {
    width: 100%;
}

.nav-link:hover,
.nav-item.active .nav-link {
    color: var(--primary);
    background: transparent;
    /* Remove bg to keep clean look */
}

.nav-link i {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Dropdown Menu */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    background: var(--white);
    border: none;
    /* Removed border */
    border-radius: 12px;
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.15), 0 10px 20px -5px rgba(0, 0, 0, 0.04);
    min-width: 260px;
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    list-style: none;
    z-index: 100;
}

/* Bridge to prevent closing on gap */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 20px;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 14px 24px;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f8fafc;
    /* Subtle separator */
}

/* Remove border from last item */
.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background: rgba(0, 51, 197, 0.04);
    /* Very light primary tint */
    color: var(--primary);
    padding-left: 28px;
    /* Slide effect */
}

/* MEGA MENU START */
.nav-item.mega-rel {
    position: static !important;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-out;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    pointer-events: none;
    z-index: 9999;
}

/* BRIDGE: Invisible area to prevent closing */
.mega-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    /* Small bridge as backup to padding */
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

/* Hover or Active trigger */
.nav-item.mega-rel:hover .mega-menu,
/* .nav-item.mega-rel:focus-within .mega-menu, Removed to prevent sticky click */
.nav-item.mega-rel.active .mega-menu,
.mega-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Mega Menu Container */
.mega-menu-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: nowrap;
    gap: 40px;
    /* Spacious gap between columns */
    padding: 0;
    min-height: 400px;
}

/* GENERIC COLUMN (TEXT) */
.mega-column.mega-text-col {
    padding: 40px;
    border-right: none;
}

/* 1. First Column (List): Narrower to reduce gap */
.mega-menu-inner .mega-text-col:nth-child(1) {
    flex: 0 0 280px;
    /* Fixed narrow width for list */
    padding-right: 0;
    /* Remove right padding to pull next col closer */
}

/* 2. Second Column (Cards): Takes remaining space */
.mega-menu-inner .mega-text-col:nth-child(2) {
    flex: 1;
    padding-left: 20px;
    /* Reduced left padding */
}

.mega-text-col h4 {
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    display: block;
    text-transform: none;
    /* Keep natural case */
    letter-spacing: 0;
}

.mega-text-col .mega-list li {
    margin-bottom: 12px;
}

.mega-text-col .mega-list li a {
    color: #475569;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
    padding: 5px 0;
    display: block;
}

.mega-text-col .mega-list li a:hover {
    color: var(--primary);
    transform: translateX(3px);
    /* Subtle nudge */
}

/* CARDS IN TEXT COLUMN (For Col 2) */
.mega-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2 wide within column */
    gap: 15px;
}

.mega-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mega-card:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.mega-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #2563eb;
    background: #eff6ff;
    border-radius: 8px;
    flex-shrink: 0;
}

.mega-card-info h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}


/* VISUAL COLUMN (RIGHT) */
.mega-column.mega-visual-col {
    flex: 0 0 320px;
    /* Fixed width sidebar for visuals */
    background: #f8fafc;
    padding: 40px;
}

.mega-visual-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.visual-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.visual-item {
    background: #e2e8f0;
    /* Default placeholder color */
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/10;
    /* Landscape rectangle like the reference */
}

.visual-item.placeholder {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 24 24" fill="none" stroke="%23cbd5e1" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"/><circle cx="8.5" cy="8.5" r="1.5"/><polyline points="21 15 16 10 5 21"/></svg>') no-repeat center center;
    background-size: 50%;
    background-color: #f1f5f9;
}

.visual-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.visual-link {
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    text-align: right;
    /* To match "Incele" position usually */
}


/* MEGA MENU END */

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Language Selector */
.language-selector {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    min-height: 44px;
    /* Mobile touch target */
}

.lang-btn:hover {
    border-color: var(--primary);
    background: var(--bg-light);
}

.lang-flag {
    width: 20px;
    height: auto;
}

.lang-code {
    font-weight: 600;
}

.lang-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    color: #94a3b8;
}

.language-selector.active .lang-arrow {
    transform: rotate(180deg);
}

/* Language Dropdown */
.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.language-selector.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown li {
    margin: 0;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    min-height: 44px;
    /* Mobile touch target */
}

.lang-option:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.lang-option img {
    width: 20px;
    height: auto;
}

/* CTA Button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--gradient);
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 51, 197, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 51, 197, 0.3);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 8px;
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
    padding: 100px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 30px;
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.service-description {
    color: var(--text-gray);
    margin-bottom: 24px;
    line-height: 1.6;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.service-link:hover {
    gap: 12px;
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    /* Background and color now controlled via admin panel inline styles */
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 8px;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.mobile-extra-links,
.mobile-extra-wrapper {
    display: none;
    /* Hidden by default on desktop */
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {

    /* Hide Top Bar on Tablet/Mobile */
    .top-bar {
        display: none !important;
    }

    /* Show Extra Links in Menu */
    .mobile-extra-wrapper {
        display: block;
        /* Force show on mobile */
        width: 100%;
        margin-bottom: 20px;
        border-bottom: 1px solid #f1f5f9;
        padding-bottom: 15px;
    }

    .mobile-extra-toggle {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        padding: 12px 15px;
        border-radius: 8px;
        font-size: 0.95rem;
        font-weight: 600;
        color: #1e293b;
        cursor: pointer;
        transition: all 0.2s;
    }

    .mobile-extra-toggle:hover {
        background: #f1f5f9;
    }

    .mobile-extra-toggle.active {
        background: #e0f2fe;
        border-color: #bae6fd;
        color: #0284c7;
    }

    .mobile-extra-toggle.active i.toggle-icon {
        transform: rotate(180deg);
    }

    .mobile-extra-toggle.active span i {
        color: #0284c7 !important;
    }

    .toggle-icon {
        transition: transform 0.3s ease;
        color: #94a3b8;
    }

    /* Content Area */
    .mobile-extra-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        opacity: 0;
    }

    .mobile-extra-content.open {
        opacity: 1;
        margin-top: 15px;
    }

    .mobile-extra-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* 2 Columns strict */
        gap: 10px;
        width: 100%;
    }

    /* We don't need rows anymore, just flatten the grid */
    .mobile-extra-row {
        display: contents;
        /* Makes children participate in the parent grid */
    }

    .mobile-btn-soft {
        display: flex;
        flex-direction: column;
        /* Stack Icon top, Text bottom for cleaner look or row? Row is safer for space */
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px 10px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        color: #475569;
        font-size: 0.85rem;
        font-weight: 600;
        text-decoration: none;
        text-align: center;
        transition: all 0.2s;
        height: 100%;
    }

    /* Make the last item (Phone usually) span full width if odd number or just primarily key */
    .mobile-extra-links>a:last-child,
    .mobile-extra-row:last-child>a:last-of-type:only-child {
        grid-column: span 2;
        background: #f0f9ff;
        color: #0369a1;
        border-color: #bae6fd;
    }

    .mobile-btn-soft:hover {
        background: #fff;
        border-color: #cbd5e1;
        transform: translateY(-1px);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    }

    .mobile-btn-soft i {
        color: var(--primary);
        font-size: 1rem;
    }


    .main-nav {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        /* Slightly wider */
        max-width: 400px;
        height: 100vh;
        background: #fff;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        padding: 80px 20px 40px;
        /* More bottom padding */
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 9999;
        overflow-y: auto;
    }

    .main-nav.mobile-open {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        display: flex;
        /* Ensure flex is applied */
    }

    .nav-item {
        width: 100%;
        height: auto;
        /* Reset fixed height from desktop */
        border-bottom: 1px solid #f1f5f9;
        padding: 0;
        display: block;
        /* Use block to allow children to expand nicely */
    }

    .nav-link {
        padding: 15px 0;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 1rem;
    }

    /* Remove the hover underline effect on mobile */
    .nav-link::after {
        display: none;
    }

    /* MEGA MENU & DROPDOWN RESPONSIVE STRIPPING */
    .mega-menu,
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding: 0;
        height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        transform: none;
        background: transparent;
        width: 100%;
        min-width: 100%;
    }

    /* Active state for mobile */
    .nav-item.mega-rel.active .mega-menu,
    .nav-item.has-dropdown.active .dropdown-menu {
        height: auto;
        opacity: 1;
        visibility: visible;
        padding-top: 10px;
        padding-bottom: 20px;
    }

    /* Flatten everything to simple list */
    .mega-menu-inner {
        flex-direction: column;
        gap: 0;
        padding: 0 10px;
        min-height: auto;
    }

    .mega-column,
    .mega-column.mega-sidebar-col,
    .mega-column.is-wide,
    .mega-column.featured-col {
        width: 100%;
        min-width: 100%;
        flex: none;
        padding: 0;
        border: none;
        background: transparent;
        margin: 0;
    }

    /* Hide Section Headers & Featured Info on Mobile */
    .mega-column h4,
    .mega-column.featured-col {
        display: none !important;
    }

    /* Sidebar List Items - Normalize */
    .mega-sidebar-col .mega-list li a {
        padding: 10px 15px 10px 20px;
        /* Indent */
        background: transparent !important;
        font-weight: 500;
        color: #64748b;
        font-size: 0.95rem;
        display: block;
    }

    .mega-sidebar-col .mega-list li a:hover {
        color: var(--primary);
    }

    /* CONVERT CARDS TO SIMPLE LINKS (Indented) */
    .mega-card-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .mega-card {
        display: flex;
        /* Keep flex for icon alignment */
        align-items: center;
        gap: 12px;
        padding: 12px 15px 12px 20px;
        /* Indent sub-items */
        border: none;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        min-height: auto;
        border-bottom: 1px solid #f8fafc;
        /* Subtle separator */
    }

    /* Reduce oversized CTA Button on Mobile */
    .header-content .btn-primary {
        padding: 8px 14px;
        font-size: 0.85rem;
        border-radius: 6px;
        white-space: nowrap;
        /* Prevent breaking if possible, or allow wrap conservatively */
        min-height: auto;
    }

    .mega-card:last-child {
        border-bottom: none;
    }

    /* Ensure hierarchy visibility */
    .mega-menu {
        background: #f8fafc;
        /* Light gray background for sub-menu area */
        border-radius: 8px;
        /* Optional rounded inner look */
        margin-top: 5px;
    }

    .mega-card:hover {
        border-color: transparent;
        box-shadow: none;
        background: transparent;
        transform: none;
    }

    .mega-card-icon {
        width: 24px;
        height: 24px;
        font-size: 1.1rem;
        color: #64748b;
        /* Mute the icon ccolor */
        justify-content: flex-start;
    }

    .mega-card-info h5 {
        font-size: 0.95rem;
        font-weight: 500;
        color: #334155;
    }

    /* Ensure links have full width hit area */
    .mega-card {
        width: 100%;
    }

    .nav-item.mega-rel.active .nav-link,
    .nav-item.has-dropdown.active .nav-link {
        color: var(--primary);
    }

    .mobile-menu-toggle {
        display: block;
        z-index: 10000;
        position: relative;
    }

    /* Hamburger Animation helper if needed */
    .menu-open .mobile-menu-toggle i::before {
        content: "\f00d";
        /* Change to X icon */
    }

    .hero-section .container {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.2rem;
    }
}



@media (max-width: 768px) {

    /* Hide Top Bar on Mobile */
    .top-bar {
        display: none !important;
    }

    /* Mobile Menu Header (Buttons duplicated from top-bar) */
    .mobile-extra-links {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding-bottom: 20px;
        border-bottom: 1px solid #f1f5f9;
        margin-bottom: 20px;
        width: 100%;
    }

    .mobile-extra-row {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .mobile-btn-soft {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 14px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        color: #475569;
        font-size: 0.9rem;
        font-weight: 500;
        text-decoration: none;
        flex: 1;
        /* Stretch to fill */
        justify-content: center;
    }

    .mobile-btn-soft:hover {
        background: #e2e8f0;
        color: #1e293b;
    }

    .mobile-btn-soft i {
        color: var(--primary);
    }

    .mobile-btn-primary {
        background: var(--primary);
        color: #fff;
        border: none;
    }

    .mobile-btn-primary i {
        color: #fff;
    }

    .top-bar-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .top-bar-left,
    .top-bar-right {
        gap: 16px;
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Force 2-col on small screens for simple lists if space permits? No, 1 is safer */
}

/* ============================================
   STANDARD PAGE HEADER & CONTENT
   ============================================ */
.page-header-area {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
    padding: 100px 0 80px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

/* Optional decorative blob */
.page-header-area::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.page-title-large {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
    position: relative;
    z-index: 2;
}

.breadcrumb-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 2;
}

.breadcrumb-nav a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: color 0.3s;
}

.breadcrumb-nav a:hover {
    color: var(--white);
    text-decoration: underline;
}

.breadcrumb-sep {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Modern Content Container */
.page-content-section {
    padding: 80px 0;
    background: #f8fafc;
    /* Very light gray bg */
}

.content-box-modern {
    background: #ffffff;
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    /* Soft shadow */
    font-size: 1.05rem;
    line-height: 1.8;
    color: #334155;
}

/* Typography refinement inside content */
.content-box-modern h2 {
    font-size: 1.8rem;
    color: #0f172a;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
}

.content-box-modern h3 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.content-box-modern p {
    margin-bottom: 20px;
}

.content-box-modern ul,
.content-box-modern ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.content-box-modern li {
    margin-bottom: 10px;
}

/* MOBILE RESPONSIVE TWEAKS FOR NEW PAGES */
@media (max-width: 768px) {
    .page-header-area {
        padding: 60px 0 40px;
    }

    .page-title-large {
        font-size: 2rem;
    }

    .content-box-modern {
        padding: 30px 20px;
        border-radius: 12px;
    }

    .page-content-section {
        padding: 40px 0;
    }

    /* MOBILE FOOTER OPTIMIZATION */
    .main-footer {
        padding: 30px 0 10px !important;
    }

    .footer-content {
        gap: 25px !important;
        margin-bottom: 20px !important;
    }

    .footer-col {
        margin-bottom: 0;
    }

    .footer-title {
        font-size: 1rem !important;
        margin-bottom: 12px !important;
    }

    .footer-text {
        font-size: 0.85rem !important;
        margin-bottom: 12px !important;
    }

    .footer-links li {
        margin-bottom: 8px !important;
    }

    .footer-links a,
    .footer-contact li {
        font-size: 0.85rem !important;
    }

    .footer-contact li {
        margin-bottom: 8px !important;
    }

    .social-links {
        gap: 8px !important;
        margin-bottom: 15px;
    }

    .social-link {
        width: 36px !important;
        height: 36px !important;
    }

    .footer-bottom {
        padding: 15px 0 !important;
        font-size: 0.8rem !important;
        flex-direction: column !important;
        gap: 12px !important;
        text-align: center !important;
    }

    .footer-bottom p {
        font-size: 0.8rem !important;
    }

    /* Newsletter on mobile */
    .newsletter-section {
        padding: 25px 20px !important;
        margin-bottom: 30px !important;
    }

    .newsletter-section h3 {
        font-size: 1.2rem !important;
    }

    .newsletter-section p {
        font-size: 0.85rem !important;
    }
}