/*
Theme Name: Theme V1
Theme URI: https://github.com/root/theme-v1
Author: Root
Author URI: https://github.com/root
Description: Professional, SEO-optimized, responsive, multi-language WordPress theme. Clean blank slate with powerful Customizer settings.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: theme-v1
Tags: blog, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, accessibility-ready, wide-blocks, block-patterns, responsive-layout, two-columns, left-sidebar, right-sidebar
*/

/* =========================================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ========================================================= */
:root {
    /* Primary Colors */
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-primary-light: #3b82f6;
    --color-secondary: #7c3aed;
    --color-accent: #f59e0b;

    /* Neutral Colors */
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    --color-surface: #f1f5f9;
    --color-border: #e2e8f0;
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-text-light: #94a3b8;
    --color-white: #ffffff;
    --color-black: #0f172a;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-serif: 'Georgia', 'Times New Roman', serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Layout */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1536px;
    --container-max: 1536px;
    --container-padding: 40px;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;

    /* Header */
    --header-height: 70px;
    --header-bg: #ffffff;
    --header-border: #e2e8f0;
}

/* =========================================================
   CSS RESET & BASE STYLES
   ========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* RTL Support for Arabic */
body.lang-ar,
html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
    font-family: 'Cairo', 'Noto Sans Arabic', var(--font-sans);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

ul,
ol {
    list-style: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

/* =========================================================
   LAYOUT UTILITIES
   ========================================================= */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.container-fluid {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 3%;
    padding-right: 3%;
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

/* =========================================================
   SITE HEADER
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: auto;
    border-bottom: none !important;
    box-shadow: none !important;
    transition: background-color 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.header-top-row {
    background-color: var(--color-bg, #ffffff) !important;
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--header-border, transparent) !important;
}

/* Scrolled state forced to dark to prevent white line */
.site-header.scrolled {
    background-color: var(--color-black) !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    border-bottom: none !important;
}

.header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-6);
}

.custom-top-logo {
    max-height: 60px;
    width: auto;
    display: block;
}

.header-widgets {
    display: flex;
    gap: var(--space-4);
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

.contact-card {
    display: flex;
    align-items: center;
    background-color: var(--color-surface);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    padding: var(--space-2) var(--space-4);
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
    height: 56px;
    box-sizing: border-box;
}

.contact-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
    background-color: var(--color-bg);
}

.contact-combined {
    display: flex;
    align-items: center;
    padding: var(--space-2) var(--space-4);
    gap: 0;
}

.contact-section {
    display: flex;
    align-items: center;
}

.contact-divider {
    width: 1px;
    height: 32px;
    background-color: var(--color-border);
    margin: 0 var(--space-4);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-right: var(--space-3);
    background-color: rgba(37, 99, 235, 0.1);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.contact-details {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.contact-fade-slider {
    position: relative;
    height: 24px;
    display: grid;
    align-items: center;
}

.contact-fade-item {
    grid-area: 1 / 1;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
    white-space: nowrap;
}

.contact-fade-item.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* STOCK TICKER ANIMATION */
.stock-ticker-box {
    flex: 1;
    overflow: hidden;
    padding: var(--space-2) var(--space-3);
    min-width: 300px;
    height: 56px;
    box-sizing: border-box;
}

.ticker-wrapper {
    width: 100%;
    overflow: hidden;
    display: flex;
}

.ticker-track {
    display: flex;
    align-items: center;
    gap: 0;
    animation: marquee 25s linear infinite;
}

.ticker-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: var(--space-5);
}

.ticker-item img {
    height: 24px;
    width: auto;
    object-fit: contain;
    transition: all var(--transition-fast);
}

.ticker-item img:hover {
    transform: scale(1.05);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.contact-item-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-details .contact-item-row+.contact-item-row {
    margin-left: var(--space-3);
    padding-left: var(--space-3);
    border-left: 1px solid var(--color-border);
}

.contact-flag {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 18px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.contact-flag svg {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
}

.contact-details a {
    font-size: var(--text-sm);
    color: var(--color-text);
    font-weight: 500;
    line-height: 1.2;
}

.contact-details a:hover {
    color: var(--color-primary);
}

.header-main-row {
    background-color: var(--color-black) !important;
    border-top: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

/* ── Nav links: white text on dark header ── */
.header-main-row .main-navigation ul li > a {
    color: var(--color-white) !important;
}

/* Hover state: just blue text */
.header-main-row .main-navigation ul li > a:hover {
    color: #5b9af1 !important;
    background-color: transparent !important;
}

/* Active page highlight: blue text + visible pill */
.header-main-row .main-navigation ul li.current-menu-item > a {
    color: #5b9af1 !important;
    background-color: rgba(91, 154, 241, 0.2) !important;
    border-radius: var(--radius-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    gap: var(--space-4);
}

/* Site Logo & Branding */
.site-branding {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-shrink: 0;
}

.site-logo img {
    height: 40px;
    width: auto;
    display: block;
}

.site-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.025em;
}

.site-title a {
    color: inherit;
}

.site-description {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-1);
}

/* Primary Navigation */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation ul li > a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-white);
    border-radius: 0;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.main-navigation ul li > a:hover {
    color: #5b9af1;
    background-color: transparent;
}

/* Active page: blue text + subtle pill highlight */
.main-navigation ul li.current-menu-item > a {
    color: #5b9af1;
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
}

/* Nav item padding is symmetric — alignment handled by margin-left on .main-navigation */

/* Dropdown arrow icon */
.main-navigation .nav-arrow {
    display: inline-block;
    font-style: normal;
    font-size: 1.1em;
    line-height: 1;
    transform: rotate(90deg);
    transition: transform var(--transition-fast);
    margin-left: 2px;
}

.main-navigation ul li:hover > a .nav-arrow {
    transform: rotate(-90deg);
}

/* Dropdown Menus */
.main-navigation ul li {
    position: relative;
}

.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    padding: var(--space-2) 0;
    gap: 0;
    z-index: 200;
    list-style: none;
    margin: 0;
}

.main-navigation ul li:hover > ul {
    display: flex;
}

.main-navigation ul ul li {
    display: block;
    width: 100%;
    border-bottom: 1px solid var(--color-border);
}

.main-navigation ul ul li:last-child {
    border-bottom: none;
}

.main-navigation ul ul li a {
    display: block;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-text) !important;
    border-radius: 0;
    white-space: normal;
    line-height: 1.4;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.main-navigation ul ul li a:hover {
    background-color: var(--color-surface);
    color: var(--color-primary) !important;
}

/* Ensure sub-menu doesn't inherit dark nav overrides */
.header-main-row .main-navigation ul ul li > a {
    color: var(--color-text) !important;
}
.header-main-row .main-navigation ul ul li > a:hover {
    color: var(--color-primary) !important;
    background-color: var(--color-surface) !important;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* =========================================================
   LANGUAGE SWITCHER
   ========================================================= */
.language-switcher {
    position: relative;
}

.language-switcher-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    cursor: pointer;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text);
    transition: all var(--transition-fast);
}

.language-switcher-toggle:hover {
    background: var(--color-surface);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.language-switcher-toggle .flag {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    overflow: hidden;
    flex-shrink: 0;
}

.language-switcher-toggle .flag img,
.language-switcher-toggle .flag svg {
    width: 100%;
    height: 100%;
    object-fit: fill;
    border-radius: 4px;
}

.language-switcher-toggle .lang-code {
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.language-switcher-toggle .chevron {
    width: 14px;
    height: 14px;
    transition: transform var(--transition-fast);
}

.language-switcher.open .chevron {
    transform: rotate(180deg);
}

.language-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + var(--space-2));
    right: 0;
    min-width: 200px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    z-index: 200;
}

html[dir="rtl"] .language-dropdown {
    right: auto;
    left: 0;
}

.language-switcher.open .language-dropdown {
    display: block;
}

.language-dropdown-header {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--color-border);
}

.language-list {
    padding: var(--space-2);
}

.language-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition-fast);
    text-decoration: none;
    color: var(--color-text);
}

.language-item:hover {
    background: var(--color-surface);
    color: var(--color-primary);
}

.language-item.active {
    background: var(--color-primary);
    color: var(--color-white);
}

.language-item.active:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
}

.language-item .flag {
    width: 24px;
    height: 18px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.language-item .flag svg {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
    border-radius: 4px;
}

.language-item .lang-info {
    flex: 1;
}

.language-item .lang-name {
    font-size: var(--text-sm);
    font-weight: 500;
    display: block;
}

.language-item .lang-native {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    display: block;
}

.language-item.active .lang-native {
    color: rgba(255, 255, 255, 0.75);
}

.language-item .lang-badge {
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-light);
    background: var(--color-surface);
    padding: 2px var(--space-2);
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.language-item.active .lang-badge {
    background: rgba(255, 255, 255, 0.25);
    color: var(--color-white);
}

/* =========================================================
   HAMBURGER MENU (Mobile)
   ========================================================= */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: var(--space-2);
    background: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.hamburger:hover {
    background: var(--color-surface);
    border-color: var(--color-primary);
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.mobile-nav-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Navigation Drawer */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: var(--color-white);
    z-index: 999;
    overflow-y: auto;
    transition: right var(--transition-slow);
    box-shadow: var(--shadow-xl);
}

html[dir="rtl"] .mobile-nav {
    right: auto;
    left: -320px;
    transition: left var(--transition-slow);
}

.mobile-nav.active {
    display: block;
    right: 0;
}

html[dir="rtl"] .mobile-nav.active {
    right: auto;
    left: 0;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--color-border);
}

.mobile-nav-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: var(--text-lg);
    color: var(--color-text-muted);
}

.mobile-nav-menu {
    padding: var(--space-4) var(--space-4);
}

.mobile-nav-menu ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.mobile-nav-menu ul li a {
    display: block;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--color-text);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.mobile-nav-menu ul li a:hover {
    background: var(--color-surface);
    color: var(--color-primary);
    padding-left: var(--space-6);
}

/* =========================================================
   SITE MAIN CONTENT
   ========================================================= */
.content-area {
    padding: var(--space-12) 0;
}

.content-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}

.content-inner.has-sidebar {
    grid-template-columns: 1fr 320px;
}

.content-inner.sidebar-left {
    grid-template-columns: 320px 1fr;
}

/* =========================================================
   WIDGETS / SIDEBAR
   ========================================================= */
.widget-area {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.widget {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
}

.widget-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--color-primary);
}

/* =========================================================
   SITE FOOTER
   ========================================================= */
.site-footer {
    background: var(--color-black);
    color: var(--color-text-light);
    margin-top: auto;
}

.footer-widgets {
    padding: var(--space-16) 0 var(--space-12);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
}

.footer-widget-title {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-6) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--text-sm);
    gap: var(--space-4);
}

.footer-links {
    display: flex;
    gap: var(--space-6);
}

.footer-links a {
    color: var(--color-text-light);
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-white);
}

/* Social Media Icons */
.social-links {
    display: flex;
    gap: var(--space-3);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--color-text-light);
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.social-link:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-sans);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-text);
    letter-spacing: -0.025em;
}

h1 {
    font-size: var(--text-4xl);
}

h2 {
    font-size: var(--text-3xl);
}

h3 {
    font-size: var(--text-2xl);
}

h4 {
    font-size: var(--text-xl);
}

h5 {
    font-size: var(--text-lg);
}

h6 {
    font-size: var(--text-base);
}

p {
    margin-bottom: var(--space-4);
}

p:last-child {
    margin-bottom: 0;
}

code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--color-surface);
    padding: 0.125em 0.375em;
    border-radius: var(--radius-sm);
}

pre {
    font-family: var(--font-mono);
    background: var(--color-black);
    color: var(--color-white);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    margin-bottom: var(--space-6);
}

blockquote {
    border-left: 4px solid var(--color-primary);
    padding: var(--space-4) var(--space-6);
    background: var(--color-bg-alt);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    margin-bottom: var(--space-6);
}

html[dir="rtl"] blockquote {
    border-left: none;
    border-right: 4px solid var(--color-primary);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1;
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* =========================================================
   FORMS
   ========================================================= */
.form-group {
    margin-bottom: var(--space-4);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    color: var(--color-text);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.15);
}

/* =========================================================
   SEARCH FORM
   ========================================================= */
.search-form {
    display: flex;
    gap: 0;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.search-form:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.15);
}

.search-field {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    background: transparent;
    border: none;
    outline: none;
    font-size: var(--text-sm);
    color: var(--color-text);
}

.search-submit {
    padding: var(--space-3) var(--space-4);
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    font-size: var(--text-sm);
    font-weight: 600;
    transition: background var(--transition-fast);
}

.search-submit:hover {
    background: var(--color-primary-dark);
}

/* =========================================================
   POSTS / ARTICLES
   ========================================================= */
.entry-header {
    margin-bottom: var(--space-6);
}

.entry-title {
    margin-bottom: var(--space-3);
}

.entry-title a {
    color: var(--color-text);
}

.entry-title a:hover {
    color: var(--color-primary);
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.entry-meta a {
    color: var(--color-text-muted);
}

.entry-meta a:hover {
    color: var(--color-primary);
}

.entry-thumbnail {
    margin-bottom: var(--space-6);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.entry-content {
    font-size: var(--text-base);
    line-height: 1.8;
}

/* =========================================================
   PAGINATION
   ========================================================= */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-12);
}

.pagination a,
.pagination .current {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: var(--text-sm);
    font-weight: 500;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.pagination a {
    color: var(--color-text);
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
}

.pagination a:hover {
    color: var(--color-white);
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.pagination .current {
    color: var(--color-white);
    background: var(--color-primary);
    border: 1px solid var(--color-primary);
}

/* =========================================================
   404 PAGE
   ========================================================= */
.error-404 {
    text-align: center;
    padding: var(--space-24) var(--space-4);
}

.error-404 .error-code {
    font-size: 8rem;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: var(--space-4);
    opacity: 0.2;
}

.error-404 .error-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
}

.error-404 .error-description {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    max-width: 480px;
    margin: 0 auto var(--space-8);
}

/* =========================================================
   SKIP LINK (Accessibility)
   ========================================================= */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    z-index: 9999;
    padding: var(--space-3) var(--space-6);
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 600;
    border-radius: 0 0 var(--radius-md) 0;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
    color: var(--color-white);
}

/* =========================================================
   WORDPRESS CORE CLASSES
   ========================================================= */
.alignleft {
    float: left;
    margin-right: var(--space-6);
    margin-bottom: var(--space-4);
}

.alignright {
    float: right;
    margin-left: var(--space-6);
    margin-bottom: var(--space-4);
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-4);
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    text-align: center;
    margin-top: var(--space-2);
}

.gallery {
    margin-bottom: var(--space-6);
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    white-space: nowrap;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================= */

/* Large Desktop (1280px+) */
@media (min-width: 1280px) {
    .container {
        padding-left: var(--space-8);
        padding-right: var(--space-8);
    }
}

/* Tablet and below (1024px) */
@media (max-width: 1024px) {
    .header-contacts {
        flex-direction: column;
        align-items: flex-end;
        gap: var(--space-2);
    }

    .content-inner.has-sidebar {
        grid-template-columns: 1fr 280px;
    }

    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet (768px) */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .main-navigation {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .header-top-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .header-contacts {
        flex-direction: column;
        width: 100%;
    }

    .contact-card {
        width: 100%;
        justify-content: center;
    }

    .content-inner.has-sidebar,
    .content-inner.sidebar-left {
        grid-template-columns: 1fr;
    }

    .widget-area {
        order: 2;
    }

    h1 {
        font-size: var(--text-3xl);
    }

    h2 {
        font-size: var(--text-2xl);
    }

    h3 {
        font-size: var(--text-xl);
    }

    .footer-widgets {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-6);
        padding: var(--space-12) 0 var(--space-8);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile (480px) */
@media (max-width: 480px) {
    h1 {
        font-size: var(--text-2xl);
    }

    h2 {
        font-size: var(--text-xl);
    }

    .footer-widgets {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-3);
    }

    .language-switcher-toggle .lang-name-full {
        display: none;
    }
}

/* Very small screens (360px) */
@media (max-width: 360px) {
    :root {
        --header-height: 55px;
    }

    .container {
        padding-left: var(--space-3);
        padding-right: var(--space-3);
    }
}

/* =========================================================
   SATISFACTION BANNER
   ========================================================= */
.satisfaction-banner-section {
    position: relative;
    padding: 130px 0;
    /* Extra padding to fit overlapping pills */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-family: var(--font-primary);
}

.sat-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.satisfaction-banner-wrapper {
    display: flex;
    justify-content: center;
    align-items: stretch;
    /* So children fill height */
    position: relative;
    z-index: 2;
    max-width: 1140px;
    margin: 0 auto;
    height: 130px;
}

/* The dark blue pill */
.satisfaction-banner-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #080c30;
    /* Deep dark blue */
    border-radius: 80px;
    z-index: -1;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.satisfaction-side {
    flex: 1;
    display: flex;
    align-items: center;
    color: #fff;
    padding: 0 var(--space-5);
    z-index: 1;
    /* Keep text above everything */
}

.satisfaction-left {
    justify-content: flex-start;
}

.satisfaction-right {
    justify-content: flex-end;
}

.sat-contact-block {
    display: flex;
    align-items: center;
}

.sat-icon-circle {
    width: 66px;
    height: 66px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    padding: 5px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.satisfaction-right .sat-icon-circle {
    margin-right: 0;
    margin-left: 20px;
}

.sat-icon-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed #4ba2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4ba2ff;
}

.sat-icon-inner svg {
    width: 22px;
    height: 22px;
}

.sat-contact-text h4 {
    margin: 0 0 2px 0;
    font-size: 21px;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}

.sat-contact-text a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    text-decoration: none;
    font-weight: 500;
}

.sat-contact-text.text-right {
    text-align: right;
}

.satisfaction-center {
    width: 400px;
    height: 100%;
    position: relative;
    z-index: auto;
    /* IMPORTANT so children can go behind wrapper ::before */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    /* Faint separator */
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sat-center-content {
    /* Holds the 94% text and avatars */
    text-align: center;
    z-index: 1;
}

.sat-center-content h2 {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin: 4px 0 10px 0;
}

.sat-avatars {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sat-avatars img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    margin-left: -14px;
}

.sat-avatars img:first-child {
    margin-left: 0;
}

.sat-badge-top,
.sat-badge-bottom {
    position: absolute;
    left: 0;
    /* Same as border limits */
    right: 0;
    background-color: #4ba2ff;
    /* Vibrant light blue */
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    justify-content: center;
    z-index: -2;
    /* Behinds wrapper's ::before (-1) */
}

.sat-badge-top {
    top: -46px;
    height: 80px;
    /* Sticks into the center to ensure no gap */
    border-radius: 20px 20px 0 0;
    align-items: flex-start;
    padding-top: 13px;
    /* Centers text in jutting portion */
}

.sat-badge-bottom {
    bottom: -48px;
    height: 80px;
    border-radius: 0 0 20px 20px;
    align-items: flex-end;
    padding-bottom: 13px;
}

.sat-badge-bottom a {
    color: #fff;
    text-decoration: none;
    display: block;
}

@media (max-width: 900px) {
    .satisfaction-banner-wrapper {
        flex-direction: column;
        height: auto;
        border-radius: 30px;
        padding: 40px 20px;
        gap: 30px;
        margin: 0 20px;
    }

    .satisfaction-banner-wrapper::before {
        border-radius: 30px;
    }

    .satisfaction-center {
        width: 100%;
        border-left: none;
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 40px 0;
        height: auto;
    }

    .sat-badge-top,
    .sat-badge-bottom {
        position: relative;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        height: 46px;
        border-radius: 12px;
        margin: 15px 0;
        align-items: center;
        padding: 0;
        z-index: 1;
        /* Reset z-index */
    }

    .satisfaction-side {
        width: 100%;
        justify-content: center;
        padding: 0;
    }
}

/* =========================================================
   UNIFIED SECTION HEADERS
   ========================================================= */
.section-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 1.5rem;
    width: 100%;
}

.title-decoration {
    flex: 1;
    height: 1px;
    background: currentColor;
    opacity: 0.15;
    position: relative;
    max-width: 200px;
    display: flex;
    align-items: center;
}

.title-decoration.line-left {
    justify-content: flex-end;
}

.title-decoration.line-right {
    justify-content: flex-start;
}

.title-decoration svg {
    width: 24px !important;
    /* Increased size for better visibility */
    height: 12px !important;
    position: absolute;
    color: currentColor;
    display: block !important;
}

.title-decoration.line-left svg {
    right: -5px;
}

.title-decoration.line-right svg {
    left: -5px;
}

/* =========================================================
   CLIENT REVIEWS SECTION
   ========================================================= */
.client-reviews-section {
    padding: 80px 0;
    background-color: #f7f9fc;
    overflow: hidden;
    /* Hide the scrolling cards that go off-screen */
}

.reviews-header {
    margin-bottom: 25px;
    /* Reduced from 50px */
    text-align: center;
}

.reviews-subtitle {
    display: block;
    color: #4ba2ff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.reviews-title {
    font-size: 36px;
    font-weight: 800;
    color: #080c30;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.rev-arrow {
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rev-arrow:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.rev-arrow-left:hover {
    transform: translateX(-3px) scale(1.1);
}

.rev-arrow-right:hover {
    transform: translateX(3px) scale(1.1);
}

/* =========================================================
   CLIENT REVIEWS – STEP SLIDER
   ========================================================= */
.reviews-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0 auto;
    padding: 0 10px 50px 10px; /* Reduced side padding (arrows removed) */
    box-sizing: border-box;
}

.reviews-carousel-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    padding-top: 40px;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Each card occupies calc(25% - gap) across 4 visible slots */
.review-card {
    flex: 0 0 calc(25% - 15px);
    min-width: calc(25% - 15px);
    box-sizing: border-box;
}

/* Nav arrows removed as requested */

/* Dot navigation */
.reviews-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}
.reviews-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(8, 12, 48, 0.25);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, transform 0.25s;
}
.reviews-dot.active {
    background: #4ba2ff;
    transform: scale(1.35);
}

@media (max-width: 900px) {
    .review-card { flex: 0 0 calc(50% - 10px); min-width: calc(50% - 10px); }
}
@media (max-width: 560px) {
    .review-card { flex: 0 0 100%; min-width: 100%; }
    .reviews-nav { display: none; }
    .reviews-carousel-wrapper { padding-left: 0; padding-right: 0; }
}


/* =========================================================
   FAQ SECTION
   ========================================================= */
.faq-section {
    padding: 80px 0;
    color: #fff;
    /* Removed custom background-color to blend with the global dark theme background */
    background-color: transparent;
}

.faq-container {
    /* Inherits from .container: max-width var(--container-max) and standard padding */
    margin: 0 auto;
}

.faq-header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-subtitle {
    display: block;
    color: #4ba2ff;
    /* Matches other subtitles */
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.faq-title {
    font-size: 36px;
    font-weight: 800;
    color: #080c30;
    /* Dark blue title, matching Our Expertise */
    margin: 0 0 20px 0;
}

.faq-desc {
    color: rgba(8, 12, 48, 0.7);
    /* Dark text for readability */
    font-size: 16px;
    line-height: 1.6;
}

.faq-accordion {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
    /* Prevents closed items from stretching vertically */
}

.faq-item {
    background: #ffffff;
    /* Match Expertise card background */
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Lighter border for light theme */
    border-radius: 6px;
    /* Match expertise border radius */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    /* Match expertise shadow */
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item[open] {
    border-color: rgba(59, 130, 246, 0.3);
    /* Expertise blue border on open */
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
    /* Enhance shadow on open */
}

.faq-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    /* Match expertise padding proportion */
    font-size: 18px;
    /* Match expertise title size closely */
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    /* Hide default arrow */
    color: #111827;
    /* Match expertise dark text */
    user-select: none;
    transition: background-color 0.3s, color 0.3s ease;
}

.faq-summary::-webkit-details-marker {
    display: none;
    /* Hide default arrow in webkit */
}

.faq-summary:hover {
    background-color: rgba(0, 0, 0, 0.01);
    color: #3b82f6;
    /* Expertise blue on hover */
}

.faq-icon {
    font-size: 24px;
    color: #3b82f6;
    /* Expertise primary blue (#3b82f6) */
    font-weight: 400;
    line-height: 1;
    transition: transform 0.3s ease;
}

/* When the details is open, rotate the plus into a cross/minus */
.faq-item[open] .faq-icon {
    transform: rotate(45deg);
}

.faq-content {
    padding: 0 30px 30px 30px;
    color: #4b5563;
    /* Expertise desc text color */
    font-size: 15px;
    /* Match expertise desc size */
    line-height: 1.6;
}

.faq-content p {
    margin: 0;
}

@media (max-width: 900px) {
    .faq-accordion {
        grid-template-columns: 1fr;
        /* Stack on mobile */
    }

    .faq-title {
        font-size: 28px;
    }
}

.review-card {
    background: #080c30;
    /* Dark blue */
    border: 2px solid rgba(75, 162, 255, 0.3);
    /* Subtle cyan border */
    border-radius: 20px;
    padding: 24px;
    /* Slightly reduced padding to keep rectangular */
    flex: 0 0 calc(25% - 15px);
    width: calc(25% - 15px); /* Changed from max-width to width for better sliding behavior */
    min-width: 250px;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: #4ba2ff;
    box-shadow: 0 15px 30px rgba(8, 12, 48, 0.15);
}

.review-avatar {
    position: absolute;
    top: -25px;
    left: 30px;
}

.review-avatar img,
.review-avatar .default-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f7f9fc;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.review-avatar .default-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4ba2ff;
}

.review-avatar .default-avatar svg {
    width: 24px;
    height: 24px;
}

.review-card-inner {
    padding-top: 15px;
    /* Space for the avatar */
}

.review-author {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.review-date {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    margin-bottom: 15px;
}

.review-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.review-stars svg {
    width: 16px;
    height: 16px;
}

.star-filled {
    color: #ffc107;
    fill: #ffc107;
}

.star-empty {
    color: rgba(255, 255, 255, 0.2);
    fill: none;
}

.review-text-container {
    flex-grow: 1;
    /* Pushes the 'read more' to bottom if cards vary in height */
}

.review-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 20px 0;
    /* Optional clamp to limit lines */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-read-more {
    color: #4ba2ff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.review-read-more:hover {
    color: #fff;
}

@media (max-width: 1024px) {
    .review-card {
        flex: 0 0 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .review-card {
        flex: 0 0 calc(100% - 0px);
        max-width: 100%;
        padding: 25px;
    }

    .reviews-title {
        font-size: 28px;
    }
}

/* =========================================================
   ADVANCED FOOTER STYLES
   ========================================================= */
.site-footer {
    background-color: #a2abac;
    color: #fff;
    padding: 60px 0 30px;
    position: relative;
    font-family: var(--font-sans);
}

.container-footer {
    max-width: var(--container-max);
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.footer-advanced-top {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col-about {
    padding-right: 20px;
}

.footer-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.footer-text {
    font-size: 15px;
    line-height: 1.6;
    color: #fff;
}

.footer-col-map {
    width: 100%;
    display: flex;
    flex-direction: column;
}

#footer-map {
    flex-grow: 1;
    min-height: 280px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.leaflet-popup-content-wrapper {
    background: #080c30;
    color: #fff;
    border: 1px solid #4ba2ff;
    border-radius: 8px;
}

.leaflet-popup-tip {
    background: #080c30;
    border-top: 1px solid #4ba2ff;
    border-left: 1px solid #4ba2ff;
}

.leaflet-popup-content {
    margin: 15px 18px;
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.4;
}

/* Custom Marker */
.custom-map-marker {
    position: relative;
    width: 30px;
    height: 42px;
}

.marker-pin {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    background: #4ba2ff;
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -15px 0 0 -15px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.marker-dot {
    width: 12px;
    height: 12px;
    background: #fff;
    position: absolute;
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -100%);
}

/* Footer Contact List */
.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact-item {
    font-size: 14px;
    line-height: 1.5;
    padding-bottom: 12px;
    position: relative;
}

.footer-contact-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.05) 100%);
}

.footer-contact-item:last-child::after {
    display: none;
}

.footer-contact-item:last-child {
    padding-bottom: 0;
}

.footer-contact-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 5px;
}

.footer-contact-row:last-child {
    margin-bottom: 0;
}

.footer-contact-row i {
    margin-top: 4px;
    width: 18px;
    flex-shrink: 0;
}

.footer-advanced-bottom {
    display: flex;
    justify-content: center;
    /* Center the copyright text */
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 25px;
    position: relative;
}

.footer-copyright {
    font-size: 14px;
    color: #cbd5e1;
    /* Light grey */
    font-weight: 600;
}

.footer-logo {
    margin-bottom: 20px;
    max-width: 340px;
    /* Approximate width of the title to match visually */
}

.footer-logo img {
    width: 100%;
    height: auto;
    display: block;
}

.footer-back-to-top {
    position: absolute;
    left: 50%;
    top: 25px;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background-color: #3b82f6;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.footer-back-to-top:hover {
    background-color: #2563eb;
    color: #fff;
}

.footer-call-btn {
    background-color: #3b82f6;
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
}

.footer-call-btn:hover {
    background-color: #2563eb;
    color: #fff;
}

@media (max-width: 991px) {
    .footer-advanced-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-col-map {
        margin: 20px 0;
    }

    .footer-advanced-bottom {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
}

/* =========================================================
   PRINT STYLES
   ========================================================= */
@media print {

    .site-header,
    .site-footer,
    .widget-area,
    .pagination,
    .language-switcher,
    .hamburger,
    .mobile-nav,
    .mobile-nav-overlay {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.75em;
        color: #666;
    }
}