/* ==========================================================================
   MASTER STYLE.CSS - EDUDELPHI (Final v27.0 - Alignment Fixes)
   1. Core Resets & Variables
   2. Header & Hero Section (FIXED ALIGNMENT)
   3. Body Components
   4. Feature Grids
   5. Footer Complex
   6. Popup Modal
   7. Responsive Fixes
   ========================================================================== */

/* Import Premium Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* =========================================
   1. CORE VARIABLES & RESET
   ========================================= */
:root {
    /* Premium Palette */
    --navy: #0f172a;       /* Deep Header/Footer BG */
    --navy-light: #1e293b; 
    --gold: #f59e0b;       /* Primary Action Color */
    --gold-hover: #d97706;
    --blue: #0ea5e9;       /* Secondary Accent */
    --slate-light: #f8fafc;
    --text-main: #334155;
    --text-muted: #64748b;
    --white: #ffffff;
    
    /* Footer variables */
    --edf-bg-dark: #0f172a;
    --edf-bg-darker: #020617;
    --edf-bg-cta: #1e293b;
    --edf-text: #e9eef5;
    --edf-text-dim: #94a3b8;
    --edf-border: #1e293b;
    
    --radius: 12px;
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

html {
    font-family: 'Inter', "Open Sans", sans-serif;
    font-size: 62.5% !important; /* 1rem = 10px */
    -webkit-text-size-adjust: 100%;
}

body {
    font-size: 1.6rem !important; /* 16px Base */
    color: var(--text-main);
    background-color: var(--slate-light);
    line-height: 1.6;
    margin: 0;
}

*, *:before, *:after {
    -webkit-box-sizing: border-box !important;
    -moz-box-sizing: border-box !important;
    box-sizing: border-box !important;
}

h1, h2, h3, h4, h5, h6, .entry-title, .section-title {
    font-family: 'Inter', sans-serif !important;
    color: var(--navy) !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

p { margin-bottom: 1.5rem; }
a { color: var(--gold); text-decoration: none; transition: 0.3s; }
a:hover { color: var(--navy); }
img { max-width: 100%; height: auto; }

/* GLOBAL CONTAINER */
.container, .edf-container {
    padding-right: 15px; 
    padding-left: 15px; 
    margin-right: auto; 
    margin-left: auto;
    width: 100%;
}

/* =========================================
   2. HEADER & HERO (FIXED ALIGNMENT)
   ========================================= */

/* 2.1 Top Bar Fix (Visibility & Flex) */
#top-header {
    background-color: var(--navy) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    padding: 10px 0 !important;
    height: auto !important; /* Overrides inline 35px */
    min-height: 45px;
    display: flex;
    align-items: center;
}

/* Convert the inline floated divs into a Flex Grid */
#top-header > div {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

/* Individual Top Bar Items */
#top-header > div > div {
    float: none !important;
    width: auto !important;
    display: inline-flex !important;
    align-items: center;
}

#top-header a {
    color: rgba(255,255,255,0.8) !important;
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.5; /* Prevents text cutting */
    padding: 5px 0;
}
#top-header i { color: var(--gold) !important; margin-right: 6px; }
#top-header a:hover { color: #fff !important; }

/* 2.2 Navigation Fix (Right Alignment) */
.navbar {
    background: transparent !important;
    border: none !important;
    margin-bottom: 0 !important;
    min-height: 90px;
    padding-top: 15px;
}

/* Flex Container for Nav */
#masthead .navbar > .container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

/* Logo Area */
.navbar-header, #site-header-menu {
    float: none !important;
    flex: 0 0 auto;
}
.navbar-brand { padding: 5px 15px 5px 0; }

/* Menu Area - Force Right Alignment */
#site-navigation {
    flex: 1 1 auto;
    display: flex !important;
    justify-content: flex-end !important; /* Pushes menu to right */
    float: none !important;
}

.navbar-nav {
    float: none !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: row;
    gap: 5px;
}

.navbar-nav > li { float: none !important; }

.navbar-nav > li > a {
    color: #fff !important;
    font-weight: 600;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 15px 15px !important;
}
.navbar-nav > li > a:hover { color: var(--gold) !important; }

/* 2.3 Hero Wrapper */
.hero-section-wrapper {
    height: 650px !important;
    width: 100%;
    background-repeat: no-repeat;
    background-size: cover !important;
    background-position: center top !important;
    position: relative;
    border-bottom: none !important;
}

.course-banner-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.75) 100%);
    display: flex;
    flex-direction: column;
    padding-top: 0 !important;
}

/* 2.4 Hero Content */
.site-header-main {
    flex-grow: 1;
    display: flex;
    align-items: center;
    width: 100%;
}
.site-header-main header.container { padding: 0 !important; }

.entry-title {
    color: #fff !important;
    font-size: 4.8rem !important;
    line-height: 1.1;
    margin-bottom: 25px;
    text-shadow: none !important;
}
.entry-desc {
    color: #cbd5e1 !important;
    font-size: 1.8rem !important;
    font-weight: 400;
    max-width: 650px;
    line-height: 1.6;
}
.entry-desc h3 {
    color: var(--gold) !important;
    font-size: 1.6rem !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 25px;
}

/* 2.5 Hero Buttons */
.btn.button-download {
    border-radius: 50px !important;
    padding: 14px 35px !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    border: none !important;
    margin-top: 20px;
    margin-right: 15px;
    transition: 0.3s;
}
.btn.button-download[data-target="#ucs2"] {
    background-color: var(--gold) !important;
    color: var(--navy) !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}
.btn.button-download[data-target="#ucs2"]:hover {
    background-color: #fff !important;
    transform: translateY(-2px);
}
.btn.button-download[href*="wa.me"] {
    background-color: transparent !important;
    border: 2px solid rgba(255,255,255,0.3) !important;
    color: #fff !important;
}
.btn.button-download[href*="wa.me"]:hover {
    background-color: #fff !important;
    color: var(--navy) !important;
}

/* Floating Google Badge */
.col-lg-3 img {
    background: #fff;
    padding: 15px;
    border-radius: var(--radius);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* =========================================
   3. COMPONENTS
   ========================================= */
h2.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 50px;
}
h2.section-title:after {
    content: ""; display: block; width: 60px; height: 4px;
    background: var(--gold); margin: 15px auto 0; border-radius: 2px;
}

.nav-tabs {
    border: none;
    background: #fff;
    padding: 15px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    display: flex; justify-content: center; flex-wrap: wrap; gap: 10px;
    margin-bottom: 40px;
    margin-top: -40px; 
    position: relative; z-index: 10;
}
.nav-tabs > li { float: none; display: inline-block; margin: 0; }
.nav-tabs > li > a {
    border: 1px solid #f1f5f9;
    background: var(--slate-light);
    color: var(--text-main);
    border-radius: 50px;
    font-weight: 600;
    padding: 10px 25px;
    font-size: 1.4rem;
}
.nav-tabs > li.active > a, .nav-tabs > li > a:hover {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

.cat-course-box {
    background: #fff !important;
    padding: 25px 25px 5px 25px !important;
    border: 1px solid #e2e8f0; border-bottom: none;
    border-radius: var(--radius) var(--radius) 0 0 !important;
    border-top: 4px solid var(--gold) !important;
}
.cat-course-box p:first-child { 
    color: var(--navy) !important; font-size: 2rem !important; font-weight: 800; 
}
.cat-course-box p:last-child {
    color: var(--text-muted) !important; font-size: 1.3rem !important;
}
.home-cat-course-content {
    background: #fff !important;
    border: 1px solid #e2e8f0; border-top: none;
    border-radius: 0 0 var(--radius) var(--radius) !important;
    padding: 0 25px 25px 25px !important;
    box-shadow: var(--shadow-card);
    margin-bottom: 30px;
    transition: 0.3s;
}
.col-lg-4:hover .home-cat-course-content {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.home-cat-course-content .btn {
    background: transparent !important;
    color: var(--blue) !important;
    font-weight: 700 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* =========================================
   4. FEATURE GRIDS (WHY DELPHI)
   ========================================= */
#why-delphi { background: #fff !important; padding: 80px 0 !important; }

#why-delphi .col-md-4 {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    margin-bottom: 40px;
}
#why-delphi .col-md-4 > div:first-child {
    width: 90px; height: 90px;
    background: #e0f2fe;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
    transition: 0.3s;
}
#why-delphi i { color: var(--blue) !important; font-size: 3.5rem !important; margin: 0 !important; }
#why-delphi .col-md-4:hover > div:first-child { background: var(--blue); transform: scale(1.1); }
#why-delphi .col-md-4:hover i { color: #fff !important; }
#why-delphi p[style*="font-size:1.8rem"] {
    font-size: 1.8rem !important; font-weight: 700 !important; color: var(--navy) !important; margin-bottom: 8px;
}

/* =========================================
   5. FOOTER COMPLEX
   ========================================= */
.section-corporate-hybrid {
    background-color: var(--slate-light);
    padding: 70px 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}
.section-corporate-hybrid .corp-header { margin-bottom: 50px; padding: 0 15px; text-align: center; }
.section-corporate-hybrid .section-title {
    color: var(--navy); font-size: 32px; font-weight: 700; margin-bottom: 10px;
}
.section-corporate-hybrid .section-subtitle {
    color: var(--text-muted); font-size: 16px; max-width: 700px; margin: 0 auto;
}
.marquee-wrapper { margin-bottom: 60px; position: relative; overflow: hidden; }
.marquee-track { display: flex; width: fit-content; animation: edScrollLogos 45s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }

.logo-card {
    background: #fff; width: 180px; height: 90px; margin: 0 15px;
    border-radius: 8px; display: flex; justify-content: center; align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.02);
    transition: all 0.3s ease; flex-shrink: 0;
}
.logo-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); }
.logo-card img {
    max-width: 70%; max-height: 50px; filter: grayscale(100%); opacity: 0.6; transition: 0.3s; width: auto;
}
.logo-card:hover img { filter: grayscale(0); opacity: 1; }
@keyframes edScrollLogos { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.section-corporate-hybrid .stats-wrapper { position: relative; z-index: 2; padding: 0 15px; }
.section-corporate-hybrid .stats-card {
    background: #fff; border-radius: 12px; padding: 40px;
    display: flex; justify-content: space-around; align-items: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06); max-width: 1000px; margin: 0 auto;
}
.section-corporate-hybrid .stat-item { text-align: center; flex: 1; border-right: 1px solid #eee; }
.section-corporate-hybrid .stat-item:last-child { border-right: none; }
.section-corporate-hybrid .stat-number {
    display: block; color: var(--gold); font-size: 36px; font-weight: 800; margin-bottom: 5px;
}
.section-corporate-hybrid .stat-label { color: var(--text-main); font-size: 15px; font-weight: 500; display: block; }
.section-corporate-hybrid .footer-note {
    margin-top: 30px; color: var(--text-muted); font-size: 14px; font-style: italic; text-align: center;
}

.section-countries { background-color: #fff; padding: 40px 0; border-top: 1px solid #eee; }
.section-countries .section-title { text-align: center; margin-bottom: 30px; }
.flags-grid {
    display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: 15px;
    overflow-x: auto; padding-bottom: 5px; -webkit-overflow-scrolling: touch;
}
.flags-grid::-webkit-scrollbar { height: 0px; width: 0px; background: transparent; }
.flag-item {
    flex: 0 0 auto; width: 100px; height: 65px; position: relative;
    border-radius: 4px; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background: #fff; transition: transform 0.2s ease;
}
.flag-item:hover { transform: translateY(-3px); }
.flag-link { display: block; width: 100%; height: 100%; position: relative; }
.flag-img-wrap { width: 100%; height: 100%; background: #f9f9f9; }
.flag-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flag-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.9); display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.flag-name { color: #fff; font-size: 1.1rem; font-weight: 700; text-transform: uppercase; text-align: center; line-height: 1.2; padding: 2px; }
.flag-item:hover .flag-overlay { opacity: 1; }

.edf-footer-cta, .contact-bottom {
    background: linear-gradient(180deg, var(--edf-bg-cta), var(--edf-bg-dark));
    padding: 28px 0;
    border-top: 1px solid var(--edf-border);
    color: #fff;
    width: 100%;
    float: left;
}
.edf-cta-grid, .contact-bottom .container {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; align-items: center;
    max-width: 1200px; margin: 0 auto; width: 100%;
}
.edf-cta-title, .cta-title {
    margin: 0; font-weight: 800 !important; text-transform: uppercase; letter-spacing: .6px;
    color: #ffffff !important; font-size: clamp(16px, 1.6vw, 20px);
}
.edf-cta-buttons, .cta-buttons {
    display: flex; gap: 12px; justify-content: flex-end; align-items: center; flex-wrap: nowrap;
}
.edf-btn, .btn.btn-outline, .edf-btn-outline {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px;
    font-weight: 700; line-height: 1; border: 1px solid #3a5775; text-decoration: none; color: #fff !important;
    white-space: nowrap; transition: 0.3s; background: transparent; font-size: 1.3rem;
}
.edf-btn:hover, .btn.btn-outline:hover, .edf-btn-outline:hover {
    background: var(--gold); border-color: var(--gold); color: var(--navy) !important; transform: translateY(-1px);
}
.edf-ico, .btn.btn-outline i { width: 18px; height: 18px; fill: currentColor; flex: 0 0 18px; margin-right: 5px; color: var(--gold); }

.edf-footer, .site-footer {
    background: var(--edf-bg-dark); color: var(--edf-text); padding: 42px 0 0; clear: both;
}
.site-footer .container, .edf-footer .container, .edf-container {
    max-width: 1200px; margin: 0 auto; padding-left: 15px; padding-right: 15px;
}
.edf-widgets-grid { display: grid; gap: 28px; grid-template-columns: repeat(4, 1fr); }
.edf-footer-col { min-width: 0; }

.edf-footer .widget-title, .edf-footer .widget h3, .edf-footer .widget h4, .footer-aside h3.widget-title {
    margin: 0 0 12px; color: var(--gold) !important; font-weight: 800; font-size: 18px; letter-spacing: .2px;
    border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; display: block; width: 100%; list-style: none !important;
}
.edf-footer .widget-title::before, .edf-footer .widget h3::before, .edf-footer .widget h4::before { content: none !important; }
.edf-footer .widget ul, .footer-aside ul { list-style: none !important; margin: 0; padding: 0; }
.edf-footer .widget li, .footer-aside ul li {
    margin: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 8px; list-style: none !important;
}
.edf-footer a, .footer-aside ul li a { color: var(--edf-text-dim); text-decoration: none; font-size: 1.4rem; }
.edf-footer a:hover, .footer-aside ul li a:hover { color: #fff; padding-left: 5px; }

.edf-copyright, .copyright-area {
    background: var(--edf-bg-darker); margin-top: 36px; padding: 22px 0; border-top: 1px solid var(--edf-border);
}
.copyright-area .container { max-width: 1200px; margin: 0 auto; }
.edf-accreditation, .accreditation-logos {
    display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap;
    background: #fff; padding: 15px 40px; border-radius: 50px; margin: 0 auto 20px; color: #334155;
}
.edf-accreditation span { color: #334155 !important; font-weight: 500; font-size: 1.2rem; }
.edf-accreditation ul, .accreditation-logos ul, .edf-accreditation p, .accreditation-logos p {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin: 0; padding: 0; list-style: none;
}
.edf-accreditation li, .accreditation-logos li { list-style: none; margin: 0; padding: 0; }
.edf-accreditation li::marker, .accreditation-logos li::marker, .edf-accreditation li::before, .accreditation-logos li::before { content: none !important; }
.edf-accreditation br, .accreditation-logos br { display: none !important; }
.edf-accreditation img, .accreditation-logos img {
    height: 30px; width: auto; display: block; filter: grayscale(100%); opacity: .8; transition: .2s;
}
.edf-accreditation img:hover, .accreditation-logos img:hover { filter: none; opacity: 1; transform: scale(1.1); }
.edf-copytext, .copyright-text { text-align: center; color: var(--edf-text-dim); font-size: 14px; }

/* =========================================
   6. POPUP MODAL
   ========================================= */
.form-imp {
    display: none !important;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    z-index: -9999;
}   
   
.delphi-popup-overlay {
    display: none; position: fixed; inset: 0; background: rgba(5, 10, 25, 0.78); z-index: 99999;
    align-items: center; justify-content: center; padding: 16px; box-sizing: border-box;
}
.delphi-popup-overlay.is-open { display: flex !important; }
body.delphi-modal-open { overflow: hidden; }

.delphi-popup-modal {
    position: relative; max-width: 980px; width: 100%; background: #ffffff; border-radius: 26px; overflow: hidden;
    display: flex; flex-wrap: wrap; box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35); animation: delphiFadeIn 0.3s ease-out forwards; text-align: left;
}
@keyframes delphiFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.delphi-popup-close {
    position: absolute; top: 14px; right: 16px; background: #ffffff !important; border-radius: 999px; width: 32px; height: 32px;
    border: none !important; font-size: 22px; line-height: 32px; text-align: center; cursor: pointer; color: #111; z-index: 10;
}
.delphi-popup-close:hover { background: #f2f4f8 !important; }

.delphi-popup-left {
    flex: 0 0 50%; min-width: 280px; padding: 30px 30px 26px; box-sizing: border-box;
    color: #ffffff; background: #022845; position: relative; overflow: hidden;
}
.delphi-popup-left::before {
    content: ""; position: absolute; top: -60px; left: -40px; width: 260px; height: 260px; border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 180, 26, 0.45), transparent 60%); opacity: 0.8; pointer-events: none;
}
.delphi-popup-left::after {
    content: ""; position: absolute; bottom: -80px; right: -70px; width: 230px; height: 230px; border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.08); pointer-events: none;
}
.delphi-popup-left .eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; opacity: 0.9; margin-bottom: 0; }
.delphi-popup-title {
    margin: 8px 0 6px !important; font-size: 28px !important; font-weight: 800 !important; letter-spacing: 0.02em; line-height: 1.2 !important; color: #fff !important;
}
.delphi-popup-title span { color: #ffe27a; }
.delphi-popup-subtitle { margin: 0 0 18px !important; font-size: 14px; line-height: 1.6; opacity: 0.96; max-width: 360px; color: #fff; }
.delphi-trust-card {
    margin-top: 10px; padding: 12px 14px 13px; border-radius: 20px; background: rgba(0, 0, 0, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.22); max-width: 390px; backdrop-filter: blur(4px);
}
.delphi-trust-headline { font-size: 12px; margin: 0 0 8px; color: #fff; }
.trust-metrics { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.trust-box {
    flex: 1 1 150px; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 6px 9px;
    border-radius: 14px; background: rgba(255, 255, 255, 0.97); color: #111827;
}
.trust-box-label strong { font-size: 12px; display: block; color: #111; }
.trust-box-label span { font-size: 11px; color: #4b5563; }
.trust-box img, .khda-logo-wrap img, .mobile-trust-item img { max-height: 35px; width: auto; object-fit: contain; }
.g-logo-circle {
    width: 22px; height: 22px; border-radius: 999px; background: #ffffff; display: flex; align-items: center;
    justify-content: center; font-size: 13px; font-weight: 700; color: #4285f4; border: 1px solid #d1d5db; flex-shrink: 0;
}

.delphi-popup-right { flex: 0 0 50%; min-width: 280px; padding: 34px 32px 26px; box-sizing: border-box; background: #ffffff; }
.delphi-popup-form-title { margin: 6px 0 18px !important; font-size: 24px !important; font-weight: 700 !important; color: #111827 !important; }
.delphi-popup-form { display: flex; flex-direction: column; gap: 13px; }
.delphi-popup-form label { font-size: 13px; font-weight: 600; color: #374151; margin: 0; }
.delphi-popup-form input[type="text"], .delphi-popup-form input[type="email"], .delphi-popup-form input[type="tel"], .delphi-popup-form select {
    background: #f9fafb !important; border: 1px solid #d1d5db !important; border-radius: 999px !important;
    padding: 11px 14px !important; font-size: 14px !important; width: 100%; color: #111; box-shadow: none; height: auto;
}
.delphi-popup-form textarea {
    background: #f9fafb !important; border: 1px solid #d1d5db !important; border-radius: 14px !important;
    padding: 11px 14px !important; font-size: 14px !important; width: 100%; min-height: 80px; resize: vertical;
}
.delphi-popup-form input:focus, .delphi-popup-form textarea:focus { border-color: #004a80 !important; background: #ffffff !important; outline: none; }
.delphi-popup-form .phone-wrap {
    display: flex; align-items: stretch; border-radius: 999px; border: 1px solid #d1d5db; background: #f9fafb; overflow: hidden;
}
.delphi-popup-form .country-code {
    padding: 0 12px; display: flex; align-items: center; font-size: 13px; white-space: nowrap;
    background: #eef2ff; border-right: 1px solid #d1d5db; color: #1f2937; font-weight: 500;
}
.delphi-popup-form .phone-wrap input[type="tel"] { border: none !important; background: transparent !important; }
.delphi-popup-form .delphi-popup-submit {
    width: 100%; border: none; border-radius: 999px; padding: 12px 18px !important; font-size: 15px !important;
    font-weight: 700 !important; cursor: pointer; background: linear-gradient(90deg, #f4b41a 0%, #f7c853 60%, #e3a910 100%) !important;
    color: #111827 !important; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.23); text-transform: none !important; margin-top: 10px;
}
.delphi-popup-form .delphi-popup-submit:hover { transform: translateY(-1px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28); }
.privacy-note { font-size: 11px; color: #6b7280; text-align: center; margin-top: 8px; }


.widgettitle {color: #fff !important;} 
.mobile-header { display: none; }
@media (max-width: 768px) {
    .delphi-popup-modal { flex-direction: column; max-width: 420px; border-radius: 20px; }
    .delphi-popup-left { display: none; }
    .delphi-popup-right { padding: 18px 16px 16px; }
    .delphi-popup-form-title { display: none !important; } 
    .mobile-header { display: block; margin-bottom: 6px; }
    .mobile-header-title { font-size: 20px; font-weight: 700; color: #111827; margin: 4px 0 10px; }
    .mobile-trust-row { display: flex; gap: 8px; margin-bottom: 12px; }
    .mobile-trust-item { 
        display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px;
        border-radius: 999px; background: #f3f4f6; font-size: 11px; color: #374151; 
    }
}

/* =========================================
   7. RESPONSIVE FIXES
   ========================================= */
@media (min-width: 1200px) { .container, .edf-container { width: 1200px; margin: 0 auto; } }

@media (max-width: 991px) {
    /* Header */
    .navbar-collapse { background: var(--navy); padding: 20px; margin-top: 10px; border-radius: 12px; z-index: 999; }
    .hero-section-wrapper { height: auto !important; padding: 60px 0; }
    .entry-title { font-size: 3.6rem !important; text-align: center; }
    .entry-desc { text-align: center; margin: 0 auto; }
    .col-lg-9, .col-lg-3 { width: 100%; text-align: center; }
    
    /* Footer Mobile */
    .section-corporate-hybrid .stats-card { flex-direction: column; padding: 30px; gap: 30px; }
    .section-corporate-hybrid .stat-item { border-right: none; border-bottom: 1px solid #eee; padding-bottom: 20px; width: 100%; }
    .section-corporate-hybrid .stat-item:last-child { border-bottom: none; }
    
    /* Contact Bar Mobile */
    .contact-bottom .container, .edf-cta-grid { grid-template-columns: 1fr; text-align: center; gap: 20px; display: block; }
    .cta-buttons, .edf-cta-buttons { justify-content: center; margin-top: 15px; flex-wrap: wrap; }
    
    /* Widget Grid Mobile */
    .edf-widgets-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-aside { margin-bottom: 30px; }
}

@media (max-width: 767px) {
    /* Top Header */
    #top-header > div > div { width: 100% !important; justify-content: center; }
    #top-header a { font-size: 1.2rem; }
    
    .hidden-xs { display: none !important; }
    .btn.button-download { width: 100%; margin-right: 0; }
    .flags-grid { justify-content: flex-start; } 
    .edf-widgets-grid { grid-template-columns: 1fr; }
}

/* Fix phone input padding after removing +971 */
.delphi-popup-form .phone-wrap input[type="tel"],
.delphi-popup-form .phone-wrap input[type="text"] {
    padding-left: 15px !important; /* Resets the padding to normal */
}

/* Hide the old country code span just in case it's still cached */
.delphi-popup-form .country-code {
    display: none !important;
}


/* =========================================
   1. GLOBAL FIXES & UTILITIES
   ========================================= */
.entry-content table {
    width: 100%;
    margin-bottom: 25px;
    border-collapse: collapse;
    border: 1px solid #ddd;
}
.entry-content table th, .entry-content table td {
    padding: 15px;
    border: 1px solid #ddd;
    text-align: left;
}
.entry-content table th {
    background-color: #0c1c2c;
    color: #fff;
    font-weight: 600;
}
.entry-content table tr:nth-child(even) {
    background-color: #f9fbfd;
}
.navbar-brand img {
    height: auto;
    max-height: 70px;
    width: auto;
}
.nav-links {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
}

/* =========================================
   2. ARTICLE TYPOGRAPHY (Wide Layout)
   ========================================= */
.edudelphi-article-body {
    font-size: 18px; 
    line-height: 1.8;
    color: #2c3e50;
}
.edudelphi-article-body p {
    margin-bottom: 25px;
}
.edudelphi-article-body h2 {
    font-size: 28px;
    color: #0c1c2c;
    margin-top: 50px;
    margin-bottom: 20px;
    font-weight: 700;
    border-left: 5px solid #FBBB27;
    padding-left: 20px;
}
.edudelphi-article-body h3 {
    font-size: 24px;
    color: #333;
    margin-top: 40px;
    font-weight: 600;
}
.edudelphi-article-body ul, .edudelphi-article-body ol {
    margin-bottom: 25px;
    padding-left: 25px;
}
.edudelphi-article-body li {
    margin-bottom: 12px;
}
.tagcloud a {
    display: inline-block;
    background: #f1f1f1;
    padding: 6px 18px;
    border-radius: 20px;
    color: #555;
    text-decoration: none;
    margin-right: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    transition: all 0.2s ease;
}
.tagcloud a:hover {
    background: #0c1c2c;
    color: #fff;
}

/* =========================================
   3. COMMENT SECTION (Wide Grid)
   ========================================= */
#comments-wrapper { margin-top: 60px; }
.comment-respond {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 4px;
    border-left: 4px solid #0c1c2c;
}
.comment-reply-title {
    font-size: 24px;
    font-weight: 600;
    color: #0c1c2c;
    margin-bottom: 30px;
    display: block;
}
.comment-form {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}
.comment-notes, .comment-form-comment, .form-submit, .comment-form-cookies-consent {
    width: 100%;
    padding: 0 15px;
}
.comment-form-author, .comment-form-email, .comment-form-url {
    width: 33.33%;
    float: left;
    padding: 0 15px;
}
@media (max-width: 768px) {
    .comment-form-author, .comment-form-email, .comment-form-url { width: 100%; }
}
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    background: #fff;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.3s;
}
.comment-form input:focus, .comment-form textarea:focus {
    border-color: #FBBB27;
    outline: none;
}
.comment-form textarea { height: 150px; }
.comment-form .submit {
    background: #0c1c2c;
    color: #fff;
    padding: 12px 40px;
    border: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}
.comment-form .submit:hover {
    background: #FBBB27;
    color: #000;
}

/* =========================================
   4. BLOG INDEX (Card List Layout)
   ========================================= */
@media (max-width: 768px) {
    .blog-card { flex-direction: column; }
    .blog-card-img { width: 100% !important; height: 200px !important; }
    .blog-card-content { width: 100% !important; }
    .blog-header h1 { font-size: 32px !important; }
}
.blog-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
    transform: translateY(-3px);
    border-color: #FBBB27 !important;
}
.clean-list li a:hover {
    background: #0c1c2c !important;
    color: #fff !important;
}
.blog-pagination .nav-links {
    display: inline-block;
    padding: 10px;
    background: #fff;
    border-radius: 50px;
    border: 1px solid #e1e8ed;
}
.blog-pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 2px;
    color: #0c1c2c;
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}
.blog-pagination .page-numbers.current, .blog-pagination .page-numbers:hover {
    background: #0c1c2c;
    color: #fff;
}