/********** Template CSS **********/

@keyframes slideIn {
        0% {
            transform: translateY(-100%);
        }
        100% {
            transform: translateY(0);
        }
    } 
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #10b981;
    --accent: #f59e0b;
    --light: #f8fafc;
    --light-gray: #f1f5f9;
    --dark: #1e293b;
    --dark-gray: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
}

html {
    scroll-behavior: smooth;
}

body { 
    overflow-x: hidden;
    background-color: white !important;
    color: white;
}

.content {
    width: 400px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2, h3, h4 , h5, h6 {
    font-family: Arial, sans-serif;
    color: Black!important;
}

/* Override text-align center for specific sections */
[dir="ltr"] h1, [dir="ltr"] h2, [dir="ltr"] h3, [dir="ltr"] h4, [dir="ltr"] h5, [dir="ltr"] h6 {
    text-align: left;
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6 {
    text-align: right;
}

/* Center headings only in section headers */
.section-header h1,
.section-header h2,
.section-header h3,
.section-header h4,
.section-header h5,
.section-header h6,
.section-title {
    text-align: center !important;
}

/* Text alignment for paragraphs and content */
[dir="ltr"] p,
[dir="ltr"] .welcome-about-content,
[dir="ltr"] .about-item-content,
[dir="ltr"] .stat-content,
[dir="ltr"] .modern-card-content {
    text-align: left;
}

[dir="rtl"] p,
[dir="rtl"] .welcome-about-content,
[dir="rtl"] .about-item-content,
[dir="rtl"] .stat-content,
[dir="rtl"] .modern-card-content {
    text-align: right;
}

/* Arabic Font - Cairo for RTL content */
[dir="rtl"] body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6,
[dir="rtl"] p,
[dir="rtl"] span,
[dir="rtl"] div,
[dir="rtl"] a,
[dir="rtl"] li,
[dir="rtl"] td,
[dir="rtl"] th,
[dir="rtl"] label,
[dir="rtl"] input,
[dir="rtl"] textarea,
[dir="rtl"] select,
[dir="rtl"] button,
[dir="rtl"] .navbar,
[dir="rtl"] .navbar-nav,
[dir="rtl"] .nav-link,
[dir="rtl"] .dropdown-item {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
}

.fw-medium {
    font-weight: 500 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-black {
    font-weight: 900 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover {
    color: #FFFFFF;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
}

.btn.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

/*** Modern Topbar ***/
.modern-topbar {
    background: linear-gradient(135deg, var(--dark) 0%, #0f172a 100%);
    color: #cbd5e1;
    padding: 0.75rem 0;
}

.modern-topbar small {
    color: #cbd5e1;
    font-size: 0.875rem;
}

/*** Navbar ***/
.modern-navbar {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.navbar.sticky-top {
    position: sticky !important;
    top: 0 !important;
    z-index: 1020;
    transition: all 0.3s ease;
}

.navbar .navbar-brand,
.navbar a.btn {
    height: 75px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: var(--dark);
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
	font-weight: bold;
}

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

/* Removed duplicate arrow - using explicit HTML icons instead */
.navbar .dropdown-toggle::after {
    display: none;
}

/* Enhanced Navbar Styles */
.navbar {
    transition: all 0.3s ease;
}

.navbar .navbar-brand {
    overflow: visible;
    white-space: nowrap;
}

.navbar .navbar-brand img {
    flex-shrink: 0;
}

.navbar .navbar-nav {
    flex-wrap: nowrap;
}

.navbar .navbar-nav .nav-link {
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    word-wrap: normal;
    overflow: visible;
}

.navbar .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 10px;
}

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

.navbar .dropdown-menu {
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    padding: 0.75rem 0;
    display: none;
    z-index: 1000;
    margin-top: 0;
}

.navbar .dropdown.show .dropdown-menu,
.navbar .dropdown-menu.show {
    display: block !important;
}

/* Keep dropdown open on hover */
.navbar .nav-item.dropdown:hover .dropdown-menu {
    display: block !important;
    opacity: 1;
    visibility: visible;
}

.navbar .dropdown-item {
    transition: all 0.2s ease;
    padding: 0.75rem 1.5rem;
    color: var(--dark);
}

/* Base RTL rule for all dropdown items - ensure text alignment */
[dir="rtl"] .navbar .dropdown-item {
    text-align: right !important;
    direction: rtl !important;
}

.navbar .dropdown-item:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white !important;
    transform: translateX(5px);
    border-radius: 10px;
    margin: 0 0.5rem;
}

.navbar .dropdown-item.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white !important;
    border-radius: 10px;
    margin: 0 0.5rem;
}

/* RTL dropdown item hover and active - translate left instead of right, maintain RTL alignment */
[dir="rtl"] .navbar .dropdown-item:hover,
[dir="rtl"] .navbar .dropdown-menu .dropdown-item:hover,
[dir="rtl"] .pages-dropdown-menu .dropdown-item:hover {
    transform: translateX(-5px);
    text-align: right !important;
    direction: rtl !important;
    padding-right: 1.5rem !important;
    padding-left: 0.75rem !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: center !important;
}

[dir="rtl"] .navbar .dropdown-item.active,
[dir="rtl"] .navbar .dropdown-menu .dropdown-item.active,
[dir="rtl"] .pages-dropdown-menu .dropdown-item.active {
    margin: 0 0.5rem !important;
    text-align: right !important;
    direction: rtl !important;
    padding-right: 1.5rem !important;
    padding-left: 0.75rem !important;
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: center !important;
}

/* Pages dropdown menu - fixed width with text wrapping */
.pages-dropdown-menu {
    min-width: 250px !important;
    width: 250px !important;
    max-width: 250px !important;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* RTL Pages dropdown menu - handled in comprehensive RTL section above */

.pages-dropdown-menu .dropdown-item {
    display: flex;
    align-items: flex-start;
    white-space: normal !important;
    word-wrap: break-word;
    padding: 0.75rem 1rem !important;
    line-height: 1.4;
}

/* RTL override for pages dropdown item alignment */
[dir="rtl"] .pages-dropdown-menu .dropdown-item {
    align-items: center !important;
    text-align: right !important;
}

.pages-dropdown-menu .dropdown-item i {
    margin-top: 0.2rem;
}

.pages-dropdown-text {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    flex: 1;
    min-width: 0;
}

.navbar .dropdown-toggle i.fa-chevron-down {
    transition: transform 0.3s ease;
}

.navbar .dropdown.show .dropdown-toggle i.fa-chevron-down {
    transform: rotate(180deg);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        width: 100%;
        flex-direction: column;
        flex-wrap: nowrap;
        overflow-x: hidden;
    }

    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 12px 20px;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
        text-align: left;
        white-space: normal;
        word-wrap: break-word;
    }

    /* RTL Mobile Navbar */
    [dir="rtl"] .navbar .navbar-nav .nav-link {
        text-align: right;
    }

    [dir="rtl"] .navbar .dropdown-menu {
        margin-left: 0;
        margin-right: 1rem;
        border-left: none;
        border-right: 3px solid var(--primary);
    }

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

    .navbar .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
        padding: 1rem 0;
    }

    .navbar .dropdown-menu {
        margin-left: 1rem;
        border-left: 3px solid var(--primary);
        border-radius: 0;
        box-shadow: none;
        width: calc(100% - 2rem);
        max-width: calc(100% - 2rem);
    }

    .navbar .dropdown-item {
        padding-left: 2rem;
        white-space: normal;
        word-wrap: break-word;
    }

    .navbar .navbar-brand h2,
    .navbar .navbar-brand h4 {
        font-size: 1.2rem;
    }

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

    .navbar .navbar-nav .nav-item {
        width: 100%;
    }
}

@media (max-width: 576px) {
    /* General Mobile Fixes */
    body {
        overflow-x: hidden !important;
    }

    .container-fluid {
        max-width: 100%;
        overflow-x: hidden;
    }

    .row {
        margin-left: -10px !important;
        margin-right: -10px !important;
    }

    [class*="col-"] {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* Navbar Mobile */
    .navbar .navbar-brand h2,
    .navbar .navbar-brand h4 {
        font-size: 0.9rem;
    }

    .navbar .navbar-brand {
        padding: 0.5rem 0.75rem;
    }

    .navbar .navbar-nav .nav-link {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

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

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

    .modern-topbar {
        display: none !important;
    }

    /* Typography Mobile */
    h1, .h1, .display-1, .display-2, .display-3, .display-4, .display-5 {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
    }

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

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

    /* Buttons Mobile */
    .btn {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.875rem !important;
        white-space: normal !important;
    }

    /* Spacing Mobile */
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .my-5 {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }

    .p-5 {
        padding: 2rem !important;
    }

    /* Images Mobile */
    img {
        max-width: 100%;
        height: auto;
    }
}
}

/* Prevent horizontal scroll on all screen sizes */
body {
    overflow-x: hidden;
    max-width: 100vw;
}

html {
    overflow-x: hidden;
}

.navbar .navbar-nav .dropdown-toggle {
    white-space: nowrap;
}

.navbar .navbar-nav .dropdown-item {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* RTL spacing for navbar menu items - Arabic version */
[dir="rtl"] .navbar .nav-link .nav-link-text {
    margin-left: 0.5rem;
}

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

/* Override Bootstrap margin classes for RTL - Pages dropdown chevron */
[dir="rtl"] .navbar .dropdown-toggle i.fa-chevron-down.ms-1 {
    margin-left: 0 !important;
    margin-right: 0.5rem !important;
}

/* Override Bootstrap margin classes for RTL - Language dropdown globe icon */
[dir="rtl"] .navbar .dropdown-toggle i.fa-globe.me-1 {
    margin-right: 0 !important;
    margin-left: 0.5rem !important;
}

/* Override Bootstrap margin classes for RTL - Language dropdown chevron (when globe is present) */
[dir="rtl"] .navbar .dropdown-toggle i.fa-globe.me-1 + * + i.fa-chevron-down.ms-1,
[dir="rtl"] .navbar .dropdown-toggle i.fa-globe.me-1 ~ i.fa-chevron-down.ms-1 {
    margin-left: 0 !important;
    margin-right: 0.5rem !important;
}

/* Add spacing between text and icon in dropdown toggles for RTL */
[dir="rtl"] .navbar .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Dropdown items - Remove all Bootstrap margin classes in RTL, use gap instead */
[dir="rtl"] .navbar .dropdown-item i.me-2,
[dir="rtl"] .navbar .dropdown-menu .dropdown-item i.me-2,
[dir="rtl"] .navbar .dropdown-menu .dropdown-item i,
[dir="rtl"] .navbar .dropdown-menu .dropdown-item i[class*="me-"],
[dir="rtl"] .pages-dropdown-menu .dropdown-item i.me-2,
[dir="rtl"] .pages-dropdown-menu .dropdown-item i,
[dir="rtl"] .pages-dropdown-menu .dropdown-item i[class*="me-"] {
    margin-right: 0 !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* ============================================
   RTL ARABIC NAVBAR MENUS - COMPREHENSIVE STYLING
   News and Pages Dropdown Menus
   ============================================ */

/* RTL Dropdown Menu Container - Remove all right-side spacing, align to right edge */
[dir="rtl"] .navbar .dropdown-menu,
[dir="rtl"] .navbar .dropdown-menu[dir="rtl"] {
    right: 0 !important;
    left: auto !important;
    text-align: right !important;
    direction: rtl !important;
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

/* RTL Dropdown List Items - Full width, right-aligned, no right padding */
[dir="rtl"] .navbar .dropdown-menu li,
[dir="rtl"] .navbar .dropdown-menu > li,
[dir="rtl"] .navbar .dropdown-menu ul li,
[dir="rtl"] .navbar .nav-item.dropdown .dropdown-menu li,
[dir="rtl"] .navbar .nav-item.dropdown .dropdown-menu > li {
    text-align: right !important;
    direction: rtl !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

/* Force RTL text alignment on all list items - override Bootstrap */
[dir="rtl"] .navbar .dropdown-menu li *,
[dir="rtl"] .navbar .dropdown-menu > li *,
[dir="rtl"] .navbar .dropdown-menu ul li * {
    text-align: right !important;
    direction: rtl !important;
}

/* RTL News Dropdown Items - Proper RTL layout with icon on right */
[dir="rtl"] .navbar .dropdown-menu .dropdown-item,
[dir="rtl"] .navbar .dropdown-menu li .dropdown-item,
[dir="rtl"] .navbar .dropdown-menu > li > a.dropdown-item,
[dir="rtl"] .navbar .dropdown-menu .dropdown-item.d-flex {
    /* Layout */
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.75rem !important;
    
    /* Text alignment and direction */
    text-align: right !important;
    direction: rtl !important;
    
    /* Width and spacing */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    
    /* Remove right-side padding/margin - align to right edge */
    padding-right: 1.5rem !important;
    padding-left: 0.75rem !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

/* RTL News Dropdown Icons - Position on right side (first in row-reverse) */
[dir="rtl"] .navbar .dropdown-menu .dropdown-item i,
[dir="rtl"] .navbar .dropdown-menu .dropdown-item i.me-2,
[dir="rtl"] .navbar .dropdown-menu .dropdown-item i[class*="me-"] {
    flex-shrink: 0 !important;
    order: 1 !important;
    margin: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* RTL News Dropdown Text - Position on left of icon, right-aligned */
[dir="rtl"] .navbar .dropdown-menu .dropdown-item span,
[dir="rtl"] .navbar .dropdown-menu .dropdown-item > *:not(i),
[dir="rtl"] .navbar .dropdown-menu li .dropdown-item span,
[dir="rtl"] .navbar .dropdown-menu > li > a.dropdown-item span,
[dir="rtl"] .navbar .dropdown-menu .dropdown-item > span {
    order: 2 !important;
    text-align: right !important;
    direction: rtl !important;
    flex: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    width: 100% !important;
}

/* Override Bootstrap's text-align: inherit - Higher specificity */
[dir="rtl"] .navbar .dropdown-menu li .dropdown-item,
[dir="rtl"] .navbar .dropdown-menu > li > a.dropdown-item,
[dir="rtl"] .navbar .dropdown-menu ul li a.dropdown-item,
[dir="rtl"] .navbar .nav-item.dropdown .dropdown-menu li .dropdown-item,
[dir="rtl"] .navbar .nav-item.dropdown .dropdown-menu > li > a.dropdown-item,
[dir="rtl"] .navbar .nav-item.dropdown .dropdown-menu ul li a.dropdown-item {
    text-align: right !important;
    direction: rtl !important;
}

/* Force text alignment on all child elements inside dropdown items */
[dir="rtl"] .navbar .dropdown-menu .dropdown-item *,
[dir="rtl"] .navbar .dropdown-menu li .dropdown-item *,
[dir="rtl"] .navbar .dropdown-menu > li > a.dropdown-item * {
    text-align: right !important;
    direction: rtl !important;
}

/* Remove any margins/padding that create gaps on right side */
[dir="rtl"] .navbar .dropdown-menu > li > a,
[dir="rtl"] .navbar .dropdown-menu li > a,
[dir="rtl"] .navbar .nav-item.dropdown .dropdown-menu > li > a,
[dir="rtl"] .navbar .nav-item.dropdown .dropdown-menu li > a {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    text-align: right !important;
    direction: rtl !important;
    padding-right: 1.5rem !important;
    padding-left: 0.75rem !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

/* RTL Dropdown Toggle Alignment - Fix icon and text positioning */
[dir="rtl"] .navbar .dropdown-toggle {
    display: inline-flex !important;
    align-items: center !important;
    flex-direction: row-reverse !important;
    gap: 0.5rem !important;
    text-align: right !important;
}

/* RTL News Dropdown Toggle - Icon should be on right */
[dir="rtl"] .navbar .dropdown-toggle .nav-link-text {
    order: 2;
    margin: 0 !important;
}

[dir="rtl"] .navbar .dropdown-toggle .nav-link-icon {
    order: 1;
    margin: 0 !important;
}

/* RTL Pages Dropdown Toggle - Chevron should be on right (first element) */
[dir="rtl"] .navbar .dropdown-toggle i.fa-chevron-down.ms-1:not(.nav-link-icon) {
    order: 1;
    margin: 0 !important;
    margin-left: 0 !important;
    margin-right: 0.5rem !important;
}

/* RTL Language Dropdown Toggle - Globe on right (first), text in middle, chevron on left (last) */
/* With row-reverse, lower order appears on right, higher order on left */
[dir="rtl"] .navbar .dropdown-toggle i.fa-globe {
    order: -1; /* Appears first (rightmost) in row-reverse */
    margin: 0 !important;
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

[dir="rtl"] .navbar .dropdown-toggle i.fa-globe ~ i.fa-chevron-down {
    order: 1; /* Appears last (leftmost) in row-reverse */
    margin: 0 !important;
    margin-right: 0.5rem !important;
    margin-left: 0 !important;
}

/* RTL Navbar Nav Links - Right align text */
[dir="rtl"] .navbar .navbar-nav .nav-link {
    text-align: right;
}

/* This section moved above - see comprehensive RTL styling section */

/* RTL Pages Dropdown Menu Container - Remove right-side spacing, align to right edge */
[dir="rtl"] .pages-dropdown-menu {
    padding: 0.75rem 0 0.75rem 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    direction: rtl !important;
    text-align: right !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

/* RTL Pages Dropdown List Items - Full width, right-aligned, no right padding */
[dir="rtl"] .pages-dropdown-menu li,
[dir="rtl"] .pages-dropdown-menu > li,
[dir="rtl"] .pages-dropdown-menu ul li,
[dir="rtl"] .navbar .nav-item.dropdown .pages-dropdown-menu li,
[dir="rtl"] .navbar .nav-item.dropdown .pages-dropdown-menu > li {
    text-align: right !important;
    direction: rtl !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

/* Force RTL text alignment on all Pages list items - override Bootstrap */
[dir="rtl"] .pages-dropdown-menu li *,
[dir="rtl"] .pages-dropdown-menu > li *,
[dir="rtl"] .pages-dropdown-menu ul li * {
    text-align: right !important;
    direction: rtl !important;
}

/* RTL Pages Dropdown Items - Proper RTL layout with icon on right */
[dir="rtl"] .pages-dropdown-menu .dropdown-item,
[dir="rtl"] .pages-dropdown-menu li .dropdown-item,
[dir="rtl"] .pages-dropdown-menu > li > a.dropdown-item,
[dir="rtl"] .pages-dropdown-menu .dropdown-item.d-flex,
[dir="rtl"] .pages-dropdown-menu .dropdown-item.align-items-center {
    /* Layout */
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.75rem !important;
    
    /* Text alignment and direction */
    text-align: right !important;
    direction: rtl !important;
    
    /* Width and spacing */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    
    /* Remove right-side padding/margin - align to right edge */
    padding-right: 1.5rem !important;
    padding-left: 0.75rem !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

/* RTL Pages Dropdown Icons - Position on right side (first in row-reverse) */
[dir="rtl"] .pages-dropdown-menu .dropdown-item i,
[dir="rtl"] .pages-dropdown-menu .dropdown-item i.me-2,
[dir="rtl"] .pages-dropdown-menu .dropdown-item i[class*="me-"],
[dir="rtl"] .pages-dropdown-menu .dropdown-item i.flex-shrink-0 {
    order: 1 !important;
    margin: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    flex-shrink: 0 !important;
}

/* RTL Pages Dropdown Text - Position on left of icon, right-aligned */
[dir="rtl"] .pages-dropdown-menu .dropdown-item .pages-dropdown-text,
[dir="rtl"] .pages-dropdown-menu .dropdown-item span,
[dir="rtl"] .pages-dropdown-menu li .dropdown-item span,
[dir="rtl"] .pages-dropdown-menu > li > a.dropdown-item span,
[dir="rtl"] .pages-dropdown-menu .dropdown-item > span {
    order: 2 !important;
    text-align: right !important;
    direction: rtl !important;
    flex: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    width: 100% !important;
}

/* Override Bootstrap's text-align: inherit on pages dropdown-item - Higher specificity */
[dir="rtl"] .pages-dropdown-menu li .dropdown-item,
[dir="rtl"] .pages-dropdown-menu > li > a.dropdown-item,
[dir="rtl"] .pages-dropdown-menu ul li a.dropdown-item,
[dir="rtl"] .pages-dropdown-menu > li > a,
[dir="rtl"] .navbar .nav-item.dropdown .pages-dropdown-menu li .dropdown-item,
[dir="rtl"] .navbar .nav-item.dropdown .pages-dropdown-menu > li > a.dropdown-item {
    text-align: right !important;
    direction: rtl !important;
    padding-right: 1.5rem !important;
    padding-left: 0.75rem !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

/* Force text alignment on all child elements inside Pages dropdown items */
[dir="rtl"] .pages-dropdown-menu .dropdown-item *,
[dir="rtl"] .pages-dropdown-menu li .dropdown-item *,
[dir="rtl"] .pages-dropdown-menu > li > a.dropdown-item * {
    text-align: right !important;
    direction: rtl !important;
}

/* Ensure Pages dropdown items have proper padding */
[dir="rtl"] .pages-dropdown-menu .dropdown-item {
    padding-right: 1.5rem !important;
    padding-left: 0.75rem !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    max-width: 100% !important;
}

/* Remove any gaps in Pages dropdown list items */
[dir="rtl"] .pages-dropdown-menu > li {
    width: 100% !important;
    display: block !important;
    text-align: right !important;
}

[dir="rtl"] .pages-dropdown-menu > li > a {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* RTL Dropdown Menu Positioning - Ensure menus align to right edge */
[dir="rtl"] .navbar .dropdown-menu.dropdown-menu-end {
    right: 0 !important;
    left: auto !important;
    transform-origin: top right !important;
}

/* RTL Dropdown Menu - Remove any left positioning that creates gaps */
[dir="rtl"] .navbar .nav-item.dropdown .dropdown-menu {
    right: 0 !important;
    left: auto !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

/* RTL News and Pages Dropdown - Ensure no empty space on right side */
[dir="rtl"] .navbar .dropdown-menu,
[dir="rtl"] .navbar .pages-dropdown-menu {
    padding-right: 0 !important;
    margin-right: 0 !important;
}

/* RTL Dropdown Items - Ensure text starts from right edge */
[dir="rtl"] .navbar .dropdown-menu .dropdown-item,
[dir="rtl"] .pages-dropdown-menu .dropdown-item {
    padding-right: 1.5rem !important;
    padding-left: 0.75rem !important;
    text-indent: 0 !important;
}

/* RTL Language Dropdown Items - Right align text (items without flex layout) */
[dir="rtl"] .navbar .dropdown-menu .dropdown-item:not(.d-flex),
[dir="rtl"] .navbar .dropdown-menu li .dropdown-item:not(.d-flex),
[dir="rtl"] .navbar .dropdown-menu li > a.dropdown-item:not(.d-flex) {
    display: block !important;
    text-align: right !important;
    direction: rtl !important;
    padding-right: 1.5rem !important;
    padding-left: 0.75rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Override Bootstrap default left alignment for all RTL dropdown items */
[dir="rtl"] .navbar .dropdown-menu .dropdown-item {
    text-align: right !important;
    direction: rtl !important;
}

/* Ensure all text content in dropdown items is right-aligned */
[dir="rtl"] .navbar .dropdown-menu .dropdown-item,
[dir="rtl"] .navbar .dropdown-menu li a.dropdown-item {
    text-align: right !important;
    direction: rtl !important;
}

/* Force right alignment on all text nodes and inline elements */
[dir="rtl"] .navbar .dropdown-menu .dropdown-item,
[dir="rtl"] .navbar .dropdown-menu .dropdown-item * {
    text-align: right !important;
    direction: rtl !important;
}

/* Override any Bootstrap text utility classes in RTL */
[dir="rtl"] .navbar .dropdown-menu .dropdown-item.text-start,
[dir="rtl"] .navbar .dropdown-menu .dropdown-item.text-left {
    text-align: right !important;
}

/* RTL Dropdown Item Hover Transform */
[dir="rtl"] .navbar .dropdown-item:hover {
    transform: translateX(-5px);
}

@media (min-width: 992px) {
    .navbar .navbar-nav {
        flex-wrap: nowrap;
    }

    .navbar .navbar-nav .nav-link {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .navbar .nav-item {
        flex-shrink: 0;
        position: relative;
    }

    .navbar .nav-item.dropdown {
        position: relative;
    }

    .navbar .nav-item .dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        margin-top: 0;
        padding-top: 0.5rem;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
        transform: translateY(0);
        pointer-events: none;
    }

    /* RTL Dropdown Menu Positioning in Media Query */
    [dir="rtl"] .navbar .nav-item .dropdown-menu {
        left: auto !important;
        right: 0 !important;
    }

    /* Bridge the gap between toggle and menu - invisible hover zone */
    .navbar .nav-item.dropdown::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: 0.5rem;
        background: transparent;
        z-index: 999;
        pointer-events: auto;
    }
    
    /* Keep dropdown open when hovering over the bridge */
    .navbar .nav-item.dropdown:hover::after {
        pointer-events: auto;
    }

    /* Show dropdown on hover - stays open when moving between toggle and menu */
    .navbar .nav-item.dropdown:hover .dropdown-menu {
        display: block !important;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    /* Keep menu open when hovering over the menu itself or the bridge */
    .navbar .nav-item.dropdown .dropdown-menu:hover,
    .navbar .nav-item.dropdown:hover::after {
        pointer-events: auto;
    }

    .navbar .nav-item.dropdown .dropdown-menu:hover {
        display: block !important;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    /* Keep parent hovered when hovering over menu */
    .navbar .nav-item.dropdown .dropdown-menu:hover ~ *,
    .navbar .nav-item.dropdown:has(.dropdown-menu:hover) {
        /* Keep dropdown open */
    }

    /* Ensure Pages dropdown also works on hover - same behavior as News */
    .navbar .nav-item.dropdown:hover .pages-dropdown-menu {
        display: block !important;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .navbar .nav-item.dropdown .pages-dropdown-menu:hover {
        display: block !important;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    /* Keep the entire dropdown area (toggle + menu) as hover zone */
    .navbar .nav-item.dropdown:hover,
    .navbar .nav-item.dropdown:hover .dropdown-toggle,
    .navbar .nav-item.dropdown:hover .dropdown-menu {
        pointer-events: auto;
    }

    /* Keep dropdown open when clicking */
    .navbar .nav-item.show .dropdown-menu,
    .navbar .dropdown.show .dropdown-menu {
        display: block !important;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    /* Ensure dropdown stays open when moving from toggle to menu */
    .navbar .nav-item.dropdown:hover .dropdown-toggle {
        color: var(--primary);
    }

    /* Make the gap area part of the hover zone */
    .navbar .nav-item.dropdown:hover::after {
        pointer-events: auto;
    }
}

/* Tablet Responsive (991px and below) */
@media (max-width: 991px) {
    .container-fluid {
        max-width: 100%;
        overflow-x: hidden;
    }

    .modern-topbar {
        font-size: 0.85rem;
    }

    .modern-topbar small {
        font-size: 0.8rem;
    }

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

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

    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}


/*** Header ***/
.header-carousel .owl-carousel-item {
    position: relative;
    overflow: hidden;
}

.header-carousel .owl-carousel-item .carousel-image {
    height: 600px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.header-carousel .owl-carousel-item:hover .carousel-image {
    transform: scale(1.05);
}

/* Modern Overlay - Gradient from transparent to dark */
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Alternative: Simple dark overlay (uncomment to use instead of gradient) */
/* .carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
    pointer-events: none;
} */

.owl-carousel-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    z-index: 2;
}

.carousel-title {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5),
                 0 0 20px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }

    .header-carousel .owl-carousel-item .carousel-image {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item .carousel-overlay {
        position: absolute;
        width: 100%;
        height: 100%;
    }

    .carousel-title {
        font-size: 2rem !important;
        line-height: 1.3;
    }

    .header-carousel .owl-carousel-item p {
        font-size: 16px !important;
    }
}

.header-carousel .owl-dots {
    position: absolute;
    width: 60px;
    height: 100%;
    top: 0;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.header-carousel .owl-dots .owl-dot {
    position: relative;
    width: 45px;
    height: 45px;
    margin: 5px 0;
    background: #FFFFFF;
    box-shadow: 0 0 30px rgba(255, 255, 255, .9);
    border-radius: 45px;
    transition: .5s;
}

.header-carousel .owl-dots .owl-dot.active {
    width: 60px;
    height: 60px;
}

.header-carousel .owl-dots .owl-dot img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 2px;
    border-radius: 45px;
    transition: .5s;
}

.page-header {
    background: url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
	animation: slideIn 1s ease-in-out;
	height: 400px;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** About ***/
@media (min-width: 992px) {
    .container.about {
        max-width: 100% !important;
    }

    .about-text {
        padding-right: 3rem;
        padding-left: 0;
    }

    [dir="rtl"] .about-text {
        padding-right: 0;
        padding-left: 3rem;
    }

.about-image-col {
    padding-left: 2rem;
    padding-right: 1rem;
}

[dir="rtl"] .about-image-col {
    padding-right: 2rem;
    padding-left: 1rem;
}
}

@media (min-width: 1200px) {
    .about-text {
        padding-right: 3.5rem;
        padding-left: 0;
    }

    [dir="rtl"] .about-text {
        padding-right: 0;
        padding-left: 3.5rem;
    }

    .about-image-col {
        padding-left: 2.5rem;
        padding-right: 1rem;
    }

    [dir="rtl"] .about-image-col {
        padding-right: 2.5rem;
        padding-left: 1rem;
    }
}

@media (min-width: 1400px) {
    .about-text {
        padding-right: 4rem;
        padding-left: 0;
    }

    [dir="rtl"] .about-text {
        padding-right: 0;
        padding-left: 4rem;
    }

    .about-image-col {
        padding-left: 3rem;
        padding-right: 1rem;
    }

    [dir="rtl"] .about-image-col {
        padding-right: 3rem;
        padding-left: 1rem;
    }
}

/* RTL Text Alignment */
[dir="rtl"] .text-justify {
    text-align: justify;
    direction: rtl;
}

[dir="ltr"] .text-justify {
    text-align: justify;
    direction: ltr;
}

/* Ensure consistent width for text containers */
.about-text {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
}

.about-text > div {
    max-width: 100%;
    margin: 0 auto;
}

[dir="rtl"] .about-text > div {
    text-align: right;
}

[dir="ltr"] .about-text > div {
    text-align: left;
}

/* About section image column alignment */
.about-image-col {
    display: flex;
    align-items: stretch;
    padding: 0;
}

@media (max-width: 991.98px) {
    .about-image-col {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 1rem;
    }
}

.about-image-col > div {
    width: 100%;
    height: 100%;
    min-height: 100%;
    display: flex;
    align-items: stretch;
}

.about-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Ensure row alignment */
.container.about .row {
    align-items: stretch;
}

.container.about .row > .about-text,
.container.about .row > .about-image-col {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

/* Ensure both columns start at same vertical position */
.container.about .row {
    align-items: flex-start;
    margin-left: 0;
    margin-right: 0;
}

.container.about .row > .about-text {
    align-self: stretch;
    padding-left: 0;
    padding-right: 0;
}

.container.about .row > .about-image-col {
    align-self: stretch;
    padding-left: 0;
    padding-right: 0;
}

.about-text > div {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.about-text p,
.about-text h1,
.about-text h4,
.about-text h5,
.about-text h6 {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Increase font sizes for about section text */
.about-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    text-align: justify;
}

[dir="rtl"] .about-text p {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    text-align: justify;
}

[dir="ltr"] .about-text p {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    text-align: justify;
}

.about-text h5 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.about-text h5:first-of-type {
    margin-top: 0;
}

.about-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Fix inner padding for RTL/LTR consistency - ensure same content width */
@media (min-width: 992px) {
    /* Ensure inner div has consistent padding that matches between RTL and LTR */
    [dir="rtl"] .about-text > div.p-lg-5.pe-lg-0 {
        padding-right: 2rem !important;
        padding-left: 2rem !important;
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    [dir="ltr"] .about-text > div.p-lg-5.pe-lg-0 {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    /* Match image column padding with text column */
    .about-image-col {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

@media (min-width: 1200px) {
    [dir="rtl"] .about-text > div.p-lg-5.pe-lg-0 {
        padding-right: 2.5rem !important;
        padding-left: 2.5rem !important;
    }

    [dir="ltr"] .about-text > div.p-lg-5.pe-lg-0 {
        padding-left: 2.5rem !important;
        padding-right: 2.5rem !important;
    }
}

@media (min-width: 1400px) {
    [dir="rtl"] .about-text > div.p-lg-5.pe-lg-0 {
        padding-right: 3rem !important;
        padding-left: 3rem !important;
    }

    [dir="ltr"] .about-text > div.p-lg-5.pe-lg-0 {
        padding-left: 3rem !important;
        padding-right: 3rem !important;
    }
}

/* Mobile responsive text alignment */
@media (max-width: 991.98px) {
    .about-text {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    [dir="rtl"] .about-text {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .about-text > div.p-lg-5 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    [dir="rtl"] .about-text > div.p-lg-5 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .about-image-col {
        min-height: 300px;
        margin-top: 1rem;
    }

    .about-image-col > div {
        min-height: 300px;
    }

    /* Mobile font sizes */
    .about-text p {
        font-size: 1rem;
        line-height: 1.7;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .about-text h5 {
        font-size: 1.25rem;
    }

    .about-text h1 {
        font-size: 2rem;
    }

    .feature-text h6 {
        font-size: 1.125rem;
        line-height: 1.8;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .feature-text h4 {
        font-size: 1.25rem;
    }
}


/*** Service ***/
.service-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.service-icon {
    position: relative;
    margin: -50px 0 25px 0;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: #FFFFFF;
    border-radius: 100px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transition: .5s;
}

.service-item:hover .service-icon {
    color: #FFFFFF;
    background: var(--primary);
}


/*** Feature ***/
@media (min-width: 992px) {
    .container.feature {
        max-width: 100% !important;
    }

    .feature-text {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    [dir="rtl"] .feature-text {
        padding-right: 2rem;
        padding-left: 2rem;
    }
}

@media (min-width: 1200px) {
    .feature-text {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }

    [dir="rtl"] .feature-text {
        padding-right: 2.5rem;
        padding-left: 2.5rem;
    }
}

@media (min-width: 1400px) {
    .feature-text {
        padding-left: 3rem;
        padding-right: 3rem;
    }

    [dir="rtl"] .feature-text {
        padding-right: 3rem;
        padding-left: 3rem;
    }
}

/* Manager Image Container - Team Page - Clean Design */
.manager-image-container {
    display: flex;
    align-items: stretch;
    justify-content: center;
    height: 100%;
    padding: 0;
}

.manager-image-container > div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: center;
    overflow: hidden;
}

.manager-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Ensure manager image container matches feature-text height */
.row.g-0.mx-lg-0 {
    display: flex;
    align-items: stretch;
}

.row.g-0.mx-lg-0 > .feature-text {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
}

.feature-text > div {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}

[dir="rtl"] .feature-text > div {
    text-align: center;
}

[dir="ltr"] .feature-text > div {
    text-align: center;
}

.feature-text h6 {
    text-align: justify;
    margin-left: auto;
    margin-right: auto;
}

/* Increase font sizes for team page feature-text */
.feature-text h6 {
    font-size: 1.25rem;
    line-height: 2;
    font-weight: 400;
    padding-left: 0;
    padding-right: 0;
    text-align: justify;
    max-width: 100%;
    margin: 0 auto;
}

[dir="rtl"] .feature-text h6 {
    padding-left: 0;
    padding-right: 0;
    text-align: justify;
    direction: rtl;
}

[dir="ltr"] .feature-text h6 {
    padding-left: 0;
    padding-right: 0;
    text-align: justify;
    direction: ltr;
}

.feature-text h4 {
    font-size: 1.5rem;
    font-weight: 600;
}

.row.g-0.mx-lg-0 > .manager-image-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
    height: 100%;
}

/* Match padding to align image with text content */
@media (min-width: 992px) {
    .row.g-0.mx-lg-0 {
        align-items: stretch;
    }

    .feature-text {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .manager-image-container {
        align-self: stretch;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .feature-text > div.p-lg-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    [dir="rtl"] .feature-text > div.p-lg-5.ps-lg-0 {
        padding-right: 1.5rem !important;
        padding-left: 1.5rem !important;
    }

    [dir="ltr"] .feature-text > div.p-lg-5.ps-lg-0 {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}

@media (min-width: 1200px) {
    [dir="rtl"] .feature-text > div.p-lg-5.ps-lg-0 {
        padding-right: 2rem !important;
        padding-left: 2rem !important;
    }

    [dir="ltr"] .feature-text > div.p-lg-5.ps-lg-0 {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
}

@media (min-width: 1400px) {
    [dir="rtl"] .feature-text > div.p-lg-5.ps-lg-0 {
        padding-right: 2.5rem !important;
        padding-left: 2.5rem !important;
    }

    [dir="ltr"] .feature-text > div.p-lg-5.ps-lg-0 {
        padding-left: 2.5rem !important;
        padding-right: 2.5rem !important;
    }

    .manager-image-container > div {
        height: 100%;
    }

    .manager-image {
        height: 100%;
        width: 100%;
        object-fit: cover;
        object-position: center;
    }
}

/* Mobile responsive */
@media (max-width: 991.98px) {
    .row.g-0.mx-lg-0 {
        align-items: flex-start;
    }

    .feature-text {
        order: 2;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .manager-image-container {
        order: 1;
        min-height: 400px;
        margin-bottom: 1rem;
        padding-top: 0;
        padding-bottom: 0;
    }

    .manager-image-container > div {
        min-height: 400px;
        height: 400px;
    }

    .manager-image {
        height: 100%;
        min-height: 400px;
        object-fit: cover;
    }

    .feature-text {
        order: 2;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}


/*** Project Portfolio ***/
#portfolio-flters li {
    display: inline-block;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: .5s;
    border-bottom: 2px solid transparent;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
    color: var(--primary);
    border-color: var(--primary);
}

.portfolio-img {
    position: relative;
}

.portfolio-img::before,
.portfolio-img::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    background: var(--dark);
    transition: .5s;
}

.portfolio-img::before {
    left: 50%;
}

.portfolio-img::after {
    right: 50%;
}

.portfolio-item:hover .portfolio-img::before {
    width: 51%;
    left: 0;
}

.portfolio-item:hover .portfolio-img::after {
    width: 51%;
    right: 0;
}

.portfolio-btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    z-index: 1;
    transition: .5s;
}

.portfolio-item:hover .portfolio-btn {
    opacity: 1;
    transition-delay: .3s;
}


/*** Quote ***/
@media (min-width: 992px) {
    .container.quote {
        max-width: 100% !important;
    }

    .quote-text {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .quote-text {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .quote-text {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Team ***/
.team-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.team-item > .d-flex {
    height: 300px;
    min-height: 300px;
    max-height: 300px;
    overflow: hidden;
}

.team-item img {
    width: 75% !important;
    height: 100% !important;
    max-width: 75% !important;
    object-fit: cover;
    object-position: center;
}

.team-item .team-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    background: #FFFFFF;
    transition: .5s;
    width: 25%;
    flex-shrink: 0;
}

.team-item > .p-4 {
    min-height: 120px;
    max-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.team-item h4 {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    min-height: 1.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.team-item h5 {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 0;
    min-height: 1.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}


/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 350px;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
    z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
    width: 300px;
    opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    color: var(--primary);
    font-size: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}

.testimonial-carousel .testimonial-img img {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .testimonial-img .btn-square {
    position: absolute;
    bottom: -19px;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-carousel .owl-item .testimonial-text {
    margin-bottom: 30px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transform: scale(.8);
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    transform: scale(1);
}

.news-content {
    text-align: center;
}

/*** Contact ***/
@media (min-width: 992px) {
    .container.contact {
        max-width: 100% !important;
    }

    .contact-text {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .contact-text {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .contact-text {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Modern Footer ***/
.footer-modern {
    background: linear-gradient(135deg, var(--dark) 0%, #0f172a 100%);
    color: #cbd5e1;
    margin-top: 5rem;
}

.footer-main {
    padding: 4rem 0 3rem;
}

.footer-section {
    height: 100%;
}

.footer-title {
    color: #ffffff !important;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

/* Override global heading colors for footer */
.footer-modern h1,
.footer-modern h2,
.footer-modern h3,
.footer-modern h4,
.footer-modern h5,
.footer-modern h6 {
    color: #ffffff !important;
    text-align: left !important;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 10px;
}

/* Footer Form */
.footer-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transition: all 0.3s ease;
}

.footer-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
    color: #ffffff;
}

.footer-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-form label {
    color: rgba(255, 255, 255, 0.8);
}

.footer-submit-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    padding: 0.875rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.3);
}

.footer-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}
    border-radius: 8px;
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
}

.footer-form .form-control:focus {
    background: rgba(255, 255, 255, 0.35);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

.footer-form .form-control::placeholder {
    color: transparent;
}

.footer-form .form-control:focus::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-form label {
    color: rgba(255, 255, 255, 0.7);
    padding: 0.75rem 1rem;
}

.footer-form .form-floating > .form-control:focus ~ label,
.footer-form .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary);
    opacity: 1;
}

.footer-form .form-floating > .form-control:placeholder-shown ~ label {
    opacity: 0.7;
}

.footer-submit-btn {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.footer-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.footer-submit-btn:active {
    transform: translateY(0);
}

/* Contact Info */
.footer-contact-info {
    margin-bottom: 2.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    color: var(--primary);
    font-size: 1.1rem;
}

.contact-text {
    flex: 1;
}

.contact-text p {
    margin: 0;
    color: #e0e0e0;
    line-height: 1.6;
}

.contact-text a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: var(--primary);
}

/* Fix form floating labels */
.footer-form .form-floating {
    position: relative;
}

.footer-form .form-floating > .form-control {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
    height: calc(3.5rem + 2px);
}

.footer-form .form-floating > label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 1rem 0.75rem;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
    z-index: 2;
}

.footer-form .form-floating > .form-control:focus ~ label,
.footer-form .form-floating > .form-control:not(:placeholder-shown) ~ label,
.footer-form .form-floating > .form-control:-webkit-autofill ~ label {
    opacity: 1;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
    color: var(--primary);
}

.footer-form .form-floating > .form-control:placeholder-shown ~ label {
    opacity: 0.65;
    transform: translateY(0) scale(1);
}

.footer-form .form-floating > textarea.form-control {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
    height: auto;
    min-height: calc(3.5rem + 2px);
}

.footer-form .form-floating > textarea.form-control ~ label {
    padding-top: 0.75rem;
}

/* Ensure labels move up on focus even if placeholder is shown */
.footer-form .form-floating > .form-control:focus:placeholder-shown ~ label {
    opacity: 1;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
    color: var(--primary);
}

/* Social Links */
.footer-social {
    margin-top: 2rem;
}

.social-title {
    color: #ffffff !important;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-modern h3.footer-title,
.footer-modern h4.social-title {
    color: #ffffff !important;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-link {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Map */
.footer-map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    height: 350px;
    margin-top: 2rem;
}

.footer-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Copyright */
.footer-copyright {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.copyright-link {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.copyright-link:hover {
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .footer-main {
        padding: 3rem 0 2rem;
    }
    
    .footer-title {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-map {
        height: 300px;
        margin-top: 1.5rem;
    }
    
    .contact-item {
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 2.5rem 0 1.5rem;
    }
    
    .footer-title {
        font-size: 1.2rem;
        margin-bottom: 1.25rem;
    }
    
    .footer-map {
        height: 250px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-copyright .row > div {
        text-align: center !important;
    }
}

@media (max-width: 576px) {
    .footer-main {
        padding: 2rem 0 1rem;
    }
    
    .footer-title {
        font-size: 1.1rem;
    }
    
    .contact-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .footer-map {
        height: 220px;
    }
    
    .footer-copyright {
        padding: 1.25rem 0;
    }
    
    .copyright-text {
        font-size: 0.85rem;
    }
}

/* Legacy Footer Styles (for backward compatibility) */
.footer .btn.btn-social {
    margin-right: 5px;
    color: #9B9B9B;
    border: 1px solid #9B9B9B;
    border-radius: 38px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
    border-color: var(--light);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #9B9B9B;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer p{
    text-align: left;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: #FFFFFF;
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

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

.container-fluid h3 {
    z-index: 6;
    left: 10%;
    top: 15%;
}

/* Styles for the slideshow container */
    .slideshow-container {
      position: relative;
      max-width: 120%;
      margin: auto;
    }

    /* Styles for the images in the slideshow */
    .mySlides {
      display: none;
      width: 105%;
      height: auto;
    }
	.large-bold {
      font-size: 20px;
      font-weight: bold;
    }
	.red-text {
      color: red;
    }

    .blue-text {
      color: blue;
    }
	
	
	.image-container {
      display: flex;
	  position :relative;
      justify-content: space-between;
    }
    
    .image-container img {
      width: 400px; /* Adjust the width as needed */
      height: auto; /* Keeps the aspect ratio */
    }
	
	.image-container a {
        position: absolute;
        bottom: 10px; /* تعيين المسافة البادئة من الأسفل */
        right: 10px; /* تعيين المسافة البادئة من اليمين */
        color: white;
        font-size: 25px;
        text-decoration: none;
        background-color: red !important; /* تعيين لون الخلفية وشفافيتها */
        padding: 5px 10px;
    }
	
	
	
	
    .logo {
  width: 120px; /* Adjust the width to the desired size */
  height: 100px; /* Adjust the height to the desired size */
  position: relative;
  transition: transform 1s ease-in-out; /* Set the transition for smooth motion */
}

.logo:hover {
  transform: rotate(360deg); /* Apply the rotation on hover */
}



.safety-page-header 
	{
        background-image: url(../img/safety/safety-page-header.jpg);
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
        height: 400px; /* Adjust the height as per your image dimensions */
		animation: slideIn 1s ease-in-out;
    }

.it-page-header 
	{
        background-image: url(../img/it/it-page-header.jpg);
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
        height: 400px; /* Adjust the height as per your image dimensions */
		animation: slideIn 1s ease-in-out;
    }

.lab-page-header 
	{
        background-image: url(../img/lab/lab-header-page.png);
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
        height: 400px; /* Adjust the height as per your image dimensions */
		animation: slideIn 1s ease-in-out;
    }
	
	.training-page-header 
	{
        background-image: url(../img/training/training-page-header.jpg);
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
        height: 400px; /* Adjust the height as per your image dimensions */
		animation: slideIn 1s ease-in-out;
    }
	.IC-page-header 
	{
        background-image: url(../img/I&C/I&C-page-header.jpg);
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
        height: 400px; /* Adjust the height as per your image dimensions */
		animation: slideIn 1s ease-in-out;
    }
	
	
	/*   main and sub menu */
.clickable-word {
        color: blue;
        cursor: pointer;
        text-decoration: none;
        transition: color 0.3s ease;
    }

.clickable-word:hover {
        color: #0056b3;
        text-decoration: underline;
    }

/* Home Page Enhancements */
.feature-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 70px;
    height: 70px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.feature-label {
    font-size: 1rem;
    font-weight: 500;
}

.about-content {
    background: white;
    border-radius: 12px;
}

.about-section {
    margin-bottom: 2rem;
}

.about-section:last-child {
    margin-bottom: 0;
}

.about-section h5 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.about-section p {
    font-size: 1rem;
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.about-image-container {
    transition: transform 0.3s ease;
}

.about-image-container:hover {
    transform: scale(1.02);
}

/* Team Page Enhancements */
.manager-message {
    max-height: 100%;
    overflow-y: auto;
}

.manager-image-wrapper {
    min-height: 100%;
    padding: 1rem 0;
}

.manager-image-container {
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.manager-image-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.message-text {
    font-size: 1rem;
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: justify;
}

.message-signature {
    border-top: 2px solid #e9ecef;
}

/* Modern Team Card Design */
.team-card-modern {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 450px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.team-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1) !important;
}

.team-image-wrapper-modern {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-image-container-modern {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    padding: 8px;
}

.team-member-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card-modern:hover .team-member-image {
    transform: scale(1.15);
}

.team-overlay-modern {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.team-card-modern:hover .team-overlay-modern {
    opacity: 1;
}

.team-email-btn {
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease, box-shadow 0.3s ease;
    border: none;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.team-card-modern:hover .team-email-btn {
    transform: translateY(0);
}

.team-email-btn:hover {
    background-color: #0056b3 !important;
    transform: translateY(0) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.team-info-modern {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 130px;
    background: #ffffff;
    border-top: none;
    transition: all 0.3s ease;
    padding: 1.5rem 1rem;
}

.team-name {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
    color: #1a1a1a;
}

.team-title {
    font-size: 1rem;
    font-weight: 500;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
    color: var(--primary);
}

/* Legacy team styles for backward compatibility */
.team-card {
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

.team-image-container {
    position: relative;
    overflow: hidden;
}

.team-image-container img {
    transition: transform 0.3s ease;
}

.team-card:hover .team-image-container img {
    transform: scale(1.1);
}

.team-social-overlay {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover .team-social-overlay {
    opacity: 1;
}

.team-info h4 {
    font-size: 1.25rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.team-info h5 {
    font-size: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Responsive Design for Modern Team Cards */
@media (max-width: 991.98px) {
    .team-image-wrapper-modern {
        height: 280px;
    }
    
    .team-card-modern {
        min-height: 400px;
    }
    
    .team-name {
        font-size: 1.2rem;
    }
    
    .team-title {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .team-image-wrapper-modern {
        height: 300px;
    }
    
    .team-card-modern {
        min-height: 420px;
    }
}

@media (max-width: 576px) {
    .team-image-wrapper-modern {
        height: 280px;
    }
    
    .team-card-modern {
        min-height: 400px;
    }
    
    .team-name {
        font-size: 1.1rem;
    }
    
    .team-title {
        font-size: 0.9rem;
    }
    
    .team-info-modern {
        padding: 1rem !important;
        min-height: 110px;
    }
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .feature-number {
        font-size: 2rem;
    }

    .about-image-container {
        min-height: 400px !important;
    }

    .manager-image-wrapper {
        min-height: auto;
        padding: 1rem 0;
    }

    .manager-image-container {
        min-height: 400px;
        max-height: 600px;
    }

    .manager-image-container img {
        max-height: 600px;
    }

    .message-text {
        font-size: 0.95rem;
    }

    .team-image-container img {
        height: 300px !important;
    }
}

@media (max-width: 767.98px) {
    .feature-card {
        margin-bottom: 1.5rem;
    }

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

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

    .about-section h5 {
        font-size: 1.1rem;
    }

    .about-section p {
        font-size: 0.95rem;
    }

    .manager-message {
        padding: 1.5rem !important;
    }

    .message-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }

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

    .team-image-container img {
        height: 280px !important;
    }

    .team-info h4 {
        font-size: 1.1rem;
    }

    .team-info h5 {
        font-size: 0.95rem;
    }
}

@media (max-width: 575.98px) {
    .feature-icon {
        width: 60px;
        height: 60px;
    }

    .feature-number {
        font-size: 1.5rem;
    }

    .about-image-container {
        min-height: 300px !important;
    }

    .manager-image-wrapper {
        min-height: auto;
        padding: 0.5rem 0;
    }

    .manager-image-container {
        min-height: 300px;
        max-height: 500px;
    }

    .manager-image-container img {
        max-height: 500px;
    }

    .message-signature h4 {
        font-size: 1.1rem;
    }

    .message-signature h5 {
        font-size: 0.9rem;
    }
}
	
	
	ul.menu {
      list-style-type: none;
      margin: 0;
      padding: 0;
    }

    ul.menu li {
      display: inline-block;
      position: relative;
    }

    ul.menu li a {
      display: block;
      padding: 10px;
      text-decoration: none;
	  font-weight: bold;
    }

    /* Styling the sub-menu */
    ul.sub-menu {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      background-color: #f9f9f9;
      padding: 0;
	  width: 200px;
      text-align: right;
    }

    ul.sub-menu li {
      display: block;
    }

    /* Show sub-menu on hover */
    ul.menu li:hover ul.sub-menu {
      display: block;
    }
	
	ul.sub-menu li:hover {
	background-color: #ddd;}
	
	ul.sub-menu li a {
	color: #000;
    transition: color 0.3s;
	}/* Change this value to green color code */
	
	
	ul.sub-menu li a:hover {
  color: #00F; /* Set the font color to blue on hover */
}
/* ISO Image */
 .image-ISO-container {
            position: absolute;
            top: 5px; /* Position above the icon */
            left:4%;
            transform: translateX(-50%);
            width: 150px;
            height: 150px;
            background-color: #f9f9f9;
            border: 1px solid #ddd;
            display: none;
            /* Add a box shadow for better visibility */
            box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
        }
.image-ISO-container img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
		
		
.icon-container {
            position: relative;
            width: 5px;
            height: 5px;
            background-color: #ccc;
        }