/* ========================================
   1. CSS VARIABLES AND ROOT STYLES
   ======================================== */

:root {
    --primary: #2a5298;
    --secondary: #ffd700;
    --light: #ECF4FF;
    --dark: #120F2D;
}

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --border-color: #dee2e6;
    --card-bg: #ffffff;
    --navbar-bg: #ffffff;
    --footer-bg: #212529;
    --link-color: #2a5298;
    --input-bg: #ffffff;
    --input-text: #212529;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --border-color: #404040;
    --card-bg: #2d2d2d;
    --navbar-bg: #1a1a1a;
    --footer-bg: #0d0d0d;
    --link-color: #73a5ff;
    --input-bg: #2d2d2d;
    --input-text: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.3);
}
/* Theme Application */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.bg-white {
    background-color: var(--bg-primary) !important;
}

.bg-light {
    background-color: var(--bg-secondary) !important;
}

.text-dark {
    color: var(--text-primary) !important;
}

.navbar {
    background-color: var(--navbar-bg) !important;
}

.card, .modal-content {
    background-color: var(--card-bg);
}

.form-control, .form-select {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.form-control:focus, .form-select:focus {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.list-group-item {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.modal-content {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background-color: var(--bg-secondary);
}

/* ========================================
   2. GLOBAL STYLES
   ======================================== */

[class^=flaticon-]:before,
[class*=" flaticon-"]:before,
[class^=flaticon-]:after,
[class*=" flaticon-"]:after {
    font-size: inherit;
    margin-left: 0;
}

/* Typography */
h1,
h2,
.font-weight-bold {
    font-weight: 700 !important;
}

h3,
h4,
.font-weight-semi-bold {
    font-weight: 600 !important;
}

h5,
h6,
.font-weight-medium {
    font-weight: 500 !important;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    .display-5 { font-size: 1.5rem; }
}
/* Smooth transitions for all theme changes */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
/* ========================================
   3. BUTTON STYLES
   ======================================== */

.btn {
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn-primary,
.btn-secondary,
.btn-primary:hover,
.btn-secondary:hover {
    color: #FFFFFF;
}

/* Main button color */
.btn-primary, .read-more-btn {
    background-color: #2a5298; /* Blue */
    border-color: #3498db;
    transition: all 0.3s ease;
}

/* Hover state */
.btn-primary:hover, .read-more-btn:hover {
    background-color: #1e3c72 !important; /* Darker blue */
    border-color: #1e3c72 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Active/focus state */
.btn-primary:active, .btn-primary:focus,
.read-more-btn:active, .read-more-btn:focus {
    background-color: #1f618d !important; /* Even darker blue */
    border-color: #1f618d !important;
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.5) !important;
}
/* Main background color */
.bg-primary {
    background-color: #2a5298 !important; /* Blue */
}

/* Background color (secondary) */
.bg-secondary {
    background-color: #ffd700 !important; /* Yellow */
}

/* Bottom border color */
.border-secondary {
    border-color: #ffd700 !important; /* Yellow */
}

/* Bottom border (primary) */
.border-primary {
    border-color: #2a5298 !important; /* Blue */
}

.btn-secondary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* Button Sizes */
.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.btn-square {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Phone Button for Mobile */
.btn-phone-mobile {
    width: 40px;
    height: 40px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-phone-mobile:hover {
    background-color: #ffd700 !important;
    transform: scale(1.1);
}

.btn-phone-mobile i {
    font-size: 1.2rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Jost', sans-serif;
    position: relative;
    margin-left: 30px;
    padding: 30px 0;
    font-size: 20px;
    font-weight: 500;
    outline: none;
    transition: .5s;
    color: var(--text-primary) !important;

}

.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 20px 0;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: #2a5298 !important;
}
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}
/* Dark Theme Toggle Button in Navbar */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    position: relative;
    overflow: hidden;
}

/* Light theme button styling (shows moon) */
[data-theme="light"] .theme-toggle {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    animation: pulse-blue 3s infinite;
}

/* Dark theme button styling (shows sun) */
[data-theme="dark"] .theme-toggle {
    background: linear-gradient(135deg, #ffa500 0%, #ff8c00 100%);
    box-shadow: 0 4px 10px rgba(255, 165, 0, 0.3);
    animation: pulse-orange 3s infinite;
}

.theme-toggle:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Light theme hover */
[data-theme="light"] .theme-toggle:hover {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    box-shadow: 0 8px 20px rgba(42, 82, 152, 0.4);
}

/* Dark theme hover */
[data-theme="dark"] .theme-toggle:hover {
    background: linear-gradient(135deg, #ff8c00 0%, #ffa500 100%);
    box-shadow: 0 8px 20px rgba(255, 165, 0, 0.5);
}

.theme-toggle i {
    font-size: 1rem;
    color: white;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

/* Moon giggling animation */
.theme-toggle .fa-moon {
    animation: moonGiggle 3s ease-in-out infinite;
}

.theme-toggle:hover .fa-moon {
    animation: moonGiggleHover 0.8s ease-in-out infinite;
}

/* Sun shining animation */
.theme-toggle .fa-sun {
    animation: sunShine 2s ease-in-out 1;
    animation-fill-mode: forwards;
}

.theme-toggle:hover .fa-sun {
    animation: sunShine 1s ease-in-out 1;
}

/* Add a subtle glow effect */
.theme-toggle::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 50%;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.theme-toggle:hover::before {
    opacity: 1;
    animation: rotate 1.5s linear infinite;
}

/* Keyframe animations */
@keyframes moonGiggle {
    0%, 100% { 
        transform: rotate(0deg) scale(1);
    }
    20% { 
        transform: rotate(-8deg) scale(1.05);
    }
    40% { 
        transform: rotate(6deg) scale(1.08);
    }
    60% { 
        transform: rotate(-4deg) scale(1.03);
    }
    80% { 
        transform: rotate(2deg) scale(1.01);
    }
}

@keyframes moonGiggleHover {
    0%, 100% { 
        transform: rotate(0deg) scale(1);
        filter: brightness(1);
    }
    25% { 
        transform: rotate(-12deg) scale(1.1);
        filter: brightness(1.2);
    }
    50% { 
        transform: rotate(10deg) scale(1.15);
        filter: brightness(1.3) drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
    }
    75% { 
        transform: rotate(-6deg) scale(1.08);
        filter: brightness(1.1);
    }
}

@keyframes sunShine {
    0% { 
        transform: rotate(0deg) scale(1);
        filter: brightness(1);
    }
    50% { 
        transform: rotate(180deg) scale(1.05);
        filter: brightness(1.2);
    }
    100% { 
        transform: rotate(360deg) scale(1);
        filter: brightness(1);
    }
}

@keyframes sunShineHover {
    0%, 100% { 
        transform: rotate(0deg) scale(1);
        filter: brightness(1) drop-shadow(0 0 5px #ffd700);
    }
    50% { 
        transform: rotate(180deg) scale(1.2);
        filter: brightness(1.5) drop-shadow(0 0 15px #ffd700) drop-shadow(0 0 25px rgba(255, 215, 0, 0.3));
    }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pulse animations for theme toggle */
@keyframes pulse-blue {
    0% {
        box-shadow: 0 0 0 0 rgba(42, 82, 152, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(42, 82, 152, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(42, 82, 152, 0);
    }
}

@keyframes pulse-orange {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 165, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 165, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 165, 0, 0);
    }
}

.theme-toggle.dark i {
    transform: rotate(0deg);
}
/* News Section Styles */
.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.news-img-container {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.news-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img-container img {
    transform: scale(1.05);
}

.news-date {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(42, 82, 152, 0.9);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
    line-height: 1.2;
}

.news-date span:first-child {
    font-size: 24px;
    font-weight: bold;
    display: block;
}

.news-date span:last-child {
    font-size: 14px;
}

.news-content {
    position: relative;
}

.news-content h4 {
    color: #333;
    transition: color 0.3s ease;
}

.news-card:hover .news-content h4 {
    color: #2a5298;
}

/* RTL Adjustments */
[dir="rtl"] .news-date {
    right: 20px;
    left: auto;
}

[dir="rtl"] .news-content .btn i {
    transform: rotate(180deg);
    margin-right: 8px;
    margin-left: 0;
}

/* News Modals Styles */
.modal-content {
    border-radius: 10px;
    border: none;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    border-bottom: 1px solid #eee;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 10px 10px 0 0;
}

.modal-title {
    font-weight: 700;
    color: #333;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-top: 1px solid #eee;
    padding: 1.5rem;
}

/* RTL Modal Adjustments */
[dir="rtl"] .modal-header .btn-close {
    margin-left: 0;
    margin-right: auto;
}

[dir="rtl"] .modal-footer > * {
    margin-left: 0.5rem;
    margin-right: 0;
}

/* News Card Button Adjustments */
.read-more-btn {
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background-color: #2a5298 !important;
    transform: translateX(-5px);
}

[dir="rtl"] .read-more-btn:hover {
    transform: translateX(5px);
}

/* Map Section Styles */
.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0,0,0,.1) !important;
}

/* RTL Adjustments */
[dir="rtl"] .btn i {
    margin-right: 0.5rem;
    margin-left: 0;
}

/* Responsive Image */
.img-fluid {
    max-width: 100%;
    height: auto;
    border: 1px solid #eee;
}



/* Modal Animation */
.modal.fade .modal-dialog {
    transform: translateY(-50px);
    transition: transform 0.3s ease-out;
}
.modal.show .modal-dialog {
    transform: translateY(0);
}

/* Success Icon Color */
.text-success {
    color: #28a745 !important;
}
@media (min-width: 992px) {
    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 5px;
        bottom: 0;
        left: 50%;
        background: var(--primary);
        transition: .5s;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }

    .navbar-light .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link  {
        margin-left: 0;
        padding: 10px 0;
    }
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    
}



/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 100;
}

.whatsapp-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-link:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

.whatsapp-icon {
    font-size: 30px;
    margin: 0 auto; /* Center horizontally */
    display: block; /* Needed for margin auto to work */
}
.carousel-inner {
    perspective: 1000px;
}

.carousel-item {
    backface-visibility: hidden;
    transform-style: preserve-3d;
}
/* RTL Adjustment (Arabic) */
html[dir="rtl"] .whatsapp-float {
    right: 30px;
    left: auto ;
}

@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

.carousel-indicators {
    align-items: flex-end;
}

.carousel-indicators [data-bs-target] {
    width: 5px;
    height: 25px;
}

.carousel-indicators .active {
    height: 45px;
}

.hero-header {
    background: linear-gradient(rgba(18, 15, 45, .5), rgba(18, 15, 45, .5)), url(../img/carousel-1.jpg) top right no-repeat;
    background-size: cover;
}

.service-item div {
    z-index: 1;
}

.service-item div::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 2px 2px 0 0;
    transition: .5s;
    z-index: -1;
}

.service-item div:hover::after {
    width: 100%;
    background: var(--primary);
}

.service-item * {
    transition: .5s;
}

.service-item:hover * {
    color: var(--light) !important;
}

.bg-offer {
    background: linear-gradient(rgba(18, 15, 45, .5), rgba(18, 15, 45, .5)), url(../img/carousel-2.jpg) top right no-repeat;
    background-size: cover;
}

.testimonial-carousel .owl-dots {
    height: 45px;
    margin-top: 5px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 5px;
    height: 25px;
    background: #DDDDDD;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    height: 45px;
    background: var(--primary);
}

.testimonial-carousel .owl-item .testimonial-text,
.testimonial-carousel .owl-item .testimonial-text * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: #FFFFFF !important;
}

.blog-date {
    position: absolute;
    width: 90px;
    height: 65px;
    top: 75px;
    left: -25px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: var(--secondary);
}

.blog-date::after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
    top: -25px;
    left: 0;
    border: 13px solid;
    border-color: transparent #ffd700 #ffd700 transparent;
    z-index: -1;
}
/* Active link styling */
.navbar-nav .nav-link.active {
    color: #2a5298;
    font-weight: bold;
    position: relative;
}

.navbar-nav .nav-link.active:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #2a5298;
}

/* Remove active class from all links by default */
.navbar-nav .nav-link {
    position: relative;
}
.hover-effect {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-effect:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    cursor: pointer;
}
/* Page Header */
.page-header {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Breadcrumb adjustments for RTL */
.breadcrumb {
    padding: 0;
    background: transparent;
}

.breadcrumb-item + .breadcrumb-item::before {
    float: right;
    padding-left: 0.5rem;
    padding-right: 0;
    color: #fff;
}

/* Text styling */
.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}


/* Phone button for mobile */
.btn-phone-mobile {
    width: 40px;
    height: 40px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-phone-mobile:hover {
    background-color: #ffd700 !important;
    transform: scale(1.1);
}

.btn-phone-mobile i {
    font-size: 1.2rem;
}

/* Ensure proper spacing in RTL */
[dir="rtl"] .btn-phone-mobile {
    margin-left: 0.5rem;
    margin-right: 0;
}

/* Hide desktop phone button on mobile */
.nav-contact {
    display: none;
}

@media (min-width: 992px) {
    .btn-phone-mobile {
        display: none !important;
    }
    .nav-contact {
        display: flex !important;
    }
}

/* Fix navbar toggler positioning */
.navbar-toggler {
    padding: 0.25rem 0.5rem;
    font-size: 1.25rem;
    line-height: 1;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
}
/* Contact Info Styling */
.contact-info-item {
    padding-top: 5px; /* Adjust this value to control spacing */
}

.btn-square {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* For RTL specific adjustments */
[dir="rtl"] .btn-square {
    margin-left: 15px; /* Space between icon and text */
    margin-right: 0;
}
/* Map Container Styling */
.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 30px;
    border: 1px solid #ddd;
}

/* Responsive Map */
@media (max-width: 768px) {
    .map-container {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .carousel-caption h1 {
        font-size: 1.8rem !important;
    }
    .carousel-caption h5 {
        font-size: 1rem !important;
    }
    .carousel-indicators [data-bs-target] {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }
}
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 15px !important;
    }
    .whatsapp-link {
        width: 50px;
        height: 50px;
    }
    .whatsapp-icon {
        font-size: 30px;
    }
}
@media (max-width: 991.98px) {
    .navbar-nav .nav-item {
        margin-bottom: 5px;
    }
    .nav-contact {
        padding: 8px 15px !important;
        margin-top: 10px;
    }
}
@media (max-width: 767px) {
    .news-card {
        margin-bottom: 30px;
    }
    .news-card:hover {
        transform: none;
    }
}
@media (max-width: 767px) {
    .footer .col-lg-3 {
        margin-bottom: 30px;
        text-align: center;
    }
    .footer .d-flex {
        justify-content: center;
    }
}
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    .display-5 { font-size: 1.5rem; }
}

/* Mobile Sliding Menu Styles */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1035;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-slider {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: white;
    z-index: 1040;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.mobile-menu-slider.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.mobile-menu-close:hover {
    background-color: #e9ecef;
}

.mobile-menu-content {
    padding: 1rem 0;
}

.mobile-menu-section {
    margin-bottom: 1.5rem;
}

.mobile-menu-section h6 {
    color: #495057;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-menu-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #212529;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.mobile-menu-item:hover {
    background-color: #f8f9fa;
    border-left-color: #2a5298;
    color: #2a5298;
    text-decoration: none;
}

.mobile-menu-item.active {
    background-color: #e3f2fd;
    border-left-color: #2a5298;
    color: #2a5298;
}

.mobile-menu-item i {
    width: 20px;
    margin-left: 0.5rem;
    text-align: center;
}

.mobile-menu-divider {
    height: 1px;
    background: #dee2e6;
    margin: 1rem 1.5rem;
}

.mobile-menu-contact {
    background: #f8f9fa;
    margin-top: 2rem;
    padding: 1.5rem;
    border-top: 1px solid #dee2e6;
}

.mobile-menu-contact h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 1rem;
}

.mobile-menu-contact p {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.mobile-menu-contact .btn {
    width: 100%;
    margin-top: 1rem;
}

.mobile-menu-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.mobile-menu-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2a5298;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.mobile-menu-social a:hover {
    transform: scale(1.1);
}

/* Hide default navbar collapse on mobile */
@media (max-width: 991.98px) {
    .navbar-collapse {
        display: none !important;
    }
    
    .navbar-toggler {
        z-index: 1050;
    }
}

/* Hamburger Animation */
.navbar-toggler {
    border: none !important;
    padding: 0.25rem 0.5rem !important;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    transition: all 0.3s ease;
}

.navbar-toggler.active .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m6 6l18 18M6 24l18-18'/%3e%3c/svg%3e");
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* ========================================
   3. DARK THEME STYLES
   ======================================== */

/* Fix specific text elements for dark theme */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] p {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .text-center h1,
[data-theme="dark"] .text-center h5,
[data-theme="dark"] .text-center p {
    color: var(--text-primary) !important;
}

/* Fix any remaining text that might be dark */
[data-theme="dark"] .container h1,
[data-theme="dark"] .container h5,
[data-theme="dark"] .container p,
[data-theme="dark"] .text-center * {
    color: var(--text-primary) !important;
}

/* Keep specific headings with keep-blue class unchanged */
[data-theme="dark"] .keep-blue,
[data-theme="dark"] .text-center .keep-blue,
[data-theme="dark"] .text-primary.keep-blue,
[data-theme="dark"] h5.keep-blue,
[data-theme="dark"] .text-uppercase.keep-blue {
    color: #2a5298 !important;
}

/* Modal dark theme styles */
[data-theme="dark"] .modal-content {
    background-color: var(--card-bg) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .modal-header {
    background-color: var(--card-bg) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

[data-theme="dark"] .modal-body {
    background-color: var(--card-bg) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .modal-body p,
[data-theme="dark"] .modal-title {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .modal-body strong {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

[data-theme="dark"] .modal-backdrop {
    background-color: rgba(0, 0, 0, 0.8) !important;
}

/* Dark theme adjustments for footer */
[data-theme="dark"] .footer-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

[data-theme="dark"] .footer-quick-contact {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .footer-bottom {
    background: rgba(0, 0, 0, 0.5);
}

/* SweetAlert Dark Theme Support */
[data-theme="dark"] .swal2-popup {
    background-color: var(--card-bg) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
}

[data-theme="dark"] .swal2-title {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .swal2-html-container {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .swal2-confirm {
    background-color: #2a5298 !important;
    border-color: #2a5298 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .swal2-confirm:hover {
    background-color: #1e4080 !important;
    border-color: #1e4080 !important;
}

[data-theme="dark"] .swal2-cancel {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #ffffff !important;
}

[data-theme="dark"] .swal2-cancel:hover {
    background-color: #5a6268 !important;
    border-color: #5a6268 !important;
}

[data-theme="dark"] .swal2-close {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .swal2-close:hover {
    color: var(--text-secondary) !important;
}

/* SweetAlert Icon Colors for Dark Theme */
[data-theme="dark"] .swal2-icon.swal2-success .swal2-success-ring {
    border-color: #28a745 !important;
}

[data-theme="dark"] .swal2-icon.swal2-success [class^="swal2-success-line"] {
    background-color: #28a745 !important;
}

[data-theme="dark"] .swal2-icon.swal2-error .swal2-error-line {
    background-color: #dc3545 !important;
}

[data-theme="dark"] .swal2-icon.swal2-warning {
    color: #ffc107 !important;
    border-color: #ffc107 !important;
}

[data-theme="dark"] .swal2-icon.swal2-info {
    color: #17a2b8 !important;
    border-color: #17a2b8 !important;
}

[data-theme="dark"] .news-content h4 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .news-content p {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .modal-body p,
[data-theme="dark"] .modal-title {
    color: var(--text-primary) !important;
}


/* Keep specific headings with keep-blue class unchanged */
[data-theme="dark"] .keep-blue {
    color: #2a5298 !important;
}

/* Dark theme support for complaint form */
[data-theme="dark"] .complaint-form {
    background: var(--card-bg) !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .complaint-form:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .bg-light {
    background-color: var(--card-bg) !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
}
/* Dark theme support for form box */
[data-theme="dark"] .contact-form {
    background-color: var(--card-bg) !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .contact-form:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4) !important;
}
[data-theme="dark"] .feature-card,
        [data-theme="dark"] .timeline-item,
        [data-theme="dark"] .stats-card {
            background-color: #2c3e50 !important;
            border-color: #34495e !important;
        }

        [data-theme="dark"] .feature-card h4,
        [data-theme="dark"] .timeline-item h5 {
            color: #ecf0f1 !important;
        }

        [data-theme="dark"] .feature-card p,
        [data-theme="dark"] .stats-text {
            color: #bdc3c7 !important;
        }

        [data-theme="dark"] .stats-section {
            background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
        }
/* ========================================
   4. BODY AND LAYOUT
   ======================================== */

body {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding-top: 70px;
}
.bg-white {
    background-color: var(--card-bg) !important;
}


.bg-light {
    background-color: var(--bg-secondary) !important;
}
.news-card {
    background-color: var(--card-bg) !important;
    border-color: var(--border-color) !important;
}
/* ========================================
   12. FOOTER STYLES
   ======================================== */

/* Modern Footer Styles */
.footer-section {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.05)"><polygon points="0,0 1000,100 1000,0"/></svg>');
    background-size: cover;
    z-index: 0;
}

.footer-main {
    padding: 80px 0 40px;
    position: relative;
    z-index: 1;
}

.footer-widget {
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.footer-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.contact-item i {
    color: #ffd700;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.footer-widget-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #ffd700, #ffd700);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-right: 15px;
}

.footer-links a::before {
    content: '◄';
    position: absolute;
    right: 0;
    color: #ffd700;
    transform: translateX(5px);
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #ffd700;
    padding-right: 20px;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-newsletter-text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
    z-index: -1;
}

.social-link.facebook {
    background: rgba(59, 89, 152, 0.2);
    border: 2px solid rgba(59, 89, 152, 0.5);
}

.social-link.facebook::before {
    background: #3b5998;
}

.social-link.linkedin {
    background: rgba(0, 119, 181, 0.2);
    border: 2px solid rgba(0, 119, 181, 0.5);
}

.social-link.linkedin::before {
    background: #0077b5;
}

.social-link.instagram {
    background: rgba(225, 48, 108, 0.2);
    border: 2px solid rgba(225, 48, 108, 0.5);
}

.social-link.instagram::before {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link.twitter {
    background: rgba(29, 161, 242, 0.2);
    border: 2px solid rgba(29, 161, 242, 0.5);
}

.social-link.twitter::before {
    background: #1da1f2;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.social-link:hover::before {
    transform: scale(1);
}

.footer-quick-contact {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.quick-contact-title {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.quick-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, #ffd700, #ffd700);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.quick-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
    color: white;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.footer-copyright,
.footer-credits {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.9rem;
}

.footer-copyright a,
.footer-credits a {
    color: #ffd700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-copyright a:hover,
.footer-credits a:hover {
    color: #ffd700;
}

/* Dark theme adjustments for footer */
[data-theme="dark"] .footer-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

[data-theme="dark"] .footer-quick-contact {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .footer-bottom {
    background: rgba(0, 0, 0, 0.5);
}
/* ========================================
   7. NAVBAR STYLES
   ======================================== */

.navbar {
    background-color: var(--navbar-bg) !important;
    border-bottom: 1px solid var(--border-color);
}

.navbar-light .navbar-nav .nav-link {
    color: var(--text-primary) !important;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: #2a5298 !important;
}

/* Dark Theme Toggle Button in Navbar */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.theme-toggle i {
    font-size: 1rem;
    color: white;
    transition: transform 0.3s ease;
}

.theme-toggle.dark i {
    transform: rotate(180deg);
}

/* Navbar Toggler */
.navbar-toggler {
    border: 1px solid transparent !important;
    padding: 0.25rem 0.5rem !important;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

/* Default hamburger icon (light mode) */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Spacer that adjusts for navbar height on different devices */
.navbar-spacer {
    height: 100px; /* Default desktop navbar height */
}
/* ========================================
   8. DROPDOWN STYLES
   ======================================== */

.dropdown-menu {
    background-color: var(--card-bg) !important;
    border-color: var(--border-color) !important;
}

.dropdown-item {
    color: var(--text-primary) !important;
}

.dropdown-item:hover {
    background-color: var(--bg-secondary) !important;
    color: #2a5298 !important;
}
/* ========================================
   14. RESPONSIVE DESIGN
   ======================================== */

/* Mobile positioning for theme toggle */
@media (max-width: 768px) {
    .theme-toggle {
        width: 35px;
        height: 35px;
        margin-left: 8px;
    }
    
    .theme-toggle i {
        font-size: 0.9rem;
    }
    
    .footer-main {
        padding: 60px 0 30px;
    }
    
    .footer-widget {
        margin-bottom: 30px;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-widget-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom .row {
        text-align: center;
    }
    
    .footer-bottom .col-md-6:last-child {
        margin-top: 10px;
    }
    
    .news-label {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .news-item {
        font-size: 0.85rem;
    }
}

/* Mobile navbar responsiveness */
@media (max-width: 991.98px) {
    .navbar {
        padding: 0.5rem 1rem !important;
    }
    
    .navbar-brand img {
        width: 60px !important;
        height: 60px !important;
    }
    
    .navbar-toggler {
        border: none !important;
        padding: 0.25rem 0.5rem !important;
    }
    
    .btn-phone-mobile {
        width: 40px;
        height: 40px;
    }
    
    [data-theme="dark"] .navbar-toggler {
        border-color: var(--border-color) !important;
        background-color: var(--card-bg) !important;
    }

    [data-theme="dark"] .navbar-toggler:hover {
        background-color: var(--bg-secondary) !important;
    }

    [data-theme="dark"] .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }

    [data-theme="dark"] .navbar-toggler:focus {
        box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25) !important;
    }

    #themeToggleMobile {
        display: none !important;
    }
    
    .navbar-spacer {
        height: 80px; /* Mobile navbar space */
    }
    
    /* Mobile menu styles */
    .navbar-collapse {
        background-color: var(--navbar-bg);
        border-radius: 0 0 10px 10px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 1rem;
        margin-top: 10px;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        display: none; /* Hidden by default */
    }
    
    .navbar-collapse.show {
        display: block !important; /* Show when 'show' class is added */
        animation: slideDown 0.3s ease-out;
    }
    
    .navbar-nav {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    /* Dropdown specific styles for mobile */
    .dropdown {
        position: relative;
    }
    
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        box-shadow: none;
        border: none;
        background-color: var(--bg-secondary);
        margin-left: 1rem;
        display: none; /* Hidden by default */
        border-radius: 0.375rem;
        padding: 0.5rem 0;
    }
    
    .dropdown-menu.show {
        display: block !important;
        animation: slideDown 0.3s ease-out;
    }
    
    .dropdown-item {
        padding: 0.5rem 1rem;
        color: var(--text-primary) !important;
        text-decoration: none;
        display: block;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .dropdown-item:last-child {
        border-bottom: none;
    }
    
    .dropdown-item:hover {
        background-color: var(--bg-primary) !important;
        color: #2a5298 !important;
    }
    
    .dropdown-toggle::after {
        transition: transform 0.3s ease;
    }
    
    .dropdown-toggle[aria-expanded="true"]::after {
        transform: rotate(180deg);
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 0.25rem 0.75rem !important;
    }
    
    .navbar-brand img {
        width: 50px !important;
        height: 50px !important;
    }
    
    .btn-phone-mobile {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .navbar-spacer {
        height: 70px;
    }
    
    .footer-main {
        padding: 40px 0 20px;
    }
    
    .footer-description {
        font-size: 0.9rem;
    }
    
    .footer-social {
        gap: 10px;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
    
    .news-label {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
    
    .news-item {
        font-size: 0.8rem;
    }
}

.unselectable {
    user-select: none;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE/Edge */
  }
@media (max-width: 768px) {
    .complaint-form {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .complaint-form .form-control,
    .complaint-form .form-select {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    
    .complaint-form .btn-primary {
        padding: 12px 20px;
        font-size: 1rem;
    }
}
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        max-height: 85vh;
        margin: 5% auto;
    }
    
    .close {
        top: 5px;
        right: 10px;
        font-size: 24px;
        width: 35px;
        height: 35px;
    }
    
    /* Ensure modal is centered on mobile */
    .modal {
        padding: 10px;
        box-sizing: border-box;
    }
    
}

/* Extra small devices */
@media (max-width: 480px) {
    .modal-content {
        max-width: 98%;
        max-height: 80vh;
        margin: 10% auto;
    }
    
    .close {
        font-size: 20px;
        width: 30px;
        height: 30px;
    }
}
@media (max-width: 768px) {
    .contact-info-item {
        border-right: none;
        border-bottom: 3px solid #2a5298;
        padding-right: 0;
        padding-bottom: 15px;
    }
}

@media (max-width: 768px) {
            .about-hero {
                padding: 100px 0 60px 0;
            }
            
            .about-hero h1 {
                font-size: 2.5rem;
            }
            
            .feature-card {
                padding: 25px;
                margin-bottom: 30px;
            }
            
            .stats-card {
                padding: 30px;
                margin: 5px;
            }
            
            .stats-number {
                font-size: 2.5rem;
            }
        }

        @media (max-width: 768px) {
            .timeline::before {
                left: 20px;
            }
            
            .timeline-item {
                width: 100%;
                margin-left: 0 !important;
                margin-right: 0 !important;
                padding-left: 60px;
                text-align: right !important;
            }
            
            .timeline-item::before {
                left: 8px !important;
                right: auto !important;
            }
        }

/* ========================================
   4. NEWS COMPONENTS
   ======================================== */

/* News Cards */
.news-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.news-img-container {
    height: 220px;
    overflow: hidden;
}

.news-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img-container img {
    transform: scale(1.05);
}

.news-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(42, 82, 152, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    text-align: center;
}

/* Dark theme for news cards */
[data-theme="dark"] .news-content h4 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .news-content p {
    color: var(--text-secondary) !important;
}
/* ========================================
   15. ANIMATIONS
   ======================================== */

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); }
}

@keyframes modalopen {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse-green {
            0% {
                box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
            }
            70% {
                box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
            }
        }
        
        @keyframes bounce-whatsapp {
            0% {
                transform: translateY(0);
            }
            100% {
                transform: translateY(-3px);
            }
        }
        
        @keyframes spin-whatsapp {
            0% {
                transform: rotate(0deg);
            }
            100% {
                transform: rotate(360deg);
            }
        }
        @keyframes pulse-yellow {
            0% {
                box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
            }
            70% {
                box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
            }
        }
        
        @keyframes ring-phone {
            0%, 100% {
                transform: rotate(0deg);
            }
            10%, 30% {
                transform: rotate(-10deg);
            }
            20%, 40% {
                transform: rotate(10deg);
            }
        }
        
        @keyframes shake-phone {
            0%, 100% {
                transform: translateX(0);
            }
            25% {
                transform: translateX(-5px);
            }
            75% {
                transform: translateX(5px);
            }
        }


        @keyframes shimmer {
            0%, 100% { opacity: 0.3; }
            50% { opacity: 0.7; }
        }

/* Icon styling in info boxes */
.btn-square {
    transition: all 0.3s ease;
}

.btn-square:hover {
    transform: scale(1.1);
}
/* Smooth transitions for all theme changes */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
/* whatsapp and phone buttons */

/* WhatsApp Button Animation */
        .whatsapp-navbar {
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
            animation: pulse-green 2s infinite;
        }
        
        .whatsapp-navbar:hover {
            transform: scale(1.1);
            box-shadow: 0 0 20px rgba(37, 211, 102, 0.6);
        }
        
        .whatsapp-navbar::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transition: left 0.5s;
        }
        
        .whatsapp-navbar:hover::before {
            left: 100%;
        }
        
        .whatsapp-navbar .fab {
            animation: bounce-whatsapp 1s ease-in-out infinite alternate;
        }
        
        .whatsapp-navbar:hover .fab {
            animation: spin-whatsapp 0.6s ease-in-out;
        }

/* Phone Button Animation */
        .phone-navbar {
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
            animation: pulse-yellow 2.5s infinite;
        }
        
        .phone-navbar:hover {
            transform: scale(1.1);
            box-shadow: 0 0 20px rgba(255, 193, 7, 0.6);
        }
        
        .phone-navbar::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transition: left 0.5s;
        }
        
        .phone-navbar:hover::before {
            left: 100%;
        }
        
        .phone-navbar .bi {
            animation: ring-phone 1.5s ease-in-out infinite;
        }
        
        .phone-navbar:hover .bi {
            animation: shake-phone 0.5s ease-in-out;
        }
        
/* Small laptops / landscape tablets (992-1199px): keep the menu and the round buttons on screen
   (added with the FR language link; French pages override this in css/fr.css) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar-light .navbar-nav .nav-link {
        white-space: nowrap;
        margin-left: 14px;
        font-size: 16px;
    }
}

/* ---------- Language switch (Arabic / French) ---------- */
/* Desktop: segmented pill next to the round buttons */
.lang-switcher {
    align-items: center;
    height: 40px;
    padding: 3px;
    gap: 2px;
    margin-inline-end: 12px;
    border: 2px solid #2a5298;
    border-radius: 20px;
    background: #fff;
    direction: ltr;              /* same order (globe, ع, FR) on both sites */
    font-family: 'Jost', sans-serif;
}
.lang-switcher-icon {
    color: #2a5298;
    font-size: 14px;
    padding: 0 6px 0 7px;
}
.lang-switcher .lang-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 30px;
    padding: 0 10px;
    border-radius: 15px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    color: #2a5298;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}
.lang-switcher .lang-option[lang="ar"] {
    font-size: 17px;
}
.lang-switcher a.lang-option:hover,
.lang-switcher a.lang-option:focus-visible {
    background: #e8eef9;
    color: #1e3c72;
}
.lang-switcher .lang-option.active {
    background: #2a5298;
    color: #fff;
    cursor: default;
}

/* Mobile: full-width segmented control at the top of the open menu */
.lang-switcher-mobile {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
    gap: 6px;
    max-width: 300px;
    margin: 12px auto 8px;
    padding: 4px;
    border: 2px solid #2a5298;
    border-radius: 24px;
    direction: ltr;
}
.lang-switcher-mobile > .fa-globe {
    color: #2a5298;
    padding: 0 6px 0 8px;
}
.lang-switcher-mobile .lang-option {
    flex: 1 1 0;
    min-width: 0;
    white-space: nowrap;
    text-align: center;
    padding: 9px 0;
    border-radius: 20px;
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #2a5298;
    text-decoration: none;
}
.lang-switcher-mobile .lang-option.active {
    background: #2a5298;
    color: #fff;
}

/* Dark theme */
[data-theme="dark"] .lang-switcher,
[data-theme="dark"] .lang-switcher-mobile {
    background: transparent;
    border-color: #6c9bff;
}
[data-theme="dark"] .lang-switcher-icon,
[data-theme="dark"] .lang-switcher-mobile > .fa-globe,
[data-theme="dark"] .lang-switcher .lang-option,
[data-theme="dark"] .lang-switcher-mobile .lang-option {
    color: #cfe0ff;
}
[data-theme="dark"] .lang-switcher a.lang-option:hover {
    background: rgba(108, 155, 255, .2);
    color: #fff;
}
[data-theme="dark"] .lang-switcher .lang-option.active,
[data-theme="dark"] .lang-switcher-mobile .lang-option.active {
    background: #6c9bff;
    color: #0d1b36;
}

/* Small laptops (992-1199px): compact switch so the round buttons stay on screen */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .lang-switcher { margin-inline-end: 8px; }
    .lang-switcher-icon { display: none; }
    .lang-switcher .lang-option { min-width: 28px; padding: 0 7px; }
}
