/* ==========================================================================
   NSRIC International Visa Consulting (NIVC) — Home Page Stylesheet
   Strictly Scoped under .home-page to Prevent Any Header / Footer Style Leak
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Home Page Base Wrappers & Utilities
   -------------------------------------------------------------------------- */
.home-page {
    width: 100%;
    color: #1e293b;
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.home-page .section-container {
    width: 100%;
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 24px;
}

.home-page .section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #2563eb;
    background-color: rgba(37, 99, 235, 0.08);
    padding: 6px 14px;
    border-radius: 9999px;
    margin-bottom: 12px;
}

.home-page .section-tag-gold {
    color: #b45309;
    background-color: rgba(229, 169, 59, 0.14);
}

.home-page .section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 52px;
}

.home-page .section-title {
    font-size: 34px;
    font-weight: 700;
    color: #0a1138;
    line-height: 1.3;
    margin-bottom: 14px;
}

.home-page .section-subtitle {
    font-size: 16px;
    color: #64748b;
    line-height: 1.65;
}

/* --------------------------------------------------------------------------
   1. HERO SECTION
   -------------------------------------------------------------------------- */
.home-page .home-hero {
    position: relative;
    background-color: #080f2d;
    background-image: 
        linear-gradient(135deg, rgba(8, 15, 45, 0.94) 0%, rgba(10, 20, 58, 0.86) 55%, rgba(13, 27, 72, 0.92) 100%),
        url('../images/home/hero-toronto.jpg'),
        url('../images/home/hero-toronto.svg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 85px 0 95px;
    color: #ffffff;
}

.home-page .hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.home-page .hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.home-page .hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #e5a93b;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 9999px;
    margin-bottom: 22px;
}

.home-page .hero-pill svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.home-page .hero-title {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.22;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.home-page .hero-subtitle {
    font-size: 16.5px;
    line-height: 1.65;
    color: #e2e8f0;
    margin-bottom: 28px;
    font-weight: 400;
}

.home-page .hero-bullets {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 34px;
}

.home-page .hero-bullet-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    color: #f1f5f9;
    font-weight: 500;
}

.home-page .hero-bullet-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(0, 168, 143, 0.25);
    color: #34d399;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.home-page .hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.home-page .btn-hero-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #e5a93b;
    color: #0a1138;
    font-size: 16px;
    font-weight: 700;
    padding: 15px 32px;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(229, 169, 59, 0.35);
    transition: all 0.25s ease;
}

.home-page .btn-hero-primary:hover {
    background-color: #f5b94e;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(229, 169, 59, 0.45);
    color: #0a1138;
}

.home-page .btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: transparent;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.25s ease;
}

.home-page .btn-hero-secondary:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: #ffffff;
    transform: translateY(-2px);
    color: #ffffff;
}

/* Hero Right: Conversion Card */
.home-page .hero-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
    color: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.home-page .hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #0a1138 0%, #2563eb 50%, #e5a93b 100%);
}

.home-page .hero-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.home-page .hero-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(10, 17, 56, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e11d48;
    flex-shrink: 0;
}

.home-page .hero-card-title {
    font-size: 22px;
    font-weight: 700;
    color: #0a1138;
    line-height: 1.25;
    margin: 0;
}

.home-page .hero-card-sub {
    font-size: 13.5px;
    color: #64748b;
    margin-top: 3px;
}

.home-page .hero-card-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 26px;
}

.home-page .hero-card-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    background-color: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #2563eb;
}

.home-page .step-number {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #2563eb;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.home-page .step-text {
    font-size: 13.5px;
    color: #334155;
    line-height: 1.45;
}

.home-page .hero-card-btn {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #0a1138;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.25s ease, transform 0.2s ease;
    box-shadow: 0 4px 14px rgba(10, 17, 56, 0.25);
}

.home-page .hero-card-btn:hover {
    background-color: #1a2a6c;
    transform: translateY(-2px);
    color: #ffffff;
}

.home-page .hero-card-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
    margin-top: 14px;
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   2. KEY STATS & CREDENTIALS BAR
   -------------------------------------------------------------------------- */
.home-page .stats-bar {
    background-color: #0a1138;
    color: #ffffff;
    padding: 38px 0;
    border-top: 3px solid #e5a93b;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.home-page .stats-bar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: center;
}

.home-page .stat-item {
    text-align: center;
    padding: 10px 16px;
    position: relative;
}

.home-page .stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15%;
    right: 0;
    width: 1px;
    height: 70%;
    background-color: rgba(255, 255, 255, 0.14);
}

.home-page .stat-value {
    font-size: 38px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.home-page .stat-count {
    color: #e5a93b;
}

.home-page .stat-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.home-page .stat-caption {
    font-size: 13.5px;
    color: #cbd5e1;
    line-height: 1.4;
}

/* --------------------------------------------------------------------------
   3. FEATURED MIGRATION CATEGORIES (3x2 grid)
   -------------------------------------------------------------------------- */
.home-page .services-section {
    padding: 85px 0 90px;
    background-color: #ffffff;
    border-top: 1px solid #f1f5f9;
}

.home-page .categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.home-page .category-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.home-page .category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: transparent;
    transition: background-color 0.25s ease;
}

.home-page .category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(10, 17, 56, 0.1);
    border-color: #cbd5e1;
}

.home-page .category-card:hover::before {
    background-color: #2563eb;
}

.home-page .card-top {
    margin-bottom: 22px;
}

.home-page .card-icon-wrapper {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background-color: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.home-page .category-card:hover .card-icon-wrapper {
    background-color: #2563eb;
    color: #ffffff;
}

.home-page .card-icon-wrapper svg {
    width: 26px;
    height: 26px;
    stroke-width: 2;
}

.home-page .card-tag {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #64748b;
    margin-bottom: 8px;
}

.home-page .card-title {
    font-size: 21px;
    font-weight: 700;
    color: #0a1138;
    line-height: 1.3;
    margin-bottom: 12px;
}

.home-page .card-desc {
    font-size: 14.5px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 0;
}

.home-page .card-learn-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    margin-top: 20px;
    transition: color 0.2s ease, gap 0.2s ease;
}

.home-page .card-learn-more svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.home-page .category-card:hover .card-learn-more {
    color: #1d4ed8;
}

.home-page .category-card:hover .card-learn-more svg {
    transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   4. WHY CHOOSE NSRIC INTERNATIONAL VISA CONSULTING (NIVC)?
   -------------------------------------------------------------------------- */
.home-page .why-choose-section {
    padding: 90px 0;
    background-color: #ffffff;
}

.home-page .why-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 52px;
    align-items: center;
}

.home-page .why-features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 36px;
}

.home-page .why-feature-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.home-page .why-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background-color: rgba(229, 169, 59, 0.15);
    color: #b45309;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.home-page .why-icon-box svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

.home-page .why-feature-title {
    font-size: 18px;
    font-weight: 700;
    color: #0a1138;
    line-height: 1.35;
    margin-bottom: 8px;
}

.home-page .why-feature-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

/* Why Right: Canadian Trust & Accreditation Panel */
.home-page .why-accent-panel {
    background: linear-gradient(145deg, #0a1138 0%, #111d4d 100%);
    border-radius: 16px;
    padding: 42px 36px;
    color: #ffffff;
    box-shadow: 0 20px 45px rgba(10, 17, 56, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
}

.home-page .why-panel-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #e5a93b;
    background-color: rgba(229, 169, 59, 0.15);
    padding: 5px 12px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.home-page .why-panel-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 14px;
    line-height: 1.3;
}

.home-page .why-panel-text {
    font-size: 14.5px;
    color: #cbd5e1;
    line-height: 1.65;
    margin-bottom: 24px;
}

.home-page .why-panel-box {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.home-page .why-panel-box-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94a3b8;
    margin-bottom: 4px;
}

.home-page .why-panel-box-val {
    font-size: 14px;
    font-weight: 600;
    color: #f1f5f9;
    line-height: 1.5;
}

.home-page .why-panel-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.home-page .why-stat-pill {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 12px 14px;
    border-radius: 8px;
    text-align: center;
}

.home-page .why-stat-pill-num {
    font-size: 22px;
    font-weight: 800;
    color: #e5a93b;
    display: block;
}

.home-page .why-stat-pill-lbl {
    font-size: 12px;
    color: #cbd5e1;
    margin-top: 2px;
    display: block;
}

/* --------------------------------------------------------------------------
   5. INTERACTIVE ASSESSMENT CTA SECTION
   -------------------------------------------------------------------------- */
.home-page .assessment-cta-section {
    position: relative;
    background: linear-gradient(135deg, #0a1138 0%, #162a6e 60%, #1e3a8a 100%);
    padding: 75px 0;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
}

.home-page .assessment-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.home-page .assessment-cta-box {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    z-index: 1;
}

.home-page .assessment-title {
    font-size: 36px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.25;
}

.home-page .assessment-desc {
    font-size: 18px;
    color: #cbd5e1;
    margin-bottom: 34px;
    line-height: 1.6;
}

.home-page .btn-assessment-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: #e5a93b;
    color: #0a1138;
    font-size: 18px;
    font-weight: 700;
    padding: 16px 42px;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(229, 169, 59, 0.4);
    transition: all 0.25s ease;
}

.home-page .btn-assessment-cta:hover {
    background-color: #f5b94e;
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(229, 169, 59, 0.5);
    color: #0a1138;
}

.home-page .assessment-trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.home-page .trust-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #cbd5e1;
    font-weight: 500;
}

.home-page .trust-badge-item svg {
    width: 16px;
    height: 16px;
    stroke: #34d399;
}

/* --------------------------------------------------------------------------
   6. STAY CONNECTED / NEWSLETTER SECTION
   (Exact Match with Reference Screenshot, Enhanced with Working Validation)
   -------------------------------------------------------------------------- */
.home-page .newsletter-section {
    background-color: #ffffff;
    padding: 56px 0;
    margin: 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: none;
}

.home-page .newsletter-card {
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.home-page .newsletter-title {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 18px;
    text-align: left;
}

/* Flash and Error Alert Boxes */
.home-page .newsletter-alert {
    padding: 12px 18px;
    border-radius: 6px;
    margin-bottom: 18px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-page .newsletter-alert-success {
    background-color: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.home-page .newsletter-alert-error {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.home-page .newsletter-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
}

.home-page .newsletter-inputs-row {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 16px;
    width: 100%;
    flex-wrap: wrap;
}

.home-page .newsletter-field-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.home-page .newsletter-input {
    width: 370px;
    max-width: 100%;
    height: 42px;
    padding: 0 16px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background-color: #ffffff;
    font-size: 14px;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-page .newsletter-input:focus {
    border-color: #00a88f;
    box-shadow: 0 0 0 2px rgba(0, 168, 143, 0.15);
}

.home-page .newsletter-input.has-error {
    border-color: #ef4444;
}

.home-page .field-error-msg {
    font-size: 12px;
    color: #dc2626;
    margin-top: 2px;
}

.home-page .newsletter-submit-btn {
    background-color: #00a88f;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    height: 42px;
    padding: 0 28px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.home-page .newsletter-submit-btn:hover {
    background-color: #008f7a;
    transform: translateY(-1px);
}

.home-page .newsletter-checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #2563eb;
    cursor: pointer;
    user-select: none;
}

.home-page .newsletter-checkbox-row input[type="checkbox"] {
    accent-color: #00a88f;
    width: 16px;
    height: 16px;
    border: 1px solid #94a3b8;
    border-radius: 3px;
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN (Desktop, Tablet, Mobile)
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
    .home-page .hero-title {
        font-size: 36px;
    }
    .home-page .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .home-page .why-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 900px) {
    .home-page .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .home-page .hero-card {
        max-width: 580px;
        margin: 0 auto;
        width: 100%;
    }
    .home-page .stats-bar-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 28px;
    }
    .home-page .stat-item:nth-child(2)::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .home-page .home-hero {
        padding: 55px 0 65px;
    }
    .home-page .hero-title {
        font-size: 28px;
    }
    .home-page .hero-subtitle {
        font-size: 15px;
    }
    .home-page .hero-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    .home-page .btn-hero-primary,
    .home-page .btn-hero-secondary {
        width: 100%;
    }
    .home-page .services-section {
        padding: 60px 0 65px;
    }
    .home-page .categories-grid {
        grid-template-columns: 1fr;
    }
    .home-page .why-choose-section {
        padding: 60px 0;
    }
    .home-page .why-features-list {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .home-page .assessment-title {
        font-size: 28px;
    }
    .home-page .assessment-desc {
        font-size: 16px;
    }
    .home-page .btn-assessment-cta {
        width: 100%;
    }
    .home-page .newsletter-inputs-row {
        flex-direction: column;
        align-items: stretch;
    }
    .home-page .newsletter-field-wrap,
    .home-page .newsletter-input,
    .home-page .newsletter-submit-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .home-page .hero-title {
        font-size: 25px;
    }
    .home-page .stat-value {
        font-size: 30px;
    }
    .home-page .stat-title {
        font-size: 14px;
    }
    .home-page .stat-caption {
        font-size: 12px;
    }
    .home-page .section-title {
        font-size: 26px;
    }
    .home-page .hero-card {
        padding: 26px 20px;
    }
    .home-page .why-accent-panel {
        padding: 28px 20px;
    }
}
