/* ============================================================
   1. CORE VARIABLES & MASTER BRANDING BLUEPRINTS
   ============================================================ */
:root {
    --primary: #1B5E20;      /* Deep Green */
    --primary-light: #2E7D32;
    --primary-dark: #0D3B0F;
    --accent: #FFC107;        /* Gold */
    --accent-light: #FFD54F;
    --accent-dark: #F9A825;
    --dark-bg: #1A1A2E;
    --light-bg: #F5F5F0;
    --text-dark: #1A1A2E;
    --text-muted: #6B6B7A;
    
    --font-heading: 'Playfair Display', 'Inter', 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: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

/* Custom Micro-Typography Utilities */
.fw-black {
    font-weight: 900 !important;
}
.tracking-wider {
    letter-spacing: 0.06em;
}
.text-xs {
    font-size: 0.75rem !important;
}
.py-6 {
    padding-top: 5.5rem !important;
    padding-bottom: 5.5rem !important;
}
.shadow-xs {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.text-primary-dark { color: var(--primary-dark) !important; }
.text-accent-gold { color: #B58A33 !important; }
.text-accent-dark { color: var(--accent-dark) !important; }
.text-secondary-muted { color: #556B58; }

/* Force Cairo Font on Arabic viewports for elegant text-rendering */
html[lang="ar"] body,
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6 {
    font-family: 'Cairo', sans-serif !important;
}

/* ============================================================
   2. NAVBAR - Deep Green & Gold Navigation
   ============================================================ */
.navbar {
    background: linear-gradient(135deg, #0D3B0F 0%, #1B5E20 50%, #2E7D32 100%) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-bottom: 2px solid var(--accent);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.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(--accent) !important;
}

.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(--accent);
    transition: width 0.3s ease;
}

.nav-link:not(.dropdown-toggle):hover::after {
    width: 100%;
}

.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;
}

.navbar-toggler {
    border: 1px solid rgba(255, 193, 7, 0.4) !important;
    padding: 0.4rem 0.6rem;
}

.navbar-toggler:focus {
    outline: none !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25) !important;
}

.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;
}

.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='%23FFC107'%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;
}

.navbar .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.navbar .logo-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.04em;
}

.navbar .logo-sub {
    font-size: 0.6rem;
    color: var(--accent);
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* style.css */
.agency-logo {
    max-height: 45px;
    width: 45px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--accent);
    /* background-color: #0D3B0F !important;  */
    /* padding: 2px; */
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark)) !important;
    color: #0D3B0F !important;
    border: none !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
    color: #0D3B0F !important;
}

.dropdown-menu {
    border-top: 3px solid var(--accent) !important;
}

.dropdown-item:hover {
    background-color: rgba(27, 94, 32, 0.08);
    color: var(--primary);
}

@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;
    }
    .navbar-collapse {
        background: linear-gradient(135deg, #0D3B0F, #1B5E20);
        padding-bottom: 1rem;
        border-top: 1px solid rgba(255, 193, 7, 0.2);
    }
}

/* ============================================================
   3. PREMIUM HERO SECTION (BEAUTIFUL ZOOM & CROSS-FADE BACKGROUND SLIDER)
   ============================================================ */
.hero-premium {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: #F8F9FA;
    padding-top: 140px;
    padding-bottom: 80px;
}

.hero-premium-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1);
    transition: opacity 2s ease-in-out, transform 8s linear; /* Rich cinematic timing values */
}

/* Stunning Ken Burns Zoom Style Interaction */
.hero-bg-slide.active {
    opacity: 0.75;               /* Image remains explicitly and beautifully visible */
    transform: scale(1.08);     /* Subtle, smooth motion scaling effect */
    z-index: 2;
}

.hero-premium-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.7) 0%, rgba(248, 249, 250, 0.55) 100%);
    z-index: 3;
    pointer-events: none;
}

.hero-premium h1 {
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero-premium-stat-card {
    z-index: 5;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
}

.bg-light-green {
    background-color: rgba(27, 94, 32, 0.08);
}

.search-widget-card { 
    border: 1px solid rgba(0, 0, 0, 0.08); 
    max-width: 550px; 
    z-index: 5;
}

.btn-search-action { 
    background-color: var(--primary-dark); 
    border: none; 
    transition: all 0.3s ease; 
}

.btn-search-action:hover { 
    background-color: var(--primary-light); 
    transform: translateY(-1px); 
}

.btn-social-pill {
    padding: 11px 26px; 
    border-radius: 50px; 
    font-weight: 600; 
    font-size: 0.9rem; 
    color: white !important; 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 5;
}

.btn-social-pill.tg { background: linear-gradient(135deg, #24A1DE, #1d82b2); }
.btn-social-pill.wa { background: linear-gradient(135deg, #25D366, #1ebd58); }
.btn-social-pill:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.12); }

@media (max-width: 991.98px) {
    .hero-premium {
        padding-top: 110px;
        padding-bottom: 50px;
    }
}

/* ============================================================
   4. PREMIUM ABOUT SECTION (ASYMMETRIC GRAPHIC FRAMES)
   ============================================================ */
/* Master Structural Frame (Container) */
.asymmetric-about-frame {
    width: 100%;
    height: 480px;
    border-radius: 40px 160px 40px 40px; 
    position: relative;
    overflow: visible !important; /* ባጁ በፍሬሙ ጫፎች እንዳይቆረጥ overflow ይፈቀዳል */
    z-index: 2;
}

/* Inner Image Clip Layer */
.about-bg-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 40px 160px 40px 40px; /* ምስሎቹ ቅርጹን ይዘው እንዲታጠፉ እዚህ ላይ ይደረጋል */
    overflow: hidden; /* ተንሸራታች ምስሎችን ብቻ ቆርጦ ይይዛል */
    z-index: 1;
}

/* Premium Floating Badge Style with Golden Borders */
.floating-experience-badge {
    bottom: 25px; /* በፍሬሙ ውስጥ ደህንነቱ የተጠበቀ ርቀት ላይ ይቀመጣል */
    left: 25px;
    min-width: 175px;
    z-index: 5; /* ከምስሎቹ በላይ (On top of images layer) በግልጽ እንዲንሳፈፍ ያደርገዋል */
    
    /* Elegant Border Settings */
    border: 2px solid #B58A33 !important; /* ዙሪያውን የሚያምር የጎልድ መስመር (Full Gold Border) */
    border-left: 6px solid #B58A33 !important; /* የግራውን መስመር ይበልጥ ጎልቶ እንዲታይ ያደርገዋል */
    
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    background-color: #ffffff !important;
}

.about-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;
}

.about-slide.active {
    opacity: 1 !important;
    z-index: 2;
}

/* Premium Round Fit Alignment Blueprints */
.floating-seal-stamp {
    top: 25px;
    right: 25px;
    width: 90px;
    height: 90px;
    border-radius: 50% !important; /* Forces absolute rounded structure boundary constraints */
    background: radial-gradient(circle, #0D3B0F 0%, #1B5E20 100%);
    border: 3px dashed var(--accent);
    box-shadow: 0 8px 20px rgba(13, 59, 15, 0.25);
    z-index: 10;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 1.15 !important;
    padding: 6px !important;
}

.asymmetric-about-frame .floating-experience-badge {
    bottom: -20px;
    left: -20px;
    min-width: 170px;
    z-index: 10;
    border-left: 5px solid #B58A33;
}

.layout-feature-card {
    border-radius: 40px 40px 40px 140px; border-top: 1px solid rgba(0,0,0,0.02); border-left: 1px solid rgba(0,0,0,0.02);
}

.checklist-row-card {
    background-color: #F8F9FA; 
    border: 1px solid rgba(0, 0, 0, 0.02); 
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.checklist-row-card:hover {
    transform: translateX(6px); 
    background-color: #FFFFFF; 
    box-shadow: 0 4px 15px rgba(27, 94, 32, 0.05);
}

html[dir="rtl"] .checklist-row-card:hover { transform: translateX(-6px); }

.check-icon-circle { 
    width: 28px; 
    height: 28px; 
    background-color: #B58A33; 
    border-radius: 50%; 
    font-size: 0.85rem; 
    flex-shrink: 0; 
}

.btn-gold-action { background-color: #B58A33; color: white !important; transition: all 0.3s ease; }
.btn-gold-action:hover { background-color: #946F25; box-shadow: 0 4px 12px rgba(181, 138, 51, 0.25); }

.btn-outline-dark-action { border: 2px solid var(--primary-dark); color: var(--primary-dark); transition: all 0.3s ease; }
.btn-outline-dark-action:hover { background-color: var(--primary-dark); color: white !important; }

/* ============================================================
   5. SECTION TITLES & SECTORS
   ============================================================ */
.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(--accent);
}

/* ============================================================
   6. SERVICE & VACANCY CARDS
   ============================================================ */
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(27, 94, 32, 0.12) !important;
}

.service-card .card-title {
    font-weight: 700;
}

/* ============================================================
   7. FLUID SCROLL GALLERY ENGINE INTERFACE
   ============================================================ */
.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;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    width: 100%;
}

.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(--accent);
    border-radius: 10px;
}

.horizontal-gallery-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--accent-dark);
}

.horizontal-gallery-item {
    flex: 0 0 280px;
    min-width: 280px;
    max-width: 280px;
    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(27, 94, 32, 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;
}

/* Gallery Controls */
.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(--accent);
    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(--accent);
    color: #0D3B0F;
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.1);
}

.gallery-scroll-btn-left { left: -10px; }
.gallery-scroll-btn-right { right: -10px; }

.gallery-auto-toggle {
    position: absolute;
    bottom: -10px;
    right: 20px;
    z-index: 25;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--accent);
    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(--accent);
    color: #0D3B0F;
}

.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(27, 94, 32, 0.85); }
.gallery-platform-badge.video { background: #0080ff; }

.gallery-counter {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(13, 59, 15, 0.8);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    z-index: 5;
    backdrop-filter: blur(5px);
}

.video-count-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 193, 7, 0.9);
    color: #0D3B0F;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 4px;
}

.video-overlay-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 193, 7, 0.9);
    color: #0D3B0F;
    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-pause-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(13, 59, 15, 0.9);
    color: var(--accent);
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    z-index: 30;
    display: none;
    backdrop-filter: blur(10px);
    pointer-events: none;
}

/* ============================================================
   8. INPUT FORMS & REGISTRATION DATA OVERLAYS
   ============================================================ */
.map-wrapper {
    border-color: var(--primary) !important;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(27, 94, 32, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(27, 94, 32, 0.3);
}

.bg-primary { background-color: var(--primary) !important; }
.text-primary { color: var(--primary) !important; }

.badge-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
    color: #fff !important;
}

.badge-dark {
    background: var(--dark-bg) !important;
    color: var(--accent) !important;
    border: 1px solid var(--accent);
}

/* ============================================================
   9. FOOTER STRIPS
   ============================================================ */
footer {
    background: linear-gradient(135deg, #0D3B0F, #1B5E20) !important;
    border-top: 2px solid var(--accent);
}

footer .logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.04em;
}

footer .logo-sub {
    font-size: 0.7rem;
    display: block;
    color: var(--accent);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ============================================================
   10. RESPONSIVE ADAPTIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 991.98px) {
    .asymmetric-about-frame {
        height: 350px;
        border-radius: 30px 80px 30px 30px;
        margin-bottom: 2rem;
    }
    .asymmetric-about-frame .floating-experience-badge {
        left: 20px;
        bottom: -15px;
    }
    .layout-feature-card {
        border-radius: 30px 30px 30px 80px;
    }
}

@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: 576px) {
    .hero-premium h1 {
        font-size: 2.15rem !important;
    }
    .section-title {
        font-size: 1.5rem !important;
    }
    .navbar .logo-text {
        font-size: 1.1rem !important;
    }
    .navbar .logo-sub {
        font-size: 0.5rem !important;
    }
}

@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;
    }
}