/**
 * Hameed Contracting Company - Main Stylesheet
 * Brand Colors: #1c75b9 (Primary), #3eb7e6 (Secondary), #ffffff (White)
 */

/* ============================================
   CSS Variables & Theme Configuration
   ============================================ */

:root {
    /* Brand Colors */
    --primary: #1c75b9;
    --primary-dark: #155a8f;
    --primary-light: #2889d4;
    --secondary: #3eb7e6;
    --secondary-dark: #2a9bc7;
    --secondary-light: #5fc7ed;
    --accent: #0d4a7a;

    /* Light Theme (Default) */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #e2e8f0;
    --bg-card: #ffffff;
    --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);

    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    --border-color: #e2e8f0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);

    /* Navbar */
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --navbar-text: #1e293b;
    --navbar-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);

    /* Footer */
    --footer-bg: #0f172a;
    --footer-text: #cbd5e1;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Typography */
    --font-primary: 'Tajawal', 'Segoe UI', sans-serif;
    --font-heading: 'Almarai', 'Tajawal', sans-serif;

    /* Spacing */
    --section-padding: 100px;
    --container-padding: 1.5rem;

    /* Responsive Breakpoints */
    --breakpoint-xs: 0;
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --breakpoint-xxl: 1400px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
}

/* Dark Theme - Matching fmcksa.com */
[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #252525;
    --bg-tertiary: #2d2d2d;
    --bg-card: #252525;
    --bg-gradient: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);

    --text-primary: #e8e8e8;
    --text-secondary: #b8b8b8;
    --text-muted: #888888;
    --text-light: #666666;

    --border-color: #333333;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.2);

    --navbar-bg: rgba(26, 26, 26, 0.95);
    --navbar-text: #e8e8e8;
    --navbar-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);

    --footer-bg: #000000;
    --footer-text: #888888;
}

/* Explicit dark mode body and html background */
[data-theme="dark"] body,
[data-theme="dark"] html {
    background-color: #1a1a1a !important;
}

/* Ensure sections also use black background in dark mode */
[data-theme="dark"] section {
    background-color: #1a1a1a !important;
}

/* Exception: Page header should keep its gradient */
[data-theme="dark"] .page-header {
    background: linear-gradient(135deg, #0585d0 0%, #036ba8 50%, #025a8f 100%) !important;
}

[data-theme="dark"] .container,
[data-theme="dark"] .container-fluid {
    background-color: transparent !important;
}

/* ============================================
   Base Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure all images are responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Prevent horizontal scroll on all devices */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

* {
    max-width: 100%;
}

/* Fix for iOS Safari viewport */
@supports (-webkit-touch-callout: none) {
    body {
        min-height: -webkit-fill-available;
    }
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .me-2 {
    margin-right: 0 !important;
    margin-left: 0.5rem !important;
}

[dir="rtl"] .me-3 {
    margin-right: 0 !important;
    margin-left: 1rem !important;
}

[dir="rtl"] .ms-2 {
    margin-left: 0 !important;
    margin-right: 0.5rem !important;
}

[dir="rtl"] .ms-3 {
    margin-left: 0 !important;
    margin-right: 1rem !important;
}

[dir="rtl"] .ms-auto {
    margin-left: 0 !important;
    margin-right: auto !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

/* Override for page header h1 */
.page-header h1 {
    font-family: var(--font-heading);
    color: #ffffff !important;
}

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

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

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

/* ============================================
   Modern Navbar Styles
   ============================================ */

.navbar {
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--navbar-shadow);
    padding: 0.8rem 0;
    transition: all var(--transition-normal);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
}

.modern-navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-bottom: 1px solid rgba(5, 133, 208, 0.08);
    padding: 1rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .modern-navbar {
    background: rgba(0, 0, 0, 0.98) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modern-navbar.scrolled {
    padding: 0.75rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid rgba(5, 133, 208, 0.12);
}

[data-theme="dark"] .modern-navbar.scrolled {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modern-brand {
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.modern-brand:hover {
    transform: translateY(-2px);
}

.brand-logo {
    height: 55px;
    width: auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 8px rgba(5, 133, 208, 0.15));
}

.modern-brand:hover .brand-logo {
    transform: scale(1.08);
    filter: drop-shadow(0 4px 12px rgba(5, 133, 208, 0.25));
}

.modern-navbar.scrolled .brand-logo {
    height: 48px;
}

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

.navbar-brand-text .brand-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary);
}

.navbar-brand-text .brand-tagline {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    background: transparent;
    cursor: pointer;
}

.modern-toggler {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(5, 133, 208, 0.08);
    border: 1px solid rgba(5, 133, 208, 0.15);
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.modern-toggler:hover {
    background: rgba(5, 133, 208, 0.15);
    border-color: var(--primary);
    transform: scale(1.05);
}

.modern-toggler:focus {
    box-shadow: 0 0 0 3px rgba(5, 133, 208, 0.2);
    outline: none;
}

[data-theme="dark"] .modern-toggler {
    background: rgba(79, 195, 247, 0.1);
    border-color: rgba(79, 195, 247, 0.2);
}

.navbar-toggler-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
}

.navbar-toggler-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--navbar-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon span:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.navbar-toggler-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
}

.navbar-toggler-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--navbar-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon span:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.navbar-nav .nav-link {
    color: var(--navbar-text);
    font-weight: 500;
    padding: 0.6rem 1rem !important;
    margin: 0 2px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}

/* Modern Navigation Links */
.modern-nav {
    gap: 0.25rem;
}

.modern-nav-link {
    position: relative;
    padding: 0.75rem 1.25rem !important;
    margin: 0 0.25rem !important;
    color: var(--text-secondary) !important;
    font-weight: 600 !important;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.modern-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(5, 133, 208, 0.08), rgba(5, 133, 208, 0.12));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.modern-nav-link:hover::before {
    opacity: 1;
}

.modern-nav-link:hover {
    color: var(--primary) !important;
    transform: translateY(-2px);
}

.modern-nav-link .nav-text {
    position: relative;
    z-index: 1;
}

.modern-nav-link.active {
    color: var(--primary) !important;
    background: linear-gradient(135deg, rgba(5, 133, 208, 0.1), rgba(5, 133, 208, 0.15)) !important;
    box-shadow: 0 4px 12px rgba(5, 133, 208, 0.15);
}

.modern-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    border-radius: 2px;
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 40%;
        opacity: 1;
    }
}

[data-theme="dark"] .modern-nav-link {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .modern-nav-link:hover {
    color: #4fc3f7 !important;
}

[data-theme="dark"] .modern-nav-link.active {
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.15), rgba(79, 195, 247, 0.2)) !important;
    color: #4fc3f7 !important;
}

/* ============================================
   Offcanvas Menu Styles
   ============================================ */

.offcanvas {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    border: none;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .offcanvas {
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.5);
}

[dir="rtl"] .offcanvas {
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
}

[dir="rtl"][data-theme="dark"] .offcanvas {
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5);
}

.offcanvas-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.offcanvas-title {
    color: var(--text-primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.offcanvas-title img {
    height: 40px;
}

.btn-close {
    filter: var(--bs-btn-close-white-filter);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.btn-close:hover {
    opacity: 1;
}

[data-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.offcanvas-body {
    padding: 1.5rem;
}

/* Mobile Navigation - Enhanced UI/UX */
.offcanvas-body .mobile-nav-list {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    margin: 0;
    padding: 0;
}

.mobile-nav-link {
    padding: 1rem 1.25rem !important;
    border-radius: 12px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.05rem;
    display: block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0.25rem 0 !important;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    background: transparent;
    border: none;
}

.mobile-nav-link-content {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    position: relative;
    z-index: 1;
}

.mobile-nav-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mobile-nav-text {
    flex: 1;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.mobile-nav-chevron {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    border-radius: 0 4px 4px 0;
}

[dir="rtl"] .mobile-nav-link::before {
    left: auto;
    right: 0;
    border-radius: 4px 0 0 4px;
}

.mobile-nav-link:hover {
    background: linear-gradient(90deg, rgba(5, 133, 208, 0.1), rgba(5, 133, 208, 0.05));
    color: var(--primary);
    transform: translateX(4px);
    padding-left: 1.5rem !important;
}

[dir="rtl"] .mobile-nav-link:hover {
    transform: translateX(-4px);
    padding-left: 1.25rem !important;
    padding-right: 1.5rem !important;
}

.mobile-nav-link:hover::before {
    transform: scaleY(1);
}

.mobile-nav-link:hover .mobile-nav-icon {
    color: var(--primary);
    transform: scale(1.1);
}

.mobile-nav-link:hover .mobile-nav-text {
    color: var(--primary);
}

.mobile-nav-link.active {
    background: linear-gradient(135deg, rgba(5, 133, 208, 0.15), rgba(5, 133, 208, 0.08));
    color: var(--primary);
    font-weight: 700;
}

.mobile-nav-link.active::before {
    transform: scaleY(1);
}

.mobile-nav-link.active .mobile-nav-icon {
    color: var(--primary);
}

.mobile-nav-link.active .mobile-nav-text {
    color: var(--primary);
    font-weight: 700;
}

/* Dropdown Toggle States */
.mobile-nav-dropdown-toggle[aria-expanded="true"] .mobile-nav-chevron {
    transform: rotate(180deg);
    color: var(--primary);
}

.mobile-nav-dropdown-toggle[aria-expanded="true"] {
    background: linear-gradient(135deg, rgba(5, 133, 208, 0.12), rgba(5, 133, 208, 0.06));
}

.mobile-nav-dropdown-toggle[aria-expanded="true"] .mobile-nav-icon,
.mobile-nav-dropdown-toggle[aria-expanded="true"] .mobile-nav-text {
    color: var(--primary);
}

/* Submenu Styles */
.mobile-nav-collapse {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.mobile-nav-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-left: 2.5rem;
    padding-right: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

[dir="rtl"] .mobile-nav-submenu {
    padding-left: 0;
    padding-right: 2.5rem;
}

.mobile-nav-submenu-item {
    margin: 0;
    padding: 0;
}

.mobile-nav-submenu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    background: transparent;
}

.mobile-nav-submenu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--primary);
    border-radius: 0 2px 2px 0;
    transition: height 0.3s ease;
}

[dir="rtl"] .mobile-nav-submenu-link::before {
    left: auto;
    right: 0;
    border-radius: 2px 0 0 2px;
}

.mobile-nav-submenu-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mobile-nav-submenu-link:hover {
    background: rgba(5, 133, 208, 0.08);
    color: var(--primary);
    padding-left: 1.25rem;
    transform: translateX(4px);
}

[dir="rtl"] .mobile-nav-submenu-link:hover {
    padding-left: 1rem;
    padding-right: 1.25rem;
    transform: translateX(-4px);
}

.mobile-nav-submenu-link:hover::before {
    height: 60%;
}

.mobile-nav-submenu-link:hover .mobile-nav-submenu-icon {
    color: var(--primary);
    transform: scale(1.1);
}

.mobile-nav-submenu-link.active {
    background: rgba(5, 133, 208, 0.12);
    color: var(--primary);
    font-weight: 600;
}

.mobile-nav-submenu-link.active::before {
    height: 60%;
}

.mobile-nav-submenu-link.active .mobile-nav-submenu-icon {
    color: var(--primary);
}

/* Dark Mode Enhancements */
[data-theme="dark"] .mobile-nav-link:hover {
    background: linear-gradient(90deg, rgba(79, 195, 247, 0.15), rgba(79, 195, 247, 0.08));
    color: #4fc3f7;
}

[data-theme="dark"] .mobile-nav-link.active {
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.2), rgba(79, 195, 247, 0.12));
    color: #4fc3f7;
}

[data-theme="dark"] .mobile-nav-link::before {
    background: #4fc3f7;
}

[data-theme="dark"] .mobile-nav-link:hover .mobile-nav-icon,
[data-theme="dark"] .mobile-nav-link.active .mobile-nav-icon {
    color: #4fc3f7;
}

[data-theme="dark"] .mobile-nav-submenu-link:hover {
    background: rgba(79, 195, 247, 0.12);
    color: #4fc3f7;
}

[data-theme="dark"] .mobile-nav-submenu-link.active {
    background: rgba(79, 195, 247, 0.18);
    color: #4fc3f7;
}

[data-theme="dark"] .mobile-nav-submenu-link::before {
    background: #4fc3f7;
}

/* Legacy Support - Keep old classes working */
.offcanvas-body .navbar-nav {
    flex-direction: column;
    gap: 0.5rem;
}

.offcanvas-body .nav-link {
    padding: 1rem 1.25rem !important;
    border-radius: 12px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0.25rem 0 !important;
    position: relative;
    overflow: hidden;
}

.offcanvas-body .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.offcanvas-body .nav-link:hover::before {
    transform: scaleY(1);
}

.offcanvas-body .nav-link:hover {
    background: linear-gradient(90deg, rgba(5, 133, 208, 0.08), transparent);
    color: var(--primary);
    transform: translateX(8px);
    padding-left: 1.5rem !important;
}

[dir="rtl"] .offcanvas-body .nav-link:hover {
    transform: translateX(-8px);
    padding-left: 1.25rem !important;
    padding-right: 1.5rem !important;
}

.offcanvas-body .nav-link.active {
    background: linear-gradient(135deg, rgba(5, 133, 208, 0.15), rgba(5, 133, 208, 0.1));
    color: var(--primary);
    font-weight: 700;
}

.offcanvas-body .nav-link.active::before {
    transform: scaleY(1);
}

[data-theme="dark"] .offcanvas-body .nav-link:hover {
    background: linear-gradient(90deg, rgba(79, 195, 247, 0.15), transparent);
    color: #4fc3f7;
}

[data-theme="dark"] .offcanvas-body .nav-link.active {
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.2), rgba(79, 195, 247, 0.15));
    color: #4fc3f7;
}

.offcanvas-body .nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.offcanvas-body hr {
    border-color: var(--border-color);
    opacity: 0.5;
}

/* Mobile Toggle Controls - Enhanced */
.mobile-toggle-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.mobile-toggle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    background: var(--bg-secondary);
    transition: all 0.3s ease;
}

.mobile-toggle-item:hover {
    background: var(--bg-tertiary);
}

.mobile-toggle-label {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

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

.mobile-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--bg-card);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.mobile-toggle-btn:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: scale(1.05);
}

.mobile-lang-toggle {
    width: auto;
    padding: 0.625rem 1rem;
    min-width: 100px;
}

.mobile-toggle-btn-text {
    font-size: 0.875rem;
    font-weight: 600;
}

.mobile-toggle-btn i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.mobile-toggle-btn:hover i {
    transform: translateX(2px);
}

[dir="rtl"] .mobile-toggle-btn:hover i {
    transform: translateX(-2px);
}

[data-theme="dark"] .mobile-toggle-item {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .mobile-toggle-btn {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: #ffffff;
}

[data-theme="dark"] .mobile-toggle-btn:hover {
    background: #4fc3f7;
    border-color: #4fc3f7;
    color: #ffffff;
}

/* Legacy Support */
.offcanvas-body .toggle-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    transition: none;
    text-decoration: none;
}


[data-theme="dark"] .offcanvas-body .toggle-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

[data-theme="dark"] .offcanvas-body .toggle-btn i,
[data-theme="dark"] .offcanvas-body .toggle-btn {
    color: #ffffff;
}

[data-theme="dark"] .offcanvas-body .lang-toggle {
    color: #ffffff;
}

.offcanvas-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .offcanvas-backdrop {
    background-color: rgba(0, 0, 0, 0.7);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 60%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary);
}

/* Dropdown Menu Styles */
.nav-item.dropdown .dropdown-toggle::after {
    display: none !important;
}

.nav-item.dropdown .dropdown-toggle .dropdown-icon {
    margin-left: 0.5rem;
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    display: inline-block;
    vertical-align: middle;
}

.nav-item.dropdown.show .dropdown-toggle .dropdown-icon {
    transform: rotate(180deg);
}

[dir="rtl"] .nav-item.dropdown .dropdown-toggle .dropdown-icon {
    margin-left: 0;
    margin-right: 0.5rem;
}

.dropdown-menu {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 24px var(--shadow-lg);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 280px;
    z-index: 1060 !important;
}

.dropdown-item {
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.dropdown-item:hover {
    background: var(--bg-secondary);
    color: var(--primary);
    padding-left: 2rem;
}

.dropdown-item:first-child {
    font-weight: 700;
    color: var(--primary);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
    padding-bottom: 0.75rem;
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: var(--border-color);
    opacity: 0.5;
}

[data-theme="dark"] .dropdown-menu {
    background: var(--bg-card);
    border-color: var(--border-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .dropdown-item {
    color: var(--text-primary);
}

[data-theme="dark"] .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
}

/* RTL Support for Dropdown */
[dir="rtl"] .dropdown-menu {
    text-align: right;
}

[dir="rtl"] .dropdown-item:hover {
    padding-right: 2rem;
    padding-left: 1.5rem;
}

[dir="ltr"] .dropdown-item:hover {
    padding-left: 2rem;
    padding-right: 1.5rem;
}

/* Mega Menu Styles */
.mega-menu {
    position: static !important;
}

.nav-item.dropdown {
    position: relative;
    z-index: 1051;
}

.mega-menu .dropdown-menu {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%);
    right: auto !important;
    width: 100%;
    max-width: 1100px;
    margin-top: 1rem !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    z-index: 1060 !important;
}

.mega-menu .dropdown-menu.mega-menu-content {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="dark"] .mega-menu .dropdown-menu.mega-menu-content {
    background: #1a1a1a !important;
    border-color: #333333 !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5) !important;
}

.mega-menu .dropdown-menu.mega-menu-content,
.dropdown-menu.mega-menu-content,
.mega-menu-content {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1) !important;
    padding: 2rem !important;
    margin-top: 0 !important;
    width: 100%;
    z-index: 1060 !important;
    position: relative;
}

.mega-menu-content .container-fluid {
    padding: 0;
}

.mega-menu-content .row {
    margin: 0;
}

.mega-menu-content .row>[class*="col-"] {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.mega-menu-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mega-menu-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    margin: 0;
    border-radius: 12px;
    background: transparent;
    border: none;
    text-decoration: none;
    color: #1f2937;
    transition: all 0.3s ease;
}

.mega-menu-item:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 133, 208, 0.1);
    color: #1f2937;
}

.mega-menu-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(5, 133, 208, 0.2);
}

.mega-menu-icon-1 {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.mega-menu-icon-2 {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    box-shadow: 0 2px 8px rgba(155, 89, 182, 0.3);
}

.mega-menu-icon-3 {
    background: linear-gradient(135deg, #3498db, #2980b9);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.mega-menu-icon-4 {
    background: linear-gradient(135deg, #27ae60, #229954);
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.mega-menu-text {
    flex: 1;
}

.mega-menu-text h6 {
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.4rem;
    font-size: 1rem;
    line-height: 1.3;
}

.mega-menu-text p {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

.mega-menu-footer {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
}

.mega-menu-view-all {
    width: 100%;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mega-menu-view-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 133, 208, 0.3);
}

[data-theme="dark"] .mega-menu .dropdown-menu.mega-menu-content,
[data-theme="dark"] .dropdown-menu.mega-menu-content,
[data-theme="dark"] .mega-menu-content {
    background: #1a1a1a !important;
    border-color: #333333 !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .mega-menu-item {
    background: transparent;
    color: #f1f5f9;
}

[data-theme="dark"] .mega-menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
}

[data-theme="dark"] .mega-menu-text h6 {
    color: #f1f5f9;
}

[data-theme="dark"] .mega-menu-text p {
    color: #cbd5e1;
}

/* RTL Support for Mega Menu */
[dir="rtl"] .mega-menu .dropdown-menu {
    left: auto !important;
    right: 50% !important;
    transform: translateX(50%);
}

/* Responsive Mega Menu */
@media (max-width: 991px) {
    .mega-menu-content {
        max-width: 100%;
        left: 0 !important;
        right: 0 !important;
        transform: none;
        margin-left: 1rem !important;
        margin-right: 1rem !important;
    }

    [dir="rtl"] .mega-menu-content {
        left: 1rem !important;
        right: 1rem !important;
        transform: none;
    }

    .mega-menu-content {
        padding: 1.5rem !important;
    }

    .mega-menu-column {
        gap: 0.75rem;
    }

    .mega-menu-item {
        padding: 1rem;
    }

    .mega-menu-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
        font-size: 1.3rem;
    }
}

/* Modern Toggle Buttons */
.modern-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(5, 133, 208, 0.08);
    border: 1px solid rgba(5, 133, 208, 0.15);
    color: var(--primary);
    cursor: pointer;
    transition: none;
    text-decoration: none;
}

.modern-toggle-btn i,
.modern-toggle-btn .lang-text {
    color: inherit;
}

.modern-lang-toggle {
    width: auto;
    min-width: 44px;
    padding-inline: 14px;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.modern-lang-toggle .lang-text {
    color: var(--primary);
}

[data-theme="dark"] .modern-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

[data-theme="dark"] .modern-toggle-btn i {
    color: #ffffff;
}

[data-theme="dark"] .modern-lang-toggle .lang-text {
    color: #ffffff;
}

.modern-controls {
    margin-left: 1rem;
}

[dir="rtl"] .modern-controls {
    margin-left: 0;
    margin-right: 1rem;
}

/* Mobile Toggle */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    background: transparent;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: none;
    position: relative;
    width: 28px;
    height: 20px;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after,
.navbar-toggler-icon span {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transition: all var(--transition-fast);
}

.navbar-toggler-icon::before {
    top: 0;
}

.navbar-toggler-icon span {
    top: 50%;
    transform: translateY(-50%);
}

.navbar-toggler-icon::after {
    bottom: 0;
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--bg-gradient);
    overflow: hidden;
    padding-top: 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(28, 117, 185, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(62, 183, 230, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(30deg, var(--primary) 12%, transparent 12.5%, transparent 87%, var(--primary) 87.5%, var(--primary)),
        linear-gradient(150deg, var(--primary) 12%, transparent 12.5%, transparent 87%, var(--primary) 87.5%, var(--primary)),
        linear-gradient(30deg, var(--primary) 12%, transparent 12.5%, transparent 87%, var(--primary) 87.5%, var(--primary)),
        linear-gradient(150deg, var(--primary) 12%, transparent 12.5%, transparent 87%, var(--primary) 87.5%, var(--primary)),
        linear-gradient(60deg, var(--secondary) 25%, transparent 25.5%, transparent 75%, var(--secondary) 75%, var(--secondary)),
        linear-gradient(60deg, var(--secondary) 25%, transparent 25.5%, transparent 75%, var(--secondary) 75%, var(--secondary));
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
    opacity: 0.03;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(28, 117, 185, 0.1);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero-badge i {
    font-size: 0.8rem;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease 0.1s both;
    line-height: 1.2;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s both;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-image {
    position: relative;
    animation: fadeInRight 1s ease 0.4s both;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    filter: drop-shadow(0 20px 40px rgba(28, 117, 185, 0.2));
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    padding: 12px 28px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    color: #fff;
    box-shadow: 0 4px 15px rgba(28, 117, 185, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--accent));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(28, 117, 185, 0.4);
    color: #fff;
}

/* Hero Section Buttons - Match Logo Color */
.hero-slider-section .btn-primary,
.hero-slider-section .carousel-caption .btn-primary,
.hero-slide .btn-primary,
.hero-slide .carousel-caption .btn-primary,
.hero-section .btn-primary {
    background: #0585d0 !important;
    border-color: #0585d0 !important;
    box-shadow: 0 4px 15px rgba(5, 133, 208, 0.3) !important;
}

.hero-slider-section .btn-primary:hover,
.hero-slider-section .carousel-caption .btn-primary:hover,
.hero-slide .btn-primary:hover,
.hero-slide .carousel-caption .btn-primary:hover,
.hero-section .btn-primary:hover {
    background: #0470b0 !important;
    border-color: #0470b0 !important;
    box-shadow: 0 8px 25px rgba(5, 133, 208, 0.4) !important;
    color: #fff !important;
}

.hero-slider-section .btn-secondary,
.hero-slider-section .carousel-caption .btn-secondary,
.hero-slide .btn-secondary,
.hero-slide .carousel-caption .btn-secondary,
.hero-section .btn-secondary {
    border-color: #0585d0 !important;
    color: #0585d0 !important;
}

.hero-slider-section .btn-secondary:hover,
.hero-slider-section .carousel-caption .btn-secondary:hover,
.hero-slide .btn-secondary:hover,
.hero-slide .carousel-caption .btn-secondary:hover,
.hero-section .btn-secondary:hover {
    background: #0585d0 !important;
    border-color: #0585d0 !important;
    color: #fff !important;
}

.btn-primary i,
.btn-primary .fas,
.btn-primary .far,
.btn-primary .fab {
    color: #ffffff !important;
    opacity: 1 !important;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-light {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

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

/* Hero Section Buttons - Blue Background for Both Light and Dark Modes */
.hero-slider-section .btn-light,
.hero-slider-section .carousel-caption .btn-light,
.hero-slide .btn-light,
.hero-slide .carousel-caption .btn-light,
.hero-section .btn-light {
    background: #0585d0 !important;
    border-color: #0585d0 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(5, 133, 208, 0.3) !important;
}

.hero-slider-section .btn-light:hover,
.hero-slider-section .carousel-caption .btn-light:hover,
.hero-slide .btn-light:hover,
.hero-slide .carousel-caption .btn-light:hover,
.hero-section .btn-light:hover {
    background: #0470b0 !important;
    border-color: #0470b0 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 25px rgba(5, 133, 208, 0.4) !important;
    transform: translateY(-2px);
}

[data-theme="dark"] .hero-slider-section .btn-light,
[data-theme="dark"] .hero-slider-section .carousel-caption .btn-light,
[data-theme="dark"] .hero-slide .btn-light,
[data-theme="dark"] .hero-slide .carousel-caption .btn-light,
[data-theme="dark"] .hero-section .btn-light {
    background: #0585d0 !important;
    border-color: #0585d0 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(5, 133, 208, 0.3) !important;
}

[data-theme="dark"] .hero-slider-section .btn-light:hover,
[data-theme="dark"] .hero-slider-section .carousel-caption .btn-light:hover,
[data-theme="dark"] .hero-slide .btn-light:hover,
[data-theme="dark"] .hero-slide .carousel-caption .btn-light:hover,
[data-theme="dark"] .hero-section .btn-light:hover {
    background: #0470b0 !important;
    border-color: #0470b0 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 25px rgba(5, 133, 208, 0.4) !important;
    transform: translateY(-2px);
}

/* ============================================
   Section Styles
   ============================================ */

section {
    padding: var(--section-padding) 0;
    position: relative;
}

/* Page header background - ensure it works in both light and dark mode */
.page-header {
    background: linear-gradient(135deg, #0585d0 0%, #036ba8 50%, #025a8f 100%) !important;
    background-color: transparent !important;
}

/* Light mode - ensure page header background is visible */
body:not([data-theme="dark"]) .page-header,
html:not([data-theme="dark"]) .page-header {
    background: linear-gradient(135deg, #0585d0 0%, #036ba8 50%, #025a8f 100%) !important;
    background-color: transparent !important;
}

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

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(28, 117, 185, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Alternating Background */
.bg-light-custom {
    background: var(--bg-secondary);
}

/* Company Intro Section */
.company-intro {
    background: var(--bg-primary);
    position: relative;
    overflow: visible;
}

.company-intro .container {
    position: relative;
    z-index: 1;
}

.company-intro img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 15px;
}

.bg-gradient-custom {
    background: var(--bg-gradient);
}

/* ============================================
   Cards
   ============================================ */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-normal);
    height: 100%;
}

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

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.card-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Service Card */
.service-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(28, 117, 185, 0.1), rgba(62, 183, 230, 0.1));
    border-radius: var(--radius-md);
    font-size: 2rem;
    color: var(--primary);
    transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

/* Project Card */
.project-card {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 20px;
    background: var(--bg-card);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.project-card .card-img-top {
    height: 250px;
    object-fit: cover;
    transition: transform var(--transition-slow), filter var(--transition-normal);
}

.project-card:hover .card-img-top {
    transform: scale(1.08);
    filter: brightness(0.85);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

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

.project-overlay h5 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.project-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* ============================================
   Home Projects Slider
   ============================================ */
.projects-slider-wrapper {
    position: relative;
    margin-top: 2rem;
}

.projects-slider-viewport {
    overflow: hidden;
}

.projects-slider-track {
    display: flex;
    gap: 1.5rem;
    scroll-behavior: smooth;
}

.project-slide {
    flex: 0 0 calc(33.333% - 1rem);
}

@media (max-width: 991.98px) {
    .project-slide {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 575.98px) {
    .project-slide {
        flex: 0 0 100%;
    }
}

.projects-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.2s ease;
}

.projects-slider-btn.prev {
    left: -10px;
}

.projects-slider-btn.next {
    right: -10px;
}

[dir="rtl"] .projects-slider-btn.prev {
    left: auto;
    right: -10px;
}

[dir="rtl"] .projects-slider-btn.next {
    right: auto;
    left: -10px;
}

.projects-slider-btn:hover {
    background: var(--primary);
    color: #fff;
}

/* Sector Card */
.sector-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    padding: 2rem;
    text-align: center;
}

.sector-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    background: var(--primary);
    border-radius: 50%;
    font-size: 1.5rem;
    color: #fff;
    transition: all var(--transition-normal);
}

.sector-card:hover .sector-icon {
    transform: scale(1.1);
    box-shadow: 0 0 0 10px rgba(28, 117, 185, 0.1);
}

/* ============================================
   Stats Section
   ============================================ */

.stats-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

/* ============================================
   Footer
   ============================================ */

footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding-top: 80px;
}

.footer-logo {
    max-width: 100px !important;
    width: auto !important;
    height: auto !important;
    margin-bottom: 0.5rem !important;
}

footer .footer-logo,
footer img.footer-logo,
footer a img.footer-logo,
footer a .footer-logo {
    max-width: 100px !important;
    width: auto !important;
    height: auto !important;
    margin-bottom: 0.5rem !important;
}

/* Force footer logo size - highest priority */
footer .col-lg-3 .footer-logo,
footer .col-md-6 .footer-logo,
footer a[href="index.php"] .footer-logo,
footer a[href="index.php"] img.footer-logo {
    max-width: 100px !important;
    width: auto !important;
    height: auto !important;
    margin-bottom: 0.5rem !important;
}

.footer-about {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

[dir="rtl"] .footer-title::after {
    left: auto;
    right: 0;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--footer-text);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

[dir="rtl"] .footer-links a:hover {
    padding-left: 0;
    padding-right: 8px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1rem;
}

.footer-contact i {
    color: var(--primary);
    margin-top: 4px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 1.5rem;
}

.social-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: #fff;
    transition: all var(--transition-fast);
}

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

/* Vision 2030 Section */
.vision-2030 {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: center;
}

.vision-2030 img {
    height: 80px;
    margin-bottom: 1rem;
    filter: brightness(0.9);
}

.vision-2030 p {
    font-size: 0.9rem;
    color: var(--footer-text);
    margin: 0;
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    margin-top: 60px;
}

.footer-bottom p {
    margin: 0;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

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

.footer-legal-links a:hover {
    color: var(--primary);
}

.footer-legal-links .separator {
    color: var(--footer-text);
    opacity: 0.5;
    margin: 0 0.25rem;
}

[dir="rtl"] .footer-legal-links {
    justify-content: flex-start;
}

@media (max-width: 767.98px) {
    .footer-legal-links {
        justify-content: center;
        margin-top: 1rem;
    }

    .footer-bottom .row {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom .col-md-6:first-child {
        margin-bottom: 1rem;
    }
}

/* ============================================
   Page Header
   ============================================ */

.page-header {
    background: linear-gradient(135deg, #0585d0 0%, #036ba8 50%, #025a8f 100%) !important;
    background-color: transparent !important;
    padding: 100px 0 80px !important;
    position: relative;
    overflow: hidden;
    margin-top: 60px;
    width: 100%;
    min-height: auto;
}

.page-header::before,
.page-header::after {
    display: none !important;
    content: none !important;
}

.page-header-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #ffffff;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-header-content::before,
.page-header-content::after {
    display: none !important;
    content: none !important;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff !important;
    margin: 0 0 1rem 0;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.01em;
    opacity: 1 !important;
    visibility: visible !important;
}

.page-header h1::before,
.page-header h1::after {
    display: none !important;
    content: none !important;
}

.page-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95) !important;
    max-width: 700px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
    font-weight: 400;
    opacity: 1 !important;
}

.page-header p::before,
.page-header p::after {
    display: none !important;
    content: none !important;
}

.breadcrumb {
    background: transparent !important;
    justify-content: center;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
}

.breadcrumb-item {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: '/';
    color: rgba(255, 255, 255, 0.6);
    padding: 0 0.75rem;
    font-weight: 300;
}

/* Responsive Page Header */
@media (max-width: 991.98px) {
    .page-header {
        padding: 100px 0 60px;
        margin-top: 60px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .page-header {
        padding: 100px 0 50px;
        margin-top: 60px;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .page-header p {
        font-size: 0.95rem;
    }

    .breadcrumb {
        font-size: 0.85rem;
    }
}

/* ============================================
   Documents Page
   ============================================ */

.document-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.document-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.document-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-sm);
    font-size: 1.5rem;
    color: #fff;
    flex-shrink: 0;
}

.document-info {
    flex: 1;
}

.document-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.document-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   Contact Page
   ============================================ */

.contact-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    height: 100%;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(28, 117, 185, 0.1), rgba(62, 183, 230, 0.1));
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item-content h6 {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.contact-item-content p {
    color: var(--text-secondary);
    margin: 0;
}

.contact-form .form-control,
.contact-form .form-select {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(28, 117, 185, 0.1);
    background: var(--bg-card);
}

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

/* Light mode form styling - ensure borders are visible */
.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea {
    border-color: var(--border-color) !important;
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
}

/* Light mode placeholder colors - Higher specificity to override inline styles */
.form-control::placeholder,
.form-select::placeholder,
input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="search"]::placeholder,
textarea::placeholder,
input::placeholder,
#email::placeholder,
#visitorEmail::placeholder,
#newsletterName::placeholder,
#newsletterEmail::placeholder,
#editEmail::placeholder {
    color: #6c757d !important;
    opacity: 1 !important;
}

.form-control::-webkit-input-placeholder,
.form-select::-webkit-input-placeholder,
input[type="text"]::-webkit-input-placeholder,
input[type="email"]::-webkit-input-placeholder,
input[type="password"]::-webkit-input-placeholder,
input[type="search"]::-webkit-input-placeholder,
textarea::-webkit-input-placeholder,
input::-webkit-input-placeholder,
#email::-webkit-input-placeholder,
#visitorEmail::-webkit-input-placeholder,
#newsletterName::-webkit-input-placeholder,
#newsletterEmail::-webkit-input-placeholder,
#editEmail::-webkit-input-placeholder {
    color: #6c757d !important;
    opacity: 1 !important;
}

.form-control::-moz-placeholder,
.form-select::-moz-placeholder,
input[type="text"]::-moz-placeholder,
input[type="email"]::-moz-placeholder,
input[type="password"]::-moz-placeholder,
input[type="search"]::-moz-placeholder,
textarea::-moz-placeholder,
input::-moz-placeholder,
#email::-moz-placeholder,
#visitorEmail::-moz-placeholder,
#newsletterEmail::-moz-placeholder,
#editEmail::-moz-placeholder {
    color: #6c757d !important;
    opacity: 1 !important;
}

.form-control:focus,
.form-select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(5, 133, 208, 0.25) !important;
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
}

/* Dark mode form styling - light borders and placeholders */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] .search-box input {
    border-color: rgba(255, 255, 255, 0.2) !important;
    background: var(--bg-secondary) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus,
[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] .search-box input:focus {
    border-color: rgba(255, 255, 255, 0.4) !important;
    background: var(--bg-secondary) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .form-control::placeholder,
[data-theme="dark"] .form-select::placeholder,
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder,
[data-theme="dark"] .search-box input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    opacity: 1 !important;
}

[data-theme="dark"] .form-control::-webkit-input-placeholder,
[data-theme="dark"] .form-select::-webkit-input-placeholder,
[data-theme="dark"] input::-webkit-input-placeholder,
[data-theme="dark"] textarea::-webkit-input-placeholder,
[data-theme="dark"] .search-box input::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    opacity: 1 !important;
}

[data-theme="dark"] .form-control::-moz-placeholder,
[data-theme="dark"] .form-select::-moz-placeholder,
[data-theme="dark"] input::-moz-placeholder,
[data-theme="dark"] textarea::-moz-placeholder,
[data-theme="dark"] .search-box input::-moz-placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    opacity: 1 !important;
}

[data-theme="dark"] .form-control:-ms-input-placeholder,
[data-theme="dark"] .form-select:-ms-input-placeholder,
[data-theme="dark"] input:-ms-input-placeholder,
[data-theme="dark"] textarea:-ms-input-placeholder,
[data-theme="dark"] .search-box input:-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    opacity: 1 !important;
}

/* Newsletter Section - Full Width Without Box */
.newsletter-section-fullwidth {
    background: linear-gradient(135deg, #0585d0 0%, #036ba8 50%, #025a8f 100%);
    width: 100%;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    margin: 0;
}

.newsletter-content-fullwidth {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    width: 100%;
}

.newsletter-text-section {
    flex: 1;
    color: #ffffff;
}

.newsletter-title-fullwidth {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.newsletter-description-fullwidth {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.15rem;
    line-height: 1.8;
    margin: 0;
}

.newsletter-form-section {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
}

[dir="rtl"] .newsletter-form-section {
    align-items: flex-start;
}

.newsletter-form-fullwidth {
    margin: 0;
}

.newsletter-input-wrapper-fullwidth {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    min-width: min(100%, 400px);
}

.newsletter-fields-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

[dir="rtl"] .newsletter-input-fullwidth {
    text-align: right;
    direction: rtl;
}

[dir="ltr"] .newsletter-input-fullwidth {
    text-align: left;
    direction: ltr;
}

.newsletter-input-fullwidth {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-width: 250px;
}

.newsletter-input-fullwidth::placeholder {
    color: rgba(255, 255, 255, 0.75);
    text-align: inherit;
}

[data-theme="dark"] .newsletter-input-fullwidth::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.newsletter-input-fullwidth:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.2);
}

.newsletter-btn-fullwidth {
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    padding: 0.85rem 1.75rem;
    width: 100%;
}

.newsletter-btn-cta {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    letter-spacing: 0.02em;
}

.newsletter-btn-cta:hover {
    background: linear-gradient(180deg, #1e293b 0%, #334155 100%);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.newsletter-btn-cta:active {
    transform: translateY(0);
}

.newsletter-btn-cta:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.65);
    outline-offset: 2px;
}

.newsletter-inline-message {
    margin-top: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
}

[dir="rtl"] .newsletter-inline-message {
    text-align: right;
}

[dir="ltr"] .newsletter-inline-message {
    text-align: left;
}

.newsletter-inline-message.is-success {
    color: #bbf7d0;
}

.newsletter-inline-message.is-error {
    color: #fecaca;
}

.newsletter-privacy-fullwidth {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.newsletter-lock-icon {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Dark Mode */
[data-theme="dark"] .newsletter-section-fullwidth {
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 50%, #2d2d2d 100%);
}

[data-theme="dark"] .newsletter-input-fullwidth {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

[data-theme="dark"] .newsletter-input-fullwidth:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(79, 195, 247, 0.5);
}

/* Blog sidebar newsletter (gradient card) */
.blog-sidebar-newsletter-fields {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.blog-sidebar-newsletter-input {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    color: #0f172a;
}

.blog-sidebar-newsletter-input:focus {
    outline: none;
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
    background: #fff;
}

[dir="rtl"] .blog-sidebar-newsletter-input {
    text-align: right;
    direction: rtl;
}

.blog-sidebar-newsletter-input::placeholder {
    color: #64748b;
    opacity: 1;
}

.blog-sidebar-newsletter-submit {
    border-radius: 12px !important;
    font-weight: 700 !important;
    min-height: 3rem;
    border: 2px solid rgba(255, 255, 255, 0.55) !important;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.blog-sidebar-newsletter-submit:hover {
    transform: translateY(-2px);
    color: #fff !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.blog-sidebar-newsletter-message {
    margin-top: 0.75rem;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.45;
}

[dir="rtl"] .blog-sidebar-newsletter-message {
    text-align: right;
}

/* Index / generic newsletter: RTL inputs in section */
[dir="rtl"] .newsletter-section .form-control {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .newsletter-section .form-control::placeholder {
    text-align: right;
}

.newsletter-index-submit {
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 18px rgba(5, 133, 208, 0.35);
}

.newsletter-index-submit:hover {
    box-shadow: 0 6px 22px rgba(5, 133, 208, 0.45);
}

/* Responsive Newsletter */
@media (max-width: 991.98px) {
    .newsletter-content-fullwidth {
        flex-direction: column;
        text-align: center;
        padding: 0 2rem;
        gap: 2rem;
    }

    .newsletter-text-section {
        text-align: center;
    }

    .newsletter-title-fullwidth {
        font-size: 2.5rem;
    }

    .newsletter-description-fullwidth {
        font-size: 1.05rem;
    }

    .newsletter-form-section {
        align-items: center;
        width: 100%;
    }

    [dir="rtl"] .newsletter-form-section {
        align-items: center;
    }

    .newsletter-input-wrapper-fullwidth {
        width: 100%;
        max-width: 500px;
        min-width: auto;
    }
}

@media (max-width: 767.98px) {
    .newsletter-section-fullwidth {
        padding: 3rem 0;
    }

    .newsletter-content-fullwidth {
        padding: 0 1.5rem;
        gap: 1.5rem;
    }

    .newsletter-title-fullwidth {
        font-size: 2rem;
    }

    .newsletter-description-fullwidth {
        font-size: 1rem;
    }

    .newsletter-input-wrapper-fullwidth {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    [dir="rtl"] .newsletter-input-wrapper-fullwidth {
        flex-direction: column;
    }

    .newsletter-input-fullwidth {
        width: 100%;
        min-width: auto;
        padding: 0.875rem 1.25rem;
    }

    .newsletter-btn-fullwidth {
        width: 100%;
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .newsletter-privacy-fullwidth {
        font-size: 0.8rem;
        justify-content: center;
    }
}

/* Map Container Styles */
.map-container {
    position: relative;
    background: #e8f4f8;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.map-info-card {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 320px;
}

[dir="rtl"] .map-info-card {
    left: auto;
    right: 20px;
}

@media (max-width: 767.98px) {
    .map-info-card {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        max-width: 100%;
        margin-bottom: 1rem;
    }

    .map-container {
        padding: 1rem;
    }
}

/* Full Width Map Section */
.map-section-fullwidth {
    margin: 0;
    padding: 0 !important;
}

.map-container-fullwidth {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.map-info-card-fullwidth {
    position: absolute;
    z-index: 10;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 320px;
}

[dir="rtl"] .map-info-card-fullwidth {
    right: 20px;
    left: auto;
}

@media (max-width: 767.98px) {
    .map-info-card-fullwidth {
        position: relative;
        top: auto;
        left: auto !important;
        right: auto !important;
        max-width: 100%;
        margin: 1rem;
    }

    .map-container-fullwidth {
        margin-left: 0;
        margin-right: 0;
    }
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {

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

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

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Scroll Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive Styles
   ============================================ */

@media (max-width: 1199.98px) {
    :root {
        --section-padding: 80px;
    }
}

@media (max-width: 991.98px) {
    :root {
        --section-padding: 60px;
    }

    .navbar-collapse {
        background: var(--navbar-bg);
        padding: 1rem;
        border-radius: var(--radius-md);
        margin-top: 1rem;
        box-shadow: var(--shadow-md);
    }

    .navbar-nav .nav-link::after {
        display: none;
    }

    .hero-section {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        margin-top: 3rem;
    }

    .stat-item {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    :root {
        --section-padding: 50px;
    }

    .navbar-brand-text .brand-name {
        font-size: 1rem;
    }

    .navbar-brand-text .brand-tagline {
        display: none;
    }

    .toggle-controls {
        order: 2;
        margin-left: auto;
    }

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

    .section-title {
        font-size: 1.75rem;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    [dir="rtl"] .footer-title::after {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    footer .text-md-start {
        text-align: center !important;
    }

    .footer-social {
        justify-content: center;
    }

    .document-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    :root {
        --section-padding: 40px;
        --container-padding: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 12px 24px;
        font-size: 1rem;
    }

    .toggle-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .lang-toggle {
        padding: 0 10px;
        font-size: 0.75rem;
    }

    .service-card,
    .product-card,
    .blog-card {
        padding: 1.5rem 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.5rem !important;
    }

    .section-subtitle {
        font-size: 0.95rem !important;
    }

    h1 {
        font-size: 1.75rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }

    .display-3 {
        font-size: 2rem !important;
    }

    .display-4 {
        font-size: 1.75rem !important;
    }

    .lead {
        font-size: 1rem !important;
    }

    .navbar-brand img {
        height: 40px;
    }

    .page-header {
        padding: 60px 0 40px !important;
    }

    .page-header h1 {
        font-size: 1.75rem !important;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Extra Small Devices (Portrait Phones, less than 400px) */
@media (max-width: 399.98px) {
    :root {
        --section-padding: 30px;
    }

    .navbar-brand img {
        height: 35px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.25rem !important;
    }

    h1 {
        font-size: 1.5rem !important;
    }

    .display-3 {
        font-size: 1.75rem !important;
    }

    .stat-number {
        font-size: 1.75rem;
    }
}

/* ============================================
   Comprehensive Responsive Styles for All Pages
   ============================================ */

/* Hero Section Responsive */
@media (max-width: 991.98px) {
    .hero-slide {
        min-height: 500px !important;
    }

    .hero-slide h1 {
        font-size: 2.5rem !important;
    }

    .hero-slide .lead {
        font-size: 1.1rem !important;
    }

    .hero-slide .btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .hero-slide {
        min-height: 450px !important;
    }

    .hero-slide h1 {
        font-size: 2rem !important;
        margin-bottom: 1rem !important;
    }

    .hero-slide .lead {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }

    .hero-slide .btn {
        padding: 10px 24px;
        font-size: 0.95rem;
        width: auto;
    }

    .hero-slider-section .carousel-control-prev,
    .hero-slider-section .carousel-control-next {
        width: 40px;
        height: 40px;
    }

    .hero-slider-section .carousel-indicators {
        bottom: 20px;
    }

    .hero-slider-section .carousel-indicators button {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 575.98px) {
    .hero-slide {
        min-height: 400px !important;
    }

    .hero-slide h1 {
        font-size: 1.75rem !important;
    }

    .hero-slide .lead {
        font-size: 0.95rem !important;
    }

    .hero-slide .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 280px;
    }
}

/* About Home Section Responsive */
@media (max-width: 991.98px) {
    .about-home-section .col-lg-6 {
        margin-bottom: 2rem;
    }

    .about-home-section h2 {
        font-size: 2rem !important;
    }

    .about-home-section .lead {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 767.98px) {
    .about-home-section {
        padding: 3rem 0 !important;
    }

    .about-home-section h2 {
        font-size: 1.75rem !important;
    }

    .about-home-section img {
        margin-top: 2rem;
    }

    .stat-card {
        margin-bottom: 1rem;
    }

    .stat-number {
        font-size: 2.5rem !important;
    }
}

/* Products Section Responsive */
@media (max-width: 991.98px) {
    .products-section .row {
        gap: 1.5rem;
    }

    .product-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .products-section {
        padding: 3rem 0 !important;
    }

    .product-card {
        padding: 1.5rem !important;
    }

    .product-card .icon {
        font-size: 2.5rem !important;
    }

    .product-card h3 {
        font-size: 1.25rem !important;
    }

    .product-card p {
        font-size: 0.95rem !important;
    }
}

/* Blog Section Responsive */
@media (max-width: 991.98px) {
    .blog-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 767.98px) {
    .blog-section {
        padding: 3rem 0 !important;
    }

    .blog-card {
        padding: 1.5rem !important;
    }

    .blog-card img {
        height: 200px !important;
    }

    .blog-card h3 {
        font-size: 1.25rem !important;
    }
}

/* About Page Responsive */
@media (max-width: 991.98px) {

    .company-intro .col-lg-6,
    .vision-mission .col-lg-6 {
        margin-bottom: 2rem;
    }

    .company-intro h2,
    .vision-mission h2 {
        font-size: 2rem !important;
    }
}

@media (max-width: 767.98px) {

    .company-intro,
    .vision-mission,
    .values-section,
    .certifications-section,
    .why-choose-section {
        padding: 3rem 0 !important;
    }

    .company-intro h2,
    .vision-mission h2,
    .values-section h2,
    .certifications-section h2,
    .why-choose-section h2 {
        font-size: 1.75rem !important;
    }

    .highlight-card {
        margin-bottom: 1rem;
    }

    .value-card,
    .certification-card,
    .why-choose-card {
        margin-bottom: 1.5rem;
    }
}

/* Contact Page Responsive */
@media (max-width: 991.98px) {
    .contact-section .col-lg-6 {
        margin-bottom: 2rem;
    }
}

@media (max-width: 767.98px) {
    .contact-section {
        padding: 3rem 0 !important;
    }

    .contact-info-card {
        margin-bottom: 2rem;
    }

    .contact-form {
        padding: 1.5rem !important;
    }

    .contact-form .form-control,
    .contact-form .form-select {
        font-size: 1rem;
    }

    iframe {
        height: 300px !important;
    }
}

/* Products Page Responsive */
@media (max-width: 991.98px) {
    .product-categories-grid .col-md-6 {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 767.98px) {

    .product-categories-grid .col-md-6,
    .product-categories-grid .col-lg-4 {
        margin-bottom: 1.5rem;
    }

    .product-category-card {
        padding: 1.5rem !important;
    }
}

/* Blog Page Responsive */
@media (max-width: 991.98px) {
    .blog-listing .col-lg-8 {
        margin-bottom: 2rem;
    }

    .blog-sidebar {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 767.98px) {
    .blog-listing {
        padding: 3rem 0 !important;
    }

    .blog-post-card {
        margin-bottom: 2rem;
    }

    .blog-sidebar .card {
        margin-bottom: 1.5rem;
    }
}

/* Documents/Certifications Page Responsive */
@media (max-width: 991.98px) {
    .certifications-grid .col-md-6 {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .certifications-section {
        padding: 3rem 0 !important;
    }

    .certification-item {
        margin-bottom: 1.5rem;
    }

    .document-card {
        padding: 1.5rem !important;
    }
}

/* Navigation Responsive Enhancements */
@media (max-width: 991.98px) {

    /* FIX: Add padding to body to account for fixed navbar */
    body {
        padding-top: 70px;
    }

    /* Ensure navbar is fixed at top */
    .navbar {
        padding: 0.5rem 0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: var(--navbar-bg);
    }

    .navbar-nav {
        padding: 1rem 0;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    .toggle-controls {
        margin-top: 1rem;
        justify-content: center;
    }

    /* Adjust for RTL (Arabic) */
    [dir="rtl"] body {
        padding-top: 70px;
    }
}

@media (max-width: 767.98px) {
    .navbar-brand {
        gap: 8px;
    }

    .navbar-brand img {
        height: 40px;
    }

    .offcanvas {
        width: 280px !important;
    }

    .offcanvas-body {
        padding: 1.25rem;
    }

    .offcanvas-body .nav-link {
        padding: 0.875rem 1rem !important;
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .offcanvas {
        width: 85% !important;
        max-width: 300px;
    }

    .offcanvas-header {
        padding: 1.25rem;
    }

    .offcanvas-body {
        padding: 1rem;
    }

    .offcanvas-body .nav-link {
        padding: 0.75rem 1rem !important;
        font-size: 0.95rem;
    }
}

/* Footer Responsive */
@media (max-width: 991.98px) {

    footer .col-lg-3,
    footer .col-lg-4 {
        margin-bottom: 2rem;
    }
}

@media (max-width: 767.98px) {
    footer {
        padding: 3rem 0 1.5rem !important;
    }

    footer .col-md-6 {
        margin-bottom: 2rem;
        text-align: center;
    }

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

    .footer-links {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
        margin-top: 1rem;
    }

    .footer-bottom {
        text-align: center;
        padding-top: 1.5rem;
    }
}

/* Page Header Responsive */
@media (max-width: 767.98px) {
    .page-header {
        padding: 80px 0 40px !important;
    }

    .page-header h1 {
        font-size: 2rem !important;
    }

    .page-header p {
        font-size: 1rem !important;
    }

    .breadcrumb {
        font-size: 0.875rem;
    }
}

/* Section Badge Responsive */
@media (max-width: 767.98px) {
    .section-badge {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
}

/* Cards General Responsive */
@media (max-width: 767.98px) {
    .card {
        margin-bottom: 1.5rem;
    }

    .card-body {
        padding: 1.5rem !important;
    }

    .card-title {
        font-size: 1.25rem !important;
    }
}

/* Forms Responsive */
@media (max-width: 767.98px) {

    .form-control,
    .form-select {
        font-size: 1rem;
        padding: 0.75rem;
    }

    .form-label {
        font-size: 0.95rem;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn-group .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Grid System Enhancements */
@media (max-width: 991.98px) {

    .row.g-4>*,
    .row.g-5>* {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 767.98px) {

    .row.g-4>*,
    .row.g-5>* {
        margin-bottom: 1.5rem;
    }

    /* Stack columns on mobile */
    .col-md-6,
    .col-md-4,
    .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Images Responsive */
@media (max-width: 767.98px) {
    img {
        max-width: 100%;
        height: auto;
    }

    .img-fluid {
        width: 100%;
    }
}

/* Tables Responsive */
@media (max-width: 767.98px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table {
        font-size: 0.875rem;
    }

    .table th,
    .table td {
        padding: 0.5rem;
        white-space: nowrap;
    }
}

/* Modals Responsive */
@media (max-width: 767.98px) {
    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-content {
        border-radius: 10px;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-header,
    .modal-footer {
        padding: 1rem;
    }
}

/* Utilities Responsive */
@media (max-width: 767.98px) {
    .text-md-start {
        text-align: center !important;
    }

    .text-md-end {
        text-align: center !important;
    }

    .d-md-none {
        display: none !important;
    }

    .d-md-block {
        display: block !important;
    }
}

/* Container Padding Responsive */
@media (max-width: 575.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Section Padding Responsive */
@media (max-width: 991.98px) {
    section {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
}

@media (max-width: 767.98px) {
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

@media (max-width: 575.98px) {
    section {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
}

/* ============================================
   Utility Classes
   ============================================ */

.text-primary-custom {
    color: var(--primary) !important;
}

.text-secondary-custom {
    color: var(--secondary) !important;
}

.bg-primary-custom {
    background-color: var(--primary) !important;
}

.bg-secondary-custom {
    background-color: var(--secondary) !important;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Selection */
::selection {
    background: var(--primary);
    color: #fff;
}

/* Focus States */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Print Styles */
@media print {

    .navbar,
    .footer-bottom,
    .toggle-btn {
        display: none !important;
    }

    body {
        background: #fff !important;
        color: #000 !important;
    }
}

/* ============================================
   Project Detail Page Styles
   ============================================ */

.project-hero {
    padding: 60px 0;
}

.project-main-image {
    position: relative;
}

.project-info-card {
    height: 100%;
}

.project-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.description-content {
    min-height: 300px;
}

.project-sidebar {
    position: sticky;
    top: 100px;
}

.gallery-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1 !important;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive Project Detail */
@media (max-width: 991.98px) {
    .project-sidebar {
        position: static;
        margin-top: 2rem;
    }

    .project-meta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .project-hero {
        padding: 40px 0;
    }

    .project-meta-grid {
        grid-template-columns: 1fr;
    }

    .description-content,
    .project-info-card,
    .project-sidebar {
        padding: 1.5rem !important;
    }

    .lightbox-prev,
    .lightbox-next {
        padding: 8px 12px !important;
        font-size: 1.2rem !important;
    }

    .lightbox-close {
        top: -30px !important;
        font-size: 1.5rem !important;
    }
}

@media (max-width: 575.98px) {
    .project-hero h2 {
        font-size: 1.5rem !important;
    }

    .gallery-item img {
        height: 200px !important;
    }
}

/* ============================================
   Service & Sector Detail Page Styles
   ============================================ */

.service-hero,
.sector-hero {
    padding: 60px 0;
}

.service-main-image,
.sector-main-image {
    position: relative;
}

.service-info-card,
.sector-info-card {
    height: 100%;
}

.service-icon-large,
.sector-icon-large {
    width: 100px;
    height: 100px;
}

.sector-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.service-sidebar,
.sector-sidebar {
    position: sticky;
    top: 100px;
}

/* Responsive Service & Sector Detail */
@media (max-width: 991.98px) {

    .service-sidebar,
    .sector-sidebar {
        position: static;
        margin-top: 2rem;
    }

    .sector-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {

    .service-hero,
    .sector-hero {
        padding: 40px 0;
    }

    .sector-stats {
        grid-template-columns: 1fr;
    }

    .description-content,
    .service-info-card,
    .sector-info-card,
    .service-sidebar,
    .sector-sidebar {
        padding: 1.5rem !important;
    }

    .service-icon-large,
    .sector-icon-large {
        width: 80px;
        height: 80px;
    }

    .service-icon-large i,
    .sector-icon-large i {
        font-size: 2rem !important;
    }
}

@media (max-width: 575.98px) {

    .service-hero h2,
    .sector-hero h2 {
        font-size: 1.5rem !important;
    }

    .service-actions,
    .sector-actions {
        flex-direction: column;
    }

    .service-actions .btn,
    .sector-actions .btn {
        width: 100%;
        margin: 0.25rem 0 !important;
    }
}

/* ============================================
   Page Preloader
   ============================================ */
.page-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-primary);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.preloader-logo {
    width: 160px;
    height: auto;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.1));
}

[data-theme="dark"] .page-preloader {
    background: #1a1a1a;
}

.pulse-animation {
    animation: preloader-pulse 1.5s ease-in-out infinite;
}

@keyframes preloader-pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

.preloader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(28, 117, 185, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: preloader-spin 1s linear infinite;
}

@keyframes preloader-spin {
    to {
        transform: rotate(360deg);
    }
}