/* ================================================
   Motor Insurance Page – Gaadiwala
   Brand: Navy #1e3a8a | Orange #ffa633
   ================================================ */

/* ---- Hero Section ---- */
.mi-hero {
    position: relative;
    background: linear-gradient(135deg, #0f2460 0%, #1e3a8a 40%, #2b4fad 100%);
    padding: 130px 0 80px;
    overflow: hidden;
    color: #fff;
}

.mi-hero::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -120px;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: rgba(255, 166, 51, 0.12);
    filter: blur(80px);
    z-index: 0;
}

.mi-hero::after {
    content: "";
    position: absolute;
    bottom: -60px;
    left: -80px;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    filter: blur(60px);
    z-index: 0;
}

.mi-hero .container {
    position: relative;
    z-index: 1;
}

.mi-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 166, 51, 0.15);
    border: 1px solid rgba(255, 166, 51, 0.3);
    border-radius: 100px;
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 500;
    color: #ffa633;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    animation: fadeInDown 0.6s ease;
}

.mi-hero__title {
    color: #ffffff;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 12px;
    animation: fadeInUp 0.6s ease;
}

.mi-hero__title span {
    color: #ffa633;
}

.mi-hero__subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 520px;
    line-height: 1.6;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease;
}

.mi-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffa633;
    color: #0f2460;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(255, 166, 51, 0.35);
    animation: fadeInUp 1s ease;
}

.mi-hero__cta:hover {
    background: #ffb84d;
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 166, 51, 0.45);
    color: #0f2460;
}

.mi-hero__image {
    text-align: center;
    animation: fadeInRight 0.8s ease;
}

.mi-hero__image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.3));
}

/* ---- Stats Bar ---- */
.mi-stats {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(30, 58, 138, 0.1);
    margin-top: -50px;
    position: relative;
    z-index: 5;
    padding: 0;
    overflow: hidden;
}

.mi-stat-item {
    text-align: center;
    padding: 30px 20px;
    transition: all 0.3s ease;
    border-right: 1px solid #f0f0f0;
}

.mi-stat-item:last-child {
    border-right: none;
}

.mi-stat-item:hover {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.03), rgba(255, 166, 51, 0.05));
}

.mi-stat-item .stat-number {
    font-size: 20px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 2px;
}

.mi-stat-item .stat-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

/* ---- Insurance Type Cards ---- */
.mi-types {
    padding: 80px 0;
    background: #f9fafb;
}

.mi-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.mi-section-header .section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #ffa633;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.mi-section-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 8px;
}

.mi-section-header p {
    font-size: 12.5px;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

.mi-type-card {
    background: #fff;
    border-radius: 20px;
    padding: 35px 28px;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.mi-type-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e3a8a, #ffa633);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mi-type-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(30, 58, 138, 0.12);
    border-color: transparent;
}

.mi-type-card:hover::before {
    opacity: 1;
}

.mi-type-card__icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.mi-type-card__icon.car {
    background: rgba(30, 58, 138, 0.08);
    color: #1e3a8a;
}

.mi-type-card__icon.bike {
    background: rgba(255, 166, 51, 0.1);
    color: #e68a00;
}

.mi-type-card__icon.commercial {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.mi-type-card__icon.thirdparty {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
}

.mi-type-card:hover .mi-type-card__icon {
    transform: scale(1.1) rotate(-5deg);
}

.mi-type-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 10px;
}

.mi-type-card p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 15px;
}

.mi-type-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #ffa633;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mi-type-card__link:hover {
    color: #1e3a8a;
    gap: 10px;
}

/* ---- What is Motor Insurance ---- */
.mi-overview {
    padding: 80px 0;
    background: #fff;
}

.mi-overview__content h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 12px;
}

.mi-overview__content p {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 12px;
}

.mi-overview__image {
    position: relative;
}

.mi-overview__image img {
    border-radius: 20px;
    width: 100%;
    height: auto;
    box-shadow: 0 20px 60px rgba(30, 58, 138, 0.1);
}

.mi-overview__image .floating-badge {
    position: absolute;
    bottom: -15px;
    right: 20px;
    background: #1e3a8a;
    color: #fff;
    padding: 14px 24px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---- Coverage Benefits ---- */
.mi-benefits {
    padding: 80px 0;
    background: linear-gradient(180deg, #f0f4ff 0%, #fff 100%);
}

.mi-benefit-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px 24px;
    border: 1px solid #e5e7eb;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
}

.mi-benefit-card:hover {
    border-color: #ffa633;
    box-shadow: 0 10px 40px rgba(255, 166, 51, 0.1);
    transform: translateY(-4px);
}

.mi-benefit-card__number {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1e3a8a, #2b4fad);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 16px;
}

.mi-benefit-card h5 {
    font-size: 17px;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 10px;
}

.mi-benefit-card p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ---- Why Gaadiwala ---- */
.mi-why {
    padding: 80px 0;
    background: #fff;
}

.mi-why-item {
    display: flex;
    gap: 20px;
    padding: 24px;
    border-radius: 16px;
    transition: all 0.3s ease;
    margin-bottom: 16px;
}

.mi-why-item:hover {
    background: rgba(30, 58, 138, 0.03);
}

.mi-why-item__icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 166, 51, 0.1), rgba(255, 166, 51, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ffa633;
}

.mi-why-item h5 {
    font-size: 16px;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 6px;
}

.mi-why-item p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ---- How It Works ---- */
.mi-how {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f2460 0%, #1e3a8a 100%);
    color: #fff;
}

.mi-how .mi-section-header h2 {
    color: #fff;
}

.mi-how .mi-section-header p {
    color: rgba(255, 255, 255, 0.7);
}

.mi-how .mi-section-header .section-tag {
    color: #ffa633;
}

.mi-step {
    text-align: center;
    padding: 30px 20px;
    position: relative;
}

.mi-step__number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 166, 51, 0.15);
    border: 2px solid rgba(255, 166, 51, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #ffa633;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.mi-step:hover .mi-step__number {
    background: #ffa633;
    color: #0f2460;
    transform: scale(1.1);
}

.mi-step h5 {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.mi-step p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Step connector arrow (desktop) */
.mi-step-connector {
    position: absolute;
    top: 50px;
    right: -20px;
    color: rgba(255, 166, 51, 0.3);
    font-size: 24px;
    z-index: 2;
}

/* ---- FAQ Section ---- */
.mi-faq {
    padding: 80px 0;
    background: #f9fafb;
}

.mi-faq .accordion-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px !important;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mi-faq .accordion-item:hover {
    border-color: #c8d4f0;
}

.mi-faq .accordion-button {
    font-size: 15px;
    font-weight: 600;
    color: #1e3a8a;
    padding: 18px 24px;
    background: transparent;
    box-shadow: none;
}

.mi-faq .accordion-button:not(.collapsed) {
    background: rgba(30, 58, 138, 0.03);
    color: #1e3a8a;
}

.mi-faq .accordion-button::after {
    background-image: none;
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 12px;
    color: #ffa633;
    transition: transform 0.3s ease;
}

.mi-faq .accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
}

.mi-faq .accordion-body {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.7;
    padding: 0 24px 20px;
}

/* ---- CTA Banner ---- */
.mi-cta {
    padding: 80px 0;
    background: #fff;
}

.mi-cta__inner {
    background: linear-gradient(135deg, #1e3a8a 0%, #0f2460 100%);
    border-radius: 24px;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.mi-cta__inner::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 166, 51, 0.1);
    filter: blur(60px);
}

.mi-cta__inner h2 {
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.mi-cta__inner p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.mi-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: #ffa633;
    color: #0f2460;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(255, 166, 51, 0.3);
    position: relative;
    z-index: 1;
}

.mi-cta__btn:hover {
    background: #ffb84d;
    transform: translateY(-2px);
    color: #0f2460;
}

.mi-cta__btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.mi-cta__btn-outline:hover {
    border-color: #ffa633;
    color: #ffa633;
    transform: translateY(-2px);
}

/* ---- Table of Contents sidebar ---- */
.mi-toc {
    position: sticky;
    top: 100px;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.mi-toc h6 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #1e3a8a;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f4ff;
}

.mi-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mi-toc ul li {
    margin-bottom: 8px;
}

.mi-toc ul li a {
    font-size: 14px;
    color: #6b7280;
    text-decoration: none;
    padding: 6px 12px;
    display: block;
    border-radius: 8px;
    transition: all 0.25s ease;
    border-left: 3px solid transparent;
}

.mi-toc ul li a:hover,
.mi-toc ul li a.active {
    color: #1e3a8a;
    background: rgba(30, 58, 138, 0.04);
    border-left-color: #ffa633;
}

/* ---- Content Article Section ---- */
.mi-content {
    padding: 60px 0 80px;
    background: #fff;
}

.mi-content-article h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 16px;
    margin-top: 40px;
    scroll-margin-top: 100px;
}

.mi-content-article h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 12px;
    margin-top: 28px;
}

.mi-content-article p {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 16px;
}

.mi-content-article ul {
    padding-left: 0;
    list-style: none;
    margin-bottom: 20px;
}

.mi-content-article ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    font-size: 15px;
    color: #4b5563;
    line-height: 1.7;
}

.mi-content-article ul li::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: #ffa633;
    font-size: 14px;
}

.mi-content-article .highlight-box {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.04), rgba(255, 166, 51, 0.04));
    border-left: 4px solid #ffa633;
    border-radius: 0 14px 14px 0;
    padding: 20px 24px;
    margin: 20px 0;
}

.mi-content-article .highlight-box p {
    margin-bottom: 0;
    font-weight: 500;
    color: #1e3a8a;
}

/* ---- Comparison Table ---- */
.mi-table-wrapper {
    overflow-x: auto;
    margin: 24px 0;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
}

.mi-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.mi-table thead th {
    background: linear-gradient(135deg, #1e3a8a, #2b4fad);
    color: #fff;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
}

.mi-table tbody td {
    padding: 14px 20px;
    font-size: 14px;
    color: #4b5563;
    border-bottom: 1px solid #f0f0f0;
}

.mi-table tbody tr:hover {
    background: rgba(30, 58, 138, 0.02);
}

.mi-table .badge-yes {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.mi-table .badge-no {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* ---- Animations ---- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .mi-hero {
        padding: 100px 0 60px;
        text-align: center;
    }

    .mi-hero__title {
        font-size: 30px;
    }

    .mi-hero__subtitle {
        margin: 0 auto 30px;
        font-size: 15px;
    }

    .mi-hero__image {
        margin-top: 40px;
    }

    .mi-stat-item {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        padding: 20px 15px;
    }

    .mi-stat-item:last-child {
        border-bottom: none;
    }

    .mi-section-header h2 {
        font-size: 26px;
    }

    .mi-types,
    .mi-benefits,
    .mi-why,
    .mi-faq,
    .mi-how {
        padding: 60px 0;
    }

    .mi-cta__inner {
        padding: 40px 24px;
        text-align: center;
    }

    .mi-cta__inner h2 {
        font-size: 24px;
    }

    .mi-step-connector {
        display: none;
    }

    .mi-toc {
        position: static;
        margin-bottom: 30px;
    }

    .mi-content-article h2 {
        font-size: 22px;
    }
}

@media (max-width: 575.98px) {
    .mi-hero__title {
        font-size: 26px;
    }

    .mi-stats {
        margin-top: -30px;
        border-radius: 16px;
    }

    .mi-stat-item .stat-number {
        font-size: 24px;
    }

    .mi-type-card {
        padding: 25px 20px;
    }
}
