@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
    --primary: #1A237E; /* Deep Indigo */
    --primary-light: #283593;
    --primary-dark: #0D1445;
    --gold: #C9A84C; /* Gold Accent */
    --gold-light: #E8D5A3;
    --gold-dark: #B8942A;
    --dark-bg: #0D0D1A;
    --light-bg: #F8F7F4;
    --text-dark: #1A1A2E;
    --text-muted: #6B6B7A;
    
    /* Modern Font Families */
    --font-heading: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    letter-spacing: -0.01em;
    scroll-behavior: smooth;
    background-color: #ffffff;
    color: #212529;
    -webkit-font-smoothing: antialiased;
}

/* Typography Overrides for Attractive & Modern Look */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

html[lang="ar"] body {
    font-family: 'Cairo', sans-serif;
}

/* --- Responsive Navigation Header Styles --- */

.navbar {
    background: linear-gradient(135deg, #0D0D1A 0%, #1A1A3E 50%, #1A237E 100%) !important;
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

/* Base custom link configurations */
.navbar .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease-in-out;
}

.navbar .nav-link:hover {
    color: var(--gold) !important;
}

/* Toggler button outline configuration */
.navbar-toggler {
    border: 1px solid rgba(201, 168, 76, 0.4) !important;
    padding: 0.4rem 0.6rem;
}

.navbar-toggler:focus {
    outline: none !important;
    box-shadow: 0 0 0 0.25rem rgba(201, 168, 76, 0.25) !important;
}

/* Default state: Crisp white 3-line hamburger icon */
.navbar-toggler-icon {
    width: 1.5em;
    height: 1.5em;
    transition: background-image 0.3s ease-in-out;
    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.95%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Active State: Transform menu icon to an 'X' close button when expanded */
.navbar-toggle-with-x[aria-expanded="true"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23C9A84C'%3e%3cpath d='M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

@media (max-width: 991.98px) {
    .dropdown-menu-end {
        left: 0 !important;
        right: auto !important;
    }
    html[lang="ar"] .dropdown-menu-end {
        right: 0 !important;
        left: auto !important;
    }
    /* Mobile dropdown container correction */
    .navbar-collapse {
        background: linear-gradient(135deg, #0D0D1A, #1A1A3E);
        border-top: 1px solid rgba(201, 168, 76, 0.2);
        padding-bottom: 1rem;
    }
}

/* --- Hero Section (Balanced Banner + Multi-Slide Integration) --- */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-image: url('images/banner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--dark-bg);
    padding-top: 100px; 
    padding-bottom: 60px;
}

.hero h1 {
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero p.lead {
    font-weight: 300;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
    opacity: 0.95;
}

@media (max-width: 991.98px) {
    .hero {
        padding-top: 90px;
        padding-bottom: 40px;
    }
}

.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Moving slider elements */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    mix-blend-mode: multiply; 
}

.hero-slide.active {
    opacity: 0.75;
}

/* Re-engineered dark professional overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 13, 26, 0.7), rgba(26, 35, 126, 0.5), rgba(0, 0, 0, 0.8));
    z-index: 2;
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(transparent, #ffffff);
    z-index: 3;
}

.hero-text-shadow {
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.95), 0px 0px 6px rgba(0, 0, 0, 0.75);
}

/* Call-to-action Action Buttons - Gold Style */
.btn-hero-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
    color: #0D0D1A !important;
    border: 2px solid var(--gold) !important;
    font-weight: 700;
    transition: all 0.3s ease;
}
.btn-hero-primary:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold)) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.4);
}

.btn-hero-telegram {
    background-color: #24A1DE !important;
    color: #ffffff !important;
    border: 2px solid #24A1DE !important;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: all 0.3s ease;
}
.btn-hero-telegram:hover {
    background-color: #1d82b2 !important;
    border-color: #1d82b2 !important;
    transform: translateY(-2px);
}

.btn-hero-whatsapp {
    background-color: #25D366 !important;
    color: #ffffff !important;
    border: 2px solid #25D366 !important;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: all 0.3s ease;
}
.btn-hero-whatsapp:hover {
    background-color: #1ebd58 !important;
    border-color: #1ebd58 !important;
    transform: translateY(-2px);
}

.hero-btn-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 3rem auto;
    padding: 10px;
}

.hero-btn-container .btn {
    white-space: nowrap;
    font-size: 1rem;
    padding: 14px 24px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
}

@media (min-width: 768px) {
    .hero-btn-container {
        flex-direction: row;
        justify-content: center;
        max-width: 100%;
        gap: 15px;
    }
    
    .hero-btn-container .btn {
        width: auto;
        font-size: 1.05rem;
        padding: 15px 32px;
    }
}

@media (min-width: 992px) {
    .hero-btn-container {
        gap: 20px;
    }
    .hero-btn-container .btn {
        font-size: 1.1rem;
        padding: 15px 35px;
    }
}

@media (max-width: 767.98px) {
    .hero-btn-container {
        gap: 8px;
    }
    .hero-btn-container .btn {
        font-size: 0.85rem;
        padding: 10px 16px;
    }
}

@media (max-width: 380px) {
    .hero-btn-container .btn {
        font-size: 0.75rem;
        padding: 8px 12px;
    }
    .hero-btn-container {
        gap: 5px;
    }
}

/* --- Internal Base Styles --- */

.about-img-container {
    height: 420px; 
    background-color: #f0f0f0;
}

.about-slide {
    position: absolute; 
    width: 100%; 
    height: 100%; 
    background-size: cover; 
    background-position: center; 
    transition: opacity 1.2s ease-in-out; 
    opacity: 0;
    z-index: 1;
}

.about-slide.active {
    opacity: 1 !important;
    z-index: 2;
}

.section-title {
    position: relative;
    display: inline-block;
    font-weight: 800;
    font-size: 2.25rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gold);
}

.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(26, 35, 126, 0.12) !important;
}

.service-card .card-title {
    font-weight: 700;
}

/* --- MODIFIED LINK TRANSITION TARGETING LOGIC --- */
.nav-link:not(.dropdown-toggle) {
    position: relative;
}

.nav-link:not(.dropdown-toggle)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

.nav-link:not(.dropdown-toggle):hover::after {
    width: 100%;
}

.team-avatar {
    object-fit: cover;
}

footer {
    background: linear-gradient(135deg, #0D0D1A, #1A1A3E) !important;
    border-top: 2px solid var(--gold);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.agency-logo {
    max-height: 45px;
    width: 45px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--gold);
}

/* --- Public Media Gallery Interactive Layout Elements --- */
#gallery .section-title::after {
    background: var(--gold);
}

.gallery-card-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    background: #ffffff;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    height: 100%;
}

.gallery-card-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(26, 35, 126, 0.15);
}

.gallery-img-container {
    position: relative;
    height: 220px;
    width: 100%;
    background-color: #e9ecef;
    overflow: hidden;
}

.gallery-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card-wrapper:hover .gallery-img-container img {
    transform: scale(1.06);
}

.video-overlay-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(201, 168, 76, 0.9);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 3;
}

.gallery-card-wrapper:hover .video-overlay-icon {
    background: var(--gold);
    transform: translate(-50%, -50%) scale(1.1);
}

.gallery-card-body {
    padding: 16px;
    border-top: 1px solid #f1f3f5;
}

.gallery-card-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0;
    color: #212529;
}

/* --- TikTok and YouTube Video Thumbnail Styles --- */

/* TikTok icon support */
.bi-tiktok::before {
    content: "\e9a0";
    font-family: 'bootstrap-icons' !important;
}

/* Video overlay with play button */
.video-overlay-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(201, 168, 76, 0.85);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(201, 168, 76, 0.3);
    cursor: pointer;
    z-index: 4;
}

.gallery-card-wrapper:hover .video-overlay-icon {
    transform: translate(-50%, -50%) scale(1.15);
    background: var(--gold);
    box-shadow: 0 0 40px rgba(201, 168, 76, 0.5);
}

/* Video thumbnail container */
.gallery-img-container {
    position: relative;
    height: 220px;
    width: 100%;
    background-color: #1a1a2e;
    overflow: hidden;
}

.gallery-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card-wrapper:hover .gallery-img-container img {
    transform: scale(1.06);
}

/* Video placeholder for TikTok and others */
.video-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
}

/* Platform badge colors */
.video-platform-youtube .badge {
    background: #FF0000;
}

.video-platform-tiktok .badge {
    background: #000000;
}

.video-platform-vimeo .badge {
    background: #1AB7EA;
}

/* Gallery card hover effects */
.gallery-card-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    background: #ffffff;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    height: 100%;
}

.gallery-card-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(26, 35, 126, 0.15);
}

.gallery-card-body {
    padding: 16px;
    border-top: 1px solid #f1f3f5;
}

.gallery-card-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0;
    color: #212529;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Responsive video thumbnails */
@media (max-width: 576px) {
    .gallery-img-container {
        height: 180px;
    }
    
    .video-overlay-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 400px) {
    .gallery-img-container {
        height: 150px;
    }
    
    .video-overlay-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* TikTok specific styling */
.gallery-card-wrapper[data-platform="tiktok"] .gallery-img-container {
    background: linear-gradient(135deg, #000000, #1a1a2e);
}

/* YouTube specific styling */
.gallery-card-wrapper[data-platform="youtube"] .gallery-img-container {
    background: linear-gradient(135deg, #1a1a2e, #2d2d44);
}

/* ==========================================================================
   HORIZONTAL SCROLLING GALLERY WITH AUTO-SCROLL
   ========================================================================== */

.horizontal-gallery-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
}

.horizontal-gallery-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: visible;
    padding: 15px 10px 25px 10px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

/* Auto-scroll animation */
.horizontal-gallery-scroll.auto-scroll {
    animation: autoScrollGallery 30s linear infinite;
}

.horizontal-gallery-scroll.auto-scroll:hover {
    animation-play-state: paused;
}

@keyframes autoScrollGallery {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Hide scrollbar for cleaner look */
.horizontal-gallery-scroll::-webkit-scrollbar {
    height: 6px;
}

.horizontal-gallery-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.horizontal-gallery-scroll::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}

.horizontal-gallery-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

/* Gallery Item in Horizontal Layout */
.horizontal-gallery-item {
    flex: 0 0 280px;
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.horizontal-gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(26, 35, 126, 0.15);
    z-index: 10;
}

.horizontal-gallery-item .gallery-img-container {
    height: 200px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
}

.horizontal-gallery-item .gallery-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.horizontal-gallery-item:hover .gallery-img-container img {
    transform: scale(1.08);
}

.horizontal-gallery-item .gallery-card-body {
    padding: 14px 16px;
    border-top: 1px solid #f1f3f5;
}

.horizontal-gallery-item .gallery-card-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0;
    color: #212529;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
}

/* Scroll Buttons */
.gallery-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    color: var(--primary);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
    backdrop-filter: blur(10px);
}

.gallery-scroll-btn:hover {
    background: var(--gold);
    color: #0D0D1A;
    border-color: var(--gold);
    transform: translateY(-50%) scale(1.1);
}

.gallery-scroll-btn-left {
    left: -10px;
}

.gallery-scroll-btn-right {
    right: -10px;
}

/* Auto-scroll Toggle Button */
.gallery-auto-toggle {
    position: absolute;
    bottom: -10px;
    right: 20px;
    z-index: 25;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--gold);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.gallery-auto-toggle:hover {
    background: var(--gold);
    color: #0D0D1A;
    border-color: var(--gold);
}

.gallery-auto-toggle .bi {
    margin-right: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .horizontal-gallery-item {
        flex: 0 0 220px;
    }
    
    .horizontal-gallery-item .gallery-img-container {
        height: 160px;
    }
    
    .gallery-scroll-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .gallery-scroll-btn-left {
        left: -5px;
    }
    
    .gallery-scroll-btn-right {
        right: -5px;
    }
}

@media (max-width: 480px) {
    .horizontal-gallery-item {
        flex: 0 0 180px;
    }
    
    .horizontal-gallery-item .gallery-img-container {
        height: 140px;
    }
}

/* Gallery Counter Badge */
.gallery-counter {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    z-index: 5;
    backdrop-filter: blur(5px);
}

/* Platform Badge */
.gallery-platform-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    color: white;
    z-index: 5;
    backdrop-filter: blur(5px);
}

.gallery-platform-badge.youtube {
    background: rgba(255, 0, 0, 0.85);
}

.gallery-platform-badge.tiktok {
    background: rgba(0, 0, 0, 0.85);
}

.gallery-platform-badge.vimeo {
    background: rgba(26, 183, 234, 0.85);
}

.gallery-platform-badge.image {
    background: rgba(26, 35, 126, 0.85);
}

.video-count-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(201, 168, 76, 0.9);
    color: #0D0D1A;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Pause indicator */
.gallery-pause-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    z-index: 30;
    display: none;
    backdrop-filter: blur(10px);
    pointer-events: none;
}

.gallery-pause-indicator.show {
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeInOut 1.5s ease forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    15% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    85% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}

/* ==========================================================================
   HORIZONTAL SCROLLING GALLERY WITH CONTINUOUS AUTO-SCROLL
   ========================================================================== */

.horizontal-gallery-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
}

.horizontal-gallery-scroll {
    display: flex;
    gap: 20px;
    overflow-x: visible;
    overflow-y: visible;
    padding: 15px 10px 25px 10px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    width: max-content;
}

/* Auto-scroll animation - CONTINUOUS */
.horizontal-gallery-scroll.auto-scroll {
    animation: autoScrollGallery var(--scroll-duration, 30s) linear infinite;
    animation-play-state: running;
}

.horizontal-gallery-scroll.auto-scroll:hover {
    animation-play-state: paused;
}

@keyframes autoScrollGallery {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Gallery Item in Horizontal Layout */
.horizontal-gallery-item {
    flex: 0 0 280px;
    min-width: 280px;
    max-width: 280px;
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.horizontal-gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(26, 35, 126, 0.15);
    z-index: 10;
}

.horizontal-gallery-item .gallery-img-container {
    height: 200px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
}

.horizontal-gallery-item .gallery-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.horizontal-gallery-item:hover .gallery-img-container img {
    transform: scale(1.08);
}

.horizontal-gallery-item .gallery-card-body {
    padding: 14px 16px;
    border-top: 1px solid #f1f3f5;
}

.horizontal-gallery-item .gallery-card-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0;
    color: #212529;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
}

/* Responsive */
@media (max-width: 768px) {
    .horizontal-gallery-item {
        flex: 0 0 220px;
        min-width: 220px;
        max-width: 220px;
    }
    
    .horizontal-gallery-item .gallery-img-container {
        height: 160px;
    }
    
    .gallery-scroll-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .gallery-scroll-btn-left {
        left: -5px;
    }
    
    .gallery-scroll-btn-right {
        right: -5px;
    }
}

@media (max-width: 480px) {
    .horizontal-gallery-item {
        flex: 0 0 180px;
        min-width: 180px;
        max-width: 180px;
    }
    
    .horizontal-gallery-item .gallery-img-container {
        height: 140px;
    }
}

/* --- ADDED DROP DOWN FIX RESCUE MATRIX PATCh --- */
.navbar .nav-item.dropdown .dropdown-toggle {
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
}

.navbar .dropdown-toggle::after {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    position: static !important;
    margin-left: 0.3em !important;
    vertical-align: 0.255em !important;
    content: "" !important;
    border-top: 0.3em solid !important;
    border-right: 0.3em solid transparent !important;
    border-bottom: 0 !important;
    border-left: 0.3em solid transparent !important;
    background-color: transparent !important;
    transition: none !important;
}

html[lang="ar"] .navbar .dropdown-toggle::after {
    margin-right: 0.5em !important;
    margin-left: 0 !important;
}