﻿
/* =========================================================
   LADIYA LEGAL CHAMBER
   CCTNS & MOTOR VEHICLE ACT PAGE
   Responsive CSS - Separate stylesheet
   ========================================================= */
.cctns-mva-page {
    --cm-maroon: #641a1c;
    --cm-dark: #27090a;
    --cm-gold: #f4c642;
    --cm-accent: #9b2e19;
    --cm-light: #faf8f5;
    --cm-text: #454545;
    --cm-muted: #777777;
    --cm-border: #eadfdb;
    width: 100%;
    overflow: hidden;
    background: var(--cm-light);
    color: var(--cm-text);
    font-family: inherit;
}

    .cctns-mva-page *,
    .cctns-mva-page *::before,
    .cctns-mva-page *::after {
        box-sizing: border-box;
    }

    .cctns-mva-page img {
        max-width: 100%;
    }

/* =========================
   HERO SECTION
   ========================= */

.cm-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 76px 0 66px;
    color: #ffffff;
    background: linear-gradient( 120deg, var(--cm-dark) 0%, var(--cm-maroon) 60%, #7d2526 100% );
}

    .cm-hero::before {
        content: "";
        position: absolute;
        z-index: -1;
        width: 340px;
        height: 340px;
        top: -180px;
        right: 6%;
        border: 1px solid rgba(244, 198, 66, 0.22);
        border-radius: 50%;
        box-shadow: 0 0 0 28px rgba(244, 198, 66, 0.035), 0 0 0 58px rgba(244, 198, 66, 0.025);
    }

    .cm-hero::after {
        content: "";
        position: absolute;
        z-index: -1;
        width: 260px;
        height: 260px;
        bottom: -205px;
        left: 8%;
        border: 1px solid rgba(244, 198, 66, 0.24);
        border-radius: 50%;
        box-shadow: 0 0 0 24px rgba(244, 198, 66, 0.035);
    }

.cm-hero-pattern {
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: 0.12;
    background-image: radial-gradient( rgba(244, 198, 66, 0.8) 0.7px, transparent 0.7px );
    background-size: 18px 18px;
    pointer-events: none;
}

.cm-hero-content {
    position: relative;
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.cm-eyebrow {
    display: inline-block;
    margin-bottom: 15px;
    color: var(--cm-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.cm-hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(32px, 4.3vw, 52px);
    font-weight: 750;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.cm-title-line {
    width: 76px;
    height: 4px;
    margin: 23px auto 20px;
    border-radius: 4px;
    background: var(--cm-gold);
}

.cm-hero-content > p {
    max-width: 680px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.86);
    font-size: 16px;
    line-height: 1.85;
}

.cm-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin-top: 24px;
    font-size: 13px;
}

    .cm-breadcrumb a {
        color: var(--cm-gold);
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .cm-breadcrumb a:hover {
            color: #ffffff;
        }

.cm-breadcrumb-separator {
    color: rgba(255, 255, 255, 0.55);
}

.cm-breadcrumb > span:last-child {
    color: rgba(255, 255, 255, 0.88);
}

/* =========================
   MAIN SECTION
   ========================= */

.cm-main-section {
    padding: 65px 0 76px;
    background: var(--cm-light);
}

.cm-intro-card {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    margin-bottom: 65px;
    padding: 28px 30px;
    border: 1px solid var(--cm-border);
    border-left: 5px solid var(--cm-gold);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 9px 28px rgba(39, 9, 10, 0.055);
}

.cm-intro-icon {
    display: flex;
    flex: 0 0 58px;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 12px;
    background: var(--cm-maroon);
    color: var(--cm-gold);
    font-size: 25px;
}

.cm-intro-content {
    flex: 1;
    min-width: 0;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.cm-small-label {
    display: block;
    margin-bottom: 7px;
    color: var(--cm-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.cm-intro-content h1,
.cm-intro-content h2,
.cm-intro-content h3,
.cm-intro-content h4 {
    color: var(--cm-maroon);
    line-height: 1.4;
}

.cm-intro-content p:last-child {
    margin-bottom: 0;
}

/* =========================
   SECTION HEADING
   ========================= */

.cm-section-heading {
    max-width: 760px;
    margin: 0 auto 36px;
    text-align: center;
}

.cm-section-kicker {
    display: block;
    margin-bottom: 10px;
    color: var(--cm-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.2px;
}

.cm-section-heading h2 {
    margin: 0;
    color: var(--cm-maroon);
    font-size: clamp(27px, 3vw, 38px);
    font-weight: 750;
    line-height: 1.3;
}

.cm-heading-line {
    width: 62px;
    height: 4px;
    margin: 17px auto;
    border-radius: 5px;
    background: var(--cm-gold);
}

.cm-section-heading p {
    margin: 0;
    color: var(--cm-muted);
    font-size: 15px;
    line-height: 1.8;
}

/* =========================
   TAB PANEL
   ========================= */

.cm-resource-panel {
    padding: 18px;
    border: 1px solid var(--cm-border);
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 12px 38px rgba(39, 9, 10, 0.055);
}

.cm-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    border: 0;
    border-radius: 10px;
    background: var(--cm-dark);
}

    .cm-tabs .nav-item {
        flex: 1 1 200px;
        min-width: 0;
    }

    .cm-tabs .nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 11px;
        width: 100%;
        min-height: 52px;
        padding: 13px 18px;
        border: 1px solid transparent;
        border-radius: 7px;
        background: transparent;
        color: #ffffff;
        font-family: inherit;
        font-size: 14px;
        font-weight: 700;
        text-align: center;
        transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    }

        .cm-tabs .nav-link i {
            color: var(--cm-gold);
            font-size: 17px;
        }

        .cm-tabs .nav-link:hover {
            border-color: rgba(244, 198, 66, 0.35);
            color: var(--cm-gold);
        }

        .cm-tabs .nav-link.active,
        .cm-tabs .nav-link.active:hover {
            border-color: var(--cm-gold);
            background: var(--cm-gold);
            color: var(--cm-dark);
        }

            .cm-tabs .nav-link.active i {
                color: var(--cm-dark);
            }

        .cm-tabs .nav-link:focus-visible,
        .cm-read-more:focus-visible,
        .cm-contact-button:focus-visible {
            outline: 3px solid #d99f00;
            outline-offset: 3px;
        }

.cm-tab-content {
    padding: 30px 10px 12px;
}

.cm-tab-heading {
    margin-bottom: 27px;
}

    .cm-tab-heading h3 {
        margin: 0 0 7px;
        color: var(--cm-maroon);
        font-size: 23px;
        font-weight: 750;
        line-height: 1.4;
    }

    .cm-tab-heading p {
        margin: 0;
        color: var(--cm-muted);
        font-size: 14px;
        line-height: 1.7;
    }

/* =========================
   RESOURCE CARDS
   ========================= */

.cm-resource-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #eee5e1;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 5px 18px rgba(39, 9, 10, 0.055);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

    .cm-resource-card:hover {
        transform: translateY(-6px);
        border-color: rgba(244, 198, 66, 0.9);
        box-shadow: 0 14px 32px rgba(39, 9, 10, 0.13);
    }

.cm-card-image-wrap {
    position: relative;
    height: 215px;
    overflow: hidden;
    background: #eee8e2;
}

.cm-card-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.45s ease;
}

.cm-resource-card:hover .cm-card-image {
    transform: scale(1.055);
}

.cm-image-badge {
    position: absolute;
    bottom: 14px;
    left: 14px;
    max-width: calc(100% - 28px);
    padding: 7px 11px;
    border-radius: 4px;
    background: var(--cm-maroon);
    color: var(--cm-gold);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    overflow-wrap: anywhere;
}

.cm-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
}

.cm-card-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--cm-accent);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.5px;
}

    .cm-card-category i {
        color: var(--cm-maroon);
        font-size: 14px;
    }

.cm-card-title {
    width: 100%;
    margin: 0 0 22px;
    color: var(--cm-dark);
    font-size: 19px;
    font-weight: 750;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.cm-card-footer {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f0e8e4;
}

.cm-read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 40px;
    padding: 9px 15px;
    border: 1px solid var(--cm-maroon);
    border-radius: 5px;
    background: #ffffff;
    color: var(--cm-maroon);
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

    .cm-read-more i {
        transition: transform 0.25s ease;
    }

    .cm-read-more:hover {
        border-color: var(--cm-maroon);
        background: var(--cm-maroon);
        color: #ffffff;
    }

        .cm-read-more:hover i {
            transform: translateX(4px);
        }

/* =========================
   CONTACT BANNER
   ========================= */

.cm-contact-banner {
    padding: 0 0 70px;
    background: var(--cm-light);
}

.cm-contact-inner {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 34px 38px;
    border-radius: 13px;
    background: linear-gradient( 115deg, var(--cm-dark), var(--cm-maroon) );
    box-shadow: 0 12px 32px rgba(39, 9, 10, 0.13);
}

.cm-contact-icon {
    display: flex;
    flex: 0 0 66px;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    border: 1px solid rgba(244, 198, 66, 0.45);
    border-radius: 12px;
    background: rgba(244, 198, 66, 0.1);
    color: var(--cm-gold);
    font-size: 29px;
}

.cm-contact-text {
    flex: 1;
    min-width: 0;
}

    .cm-contact-text > span {
        display: block;
        margin-bottom: 6px;
        color: var(--cm-gold);
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 1.8px;
    }

    .cm-contact-text h2 {
        margin: 0 0 8px;
        color: #ffffff;
        font-size: 25px;
        font-weight: 750;
        line-height: 1.35;
    }

    .cm-contact-text p {
        margin: 0;
        color: rgba(255, 255, 255, 0.82);
        font-size: 14px;
        line-height: 1.7;
    }

.cm-contact-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-height: 47px;
    padding: 12px 21px;
    border: 1px solid var(--cm-gold);
    border-radius: 5px;
    background: var(--cm-gold);
    color: var(--cm-dark);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease;
}

    .cm-contact-button:hover {
        background: transparent;
        color: var(--cm-gold);
    }

/* =========================
   TABLET RESPONSIVENESS
   ========================= */

@media (max-width: 991.98px) {
    .cm-hero {
        padding: 62px 0 55px;
    }

    .cm-main-section {
        padding: 52px 0 60px;
    }

    .cm-intro-card {
        margin-bottom: 50px;
        padding: 24px;
    }

    .cm-resource-panel {
        padding: 13px;
    }

    .cm-tab-content {
        padding: 25px 7px 8px;
    }

    .cm-card-image-wrap {
        height: 200px;
    }

    .cm-contact-inner {
        padding: 28px;
        gap: 20px;
    }

    .cm-contact-text h2 {
        font-size: 22px;
    }
}

/* =========================
   MOBILE RESPONSIVENESS
   ========================= */

@media (max-width: 767.98px) {
    .cm-hero {
        padding: 48px 0 44px;
    }

    .cm-eyebrow {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .cm-hero h1 {
        font-size: 32px;
    }

    .cm-hero-content > p {
        font-size: 14px;
        line-height: 1.75;
    }

    .cm-main-section {
        padding: 38px 0 45px;
    }

    .cm-intro-card {
        gap: 15px;
        margin-bottom: 42px;
        padding: 19px;
    }

    .cm-intro-icon {
        flex-basis: 46px;
        width: 46px;
        height: 46px;
        border-radius: 9px;
        font-size: 21px;
    }

    .cm-section-heading {
        margin-bottom: 27px;
    }

        .cm-section-heading h2 {
            font-size: 28px;
        }

        .cm-section-heading p {
            font-size: 14px;
        }

    .cm-resource-panel {
        padding: 9px;
        border-radius: 11px;
    }

    .cm-tabs {
        gap: 6px;
        padding: 6px;
    }

        .cm-tabs .nav-item {
            flex-basis: 100%;
        }

        .cm-tabs .nav-link {
            min-height: 46px;
            padding: 11px 13px;
            font-size: 13px;
        }

    .cm-tab-content {
        padding: 22px 4px 5px;
    }

    .cm-tab-heading h3 {
        font-size: 21px;
    }

    .cm-card-image-wrap {
        height: 220px;
    }

    .cm-card-body {
        padding: 19px;
    }

    .cm-card-title {
        font-size: 18px;
    }

    .cm-contact-banner {
        padding-bottom: 45px;
    }

    .cm-contact-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 17px;
        padding: 25px 22px;
    }

    .cm-contact-icon {
        flex-basis: 55px;
        width: 55px;
        height: 55px;
        font-size: 24px;
    }

    .cm-contact-text h2 {
        font-size: 22px;
    }

    .cm-contact-button {
        width: 100%;
    }
}

/* =========================
   SMALL MOBILE
   ========================= */

@media (max-width: 400px) {
    .cm-hero h1 {
        font-size: 28px;
    }

    .cm-breadcrumb {
        gap: 7px;
        font-size: 12px;
    }

    .cm-intro-card {
        flex-direction: column;
        padding: 17px;
    }

    .cm-section-heading h2 {
        font-size: 25px;
    }

    .cm-resource-panel {
        padding: 7px;
    }

    .cm-card-image-wrap {
        height: 185px;
    }

    .cm-card-body {
        padding: 16px;
    }

    .cm-card-title {
        font-size: 17px;
    }

    .cm-contact-inner {
        padding: 21px 17px;
    }
}

/* =========================
   ACCESSIBILITY
   ========================= */

@media (prefers-reduced-motion: reduce) {
    .cctns-mva-page *,
    .cctns-mva-page *::before,
    .cctns-mva-page *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .cm-resource-card:hover {
        transform: none;
    }
}
