/* Oxford Assignment Experts — Main Stylesheet */

:root {
    /* Brand — Oxford Assignment Expert logo */
    --primary: #0b3268;
    --primary-dark: #071f42;
    --primary-light: #1a9fd4;
    --secondary: #1eb8e8;
    --secondary-dark: #1598c4;
    --secondary-light: #e8f7fd;
    --accent: #f5a822;
    --accent-hover: #df960f;
    --accent-light: #fff6e6;
    --text: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f4f8fc;
    --white: #ffffff;
    --border: #dbe4ef;
    --success: #16a34a;
    --shadow: 0 4px 20px rgba(11, 50, 104, 0.08);
    --shadow-lg: 0 10px 40px rgba(11, 50, 104, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
    --font: 'Quicksand', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    font-size: 17px;
}

body {
    font-family: var(--font);
    color: var(--text);
    font-size: 1rem;
    line-height: 1.75;
    background: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover { color: var(--secondary); }

img { max-width: 100%; height: auto; }

.section-padding { padding: 80px 0; }
.bg-light { background: var(--bg-light) !important; }

.section-header h2 { font-size: 2.1rem; margin-bottom: 0.75rem; }
.section-subtitle { color: var(--text-muted); font-size: 1.125rem; max-width: 820px; margin: 0 auto; line-height: 1.75; }

.text-accent { color: var(--accent); }

/* ── Top Bar ── */
.top-bar {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.85);
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-offer { color: var(--accent); font-weight: 600; }
.top-link { color: rgba(255,255,255,0.85); }
.top-link:hover { color: var(--accent); }

.btn-accent {
    background: var(--accent);
    color: var(--primary-dark);
    font-weight: 600;
    border: none;
    border-radius: 50px;
    padding: 4px 16px;
}

.btn-accent:hover {
    background: var(--accent-hover);
    color: var(--primary-dark);
}

/* ── Navbar ── */
.main-navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 12px 0;
    transition: var(--transition);
}

.main-navbar.scrolled {
    padding: 8px 0;
    box-shadow: var(--shadow-lg);
}

.logo-placeholder {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-placeholder i {
    font-size: 2rem;
    color: var(--accent);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text strong {
    font-size: 1.15rem;
    color: var(--primary);
}

.logo-text small {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text);
    padding: 8px 14px !important;
    font-size: 0.95rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--secondary);
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 10px 24px;
}

.btn-primary:hover {
    background: var(--secondary);
    border-color: var(--secondary);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-order {
    border-radius: 50px;
    padding: 8px 24px;
}

/* Mega Menu */
.mega-menu {
    width: 100%;
    max-width: 960px;
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    margin-top: 0 !important;
}

.mega-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-light);
}

.mega-links li { margin-bottom: 6px; }

.mega-links a {
    font-size: 0.85rem;
    color: var(--text);
    display: block;
    padding: 2px 0;
}

.mega-links a:hover { color: var(--accent); padding-left: 4px; }
.mega-links .view-all { color: var(--accent); font-weight: 600; }

/* ── Hero ── */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(200,169,81,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-lead {
    font-size: 1.05rem;
    opacity: 0.9;
    line-height: 1.8;
}

.badge-trust {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

.hero-feature-item {
    font-size: 0.9rem;
    padding: 6px 0;
}

.hero-feature-item i { color: var(--accent); margin-right: 6px; }

/* Quote Form */
.quote-form-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.quote-form-header {
    background: var(--accent);
    color: var(--primary-dark);
    padding: 16px 20px;
}

.quote-form-header h4 {
    color: var(--primary-dark);
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.quote-form-header p { font-size: 0.85rem; opacity: 0.8; }

.quote-form { padding: 20px; }

.quote-form .form-control,
.quote-form .form-select,
.order-form .form-control,
.order-form .form-select {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.9rem;
}

.quote-form .form-control:focus,
.quote-form .form-select:focus,
.order-form .form-control:focus,
.order-form .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(200,169,81,0.2);
}

/* ── Why Choose ── */
.why-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    height: 100%;
    transition: var(--transition);
}

.why-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.why-icon {
    width: 52px;
    height: 52px;
    background: var(--accent-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.why-icon i { font-size: 1.4rem; color: var(--accent); }
.why-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.why-card p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* ── Stats ── */
.stats-section {
    background: var(--primary);
    color: var(--white);
    padding: 60px 0;
}

.stats-section h2 { color: var(--white); }

.stat-item { padding: 20px; }

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
    opacity: 0.8;
}

/* ── Experts ── */
.experts-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 10px; }
.experts-track { display: flex; gap: 20px; min-width: min-content; }

.expert-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    min-width: 320px;
    max-width: 360px;
    flex-shrink: 0;
    transition: var(--transition);
}

.expert-card:hover { box-shadow: var(--shadow); border-color: var(--accent); }

.expert-avatar {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    flex-shrink: 0;
}
.expert-avatar.expert-avatar-photo {
    padding: 0;
    overflow: hidden;
    background: #f1f5f9;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.expert-avatar.expert-avatar-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.expert-degree { color: var(--accent); font-weight: 600; font-size: 0.9rem; }
.expert-orders { font-size: 0.85rem; color: var(--success); }
.expert-orders i { margin-right: 4px; }
.expert-bio { font-size: 0.85rem; color: var(--text-muted); margin: 12px 0; }

/* ── Services Tabs ── */
.services-tabs .nav-link {
    color: var(--text);
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: 500;
    font-size: 0.9rem;
    margin: 4px;
    border: 1.5px solid var(--border);
}

.services-tabs .nav-link.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.service-tab-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}

.service-mini-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    height: 100%;
}

.service-mini-card h4 { font-size: 1rem; margin-bottom: 12px; }

/* ── Process ── */
.process-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    height: 100%;
    position: relative;
}

.process-number {
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 auto 16px;
}

.process-card h3 { font-size: 1.1rem; }
.process-card p { font-size: 0.9rem; color: var(--text-muted); }

.benefit-item i { font-size: 2rem; color: var(--accent); margin-bottom: 12px; display: block; }
.benefit-item h4 { font-size: 1rem; }
.benefit-item p { font-size: 0.85rem; color: var(--text-muted); }

/* ── Subjects Grid ── */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.subject-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    transition: var(--transition);
}

.subject-card:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ── Cities ── */
.city-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    height: 100%;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.city-card:hover { box-shadow: var(--shadow); border-color: var(--accent); }
.city-card h3 { font-size: 1.05rem; }
.city-card h3 i { color: var(--accent); margin-right: 6px; }
.city-card p { font-size: 0.9rem; color: var(--text-muted); }

/* ── Pricing ── */
.pricing-table {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.pricing-table thead { background: var(--primary); color: var(--white); }
.pricing-table th, .pricing-table td { padding: 14px 18px; vertical-align: middle; }
.pricing-table .highlight-col { background: var(--accent-light); }
.pricing-table .price-row td { background: var(--bg-light); }

.free-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.free-feature-item {
    font-size: 0.9rem;
    padding: 8px 0;
}

.free-feature-item i { color: var(--accent); margin-right: 6px; }

.discount-badge {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-radius: var(--radius);
    padding: 32px 24px;
}

.discount-label { display: block; font-size: 0.9rem; opacity: 0.8; }
.discount-value { display: block; font-size: 3.5rem; font-weight: 800; color: var(--accent); line-height: 1; }
.discount-sub { display: block; font-size: 1rem; font-weight: 600; }

/* ── Samples ── */
.sample-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    height: 100%;
    transition: var(--transition);
}

.sample-card:hover { box-shadow: var(--shadow); border-color: var(--accent); }

.sample-type {
    background: var(--accent-light);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 50px;
}

.sample-card h4 { font-size: 0.95rem; margin: 12px 0; }
.sample-meta { display: flex; flex-direction: column; gap: 4px; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 16px; }
.sample-meta i { color: var(--accent); margin-right: 4px; }

/* ── Challenges & Delivery ── */
.challenge-card, .delivery-step, .integrity-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    height: 100%;
    transition: var(--transition);
}

.challenge-card:hover, .delivery-step:hover { box-shadow: var(--shadow); }

.challenge-icon i { font-size: 1.8rem; color: var(--accent); margin-bottom: 12px; display: block; }
.challenge-card h3, .delivery-step h3, .integrity-card h3 { font-size: 1.05rem; }
.challenge-card p, .delivery-step p, .integrity-card p { font-size: 0.9rem; color: var(--text-muted); }

.step-num {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: var(--accent);
    color: var(--primary-dark);
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.integrity-card h3 i { color: var(--accent); margin-right: 8px; }

/* ── Results Table ── */
.results-table {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    font-size: 0.9rem;
}

.results-table thead { background: var(--primary); color: var(--white); }
.grade-badge {
    background: var(--accent-light);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* ── FAQ ── */
.faq-accordion .accordion-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm) !important;
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-accordion .accordion-button {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
    padding: 18px 22px;
    background: var(--white);
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: var(--accent-light);
    color: var(--primary);
    box-shadow: none;
}

.faq-accordion .accordion-body {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 16px 22px;
}

/* ── Testimonials ── */
.rating-badge {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
}

.rating-badge i { margin-right: 4px; }

.testimonial-slider { overflow: hidden; position: relative; }
.testimonial-track { display: flex; transition: transform 0.5s ease; }

.testimonial-card {
    min-width: 100%;
    padding: 32px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.testimonial-stars { color: var(--accent); margin-bottom: 12px; }
.testimonial-title { font-size: 1.1rem; margin-bottom: 12px; }
.testimonial-text { font-size: 0.95rem; color: var(--text-muted); font-style: italic; }
.testimonial-meta { font-size: 0.85rem; color: var(--text-muted); margin: 12px 0; }
.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: 16px; }

.author-avatar {
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.testimonial-author small { color: var(--text-muted); display: block; }

.testimonial-dots { display: flex; gap: 6px; }

.testimonial-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-dots .dot.active { background: var(--accent); width: 24px; border-radius: 4px; }

/* ── CTA Banner ── */
.cta-banner { padding: 0; }

.cta-inner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 60px 40px;
    border-radius: 0;
}

.cta-inner h2 { color: var(--white); font-size: 1.75rem; }
.cta-inner p { opacity: 0.9; }
.cta-features span { font-size: 0.9rem; }
.cta-features i { color: var(--accent); margin-right: 6px; }

/* ── Page Hero ── */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 48px 0;
}

.page-hero h1 { color: var(--white); font-size: 2rem; }
.hero-subtitle { opacity: 0.9; font-size: 1.05rem; }

.hero-breadcrumb .breadcrumb { margin-bottom: 20px; }
.hero-breadcrumb .breadcrumb-item a { color: rgba(255,255,255,0.7); }
.hero-breadcrumb .breadcrumb-item.active { color: var(--accent); }
.hero-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 8px 14px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--white);
}

.hero-badge i { color: var(--accent); }

/* Inner pages (Contact, About, etc.) — white pills with readable text */
.page-hero .hero-badge {
    background: #fff;
    border: 1px solid rgba(255,255,255,0.4);
    color: var(--primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.page-hero .hero-badge:nth-child(1) i { color: var(--primary); }
.page-hero .hero-badge:nth-child(2) i { color: var(--secondary); }
.page-hero .hero-badge:nth-child(3) i { color: var(--accent); }
.page-hero .hero-badge:nth-child(4) i { color: #7c3aed; }

/* ── Landing Hero ── */
.landing-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 40px 0 60px;
}

.landing-hero h1 { color: var(--white); font-size: 2.25rem; }
.landing-intro { opacity: 0.95; font-size: 1.1rem; line-height: 1.8; }

.trust-row .trust-item { text-align: center; }
.trust-row .trust-item strong { display: block; font-size: 1.3rem; color: var(--accent); }
.trust-row .trust-item span { font-size: 0.8rem; opacity: 0.8; color: rgba(255,255,255,0.85); }

/* ── Hero / Quote Calculator Form (global — homepage + landing pages) ── */
.hero-form {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    overflow: hidden;
    width: 100%;
}
.hero-form .form-header {
    background: var(--primary);
    color: #fff;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.hero-form .form-header .title { font-weight: 700; font-size: 0.95rem; color: #fff; }
.hero-form .offer-badge {
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}
.price-calculator-form { padding: 18px; background: #fff; }
.hero-form-field { margin-bottom: 12px; }
.hero-form-field .form-select,
.hero-form-field .hero-input {
    width: 100%;
    height: 42px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    padding: 8px 12px;
    background: #fff;
    color: #1a1a1a;
}
.hero-form-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}
.hero-form-contact .hero-form-field { margin-bottom: 0; }
.hero-form-field .invalid-feedback {
    display: none;
    font-size: 0.8rem;
    margin-top: 4px;
}
.was-validated .hero-form-field .form-control:invalid ~ .invalid-feedback,
.hero-form-field .oae-phone-field.has-error .invalid-feedback {
    display: block;
}
@media (max-width: 575px) {
    .hero-form-contact { grid-template-columns: 1fr; }
}
.hero-form-row-words {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.hero-form .word-box {
    display: flex;
    align-items: center;
    border: 2px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    flex: 1;
    background: #fff;
}
.hero-form .word-box .minus,
.hero-form .word-box .plus {
    background: var(--bg-light);
    border: none;
    width: 40px;
    height: 42px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}
.hero-form .word-box .Words {
    border: none;
    text-align: center;
    flex: 1;
    font-weight: 600;
    background: #fff;
    padding: 8px;
    min-width: 0;
    font-size: 0.9rem;
    color: var(--text);
}
.hero-form-row-words small {
    color: var(--text-muted);
    white-space: nowrap;
    font-size: 0.85rem;
}
.hero-form .price-text {
    text-align: center;
    font-size: 0.9rem;
    margin: 14px 0;
    color: var(--text-muted);
}
.hero-form .price-text .old-price { text-decoration: line-through; color: #999; margin-right: 6px; }
.hero-form .price-text .new-price { color: var(--accent); font-weight: 800; font-size: 1.1rem; }
.hero-form .cta-btn {
    display: block;
    width: 100%;
    background: var(--accent);
    color: #fff !important;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
}
.hero-form .cta-btn:hover { background: var(--accent-hover); color: #fff !important; }
.hero-form .cta-btn-green {
    background: #22c55e;
}
.hero-form .cta-btn-green:hover { background: #16a34a; color: #fff !important; }

.hero-form-words-deadline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.hero-deadline-wrap {
    position: relative;
}

.hero-deadline-wrap > i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    z-index: 1;
    pointer-events: none;
}

.hero-deadline-wrap .form-control,
.hero-deadline-wrap .oae-deadline-input {
    padding-left: 32px;
    width: 100%;
}

.offer-badge-float {
    display: none;
}

.hero-form--home .offer-badge-float { display: block; }

.landing-hero .hero-form { margin-top: 0; }
.landing-hero .col-lg-5 { display: flex; align-items: flex-start; }


/* ── Content Section ── */
.content-block h2 { font-size: 1.65rem; margin-bottom: 16px; }
.content-block p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.8; }

.content-list { list-style: none; padding: 0; }
.content-list li {
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.content-list li i { color: var(--accent); margin-right: 8px; }

/* ── Sidebar ── */
.sidebar-sticky { position: sticky; top: 100px; }

.sidebar-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.sidebar-card h4 { font-size: 1rem; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--accent-light); }

.sidebar-links li { margin-bottom: 8px; }
.sidebar-links a { font-size: 0.9rem; color: var(--text); display: block; }
.sidebar-links a i { color: var(--accent); margin-right: 6px; font-size: 0.75rem; }
.sidebar-links a:hover { color: var(--accent); padding-left: 4px; }

.sidebar-cta { background: var(--accent-light); border-color: var(--accent); }
.sidebar-cta p { font-size: 0.9rem; color: var(--text-muted); }

.expert-avatar-sm {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}
.expert-avatar-sm.expert-avatar-photo {
    padding: 0;
    overflow: hidden;
    background: #f1f5f9;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.expert-avatar-sm.expert-avatar-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Order Form ── */
.order-form-wrapper {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
}

.order-form-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.order-form-section:last-child { border-bottom: none; margin-bottom: 0; }

.order-form-section h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.order-form-section h4 i { color: var(--accent); margin-right: 8px; }

/* ── Contact ── */
.contact-page-section { background: var(--bg-light); }
.contact-quick-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    height: 100%;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-quick-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(5, 74, 149, 0.12);
}
.contact-quick-card .oae-icon-box { margin: 0 auto 14px; display: flex; }
.contact-quick-card h4 { font-size: 1.1rem; margin-bottom: 8px; color: var(--primary); }
.contact-quick-card p { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 10px; }
.contact-quick-card a { font-weight: 700; color: var(--primary); word-break: break-word; }
.contact-quick-card a:hover { color: var(--accent); }

.contact-info-card {
    background: linear-gradient(160deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    height: 100%;
    box-shadow: 0 12px 32px rgba(5, 74, 149, 0.2);
}
.contact-info-card h3 { color: var(--white); margin-bottom: 12px; }
.contact-info-card > p { opacity: 0.92; margin-bottom: 24px; line-height: 1.75; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 20px; align-items: flex-start; }
.contact-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}
.contact-icon-wrap.tone-blue { background: rgba(219, 234, 254, 0.95); color: #1d4ed8; }
.contact-icon-wrap.tone-amber { background: rgba(254, 243, 199, 0.95); color: #d97706; }
.contact-icon-wrap.tone-purple { background: rgba(237, 233, 254, 0.95); color: #6d28d9; }
.contact-info-item strong { display: block; margin-bottom: 2px; }
.contact-info-item p { opacity: 0.9; font-size: 0.92rem; }
.contact-info-item a { color: var(--white); }
.contact-info-item a:hover { color: var(--accent); }

.contact-form-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    height: 100%;
    box-shadow: var(--shadow);
}
.contact-form-lead {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 0.95rem;
}
.contact-form-card .form-label { font-weight: 600; font-size: 0.9rem; }
.contact-form-card .form-control {
    border-radius: 8px;
    padding: 10px 14px;
    border: 1px solid var(--border);
}
.contact-form-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(5, 74, 149, 0.12);
}

/* ── Footer ── */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,0.8); }
.footer-top { padding: 60px 0 40px; }
.footer-heading { color: var(--white); font-size: 1rem; margin-bottom: 20px; font-weight: 600; }
.footer-about { font-size: 0.9rem; line-height: 1.8; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent); }
.footer-contact p { font-size: 0.9rem; margin-bottom: 8px; }
.footer-contact a { color: rgba(255,255,255,0.8); }
.footer-contact i { color: var(--accent); margin-right: 8px; }

.footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.9rem;
}

.footer-social a:hover { background: var(--accent); color: var(--primary-dark); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    font-size: 0.85rem;
}

.footer-legal a { color: rgba(255,255,255,0.6); }
.footer-legal a:hover { color: var(--accent); }

.footer-logo .logo-text strong { color: var(--white); }
.footer-logo .logo-text small { color: rgba(255,255,255,0.5); }

/* ── WhatsApp Float ── */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 16px rgba(37,211,102,0.4);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background: #1fb855;
    color: var(--white);
    transform: scale(1.1);
}

.wa-tooltip {
    position: absolute;
    right: 68px;
    background: var(--primary);
    color: var(--white);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    line-height: 1.4;
    text-align: center;
}

.whatsapp-float:hover .wa-tooltip { opacity: 1; }

/* ── Back to Top ── */
.back-to-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--accent); color: var(--primary-dark); }

/* ── Form Success Alert ── */
.form-alert {
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.form-alert.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.form-alert.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ── 404 ── */
.error-page {
    text-align: center;
    padding: 100px 0;
}

.error-page h1 { font-size: 6rem; color: var(--accent); }
.error-page p { font-size: 1.1rem; color: var(--text-muted); }

/* ── Policy Pages ── */
.policy-content h2 { font-size: 1.4rem; margin-top: 32px; margin-bottom: 12px; }
.policy-content h3 { font-size: 1.15rem; margin-top: 24px; }
.policy-content p, .policy-content li { color: var(--text-muted); font-size: 0.95rem; }
.policy-content ul { padding-left: 20px; }

/* ── Sitemap ── */
.sitemap-group { margin-bottom: 32px; }
.sitemap-group h3 {
    font-size: 1.1rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-light);
    margin-bottom: 16px;
}

.sitemap-group ul { columns: 2; column-gap: 32px; }
.sitemap-group li { margin-bottom: 6px; break-inside: avoid; }
.sitemap-group a { font-size: 0.9rem; color: var(--text); }
.sitemap-group a:hover { color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 991px) {
    .hero-section h1 { font-size: 2rem; }
    .section-padding { padding: 60px 0; }
    .section-header h2 { font-size: 1.6rem; }
    .mega-menu { max-width: 100%; }
    .cta-inner { padding: 40px 24px; }
    .sidebar-sticky { position: static; }
}

@media (max-width: 767px) {
    .hero-section { padding: 40px 0 60px; }
    .hero-section h1 { font-size: 1.65rem; }
    .stat-number { font-size: 2rem; }
    .discount-value { font-size: 2.5rem; }
    .sitemap-group ul { columns: 1; }
    .top-bar { font-size: 0.8rem; }
    .wa-tooltip { display: none; }
}

@media (max-width: 575px) {
    .subjects-grid { grid-template-columns: repeat(2, 1fr); }
    .free-features-grid { grid-template-columns: 1fr; }
    .level-pills { flex-direction: column; }
}

/* ── Tabbed Mega Menu ── */
.mega-menu-tabbed {
    width: min(960px, 95vw);
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.mega-menu-inner {
    display: flex;
    min-height: 360px;
}

.mega-tabs {
    width: 200px;
    background: var(--primary);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.mega-tab-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.75);
    text-align: left;
    padding: 14px 18px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: var(--transition);
}

.mega-tab-btn:hover,
.mega-tab-btn.active {
    background: rgba(255,255,255,0.08);
    color: var(--white);
    border-left-color: var(--accent);
}

.mega-panels {
    flex: 1;
    padding: 20px 24px;
    max-height: 400px;
    overflow-y: auto;
    background: var(--white);
}

.mega-panel { display: none; }
.mega-panel.active { display: block; }

.mega-hub-link {
    display: inline-block;
    font-weight: 700;
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.mega-group-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 8px;
}

.mega-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 16px;
}

.top-unlock {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
}

.nav-refer {
    color: var(--accent);
    font-size: 1.2rem;
    padding: 6px;
}

.nav-login {
    font-size: 0.85rem;
    padding: 6px 16px;
}

/* ── Order Page ── */
.order-page-section {
    padding: 40px 0 80px;
    background: var(--bg-light);
}

.order-page-header h1 {
    font-size: 2rem;
    color: var(--primary);
}

.order-page-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.order-page-badges .hero-badge {
    background: var(--white);
    color: var(--primary);
    border: 1px solid var(--border);
    font-size: 0.85rem;
}

.order-page-badges .hero-badge i { color: var(--success); }

/* ── Reference-style Order Form ── */
.order-form-wrapper {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 32px;
}

.order-form-row {
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
}

.order-form-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.order-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.order-tip {
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: help;
}

.form-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.level-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.level-pill {
    cursor: pointer;
    margin: 0;
}

.level-pill input { display: none; }

.level-pill span {
    display: block;
    padding: 8px 14px;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.level-pill input:checked + span,
.level-pill.selected span {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.word-counter-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 280px;
}

.word-btn {
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--border);
    background: var(--bg-light);
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--primary);
}

.word-minus { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.word-plus { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.word-btn:hover { background: var(--accent-light); }

.word-input {
    border-radius: 0 !important;
    text-align: center;
    font-weight: 700;
    border-left: none !important;
    border-right: none !important;
}

.file-upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-light);
}

.file-upload-zone:hover,
.file-upload-zone.drag-over {
    border-color: var(--accent);
    background: var(--accent-light);
}

.file-upload-zone i { font-size: 2rem; color: var(--accent); display: block; margin-bottom: 8px; }
.file-upload-zone.has-file { border-color: var(--success); background: #f0fdf4; }
.browse-link { color: var(--accent); font-weight: 600; cursor: pointer; }
.file-input-hidden { display: none; }
.file-name-display { font-size: 0.85rem; color: var(--success); margin-top: 8px; font-weight: 500; }

.phone-input-wrap {
    display: flex;
    align-items: stretch;
}

/* Country phone dropdown with flag images */
.oae-phone-field { width: 100%; }
.oae-phone-wrap {
    display: flex;
    align-items: stretch;
    width: 100%;
    position: relative;
}
.oae-phone-country-picker {
    position: relative;
    flex: 0 0 auto;
    z-index: 20;
}
.oae-country-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    min-height: 42px;
    padding: 0 10px;
    border: 1.5px solid var(--border);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    background: var(--bg-light);
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.oae-country-trigger:hover { background: #eef4fb; }
.oae-flag-img {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
    flex-shrink: 0;
}
.oae-country-dial { line-height: 1; }
.oae-country-caret {
    font-size: 0.7rem;
    opacity: 0.65;
    margin-left: 2px;
}
.oae-country-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 280px;
    max-height: 260px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(5, 74, 149, 0.15);
    z-index: 1050;
}
.oae-country-menu[hidden] { display: none; }
.oae-country-list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
}
.oae-country-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    cursor: pointer;
    font-size: 0.88rem;
    transition: background 0.15s;
}
.oae-country-option:hover,
.oae-country-option.is-selected { background: #eef4fb; }
.oae-country-name {
    flex: 1;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.oae-country-code {
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
}
.oae-phone-number {
    flex: 1;
    min-width: 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
}
.oae-phone-field--hero .oae-country-trigger,
.oae-phone-field--order .oae-country-trigger {
    border-radius: 4px 0 0 4px;
    border-color: #ced4da;
    min-height: 38px;
    font-size: 0.85rem;
}
.oae-phone-field--hero .oae-phone-number,
.oae-phone-field--order .oae-phone-number {
    border-radius: 0 4px 4px 0 !important;
}
.oae-phone-field .invalid-feedback { display: none; margin-top: 6px; }
.oae-phone-field.has-error .invalid-feedback { display: block; }
.was-validated .oae-phone-field .oae-phone-number:invalid ~ .invalid-feedback { display: none; }

.was-validated .form-control:valid,
.form-control.is-valid {
    border-color: #22c55e;
    background-image: none;
}
.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: #ef4444;
}
.was-validated .form-select:valid,
.form-select.is-valid { border-color: #22c55e; }
.was-validated .form-select:invalid,
.form-select.is-invalid { border-color: #ef4444; }

.phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 14px;
    background: var(--bg-light);
    border: 1.5px solid var(--border);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
}

.phone-input-wrap .form-control {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.order-section-title {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.currency-toggle {
    display: flex;
    gap: 6px;
}

.currency-btn input { display: none; }

.currency-btn span {
    display: block;
    padding: 6px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.currency-btn input:checked + span {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.order-price-box {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border);
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.95rem;
}

.discount-row { color: var(--success); font-weight: 600; }
.total-row {
    border-top: 2px solid var(--border);
    margin-top: 8px;
    padding-top: 14px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
}

.order-submit-btn {
    font-size: 1.1rem;
    padding: 14px;
    border-radius: var(--radius-sm);
}

/* ── Order Sidebar ── */
.order-benefits-sidebar {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
    border-top: 4px solid var(--accent);
}

.order-benefits-sidebar h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.order-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.order-benefits-list li {
    padding: 10px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.order-benefits-list li:last-child { border-bottom: none; }
.order-benefits-list li i { color: var(--success); margin-top: 3px; flex-shrink: 0; }

.discount-badge-sm {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-radius: var(--radius-sm);
    padding: 16px;
}

.discount-value-sm { display: block; font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1; }
.discount-label-sm { font-size: 0.85rem; font-weight: 600; }

.order-trust-badges { display: flex; flex-direction: column; gap: 8px; }
.trust-badge-item {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}
.trust-badge-item i { color: var(--accent); }

.expert-card-full { height: 100%; min-width: auto; max-width: none; }

/* ── Blog Cards ── */
.blog-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    height: 100%;
    transition: var(--transition);
}

.blog-card:hover { box-shadow: var(--shadow); border-color: var(--accent); }
.blog-meta { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 0.8rem; }
.blog-category { background: var(--accent-light); color: var(--primary); padding: 3px 10px; border-radius: 50px; font-weight: 600; }
.blog-views { color: var(--text-muted); }
.blog-card h3 { font-size: 1rem; margin-bottom: 10px; line-height: 1.4; }
.blog-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 16px; }

.refer-icon { font-size: 4rem; color: var(--accent); }

@media (max-width: 991px) {
    .mega-menu-inner { flex-direction: column; min-height: auto; }
    .mega-tabs {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    .mega-tab-btn {
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    .mega-tab-btn.active { border-bottom-color: var(--accent); border-left-color: transparent; }
    .mega-panels { max-height: 300px; }
    .mega-links-grid { grid-template-columns: 1fr; }
}

/* ── Reference-style Header & Nav ── */
.top-strip {
    background: #f3f4f6;
    color: #374151;
    padding: 9px 0;
    font-size: 0.84rem;
    border-bottom: 1px solid #e5e7eb;
}
.top-strip-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.top-strip-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.top-strip-offer { font-weight: 600; color: #1f2937; }
.btn-unlock-discount {
    background: var(--accent);
    color: var(--primary-dark) !important;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 4px 12px;
    border-radius: 5px;
    text-decoration: none;
    white-space: nowrap;
}
.btn-unlock-discount:hover { background: var(--accent-hover); color: var(--primary-dark) !important; }
.top-strip-right { display: flex; align-items: center; gap: 20px; }
.top-strip-contact-link {
    color: #374151 !important;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.84rem;
}
.top-strip-contact-link i { color: var(--secondary); font-size: 0.9rem; }

/* Navbar — wider than standard page content */
.container-nav {
    width: 100%;
    max-width: 1540px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

@media (min-width: 1400px) {
    .container-nav {
        max-width: 1620px;
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* Floating header card */
.header-wrapper {
    background: #eef2f7;
    padding: 14px 0 0;
}

.page-home .header-wrapper {
    background: #fff;
    padding: 10px 0 0;
}

.site-header {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}
.site-header.scrolled .header-card {
    box-shadow: 0 8px 30px rgba(5,74,149,0.18);
}
.header-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(5,74,149,0.12);
    padding: 10px 18px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    gap: 8px;
}

@media (min-width: 992px) {
    .site-header .navbar-collapse {
        display: flex !important;
        flex-grow: 1;
        align-items: center;
    }
    .nav-menu-list {
        flex: 1;
        justify-content: center;
    }
}

/* Logo image */
.site-logo-img {
    display: block;
    height: auto;
    width: auto;
    max-height: 54px;
    max-width: 230px;
    object-fit: contain;
}
.site-logo-img--header { max-height: 50px; max-width: 210px; }
.site-logo-img--footer {
    max-height: 58px;
    max-width: 230px;
    background: transparent;
    padding: 0;
}
.site-logo-img--login {
    max-height: 64px;
    max-width: 280px;
    background: transparent;
    padding: 0;
}
.footer-logo-link {
    display: inline-block;
    line-height: 0;
}
.footer-logo-link:hover { opacity: 0.92; }

/* Logo */
.site-logo.navbar-brand {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    line-height: 0;
}

/* Nav links */
.site-header .navbar-collapse {
    flex-grow: 1;
    align-items: center;
}
.main-nav { flex: 1; }
.nav-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2px;
}
.nav-menu-item { position: relative; }
.nav-menu-link {
    display: block;
    padding: 10px 13px;
    font-weight: 700;
    color: #1f2937;
    font-size: 0.88rem;
    border-radius: 6px;
    white-space: nowrap;
}
.nav-menu-link:hover,
.nav-menu-link:focus { color: var(--secondary); }
.nav-menu-link.dropdown-toggle::after {
    margin-left: 4px;
    vertical-align: middle;
    font-size: 0.7rem;
}

/* Reviews badge floating above */
.nav-reviews-item { margin-right: 4px; }
.nav-reviews-link { position: relative; padding-top: 14px !important; }
.review-badge-float {
    position: absolute;
    top: -2px;
    right: -6px;
    background: var(--accent);
    color: var(--primary-dark);
    font-size: 0.62rem;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 4px;
    line-height: 1.2;
}

/* Header action buttons */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}
.header-search-btn {
    width: 40px;
    height: 40px;
    background: var(--secondary-light);
    border: none;
    border-radius: 8px;
    color: var(--primary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.header-search-btn:hover { background: #d4e8f8; }
.header-wa-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: #fff !important;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 9px 14px;
    border-radius: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}
.header-wa-btn i { font-size: 1.2rem; }
.header-wa-btn:hover { background: #1ebe57; color: #fff !important; }
.btn-order-now {
    background: var(--accent);
    color: var(--primary-dark) !important;
    font-weight: 800;
    font-size: 0.78rem;
    padding: 11px 18px;
    border-radius: 8px;
    border: none;
    white-space: nowrap;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}
.btn-order-now:hover { background: var(--accent-hover); color: var(--primary-dark) !important; }

.navbar-toggler {
    border: 2px solid var(--primary);
    padding: 5px 9px;
    margin-left: auto;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230b3268' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.3em;
    height: 1.3em;
}

/* Services mega menu */
.services-mega {
    width: min(900px, 95vw);
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    overflow: hidden;
}
.services-mega-inner {
    display: flex;
    min-height: 380px;
}
.services-categories {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 240px;
    background: var(--bg-light);
    border-right: 1px solid var(--border);
    flex-shrink: 0;
}
.services-cat-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text);
    border-left: 3px solid transparent;
    cursor: pointer;
}
.services-cat-btn:hover,
.services-cat-btn.active {
    background: #fff;
    color: var(--primary);
    border-left-color: var(--secondary);
}
.services-panels { flex: 1; padding: 16px 20px; position: relative; }
.services-panel { display: none; }
.services-panel.active { display: block; }
.services-hub-link {
    display: inline-block;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 0.9rem;
}
.services-links {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 2;
    column-gap: 24px;
}
.services-links li { break-inside: avoid; margin-bottom: 6px; }
.services-links a {
    font-size: 0.88rem;
    color: var(--text-muted);
}
.services-links a:hover { color: var(--primary); }

/* Order form service radios */
.service-radio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}
.service-radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
}
.service-radio-item:has(input:checked) {
    border-color: var(--primary);
    background: rgba(5,74,149,0.05);
}
.service-radio-item input { accent-color: var(--primary); }

@media (max-width: 991px) {
    .header-card { border-radius: 12px; padding: 12px 14px; }
    .site-logo-img--header { max-height: 42px; max-width: 170px; }
    .site-header .navbar-collapse {
        width: 100%;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--border);
    }
    .nav-menu-list {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        margin-bottom: 12px !important;
    }
    .nav-menu-link { padding: 12px 8px; }
    .header-actions {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        margin-left: 0;
        padding-top: 8px;
        border-top: 1px solid var(--border);
    }
    .header-wa-btn span { display: none; }
    .services-mega-inner { flex-direction: column; min-height: auto; }
    .services-categories { width: 100%; display: flex; overflow-x: auto; }
    .services-cat-btn { white-space: nowrap; border-left: none; border-bottom: 3px solid transparent; }
    .services-cat-btn.active { border-bottom-color: var(--primary); }
    .services-links { columns: 1; }
    .services-mega { width: 100%; }
}

/* ── Wider readable content area (navbar uses .container-nav separately) ── */
@media (min-width: 1200px) {
    .container {
        max-width: 1280px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1420px;
    }
}

.home-article p,
.policy-content p,
.policy-content li {
    font-size: 1.05rem;
    line-height: 1.85;
}

.common-heading {
    font-size: 2rem !important;
}

.of-label {
    font-size: 0.95rem;
}

.hero-form-field .form-select,
.of-field .form-control,
.of-field .form-select {
    font-size: 0.95rem;
    padding: 11px 14px;
}
