/* ==========================================================================
   Qaboul CSS Style Sheet (RTL Premium Design)
   ========================================================================== */

/* Design Tokens & Variables */
:root {
    --primary: #121f3d;       /* Brand Royal Navy */
    --primary-light: #1e2f56;
    --secondary: #ffb81c;     /* Brand Yellow Gold */
    --secondary-dark: #dca018;
    --accent: #ffb81c;        /* Accent matches Brand Gold */
    
    --bg-main: #f8fafc;       /* Light Slate Background */
    --bg-card: rgba(255, 255, 255, 0.85); /* Glassmorphism Card Bg */
    --bg-dark: #0f1f38;       /* Brand Navy Dark Background */
    
    --text-main: #1e293b;     /* Dark Slate Text */
    --text-muted: #64748b;    /* Slate Gray Text */
    --text-light: #ffffff;
    
    --border-color: rgba(226, 232, 240, 0.8);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    
    --font-ar: 'Cairo', 'Tajawal', sans-serif;
    --font-en: 'Outfit', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

/* Base Styles & Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-ar);
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    scroll-margin-top: 100px; /* Offset for sticky header */
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.7;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Headings */
h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
}

/* Glassmorphism utility */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.card-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(255,255,255,0) 70%);
    top: -125px;
    right: -125px;
    pointer-events: none;
    z-index: 0;
    transition: var(--transition);
}

.glass-card:hover .card-glow {
    transform: translate(-30px, 30px);
}

/* Typography Helper */
.font-digit {
    font-family: var(--font-en) !important;
    direction: ltr !important;
}

/* Top Banner styling */
.top-banner {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 10px 16px;
    text-align: center;
    font-size: 13.5px;
    font-weight: 600;
}
.top-banner p {
    margin: 0;
    line-height: 1.5;
    word-wrap: break-word;
}
.top-banner i {
    color: var(--secondary);
    margin-left: 6px;
}

/* Navbar Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    user-select: none;
}
.logo-img {
    height: 44px;
    width: 44px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1.5px solid var(--secondary);
    box-shadow: 0 0 10px rgba(255, 184, 28, 0.25);
    background-color: var(--primary);
}
.logo-brand-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}
.logo-text {
    font-family: var(--font-ar);
    font-weight: 850;
    font-size: 24px;
    letter-spacing: -0.2px;
    color: var(--primary);
}
.logo-tag {
    font-family: var(--font-en);
    font-size: 11px;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}
.nav-links a {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    position: relative;
    padding: 8px 0;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}
.nav-links a:hover::after {
    width: 100%;
}
.nav-links a:hover {
    color: var(--secondary);
}

/* Buttons */
.btn-primary {
    background-color: var(--secondary);
    color: var(--primary);
    font-weight: 700;
    padding: 16px 36px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}
.btn-primary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.nav-links a.btn-primary-small {
    background-color: var(--secondary) !important;
    color: var(--primary) !important;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    border: none;
    cursor: pointer;
    font-size: 14.5px;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(255, 184, 28, 0.25);
    text-decoration: none !important;
}
.nav-links a.btn-primary-small::after {
    display: none !important;
}
.nav-links a.btn-primary-small:hover {
    background-color: var(--secondary-dark) !important;
    color: var(--primary) !important;
    transform: translateY(-1.5px);
    box-shadow: 0 6px 15px rgba(255, 184, 28, 0.4);
}

.btn-secondary {
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 700;
    padding: 14px 34px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
}
.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--text-light);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    background: transparent;
    border: none;
    color: var(--primary);
    cursor: pointer;
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--text-light);
    z-index: 1000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s ease;
    visibility: hidden; /* Hide off-screen links from keyboard tab and touch focus */
}
.mobile-drawer.open {
    right: 0;
    visibility: visible;
}
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.drawer-close {
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
}
.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.drawer-link {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}
.btn-drawer {
    background-color: var(--secondary) !important;
    color: var(--primary) !important;
    text-align: center;
    border-radius: var(--radius-sm);
    border-bottom: none;
    margin-top: 20px;
    padding: 12px 20px !important;
    font-weight: 700;
}

/* Hero Section Styles */
.hero {
    padding: 80px 0 100px;
    background: linear-gradient(135deg, #eef5fc 0%, #ffffff 100%);
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.hero-badge {
    background-color: rgba(10, 37, 64, 0.08);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hero-badge i {
    color: var(--secondary);
}

.hero-content h1 {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.25;
}
.hero-content h1 span {
    color: var(--secondary);
    position: relative;
    display: inline-block;
}
.hero-content h1 span::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: rgba(212, 175, 55, 0.15);
    z-index: -1;
}

.hero-content p {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    width: 100%;
    margin-top: 10px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    width: 100%;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}
.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.stat-number {
    font-family: var(--font-en);
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
}
.stat-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.hero-visual {
    position: relative;
    z-index: 1;
}
.visual-card {
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.visual-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background-color: #ef4444; }
.dot.yellow { background-color: #eab308; }
.dot.green { background-color: #22c55e; }
.visual-header .title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    margin-right: 12px;
}

/* Flow list styling */
.flow-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}
.flow-list::after {
    content: '';
    position: absolute;
    top: 15px;
    bottom: 15px;
    right: 16px;
    width: 2px;
    background-color: var(--border-color);
    z-index: 0;
}
.flow-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    z-index: 1;
}
.step-num {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: var(--text-light);
    border: 2px solid var(--border-color);
    color: var(--text-muted);
    font-family: var(--font-en);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}
.flow-step.completed .step-num {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
}
.flow-step.active .step-num {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--text-light);
    box-shadow: 0 0 10px rgba(10, 37, 64, 0.3);
}
.step-details h3 {
    font-size: 15.5px;
    font-weight: 700;
    margin-bottom: 2px;
    transition: var(--transition);
}
.flow-step.active .step-details h3 {
    color: var(--secondary);
}
.step-details p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Sections Global Styling */
section {
    padding: 100px 0;
}
.section-header {
    margin-bottom: 60px;
    max-width: 650px;
}
.section-header.text-center {
    margin-left: auto;
    margin-right: auto;
}
.section-header h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
}
.section-header p {
    color: var(--text-muted);
    font-size: 16px;
}

/* Services Cards Section */
.services {
    background-color: var(--text-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 40px 30px;
    border-radius: var(--radius-md);
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(10, 37, 64, 0.15);
}
.service-icon {
    font-size: 32px;
    color: var(--primary);
    background-color: rgba(10, 37, 64, 0.05);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.service-card:hover .service-icon {
    background-color: var(--primary);
    color: var(--secondary);
}
.service-card h3 {
    font-size: 18px;
    font-weight: 700;
}
.service-card p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Featured / Highlight Service Card */
.service-card.highlight {
    background: linear-gradient(135deg, var(--primary) 0%, #0d1e36 100%);
    color: var(--text-light);
    border-color: transparent;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.service-card.highlight h3 {
    color: var(--text-light);
}
.service-card.highlight p {
    color: rgba(255, 255, 255, 0.7);
}
.service-card.highlight .service-icon {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--secondary);
}
.service-card.highlight:hover .service-icon {
    background-color: var(--secondary);
    color: var(--primary);
}

/* Interactive Country flags section */
.flags-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.flag-btn {
    background-color: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.flag-svg {
    width: 50px;
    height: 33px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.flag-btn span {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--primary);
}

.flag-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary);
}
.flag-btn:hover .flag-svg {
    transform: scale(1.08);
}

.flag-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
}
.flag-btn.active span {
    color: var(--text-light);
}
.flag-btn.active .flag-svg {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Country detail cards dashboard layout */
.country-details-card {
    padding: 40px;
    border-radius: var(--radius-lg);
}

.country-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 30px;
}
.country-details-header h3 {
    font-size: 24px;
    font-weight: 800;
}
.badge {
    background-color: var(--accent);
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
}

.country-details-body {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
}

.doc-checklist-wrapper h4, .country-info-pane h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.doc-checklist-wrapper h4 i { color: var(--accent); }
.country-info-pane h4 i { color: var(--secondary); }

/* Document custom lists */
.check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.check-list li {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text-main);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.check-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent);
    font-size: 12px;
    margin-top: 4px;
    flex-shrink: 0;
}

/* Notes Pane */
.notes-content {
    background-color: rgba(212, 175, 55, 0.05);
    border-right: 4px solid var(--secondary);
    padding: 20px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-main);
}
.notes-content p {
    margin-bottom: 10px;
}
.notes-content p:last-child {
    margin-bottom: 0;
}

/* Tuition Fees Calculator Section */
.calculator-section {
    background-color: var(--text-light);
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.calc-card {
    padding: 40px;
}
.calc-card h3 {
    margin-bottom: 24px;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.calc-card h3 i { color: var(--secondary); }

/* Custom Form elements styling */
.form-group {
    margin-bottom: 24px;
}
.form-group:last-child {
    margin-bottom: 0;
}
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary);
}
.form-control {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-main);
    color: var(--text-main);
    font-size: 15px;
    font-weight: 500;
    outline: none;
    transition: var(--transition);
}
.form-control:focus {
    border-color: var(--secondary);
    background-color: var(--text-light);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%250a2540' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: left 16px center;
}

/* Custom checkbox wrapper */
.inline-checkbox {
    display: flex;
    align-items: center;
}
.inline-checkbox input[type="checkbox"] {
    display: none;
}
.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px !important;
    font-weight: 600 !important;
    user-select: none;
}
.custom-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid var(--border-color);
    background-color: var(--bg-main);
    display: inline-block;
    position: relative;
    transition: var(--transition);
}
.inline-checkbox input[type="checkbox"]:checked + .checkbox-label .custom-checkbox {
    background-color: var(--secondary);
    border-color: var(--secondary);
}
.inline-checkbox input[type="checkbox"]:checked + .checkbox-label .custom-checkbox::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary);
    font-size: 11px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Results panel styles */
.calc-results-card {
    background-color: var(--primary);
    color: var(--text-light);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.calc-results-card h3 {
    color: var(--text-light);
    font-size: 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 16px;
}
.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.result-row .res-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}
.result-row .res-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-light);
}
.result-row .res-value.highlight-text {
    color: var(--accent);
    font-size: 20px;
}
.result-row.divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 5px 0;
}
.result-row.total-row {
    margin-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
}
.result-row.total-row .res-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-light);
}
.result-row.total-row .res-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--secondary);
}
.result-row.secondary-total {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
}
.result-row.secondary-total .res-label {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.5);
}
.result-row.secondary-total .res-value {
    font-size: 20px;
    color: var(--text-light);
}
.calc-warning {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 15px;
    line-height: 1.6;
}
.calc-warning i {
    color: var(--secondary);
    margin-left: 4px;
}

/* Student Housing section styling */
.housing-intro-card {
    padding: 30px 40px;
    margin-bottom: 50px;
}
.housing-intro-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}
.housing-intro-content ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.housing-intro-content li {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}
.housing-intro-content li i {
    color: var(--accent);
    font-size: 16px;
}

.housing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.apartment-card {
    background-color: var(--text-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}
.apartment-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(10, 37, 64, 0.15);
}

.apt-image-placeholder {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    font-size: 60px;
    position: relative;
}
.apt-image-placeholder span {
    font-family: var(--font-ar);
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary);
    background-color: rgba(10, 37, 64, 0.4);
    padding: 6px 14px;
    border-radius: 50px;
    backdrop-filter: blur(4px);
}

.apt-details {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.apt-tag {
    align-self: flex-start;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    background-color: rgba(212, 175, 55, 0.15);
    padding: 4px 10px;
    border-radius: 4px;
}

.apt-details h3 {
    font-size: 18px;
    font-weight: 700;
}

.apt-location {
    font-size: 13px;
    color: var(--text-muted);
}
.apt-location i {
    color: var(--secondary);
    margin-left: 4px;
}

.apt-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: var(--bg-main);
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-top: 5px;
}
.apt-features li {
    font-size: 12.5px;
    color: var(--text-main);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.apt-features li i {
    color: var(--primary);
    font-size: 14px;
}

.apt-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    margin-top: 10px;
}
.apt-price {
    font-size: 13.5px;
    color: var(--text-muted);
}
.apt-price strong {
    font-family: var(--font-en);
    font-size: 20px;
    color: var(--primary);
}

/* Why Qaboul Section styling */
.reassurance-section {
    background-color: var(--primary);
    color: var(--text-light);
}
.reassurance-section h2 {
    color: var(--text-light);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
}
.reassurance-section .lead-text {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.reassurance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.reassurance-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.r-icon {
    width: 72px;
    height: 72px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--secondary);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}
.reassurance-item h3 {
    color: var(--text-light);
    font-size: 18px;
    font-weight: 700;
}
.reassurance-item p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    max-width: 300px;
}

/* Brand Banner Billboard Section */
.brand-banner-section {
    padding: 0 0 60px 0;
}
.brand-banner-card {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--glass-border);
}
.brand-banner-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Vertical Brand Logo for form container */
.contact-logo-vertical {
    width: 90px;
    height: auto;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--secondary);
    box-shadow: 0 0 15px rgba(255, 184, 28, 0.25);
    background-color: var(--primary);
    align-self: flex-start;
}

/* Registration Leads Form Section */
.contact-card {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
}

.contact-content-info {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.contact-content-info h2 {
    color: var(--text-light);
    font-size: 28px;
    font-weight: 800;
}
.contact-content-info p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 20px;
}
.info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.info-item i {
    font-size: 24px;
    color: var(--secondary);
    margin-top: 4px;
}
.info-item h4 {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 2px;
}
.info-item a {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-en);
}
.info-item a:hover {
    color: var(--secondary);
}

.contact-form-wrapper {
    padding: 60px 50px;
}
.contact-form-wrapper h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.contact-form-wrapper h3 i { color: var(--secondary); }

.lead-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.btn-block {
    width: 100%;
    justify-content: center;
    height: 52px;
    font-size: 16px;
    margin-top: 10px;
}

/* Success Modal overlays styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(10, 37, 64, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}
.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    max-width: 480px;
    width: 90%;
    padding: 40px 30px;
    border-radius: var(--radius-md);
    transform: translateY(20px);
    transition: var(--transition);
}
.modal-overlay.open .modal-card {
    transform: translateY(0);
}

.modal-icon {
    font-size: 64px;
    color: var(--accent);
    margin-bottom: 20px;
}
.modal-card h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
}
.modal-card p {
    font-size: 14.5px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.8;
}

/* Sticky WhatsApp Action Bubble */
.whatsapp-sticky {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.5);
    z-index: 99;
    cursor: pointer;
    transition: var(--transition);
}
.whatsapp-sticky:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.7);
}

.tooltip-text {
    position: absolute;
    right: 70px;
    background-color: var(--primary);
    color: var(--text-light);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}
.whatsapp-sticky:hover .tooltip-text {
    opacity: 1;
    transform: translateX(0);
}

/* Footer Section styling */
.footer {
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 80px 0 0;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 0.8fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
}
.footer h4 {
    color: var(--text-light);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 24px;
}
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.footer-brand .logo-text {
    color: var(--text-light);
}
.footer-brand .logo-icon {
    color: var(--secondary);
}
.footer-brand p {
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-links a:hover {
    color: var(--secondary);
    padding-right: 4px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.footer-contact p i {
    color: var(--secondary);
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 0;
    font-size: 13px;
}


.flags-scroll-container {
    position: relative;
    width: 100%;
}

/* ==========================================================================
   Responsive Adaptations & Media Queries
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .hero-content {
        align-items: center;
        text-align: center;
    }
    .hero-badge {
        align-self: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .reassurance-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .flags-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    .nav-links {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .hero-content h1 {
        font-size: 32px;
    }
    .hero-visual {
        display: none !important; /* Hiding the tall visual flow step card on mobile to reduce scrolling */
    }
    .country-details-body {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .housing-intro-content ul {
        grid-template-columns: 1fr;
    }
    .contact-card {
        grid-template-columns: 1fr;
    }
    .contact-content-info {
        padding: 40px 24px;
    }
    .contact-form-wrapper {
        padding: 40px 24px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .lead-form .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .col-6 {
        width: 100% !important;
    }
    .form-control, select, input, textarea {
        font-size: 16px !important;
    }
    
    /* Swipeable Flags Carousel on Mobile */
    .flags-scroll-container {
        position: relative;
        width: 100%;
        margin-bottom: 30px;
    }
    
    /* Left fading edge overlay indicating there is more to scroll */
    .flags-scroll-container::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 12px; /* Align above the scrollbar track */
        left: 0;
        width: 40px;
        background: linear-gradient(to right, var(--bg-main) 0%, rgba(248, 250, 252, 0) 100%);
        pointer-events: none;
        z-index: 10;
    }

    .flags-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        gap: 12px;
        padding-bottom: 12px; /* Spacer for scrollbar */
        scrollbar-width: thin;
        scrollbar-color: var(--secondary) rgba(10, 37, 64, 0.05);
        width: 100%;
        box-sizing: border-box;
    }
    /* Custom Thin Scrollbar for Webkit browsers */
    .flags-grid::-webkit-scrollbar {
        display: block !important;
        height: 4px !important;
    }
    .flags-grid::-webkit-scrollbar-track {
        background: rgba(10, 37, 64, 0.05);
        border-radius: 10px;
    }
    .flags-grid::-webkit-scrollbar-thumb {
        background: var(--secondary);
        border-radius: 10px;
    }
    
    .flag-btn {
        flex: 0 0 100px !important; /* Fixed width to make them swipeable horizontally */
        scroll-snap-align: start;
        padding: 10px 6px !important;
        gap: 6px !important;
        box-sizing: border-box;
    }
    .flag-btn span {
        font-size: 11.5px !important;
        white-space: nowrap; /* Prevent label wrapping from forcing height expansion */
    }
    .flag-svg {
        width: 38px !important;
        height: 25px !important;
    }
    
    /* Services Accordion on Mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .service-card {
        display: grid !important;
        grid-template-columns: auto 1fr;
        align-items: center;
        column-gap: 15px;
        row-gap: 0;
        padding: 20px 45px 20px 20px !important; /* Leave room for arrow */
        cursor: pointer;
        position: relative;
    }
    .service-icon {
        grid-column: 1;
        grid-row: 1;
        width: 44px !important;
        height: 44px !important;
        font-size: 20px !important;
        margin: 0;
    }
    .service-card h3 {
        grid-column: 2;
        grid-row: 1;
        font-size: 15px !important;
        margin: 0;
        text-align: right;
    }
    .service-card p {
        grid-column: 1 / span 2;
        grid-row: 2;
        max-height: 0;
        overflow: hidden;
        margin: 0;
        opacity: 0;
        font-size: 13px !important;
        text-align: right;
        transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), margin-top 0.3s ease;
    }
    .service-card.expanded p {
        max-height: 150px;
        opacity: 1;
        margin-top: 10px;
    }
    /* Arrow Indicator for mobile services accordion */
    .service-card::after {
        content: '\f107';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        top: 32px;
        left: 20px;
        font-size: 18px;
        color: var(--text-muted);
        transition: transform 0.3s ease;
    }
    .service-card.expanded::after {
        transform: rotate(180deg);
        color: var(--secondary);
    }
    .service-card.highlight::after {
        color: rgba(255, 255, 255, 0.5);
    }
    .service-card.highlight.expanded::after {
        color: var(--secondary);
    }

    /* Apartments Accordion on Mobile */
    .housing-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .apartment-card {
        display: grid !important;
        grid-template-columns: 1fr;
        padding: 20px 20px 20px 45px !important; /* Leave room for arrow */
        cursor: pointer;
        position: relative;
        background-color: var(--text-light);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        transition: var(--transition);
        box-shadow: var(--shadow-sm);
    }
    /* Hide card details by default on mobile */
    .apartment-card .apt-image-placeholder, 
    .apartment-card .apt-features, 
    .apartment-card .apt-footer, 
    .apartment-card .apt-tag {
        max-height: 0;
        overflow: hidden;
        margin: 0;
        opacity: 0;
        padding: 0;
        border-top: none;
        transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), margin 0.3s ease, padding 0.3s ease;
    }
    .apartment-card .apt-details {
        padding: 0 !important;
        display: flex;
        flex-direction: column;
        gap: 4px;
        text-align: right;
    }
    .apartment-card .apt-details h3 {
        font-size: 15px !important;
        margin: 0;
        text-align: right;
    }
    .apartment-card .apt-location {
        font-size: 12px;
        margin: 0;
        text-align: right;
    }
    
    /* Expanded states for apartments accordion */
    .apartment-card.expanded .apt-image-placeholder {
        max-height: 150px;
        opacity: 1;
        margin-bottom: 12px;
        display: flex !important;
    }
    .apartment-card.expanded .apt-tag {
        max-height: 30px;
        opacity: 1;
        margin-bottom: 6px;
        padding: 4px 10px;
    }
    .apartment-card.expanded .apt-features {
        max-height: 150px;
        opacity: 1;
        margin-top: 10px;
        padding: 12px;
    }
    .apartment-card.expanded .apt-footer {
        max-height: 50px;
        opacity: 1;
        margin-top: 10px;
        padding-top: 12px;
        border-top: 1px solid var(--border-color);
    }
    
    /* Arrow Indicator for apartments accordion */
    .apartment-card::after {
        content: '\f107';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        top: 22px;
        left: 20px;
        font-size: 18px;
        color: var(--text-muted);
        transition: transform 0.3s ease;
    }
    .apartment-card.expanded::after {
        transform: rotate(180deg);
        color: var(--secondary);
    }

}

@media (max-width: 480px) {
    .logo-text {
        font-size: 20px !important;
    }
    .logo-icon {
        font-size: 22px !important;
    }
    .logo-tag {
        font-size: 11px !important;
    }
    .hero-content h1 {
        font-size: 26px;
        line-height: 1.35;
    }
    .hero-content p {
        font-size: 15px;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
    .hero-stats {
        flex-direction: row !important; /* Keep stat items side-by-side on mobile */
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        margin-top: 20px;
        padding-top: 20px;
    }
    .stat-item {
        flex: 1;
        align-items: center;
        text-align: center;
        gap: 2px;
    }
    .stat-number {
        font-size: 20px !important;
    }
    .stat-label {
        font-size: 10px !important;
        line-height: 1.35;
    }
    .calc-card, .calc-results-card, .country-details-card, .contact-form-wrapper, .contact-content-info, .visual-card {
        padding: 24px 16px !important; /* Prevent layout squishing by reducing card paddings */
    }
    .result-row .res-label {
        font-size: 12.5px;
    }
    .result-row .res-value {
        font-size: 15px;
    }
    .result-row.total-row .res-value {
        font-size: 24px !important;
    }
    .country-details-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 20px;
    }
    .country-details-header h3 {
        font-size: 20px;
    }
}

/* ==========================================================================
   Interactive Floating Tooltip Styles
   ========================================================================== */
.qaboul-tooltip {
    position: fixed;
    z-index: 9999;
    background: rgba(7, 20, 36, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    pointer-events: none;
    max-width: 250px;
    direction: rtl;
    text-align: right;
    opacity: 0;
    transform: translateY(8px) scale(0.95);
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.qaboul-tooltip.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Tooltip Arrow for Mobile Tap View */
.qaboul-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: rgba(7, 20, 36, 0.95) transparent;
    display: none;
}
.qaboul-tooltip.mobile-mode::after {
    display: block;
}

/* Mobile-only optimizations for smoother scrolling and click feedback */
@media (max-width: 768px) {
    .service-card, .apartment-card, .flag-btn {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .service-card:active, .apartment-card:active, .flag-btn:active {
        transform: scale(0.98);
        background-color: rgba(10, 37, 64, 0.02);
    }
    .service-card.highlight:active {
        background: linear-gradient(135deg, #0d1e36 0%, #071424 100%);
    }
}
