/* ==========================================================================
   1. Base & Global Reset
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

* { 
    margin: 0; 
    padding: 0; 
}

html {
    /* Prevents the "jumping" effect when moving between pages */
    scrollbar-gutter: stable;
}

:root {
    /* Brand Colors extracted from your Logo */
    --brand-blue: #024196;
    --brand-gold: #e5aa26;
    
    /* NEW BRIGHTER THEME PALETTE */
    --bg: #f8fafc;           /* Brighter off-white background */
    --card-bg: #ffffff;      /* Pure white cards */
    --primary: var(--brand-blue);
    --primary-hover: #0352bd;
    --text-high: #0f172a;    /* Deep navy for readability on light */
    --text-low: #475569;     /* Slate gray for body text */
    --border: #e2e8f0;       /* Light gray border */
    --shadow: 0 10px 30px rgba(2, 65, 150, 0.08); /* Sophisticated subtle shadow */
}

body { 
    background-color: var(--bg); 
    color: var(--text-low); 
    font-family: 'Inter', sans-serif; 
    overflow-x: hidden;
}

.container { 
    margin: 0 auto; 
    padding: 0 25px; 
    width: 100%;
}

.container-min-width { 
    margin: 0 auto; 
    padding: 0 16%; 
    width: 100%;
}

.page-header { padding: 150px 0 60px; text-align: center; }
.center-text { text-align: center; }
.center-flex { justify-content: center; }
.full-width { width: 100%; }

/* ==========================================================================
   2. Navigation Bar
   ========================================================================== */
.navbar {
    position: fixed; 
    top: 0; 
    left: 0;
    width: 100%; 
    z-index: 9999;
    background: rgba(255, 255, 255, 0.9); /* Brighter blurred nav */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    height: 5%;
    margin: 0;
    padding: 0;
}

.nav-flex { display: flex; justify-content: space-between; align-items: center; height: 100%; }

/* Logo matched to image: Blue / Gold */
.logo { font-family: 'Outfit', sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--brand-blue); text-decoration: none; }
.logo span { color: var(--brand-gold); }

.nav-links { display: flex; list-style: none; gap: 30px; align-items: center; }
.nav-links a { color: var(--text-high); text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: 0.3s; }
.nav-links a:hover { color: var(--brand-blue); }

.btn-cta-nav { background: var(--brand-gold); padding: 10px 22px; border-radius: 8px; color: #fff !important; font-weight: 700; }

/* Language Toggle */
.lang-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
}
.lang-link { text-decoration: none; font-size: 0.8rem; font-weight: 600; color: var(--text-low) !important; transition: 0.3s; }
.lang-link.active { color: var(--brand-blue) !important; }
.lang-link:hover { color: var(--brand-blue) !important; }
.lang-divider { color: var(--border); font-size: 0.8rem; user-select: none; }

/* Dropdown Logic */
.dropdown { 
    position: relative; 
    padding-bottom: 20px; 
    margin-bottom: -20px; 
}

.dropdown-content {
    display: none; 
    position: absolute; 
    top: 100%; 
    left: 0;
    background: #ffffff; 
    border: 1px solid var(--border);
    min-width: 220px; 
    border-radius: 12px; 
    padding: 10px 0;
    box-shadow: var(--shadow);
    z-index: 1000;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown:hover .dropdown-content { 
    display: block; 
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content a { 
    display: block; 
    padding: 12px 20px; 
    color: var(--text-high);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.dropdown-content a:hover { background: #f1f5f9; color: var(--brand-blue); }

.drop-trigger::after {
    content: '▾';
    margin-left: 5px;
    font-size: 0.8rem;
    vertical-align: middle;
    transition: transform 0.3s;
    display: inline-block;
}
.dropdown:hover .drop-trigger::after { transform: rotate(180deg); }

/* Quick Scroll Nav Bar */
.quick-nav {
    position: sticky;
    top: 80px;
    background: rgba(248, 250, 252, 0.95);
    backdrop-filter: blur(10px);
    z-index: 900;
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
}
.nav-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}
.nav-scroll::-webkit-scrollbar { display: none; }

.q-link {
    text-decoration: none;
    color: var(--text-low);
    background: #fff;
    padding: 1% 3.4%;
    border-radius: 50px;
    font-size: 0.85rem;
    border: 1px solid var(--border);
    transition: 0.3s;
}
.q-link:hover { background: var(--brand-blue); color: #fff; border-color: var(--brand-blue); }


/* ==========================================================================
   3. Hero Components
   ========================================================================== */
.hero { padding: 180px 0 100px; text-align: center; background: radial-gradient(circle at top right, #f1f5f9, #f8fafc); }
.hero-title { 
    font-family: 'Outfit', sans-serif; font-size: 4rem; color: var(--text-high); 
    margin: 0 auto 30px; font-weight: 800;
}
.hero-subtitle { font-size: 1.25rem; margin: 0 auto 40px; color: var(--text-low); }
.hero-btns { display: flex; gap: 20px; justify-content: center; }

.btn-primary { background: var(--brand-blue); color: #fff; padding: 16px 35px; border-radius: 10px; text-decoration: none; font-weight: 600; box-shadow: 0 4px 14px rgba(2, 65, 150, 0.2); }
.btn-primary-white { background: var(--brand-blue); color: #fff; padding: 18px 40px; border-radius: 12px; text-decoration: none; font-weight: 700; white-space: nowrap; transition: 0.3s; }
.btn-primary-white:hover { transform: scale(1.05); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.btn-secondary { background: #fff; border: 1px solid var(--border); color: var(--text-high); padding: 16px 35px; border-radius: 10px; text-decoration: none; }
.btn-secondary:hover { border-color: var(--brand-blue); color: var(--brand-blue); }


/* ==========================================================================
   4. Stats & Common Grids
   ========================================================================== */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-top: -40px; }
.stat-box { background: #fff; border: 1px solid var(--border); padding: 40px; border-radius: 20px; text-align: center; box-shadow: var(--shadow); }
.stat-number { display: block; font-size: 2.5rem; font-weight: 800; color: var(--brand-gold); margin-bottom: 10px; }
.stat-text { color: var(--text-high); font-weight: 600; font-size: 1.1rem; }


/* ==========================================================================
   5. Features Sections
   ========================================================================== */
.features-rows { padding: 120px 0; }
.f-card { display: flex; align-items: center; gap: 80px; margin-bottom: 120px; }
.f-card.reverse { flex-direction: row-reverse; }
.f-info { flex: 1; }
.f-img-wrapper { flex: 1; }
.placeholder-img { 
    width: 100%; height: 500px; background: #f1f5f9; border-radius: 24px; 
    display: flex; align-items: center; justify-content: center; border: 1px dashed var(--border);
}
.f-title { font-family: 'Outfit', sans-serif; color: var(--text-high); font-size: 2.5rem; margin-bottom: 10px; }
.f-tagline { color: var(--brand-blue); font-size: 1.2rem; margin-bottom: 20px; font-weight: 600; }
.f-desc { font-size: 1.15rem; color: var(--text-low); }

/* Checklists */
.feature-list { list-style: none; margin-top: 25px; }
.feature-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; font-size: 1.1rem; color: var(--text-high); }
.feature-list i { color: var(--brand-gold); font-style: normal; font-weight: 800; }

/* Flow Steps */
.flow-steps {
    background: #f1f5f9;
    border-left: 3px solid var(--brand-blue);
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 12px 12px 0;
}
.flow-steps p { font-weight: 600; color: var(--text-high); margin-bottom: 5px; font-size: 0.95rem; }

/* Highlights Section */
.highlights-section { padding: 100px 0; }
.centered { text-align: center; margin-bottom: 50px; }
.highlights-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.h-card { background: #fff; border: 1px solid var(--border); padding: 30px; border-radius: 20px; transition: 0.3s; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.h-card:hover { border-color: var(--brand-blue); transform: translateY(-5px); box-shadow: var(--shadow); }
.h-card h4 { color: var(--text-high); font-size: 1.2rem; margin-bottom: 15px; }
.h-card p { font-size: 0.95rem;  }


/* ==========================================================================
   6. Solutions Specific Page Styles
   ========================================================================== */
.solution-hero {
    position: relative;
    margin: 100px 25px 40px; 
    padding: 300px 40px; 
    background-size: 100% 100%;
    background-position: center;
    text-align: center;
    color: #fff;
    border-radius: 30px; 
    overflow: hidden; 
    border: 1px solid var(--border);
}
.solution-hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.5));
    z-index: 1;
}
.solution-hero .container { position: relative; z-index: 2; }

.sol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 80px 0; }
.sol-card { background: #fff; border: 1px solid var(--border); border-radius: 24px; overflow: hidden; transition: 0.3s ease; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.sol-card:hover { border-color: var(--brand-blue); transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.sol-card-img { width: 100%; height: 500px; background: #f1f5f9; object-fit: cover; }

.sol-card-body { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }
.sol-card-body h4 { color: var(--text-high); font-size: 1.4rem; margin-bottom: 10px; }
.sol-card-body span { color: var(--brand-blue); font-size: 0.9rem; font-weight: 700; text-transform: uppercase; margin-bottom: 15px; display: block;}
.sol-card-body p { font-size: 1rem; color: var(--text-low);  margin-bottom: 25px; }

.btn-learn { margin-top: auto; color: var(--brand-blue); text-decoration: none; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.section-title-alt { text-align: center; font-size: 2.5rem; color: var(--text-high); margin-top: 80px; }


/* ==========================================================================
   7. Contact Page Specifics
   ========================================================================== */
.contact-section { padding-bottom: 80px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; margin-top: 50px; }
.contact-card { background: #fff; border: 1px solid var(--border); padding: 40px; border-radius: 24px; transition: 0.3s ease; box-shadow: var(--shadow); }
.contact-card:hover { border-color: var(--brand-blue); }

.card-emoji { font-size: 2rem; margin-bottom: 20px; }
.contact-card h3 { color: var(--text-high); font-size: 1.5rem; margin-bottom: 15px; }
.contact-card p { color: var(--text-low); margin-bottom: 20px; font-size: 1rem; }
.card-links a { display: block; color: var(--brand-blue); text-decoration: none; font-weight: 600; margin-bottom: 8px; font-size: 1.1rem; }

/* Special Office Card Layout */
.office-card { grid-column: span 2; display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; align-items: center; }
.office-hours { color: var(--text-low); font-size: 0.9rem; margin-top: 10px; }

.bottom-cta { padding: 80px 0; background: #f1f5f9; border-top: 1px solid var(--border); }
.bottom-cta h3 { color: var(--text-high); font-size: 1.8rem; margin-bottom: 30px; }


/* ==========================================================================
   8. Modals / Interactive Popups
   ========================================================================== */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(8px); z-index: 10000;
    justify-content: center; align-items: center; padding: 20px;
}
.modal-content { background: #fff; border: none; width: 100%; max-width: 900px; border-radius: 24px; position: relative; overflow: hidden; animation: slideUp 0.4s ease-out; box-shadow: 0 30px 60px rgba(0,0,0,0.2); }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal { position: absolute; top: 20px; right: 20px; background: none; border: none; color: var(--text-high); font-size: 2rem; cursor: pointer; z-index: 10; }
.modal-grid { display: grid; grid-template-columns: 1fr 1.2fr; }
.modal-info { padding: 50px; background: #f8fafc; border-right: 1px solid var(--border); }
.modal-info h2 { color: var(--text-high); font-size: 2.2rem; margin-bottom: 20px; }
.modal-bullets { list-style: none; margin: 30px 0; }
.modal-bullets li { margin-bottom: 15px; display: flex; gap: 15px; color: var(--text-high); font-weight: 500; }
.modal-form-container { padding: 50px; }

/* Forms Configuration */
.form-group { margin-bottom: 15px; position: relative; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

input, textarea, select {
    width: 100%; padding: 14px; background: #fff; border: 1px solid #cbd5e1;
    border-radius: 8px; color: var(--text-high); font-family: inherit; transition: 0.3s;
}
input:focus { border-color: var(--brand-blue); outline: none; }
input.invalid { border-color: #ef4444 !important; background: rgba(239, 68, 68, 0.05); }

.form-message { margin-top: 15px; font-size: 0.9rem; text-align: center; }
.form-message.success { color: #10b981; }
.form-message.error { color: #ef4444; }


/* ==========================================================================
   9. Footer
   ========================================================================== */
.footer { background: #0f172a; padding: 100px 0 40px; border-top: 1px solid var(--border); color: #fff; }

.footer-cta-box {
    background: var(--brand-blue);
    border-radius: 30px;
    padding: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 80px;
    text-align: left;
}
.footer-cta-text h2 { font-size: 2.5rem; color: #fff; margin-bottom: 10px; }
.footer-cta-text p { font-size: 1.2rem; color: rgba(255,255,255,0.9); }

.footer-main { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-tagline { margin-top: 15px; color: #94a3b8; font-size: 0.95rem; }
.footer-links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.footer-col h4 { color: var(--brand-gold); margin-bottom: 25px; font-size: 1.1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #cbd5e1; text-decoration: none; transition: 0.3s; font-size: 0.95rem; }
.footer-col ul li a:hover { color: #fff; }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 40px; color: #94a3b8; font-size: 0.85rem; }
.footer-legal a { color: #94a3b8; text-decoration: none; margin-left: 20px; }


/* ==========================================================================
   10. RTL Alignment Rules
   ========================================================================== */
/* [dir="rtl"] .f-card { flex-direction: row-reverse; }
[dir="rtl"] .f-card.reverse { flex-direction: row; } */
[dir="rtl"] .dropdown-content { right: 0; left: auto; }
[dir="rtl"] .office-card { grid-template-columns: 1fr 1.5fr; }
[dir="rtl"] .footer-cta-box { text-align: right; }
[dir="rtl"] .footer-legal a { margin-left: 0; margin-right: 20px; }
[dir="rtl"] .hero, [dir="rtl"] .f-info { text-align: center; }
[dir="rtl"] .btn-learn i { transform: rotate(180deg); }


/* ==========================================================================
   11. Media Queries / Responsiveness
   ========================================================================== */
/* @media (max-width: 1240px) {
    .solution-hero { margin-left: 20px; margin-right: 20px; }
}

@media (max-width: 992px) {
    .f-card, .f-card.reverse { flex-direction: column; text-align: center; gap: 40px; }
    .hero-title { font-size: 2.8rem; }
    .stats-grid { grid-template-columns: 1fr; margin-top: 20px; }
    .footer-cta-box { flex-direction: column; text-align: center; gap: 30px; padding: 40px; }
    .highlights-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-main { grid-template-columns: 1fr; gap: 40px; }
    .footer-links-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
    .office-card { grid-column: span 1; grid-template-columns: 1fr; }
    .hero-btns { flex-direction: column; align-items: stretch; }
    .solution-hero { margin: 80px 10px 20px; border-radius: 20px; padding: 80px 20px; }
    .modal-grid { grid-template-columns: 1fr; }
    .modal-info { display: none; }
}

@media (max-width: 600px) {
    .highlights-grid { grid-template-columns: 1fr; }
} */

@media (max-width: 768px) {
    .container, .modal-content, .container-min-width {zoom: 45%;}
    .hero {padding: 80px 0 80px;}
    .features-rows {padding: 80px 0;}
    .page-header {padding: 80px 0 60px;}
    .q-link {padding: 3% 3%;}
    .container-min-width {padding: 0 25px;}
    .placeholder-img {height: 400px;}
}