/* assets/css/style.css */

/* CSS Variables for Theming */
:root {
    /* Light Theme (Default) - Premium Maritime Identity */
    --bg-color: #F8FAFC; /* Soft, cool gray-white */
    --surface-color: #FFFFFF; /* Pure white for cards/sections */
    --text-color: #1E293B; /* Slate 800 - dark, readable, elegant */
    --text-muted: #64748B; /* Slate 500 */
    --primary-color: #0F2A4A; /* Deep Navy Blue */
    /* Primary Maritime Palette */
    --primary-color: #0B2545;       /* Deep Navy */
    --primary-light: #13315C;
    --secondary-color: #0077B6;     /* Ocean Blue */
    --secondary-light: #CAF0F8;     /* Soft Sea Blue Backgrounds */
    --accent-color: #C1121F;        /* Subtle Red Accent */
    
    /* Neutrals */
    --bg-color: #F8FAFC;            /* Very Light Gray/Blue Tint */
    --surface-color: #FFFFFF;
    --text-color: #0F172A;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    
    /* Layout & UI */
    --header-bg: rgba(255, 255, 255, 0.9);
    --topbar-bg: #0B1E36;
    --topbar-text: #F1F5F9;
    --footer-bg: #0B2545;
    --footer-text: #E2E8F0;
    --card-bg: #FFFFFF;
    --radius: 12px;
    
    /* Shadows & Transitions */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-red: 0 4px 15px rgba(193, 18, 31, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Overrides - Maritime Dark */
[data-theme="dark"] {
    --bg-color: #020617;
    --surface-color: #0B1120;
    --text-color: #F8FAFC;
    --text-muted: #94A3B8;
    --border-color: #1E293B;
    --header-bg: rgba(11, 17, 32, 0.9);
    --card-bg: #0F172A;
    --secondary-light: #1E293B;
    --topbar-bg: #03070C;
    --topbar-text: #E2E8F0;
    --footer-bg: #03070C;
    --footer-text: #94A3B8;
    
    /* Dark mode specific brand colors for text visibility */
    --primary-color: #38BDF8; /* Sky Blue for dark mode headings */
    --secondary-color: #7DD3FC;
    
    --shadow: 0 10px 30px rgba(0,0,0,0.5);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.8);
    --shadow-red: 0 4px 15px rgba(230, 57, 70, 0.3);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Adjusted for sticky header */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    transition: background-color var(--transition), color var(--transition);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

html[dir="rtl"] body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.8; /* Arabic needs slightly more breathing room */
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

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

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.1; font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.2; font-weight: 700; }
h3 { font-size: clamp(1.3rem, 3vw, 1.75rem); line-height: 1.3; font-weight: 600; }

html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 {
    letter-spacing: normal;
}

[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3, 
[data-theme="dark"] h4, [data-theme="dark"] h5, [data-theme="dark"] h6 {
    color: #ffffff;
}

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

/* Buttons - Premium Styling */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(11, 37, 69, 0.3);
}

/* Hero Logo Positioning */
.hero-logo-wrapper {
    margin-bottom: 20px; /* Gap between logo and headline */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-main-logo {
    width: 220px;  /* Desktop base */
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.2));
    transition: var(--transition);
}

.hero-main-logo:hover {
    transform: scale(1.05);
}

/* Tablet */
@media (max-width: 992px) {
    .hero-main-logo {
        width: 170px;
    }
    .hero-logo-wrapper {
        margin-bottom: 15px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-main-logo {
        width: 130px;
    }
    .hero-logo-wrapper {
        margin-bottom: 10px; /* Tighter gap on mobile */
    }
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 182, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 42, 74, 0.2);
}

.icon-btn {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.icon-btn:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

/* Top Bar */
.top-bar {
    background-color: var(--topbar-bg);
    color: var(--topbar-text);
    padding: 8px 0;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.top-bar-inner {
    display: flex;
    justify-content: flex-end; /* Align actions to the right */
    align-items: center;
}

.top-contact {
    display: none; /* Hidden as per request */
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switch {
    color: var(--topbar-text);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.lang-switch:hover {
    color: var(--secondary-light);
    opacity: 1;
}

/* Main Header - Glassmorphism */
.main-header {
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo-img {
    height: 55px;
    transition: var(--transition);
}
.logo-img:hover {
    transform: scale(1.02);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

/* Sleek Hover Effect */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
    color: var(--secondary-color);
}
.nav-links a:hover::after {
    width: 100%;
}

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

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--surface-color);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 10px 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    border: 1px solid var(--border-color);
}

html[dir="rtl"] .dropdown-menu {
    left: auto;
    right: 0;
}

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

.dropdown-menu li {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.dropdown-menu a::after {
    display: none; /* remove underline effect in dropdown */
}

.dropdown-menu a:hover {
    background: rgba(0, 0, 0, 0.03);
    color: var(--primary-color);
    padding-inline-start: 25px; /* slight indent on hover */
}

[data-theme="dark"] .dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    background-image: url('../img/hero/maritime-hero.png');
    background-size: cover;
    background-position: center;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Ocean-inspired gradient overlay */
    background: linear-gradient(135deg, rgba(11, 37, 69, 0.8) 0%, rgba(0, 119, 182, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 30px 20px 20px 20px; /* Reduced gap between logo and text */
    animation: fadeUp 1s ease-out;
}



@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hero-btns .btn-secondary {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.3);
    backdrop-filter: blur(5px);
}
.hero-btns .btn-secondary:hover {
    background-color: #fff;
    color: var(--primary-color);
}

/* Internal Page Headers */
.page-header {
    position: relative;
    background-image: url('../img/hero/maritime-hero.png');
    background-size: cover;
    background-position: center 30%;
    height: 35vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(11, 37, 69, 0.85), rgba(11, 37, 69, 0.85));
}

.page-header-content {
    position: relative;
    z-index: 1;
    color: #fff;
}
.page-header-content h1 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Sections */
.section-padding {
    padding: 100px 0;
}

.bg-surface {
    background-color: var(--surface-color);
}

.bg-gray {
    background-color: var(--bg-color);
}

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

.section-header h2 {
    font-size: 2.75rem;
    position: relative;
    display: inline-block;
    color: var(--primary-color);
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

/* Cards (Services / News) */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

.card {
    background-color: var(--surface-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card-img-wrapper {
    overflow: hidden;
    height: 240px;
}

.card-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .card-img {
    transform: scale(1.08);
}

.card-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.card-text {
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.card .btn {
    align-self: flex-start;
}

/* Service Detailed Cards (Used on Homepage & Services Page) */
.services-detailed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 1024px) {
    .services-detailed-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .services-detailed-grid { grid-template-columns: 1fr; }
}

.service-detailed-card {
    background: var(--surface-color);
    border-radius: 20px;
    /* overflow: hidden removed — was clipping the icon badge inside .service-detailed-body */
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    height: 100%;
}

.service-detailed-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-color);
}

.service-detailed-img {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    background: #f1f5f9;
}

.service-detailed-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.service-detailed-card:hover .service-detailed-img img {
    transform: scale(1.1);
}

.service-detailed-icon {
    position: absolute;
    bottom: -20px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    z-index: 2;
    border: 3px solid var(--surface-color);
}

html[dir="rtl"] .service-detailed-icon {
    right: auto;
    left: 25px;
}

.service-detailed-body {
    padding: 35px 25px 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-detailed-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 800;
}

.service-detailed-intro {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-detailed-footer {
    margin-top: auto;
}

/* Premium Service Cards System */
.services-premium-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

@media (max-width: 1100px) {
    .services-premium-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .services-premium-grid { grid-template-columns: 1fr; }
}

.service-premium-card {
    background: var(--surface-color);
    border-radius: 20px;
    /* overflow: hidden removed — was clipping the icon badge inside .service-premium-body */
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    height: 100%;
    position: relative;
}

/* Image wrapper: clipped at top corners only so card body icon is never hidden */
.service-premium-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    background: #f1f5f9;
}

.service-premium-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(11, 37, 69, 0.12);
    border-color: var(--secondary-color);
}

.service-premium-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.service-premium-card:hover .service-premium-img img {
    transform: scale(1.1);
}

/* Old absolute icon removed — now using .service-icon-badge inside card body */

/* Shared Service Icon Badge — used on both homepage and services page */
.service-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--primary-color);
    color: #ffffff;
    border-radius: 14px;
    font-size: 1.3rem;
    box-shadow: 0 6px 18px rgba(11, 37, 69, 0.22);
    margin-bottom: 18px;
    flex-shrink: 0;
    transition: var(--transition);
}

.service-premium-card:hover .service-icon-badge,
.service-detailed-card:hover .service-icon-badge {
    background: var(--secondary-color);
    transform: scale(1.08) rotate(-4deg);
    box-shadow: 0 10px 24px rgba(0, 119, 182, 0.3);
}

[data-theme="dark"] .service-icon-badge {
    background: #1E40AF;
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

.service-premium-body {
    padding: 25px 25px 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-premium-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 800;
}

.service-premium-summary {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-premium-features {
    margin-bottom: 25px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.service-premium-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-premium-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-color);
    font-weight: 600;
}

.service-premium-features li i {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.service-premium-footer {
    margin-top: auto;
}

.service-premium-btn {
    width: 100%;
    padding: 12px;
    font-size: 0.9rem;
}


/* Why Choose Us Section - Service Highlight */
.services-why-us {
    margin-top: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 80px 40px;
    border-radius: 30px;
    text-align: center;
    box-shadow: var(--shadow-hover);
    position: relative;
    overflow: hidden;
}

.why-us-bg-icon {
    position: absolute;
    right: -50px;
    bottom: -50px;
    font-size: 20rem;
    color: rgba(255,255,255,0.03);
    transform: rotate(-15deg);
    pointer-events: none;
}

.why-us-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.why-us-title {
    color: #fff !important;
    margin-bottom: 25px;
    font-size: 2.5rem;
    font-weight: 800;
}

.why-us-text {
    font-size: 1.2rem;
    margin-bottom: 45px;
    opacity: 0.95;
    line-height: 1.8;
}

.why-us-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.why-us-btn-tel, .why-us-btn-email {
    padding: 16px 35px;
    font-size: 1.1rem;
    border-radius: 15px;
}

.why-us-btn-tel {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(5px);
}

.why-us-btn-tel:hover {
    background: #fff;
    color: var(--primary-color);
}

.why-us-btn-email {
    background: var(--secondary-color);
    color: #fff;
    box-shadow: 0 10px 20px rgba(0, 119, 182, 0.4);
}

.why-us-btn-email:hover {
    background: #005f92;
    transform: translateY(-3px);
}

.why-us-actions i {
    margin-inline-end: 10px;
}

.service-detailed-btn {
    width: auto;
    min-width: 200px;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(0, 119, 182, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-detailed-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 119, 182, 0.3);
}

@media (max-width: 480px) {
    .service-detailed-btn {
        width: 100%;
    }
}

[data-theme="dark"] .service-detailed-card {
    background: #0F172A;
}

[data-theme="dark"] .service-detailed-features {
    background: #1E293B;
}

[data-theme="dark"] .service-detailed-intro {
    color: #38BDF8;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.about-img-wrapper {
    position: relative;
    border-radius: var(--radius);
}

.about-img-wrapper::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -20px;
    bottom: -20px;
    left: 20px;
    border: 3px solid var(--secondary-color);
    border-radius: var(--radius);
    z-index: -1;
}
html[dir="rtl"] .about-img-wrapper::after {
    right: 20px;
    left: -20px;
}

.about-img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1;
}

/* Features List */
.features-list {
    margin-top: 25px;
    margin-bottom: 30px;
}

.features-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 1.05rem;
}

.features-list li i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    background: rgba(193, 18, 31, 0.1);
    padding: 8px;
    border-radius: 50%;
}

/* Forms */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background-color: var(--surface-color);
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    transition: var(--transition);
    height: 54px; /* Fixed height for consistency across all inputs */
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(193, 18, 31, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
    height: auto;
}

/* Alert Messages */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 25px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background-color: #F0FDF4;
    color: #166534;
    border: 1px solid #BBF7D0;
}

.alert-danger {
    background-color: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

[data-theme="dark"] .alert-success {
    background-color: rgba(22, 101, 52, 0.2);
    color: #4ADE80;
    border-color: rgba(34, 197, 94, 0.3);
}

[data-theme="dark"] .alert-danger {
    background-color: rgba(153, 27, 27, 0.2);
    color: #F87171;
    border-color: rgba(239, 68, 68, 0.3);
}

/* Footer */
.main-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding-top: 80px;
    border-top: 5px solid var(--secondary-color);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

@media (max-width: 992px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 25px;
    object-fit: contain;
}

.footer-col h3 {
    color: #ffffff;
    margin-bottom: 25px;
    font-size: 1.4rem;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
}
html[dir="rtl"] .footer-col h3::after {
    left: auto;
    right: 0;
}

.footer-col p {
    line-height: 1.8;
    margin-bottom: 20px;
}

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

.footer-col ul li a {
    color: var(--footer-text);
    transition: var(--transition);
    display: inline-block;
}

.footer-col ul li a:hover {
    color: #ffffff;
    transform: translateX(5px);
}
html[dir="rtl"] .footer-col ul li a:hover {
    transform: translateX(-5px);
}

.contact-col ul li {
    display: flex;
    gap: 15px;
    color: var(--footer-text);
    align-items: flex-start;
    line-height: 1.6;
    margin-bottom: 15px;
}

.contact-col ul li i {
    margin-top: 4px;
    color: var(--secondary-color);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
}

.social-btn:hover {
    background: var(--secondary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 119, 182, 0.3);
}

.footer-bottom {
    background-color: #040B14;
    padding: 25px 0;
    text-align: center;
    font-size: 0.95rem;
    color: #94A3B8;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html[dir="rtl"] .whatsapp-float {
    right: auto;
    left: 30px;
}

.whatsapp-float:hover {
    transform: scale(1.15) rotate(-5deg);
    color: white;
}

/* Contact Page Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}
.contact-info {
    background-color: var(--primary-color);
    color: #fff;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.contact-info h3 {
    color: #fff;
    margin-bottom: 20px;
}
.contact-info ul {
    margin-bottom: 30px;
}
.contact-info ul li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    align-items: flex-start;
}
.contact-info ul li i {
    margin-top: 5px;
    color: var(--secondary-color);
}
.contact-info a {
    color: #fff;
}
.contact-info a:hover {
    color: var(--secondary-light);
}

@media (max-width: 1024px) {
    .container { padding: 0 30px; }
    .grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* Footer Social Links */
.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}
.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}
.social-icon:hover {
    background: var(--secondary-color);
    color: #fff;
    transform: translateY(-3px);
}
[data-theme="dark"] .social-icon {
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .main-footer {
        padding-bottom: 80px; /* Space for floating WA button on mobile */
    }
    .container { padding: 0 20px; }
    .grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
    
    .section-padding { padding: 60px 0; }
    .page-header { padding: 60px 0; }
    
    /* Top Bar Overrides */
    .top-bar-inner { 
        flex-direction: row !important; 
        justify-content: center !important; 
        gap: 15px; 
        text-align: center; 
    }
    
    /* Header Overrides */
    .header-inner {
        padding: 12px 15px;
    }
    .logo-img {
        height: 40px;
    }
    
    /* Hero Section Overrides */
    .hero {
        height: auto;
        min-height: 500px;
        padding: 30px 0 50px;
        align-items: center;
    }
    .hero-content {
        padding: 20px 20px 10px;
        width: 100%;
        margin: 0 auto;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 1.85rem;
        margin-bottom: 12px;
    }
    .hero-content p {
        font-size: 0.97rem;
        margin-bottom: 22px;
        line-height: 1.65;
    }
    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 12px;
        max-width: 300px;
        margin: 0 auto;
    }
    .hero-btns .btn {
        width: 100%;
        padding: 13px 20px;
        border-radius: 30px;
    }
    
    /* Stats section: breathing room below hero */
    .stats-section.section-padding {
        padding-top: 45px;
    }
    
    /* WhatsApp Float */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 28px;
        z-index: 9999;
    }
    html[dir="rtl"] .whatsapp-float {
        left: 20px;
        right: auto;
    }

    .mobile-menu-btn { display: block; }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--header-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        border-top: 1px solid var(--border-color);
    }
    
    .main-nav.active { display: flex; animation: slideDown 0.3s ease-out; }
    .nav-links { flex-direction: column; width: 100%; gap: 15px; }
    .header-cta { margin-top: 20px; width: 100%; }
    .header-cta .btn { display: block; width: 100%; }
    

}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* International Telephone Input - Maritime Branding */
.iti {
    width: 100%;
    display: block;
    direction: ltr !important; /* Force LTR even in RTL pages */
}

.iti__country-list {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-hover);
    border-radius: var(--radius);
    z-index: 1001;
    color: var(--text-color);
    font-family: inherit;
    max-width: 320px;
    direction: ltr !important;
}

.iti__country {
    padding: 12px 15px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.iti__country.iti__highlight {
    background-color: #f0f7ff;
    color: var(--primary-color);
}

.iti__country-name {
    color: inherit;
    font-weight: 500;
}

.iti__dial-code {
    color: var(--text-muted);
}

.iti__selected-flag {
    background-color: #f8fafc;
    border-right: 1px solid var(--border-color);
    border-radius: var(--radius) 0 0 var(--radius);
    padding: 0 15px;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.iti__selected-flag:hover {
    background-color: #eef2f7;
}

.iti--allow-dropdown .iti__flag-container:hover .iti__selected-flag {
    background-color: #eef2f7;
}

.iti__arrow {
    border-top: 4px solid var(--primary-color);
}

.iti__arrow--up {
    border-bottom: 4px solid var(--primary-color);
}

/* Fix input padding - Always on the left because of direction: ltr */
.form-control.iti-input {
    padding-left: 105px !important;
    padding-right: 18px !important;
    height: 54px;
    text-align: left !important; /* Force left alignment for numbers */
    unicode-bidi: plaintext;
    direction: ltr !important;
}

/* Maritime accent for flag container on focus */
.iti--focus .iti__selected-flag {
    border-color: var(--primary-color);
    background-color: #ffffff;
}

/* Fix for label alignment in RTL when the input is LTR */
html[dir="rtl"] .form-group label {
    text-align: right;
}


/* Shipping Route Responsive Cards Grid */
.poster-routes-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns on desktop */
    gap: 0;
    border-top: 1px solid var(--border-color);
}

.route-item-card {
    display: flex;
    align-items: center;
    background: var(--surface-color);
    padding: 30px;
    border-bottom: 1px solid var(--border-color);
    border-inline-end: 1px solid var(--border-color);
    transition: var(--transition);
    gap: 25px;
}

/* Fix borders for 2-column grid */
.route-item-card:nth-child(2n) {
    border-inline-end: none;
}

.route-item-card:hover {
    background-color: #f0f7ff;
    z-index: 1;
}

.route-flag-side {
    flex-shrink: 0;
}

.route-flag-badge {
    width: 80px;
    height: 54px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

.route-flag-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.route-content-side {
    flex-grow: 1;
}

.route-title-primary {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Cairo', sans-serif;
    line-height: 1.3;
}

.route-title-secondary {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
    text-transform: capitalize;
}

/* Responsive Logic */
@media (max-width: 992px) {
    .poster-routes-list {
        grid-template-columns: 1fr; /* Single column on tablets and phones */
    }
    .route-item-card {
        border-inline-end: none;
    }
}

@media (max-width: 600px) {
    .route-item-card {
        flex-direction: column;
        text-align: center;
        padding: 40px 25px;
        gap: 20px;
    }
    
    .route-flag-badge {
        width: 100px;
        height: 68px;
        margin: 0 auto;
    }
    
    .route-title-primary {
        font-size: 1.4rem;
    }

}

/* Homepage Routes Section - Simplified Premium Redesign */
.home-routes-section {
    background-color: var(--bg-color);
}

/* Routes Section Header — Centered */
.routes-section-header {
    text-align: center;
    margin-bottom: 55px;
}

.routes-section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.routes-section-header h2::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

[data-theme="dark"] .routes-section-header h2 {
    color: #F8FAFC;
}

.routes-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-color);
    color: #ffffff;
    padding: 13px 30px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(11, 37, 69, 0.25);
}

.routes-view-all-btn:hover {
    background: var(--secondary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 119, 182, 0.35);
}

@media (max-width: 768px) {
    .routes-section-header h2 {
        font-size: 1.75rem;
    }
    .routes-view-all-btn {
        font-size: 0.9rem;
        padding: 11px 22px;
    }
}


.section-subtitle {
    display: block;
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.home-routes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.route-grid-card {
    background: var(--surface-color);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.route-grid-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(11, 37, 69, 0.1);
    border-color: var(--secondary-light);
}

.route-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.route-flag-badge {
    width: 60px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 2px solid #fff;
}

.route-flag-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.route-status-badge {
    background: #e0f2fe;
    color: #0369a1;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.route-symbolic-path {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.path-node {
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.node-destination {
    background: var(--primary-color);
    color: #fff;
}

.path-line {
    flex-grow: 1;
    height: 2px;
    background: repeating-linear-gradient(to right, #cbd5e1 0, #cbd5e1 5px, transparent 5px, transparent 10px);
}

.route-main-text {
    margin-bottom: 20px;
}

.route-main-text .primary-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 4px;
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
}

.route-main-text .secondary-title {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.route-meta-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 5px;
}

.meta-chip {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-chip i {
    color: var(--secondary-color);
}

.route-card-footer {
    margin-top: auto;
    padding-top: 25px;
}

.card-footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-badge {
    font-size: 0.8rem;
    color: #059669;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-secondary-outline {
    background: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    transition: var(--transition);
}

.btn-secondary-outline:hover {
    background: var(--secondary-color);
    color: #fff;
}

.mobile-only-btn-wrapper {
    display: none;
    text-align: center;
    margin-top: 40px;
}

@media (max-width: 1200px) {
    .home-routes-grid {
        grid-template-columns: repeat(2, 1fr);
/* About Section - Features Grid */
.features-grid-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.feature-item i {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-top: 4px;
    flex-shrink: 0;
}

.feature-item span {
    font-size: 1.05rem;
    color: var(--text-color);
    font-weight: 500;
}

@media (max-width: 600px) {
    .features-grid-list {
        grid-template-columns: 1fr;
    }
}
    }
}

@media (max-width: 768px) {
    .routes-header-flex {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    html[dir="rtl"] .routes-header-flex {
        text-align: right;
    }

    .desktop-only-btn {
        display: none;
    }

    .mobile-only-btn-wrapper {
        display: block;
    }

    .home-routes-grid {
        grid-template-columns: 1fr;
    }

    .route-grid-card {
        padding: 25px;
    }
}

/* About Page - Values Section */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.value-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(11, 37, 69, 0.1);
    border-color: var(--secondary-light);
}

.value-icon {
    width: 70px;
    height: 70px;
    background: var(--bg-color);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 25px;
    transition: var(--transition);
}

.value-card:hover .value-icon {
    background: var(--primary-color);
    color: #fff;
}

.value-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-family: 'Cairo', sans-serif;
}

.value-card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1rem;
}

@media (max-width: 992px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
    .value-card {
        padding: 30px 20px;
    }
}

/* Statistics Section - Premium Maritime Style */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
    color: #fff;
}

/* Subtle maritime background pattern */
.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54.627 0l.83.828-1.415 1.415L51.8 0h2.827zM5.373 0l-.83.828L5.96 2.243 8.2 0H5.373zM48.973 0l.83.828-1.415 1.415L46.146 0h2.827zM11.027 0l-.83.828L11.613 2.243 13.854 0h-2.827zM43.32 0l.83.828-1.415 1.415L40.492 0h2.827zm-26.64 0l-.83.828L17.267 2.243 19.508 0h-2.827zM37.667 0l.83.828-1.415 1.415L34.84 0h2.827zm-31.98 0l-.83.828L6.273 2.243 8.514 0h-2.827zM32.013 0l.83.828-1.415 1.415L29.186 0h2.827zm-5.346 0l-.83.828L27.253 2.243 29.494 0h-2.827zM26.36 0l.83.828-1.415 1.415L23.532 0h2.827zm10.667 0l-.83.828L36.613 2.243 38.854 0h-2.827zM20.707 0l.83.828-1.415 1.415L17.88 0h2.827zm16.013 0l-.83.828L37.267 2.243 39.508 0h-2.827zM15.053 0l.83.828-1.415 1.415L12.226 0h2.827zm21.36 0l-.83.828L36.96 2.243 39.2 0h-2.827zM9.4 0l.83.828-1.415 1.415L6.573 0H9.4zm26.707 0l-.83.828L36.613 2.243 38.854 0h-2.827zM3.747 0l.83.828-1.415 1.415L.92 0h2.827z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    z-index: 0;
}

.stats-inner {
    position: relative;
    z-index: 1;
}

.stats-intro-text {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.stats-intro-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    opacity: 0.9;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    background: #fff;
    padding: 40px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border-bottom: 5px solid transparent;
}

.stat-card:hover {
    transform: translateY(-10px);
    border-bottom-color: #f59e0b; /* Amber/Orange accent */
}

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: #f59e0b;
    line-height: 1;
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
}

.stat-label {
    display: block;
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

html[dir="rtl"] .stat-label {
    font-family: 'Cairo', sans-serif;
    letter-spacing: normal;
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .stat-number {
        font-size: 2.5rem;
    }
    .stat-card {
        padding: 25px 15px;
    }
}

/* Dark Mode Component Overrides */
[data-theme="dark"] .route-grid-card {
    background: #0F172A;
    border-color: #1E293B;
}

[data-theme="dark"] .route-main-text .primary-title {
    color: #F8FAFC;
}

[data-theme="dark"] .meta-chip {
    background: #1E293B;
    border-color: #334155;
    color: #CBD5E1;
}

[data-theme="dark"] .path-node {
    background: #1E293B;
    color: #38BDF8;
}

[data-theme="dark"] .stat-card {
    background: #0F172A;
    border-color: #1E293B;
}

[data-theme="dark"] .stat-label {
    color: #CBD5E1;
}

[data-theme="dark"] .stats-intro-text p {
    color: #F8FAFC;
}

[data-theme="dark"] .value-card {
    background: #0F172A;
    border-color: #1E293B;
}

[data-theme="dark"] .value-card h3 {
    color: #38BDF8;
}

[data-theme="dark"] .value-card p {
    color: #94A3B8;
}

[data-theme="dark"] .value-icon {
    background: #1E293B;
    color: #38BDF8;
}

[data-theme="dark"] .section-header h2 {
    color: #F8FAFC;
}

[data-theme="dark"] .section-subtitle {
    color: #38BDF8;
}


/* ============================================================
   COMPREHENSIVE MOBILE RESPONSIVE OVERRIDES
   Applies to phones (max-width: 768px) and small phones (max-width: 480px)
   Desktop layout is completely untouched.
   ============================================================ */

@media (max-width: 768px) {

    /* --- Global Container & Sections --- */
    .container {
        padding: 0 16px;
    }
    .section-padding {
        padding: 55px 0;
    }
    .section-header {
        margin-bottom: 35px;
    }
    .section-header h2 {
        font-size: 1.75rem;
    }

    /* --- Hero Section --- */
    .hero {
        height: auto;
        min-height: 500px;
        padding: 30px 0 50px; /* Reduced top – hero-content inner padding handles spacing */
        align-items: center;
    }
    .hero-content {
        padding: 20px 20px 10px; /* Clean, uniform – no excessive top padding */
        max-width: 92%;
        margin: 0 auto;
        width: 100%;
        text-align: center;
    }
    .hero-logo-wrapper {
        margin-bottom: 14px; /* Gap between logo and headline */
        justify-content: center;
    }
    .hero-main-logo {
        width: 70px; /* Slightly larger for better visibility */
    }
    .hero-content h1 {
        font-size: 1.85rem;
        line-height: 1.35;
        margin-bottom: 12px;
    }
    .hero-content p {
        font-size: 0.97rem;
        margin-bottom: 22px;
        line-height: 1.65;
    }
    .hero-btns {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    .hero-btns .btn {
        width: 88%;
        max-width: 300px;
        border-radius: 30px;
        padding: 13px 20px;
    }

    /* --- Services / News Grid Cards --- */
    .grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .card-img-wrapper {
        height: 200px;
    }
    .card-body {
        padding: 20px;
    }
    .card-title {
        font-size: 1.2rem;
    }

    /* --- Stats Section (intro paragraph immediately below hero) --- */
    .stats-section.section-padding {
        padding-top: 45px; /* Breathing room under hero, clear of WA button */
        padding-bottom: 55px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .stat-card {
        padding: 25px 12px;
        border-radius: 14px;
    }
    .stat-number {
        font-size: 2.4rem;
    }
    .stat-label {
        font-size: 0.85rem;
        letter-spacing: 0;
    }
    .stats-intro-text {
        margin-bottom: 30px;
    }
    .stats-intro-text p {
        font-size: 1rem;
        line-height: 1.7;
    }

    /* --- Shipping Routes (Homepage) --- */
    .home-routes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .route-grid-card {
        padding: 20px;
    }
    .routes-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 30px;
    }
    html[dir="rtl"] .routes-header-flex {
        align-items: flex-end;
    }
    .desktop-only-btn {
        display: none;
    }
    .mobile-only-btn-wrapper {
        display: block;
        text-align: center;
        margin-top: 25px;
    }
    .route-meta-chips {
        gap: 6px;
    }
    .meta-chip {
        font-size: 0.75rem;
        padding: 4px 9px;
    }

    /* --- Shipping Routes (Full List - routes.php) --- */
    .poster-routes-list {
        grid-template-columns: 1fr;
    }
    .route-item-card {
        border-inline-end: none;
        padding: 20px 16px;
        gap: 15px;
    }

    /* --- About Section --- */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .about-img-wrapper::after {
        display: none; /* Remove decorative border offset on mobile */
    }
    .about-text h2 {
        font-size: 1.8rem;
    }
    .features-grid-list {
        grid-template-columns: 1fr;
    }

    /* --- Values Grid --- */
    .values-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .value-card {
        padding: 25px 20px;
    }

    /* --- WhatsApp Float – RTL mobile fix (left side) --- */
    .whatsapp-float {
        bottom: 25px;
        right: 20px;
        width: 54px;
        height: 54px;
        font-size: 26px;
        z-index: 9999;
    }
    html[dir="rtl"] .whatsapp-float {
        right: auto;
        left: 20px;
    }

    /* --- Footer --- */
    .main-footer {
        padding-top: 50px;
        padding-bottom: 90px;
    }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }
    .footer-logo {
        height: 50px;
        margin-bottom: 15px;
    }
    .footer-col h3 {
        font-size: 1.15rem;
        margin-bottom: 15px;
    }
    .contact-col ul li {
        font-size: 0.9rem;
    }
    .social-btn {
        padding: 7px 16px;
        font-size: 0.85rem;
    }
    .footer-bottom {
        padding: 18px 0;
        font-size: 0.8rem;
    }


    /* --- Top Bar --- */
    /* Keep top bar visible so language switcher & dark mode toggle remain accessible */
    .top-bar {
        display: block;
        padding: 7px 0;
    }
    .top-bar-inner {
        justify-content: center !important; /* Center lang label + moon icon on mobile */
        gap: 16px;
    }
    .top-actions {
        gap: 16px;
        display: flex;
        align-items: center;
    }
    
    /* --- Main Header & Mobile Nav --- */
    /* Natural flex + space-between handles both directions:
       LTR → logo LEFT, hamburger RIGHT
       RTL → logo RIGHT, hamburger LEFT (flex-start/end flips automatically) */
    .header-inner {
        padding: 12px 0;
        position: relative;
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-menu-btn {
        display: block;
        font-size: 1.4rem;
        padding: 6px;
        line-height: 1;
        flex-shrink: 0;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--surface-color);
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 1000;
        border-top: 1px solid var(--border-color);
    }
    
    .main-nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-links a {
        display: block;
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .nav-links a::after {
        display: none; /* remove underline on mobile */
    }
    
    /* Mobile Dropdown Handling */
    .nav-dropdown .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0;
        background: rgba(0,0,0,0.02);
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }
    
    .nav-dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu a {
        padding-inline-start: 40px;
        font-size: 0.9rem;
    }
    
    .header-cta {
        padding: 15px 20px;
        text-align: center;
    }
    
    .header-cta .btn {
        width: 100%;
    }


    /* --- Page Headers (inner pages) --- */
    .page-header {
        min-height: 200px;
        height: auto;
        padding: 60px 0;
    }
    .page-header-content h1 {
        font-size: 2rem;
    }

    /* --- Contact Page --- */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* --- Buttons --- */
    .btn {
        padding: 11px 22px;
        font-size: 0.95rem;
    }
}

/* Extra-small phones */
@media (max-width: 480px) {
    .section-header h2 {
        font-size: 1.5rem;
    }
    .hero-content h1 {
        font-size: 1.65rem;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .stat-number {
        font-size: 2rem;
    }
    .stat-card {
        padding: 20px 10px;
    }
    .grid {
        gap: 16px;
    }
    .card-body {
        padding: 16px;
    }
    .route-grid-card {
        padding: 16px;
    }
    .meta-chip {
        font-size: 0.7rem;
    }
}
