/* ============================================================
   FIRST-PAINT THEME GUARD
   The HTML bootstrap sets html.dark-mode before CSS is parsed.
   ============================================================ */
html.dark-mode.theme-preload body.home-body {
    background: linear-gradient(135deg, #121212 0%, #1f1f1f 100%) !important;
    color: #ffffff !important;
}

html.dark-mode.theme-preload #logo {
    display: none !important;
}

html.dark-mode.theme-preload #logo-dark {
    display: inline !important;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

html,
body {
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    /* Added transition for smooth dark mode fading */
    transition: background var(--transition-base), color var(--transition-base);
}
/* ============================================================
   2. BODY
   ============================================================ */
.home-body {
    width: 100%;
    min-height: 100%;
    color: var(--text-color);
    background-image: var(--primary-background);
    font-family: var(--primary-main-font);
    font-size: var(--para-font-size);
}

/* ============================================================
   3. GLOBAL TYPOGRAPHY
   ============================================================ */
p {
    line-height: 1.75;
    font-size: var(--para-font-size);
    font-family: var(--primary-main-font);
    color: var(--text-color);
    margin: 0.5rem 0;
    text-wrap: balance;
    overflow-wrap: break-word;
}

strong {
    font-weight: 600;
    color: var(--text-strong);
}

a {
    color: var(--link-color);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition-fast);
}

a:hover,
a:focus {
    color: var(--link-hover-color);
}

a:focus-visible {
    outline: 3px solid var(--accent-blue);
    outline-offset: 3px;
    border-radius: 3px;
}

[lang="hi"] {
    font-family: var(--hindi-font), var(--primary-main-font);
    font-size: 1.05rem;
    line-height: 1.9;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-background);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        var(--accent-blue) 0%,
        var(--accent-dark-blue) 100%
    );
    border-radius: var(--radius-pill);
    border: 2px solid var(--primary-background);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-dark-blue);
}


/* ============================================================
   4. MAIN CONTENT WRAPPER
   ============================================================ */
.main-content {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    margin-top: 2rem;
    padding: 0;
    border-radius: var(--radius-lg);
    width: 100%;
}

/* ============================================================
   5. PAGE TITLE — H1
   ============================================================ */
.page-title {
    display: flex;
    width: 95%;
    height: auto;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: var(--heading-font);
    font-weight: 600;
    font-style: normal;
    font-size: clamp(2.5rem, 1rem + 4vw, 3rem);
    padding-top: 2rem;
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
    line-height: 1.65;
    letter-spacing: 0.02em;
    word-break: break-word;
}

/* ============================================================
   6. BREADCRUMB NAVIGATION
   ============================================================ */
.breadcrumb-nav {
    width: var(--section-width);
    max-width: var(--max-width);
    margin-top: 3.75rem;
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--accent-gradient);
    border-radius: var(--radius-pill);
    border: 2px solid var(--accent-blue-border);
}

.breadcrumb-list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.3rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    font-family: var(--nav-head-font);
    font-size: 0.72rem;
    font-weight: 300;
    color: var(--text-muted);
}

.breadcrumb-item a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 400;
    transition: color var(--transition-fast);
}

.breadcrumb-item a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.breadcrumb-separator {
    color: var(--text-muted);
    font-size: 0.9rem;
    user-select: none;
}

.breadcrumb-current {
    color: var(--text-strong);
    font-weight: 500;
}

/* ============================================================
   7. INTRODUCTION SECTION
   ============================================================ */
.main-section-introduction {
    display: flex;
    background: var(--primary-gradient);
    justify-content: center;
    align-items: center;
    padding: var(--spacing-md);
    margin: var(--spacing-sm);
    border-radius: var(--radius-lg);
    flex-direction: column;
    transition: box-shadow var(--transition-base);
    max-width: var(--max-width);
    width: var(--section-width);
    text-align: center;
}

.main-section-introduction:hover {
    box-shadow: 0 0 0.75rem var(--box-shadow-color);
    border-block-color: #2b8ffa;
}

.main-section-introduction p {
    display: inline;
    font-family: var(--primary-main-font);
    font-size: var(--para-font-size);
    line-height: 2.2;
    text-align: center;
    margin: 0.5rem 0;
    text-wrap: balance;
    overflow-wrap: break-word;
}

.intro-highlight {
    font-size: clamp(1rem, 2vw, 1.18rem) !important;
    font-weight: 500;
    line-height: 1.85 !important;
    margin-bottom: var(--spacing-sm) !important;
}

/* ============================================================
   8. LEGAL IMAGERY
   ============================================================ */
.legal-img-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: var(--spacing-sm);
    width: var(--section-width);
    max-width: var(--max-width);
    margin: var(--spacing-sm) var(--spacing-sm) var(--spacing-xs);
}

.legal-img-wrap {
    flex: 1 1 calc(50% - 1rem);
    min-width: 14rem;
    max-width: 30rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 4px solid var(--accent-blue-border);
    box-shadow: var(--box-shadow-md);
    transition: box-shadow var(--transition-base),
                transform var(--transition-base);
    background: #1a1a1a;
}

.legal-img-wrap:hover {
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-3px);
}

.legal-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 14rem;
    max-height: 22rem;
}

.legal-img-single {
    width: var(--section-width);
    max-width: var(--max-width);
    margin: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 4px solid var(--accent-blue-border);
    box-shadow: var(--box-shadow-md);
    transition: box-shadow var(--transition-base),
                transform var(--transition-base);
    background: #000;
}

.legal-img-single:hover {
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-3px);
}

.legal-img-single img {
    display: block;
}

.legal-img-single.img-gavel {
    height: 30rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1210;
    border-color: var(--accent-blue-border-strong);
}

.legal-img-single.img-gavel img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1 ;
    max-height: none;
    object-fit: cover;
    object-position: center;
}

/* ============================================================
   9. EXPERIENCE HIGHLIGHT BAR
   ============================================================ */
.exp-highlight {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin: var(--spacing-md) var(--spacing-sm) var(--spacing-xs);
    padding: 1.2rem 2rem;
    border-radius: var(--radius-lg);
    background: var(--header-background);
    border: 4px solid #1f6fc3cc;
    width: var(--section-width);
    max-width: var(--max-width);
}

.exp-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.exp-stat .number {
    font-family: var(--heading-font);
    font-size: 2.2rem;
    font-weight: 700;
    color: #bb6000;
}

.exp-stat .label {
    font-family: var(--nav-head-font);
    font-size: 0.6rem;
    font-weight: 300;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: center;
    line-height: 1.4;
}

.exp-divider {
    width: 1px;
    height: 2.8rem;
    background: var(--accent-blue-border-strong);
}

/* ============================================================
   10. SHARED SECTION HEADING — H2
   ============================================================ */
.section-heading {
    font-family: var(--heading-font);
    font-size: clamp(1.05rem, 2.5vw, 1.45rem);
    font-weight: 500;
    text-align: center;
    width: 100%;
    text-wrap: balance;
    margin: 0 0 var(--spacing-md);
    letter-spacing: 0.025em;
    line-height: 1.4;
    color: var(--text-color);
}

/* ============================================================
   11. CREDENTIALS SECTION
   ============================================================ */
.credentials-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: var(--section-width);
    max-width: var(--max-width);
    margin: var(--spacing-md) var(--spacing-sm);
    border-radius: var(--radius-lg);
    background-color: var(--text-secondary-color);
    border: solid rgb(88 85 78 / 0.99);
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-lg);
    transition: box-shadow var(--transition-base);
    text-align: left;
}

.credentials-section:hover {
    box-shadow: 0.5rem 0.75rem 1.875rem var(--box-shadow-color);
}

.credentials-intro {
    display: inline;
    font-family: var(--primary-main-font);
    font-size: var(--para-font-size);
    padding-inline: clamp(1rem, 4vw, 1.25rem);
    line-height: 1.8;
    text-align: center;
    margin-bottom: var(--spacing-md);
    color: var(--text-muted);
    text-wrap: balance;
    width: 100%;
}

.credentials-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.credentials-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    font-family: var(--primary-main-font);
    font-size: 0.92rem;
    line-height: 1.65;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    border: 4px solid var(--accent-blue-border-strong);
    background: var(--primary-gradient);
    transition: box-shadow var(--transition-base),
                transform var(--transition-fast);
}

.credentials-list li:hover {
    box-shadow: 0.1875rem 0.1875rem 1.5rem var(--box-shadow-color);
    transform: translateX(4px);
}

.cred-bullet {
    font-size: 1.1rem;
    flex-shrink: 0;
    color: var(--accent-blue);
    margin-top: 0.05rem;
}

.cred-content {
    flex: 1;
}

.cred-content strong {
    display: block;
    font-size: 0.93rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
    color: var(--text-strong);
}

/* ============================================================
   12. EXPERIENCE SECTION
   ============================================================ */
.experience-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: var(--section-width);
    max-width: var(--max-width);
    margin: var(--spacing-md) var(--spacing-sm);
    border-radius: var(--radius-lg);
    background-color: var(--text-secondary-color);
    border: solid rgb(88 85 78 / 0.99);
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-lg);
    transition: box-shadow var(--transition-base);
    text-align: left;
}

.experience-section:hover {
    box-shadow: 0.5rem 0.75rem 1.875rem var(--box-shadow-color);
}

.experience-section .section-heading {
    margin-bottom: var(--spacing-sm);
}

.exp-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.exp-list li {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    text-align:start;
    word-break:normal;
    gap: 0.75rem;
    font-family: var(--primary-main-font);
    font-size: 0.9rem;
    line-height: 1.65;
    padding: 0.75rem var(--spacing-sm);
    border-radius: var(--radius-sm);
    border: 4px solid var(--accent-blue-border-strong);
    background: var(--primary-gradient);
    transition: box-shadow var(--transition-base),
                transform var(--transition-fast);
}

.exp-list li:hover {
    box-shadow: 0.1875rem 0.1875rem 1.5rem var(--box-shadow-color);
    transform: translateX(3px);
    border-block-color: #2b8ffa;
}

.exp-bullet {
    font-size: 1.1rem;
    flex-shrink: 0;
    color: var(--accent-blue);
    margin-top: 0.05rem;
}

.exp-list li strong {
    font-weight: 700;
    color: var(--text-strong);
}

/* ============================================================
   13. PRACTICE AREAS SECTION
   ============================================================ */
.practice-areas-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: var(--section-width);
    max-width: var(--max-width);
    margin: var(--spacing-md) var(--spacing-sm);
    padding: var(--spacing-lg) var(--spacing-md);
    border-radius: var(--radius-lg);
    background-color: var(--text-secondary-color);
    border: solid rgb(88 85 78 / 0.99);
    transition: box-shadow var(--transition-base);
}

.practice-areas-section:hover {
    box-shadow: 0.5rem 0.75rem 1.875rem var(--box-shadow-color);
}

.practice-areas-section > p {
    font-family: var(--primary-main-font);
    font-size: var(--para-font-size);
    line-height: 1.8;
    text-align: center;
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
    text-wrap: balance;
    overflow-wrap: break-word;
    width: 100%;
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
    gap: var(--spacing-sm);
    width: 100%;
}

.practice-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-xs);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 4px solid var(--accent-blue-border-strong);
    background: var(--primary-gradient);
    transition: box-shadow var(--transition-base),
                transform var(--transition-base),
                border-color var(--transition-base);
    position: relative;
    overflow: hidden;
}

.practice-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--card-gradient);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 0;
    pointer-events: none;
}

.practice-card:hover {
    box-shadow: 0.1875rem 0.1875rem 1.5rem var(--box-shadow-color);
    transform: translateY(-4px);
    border-color: #2b8ffa;
}

.practice-card:hover::before {
    opacity: 0.4;
}

.practice-card > * {
    position: relative;
    z-index: 1;
}

.practice-card-icon {
    font-size: 1.6rem;
    line-height: 1;
    color: var(--accent-blue);
    flex-shrink: 0;
}

.practice-card h3 {
    font-family: var(--heading-font);
    font-size: clamp(0.85rem, 1.8vw, 1rem);
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-strong);
    margin: 0;
    letter-spacing: 0.01em;
}

.practice-card p {
    font-family: var(--primary-main-font);
    font-size: 0.83rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0;
    flex: 1;
}

.practice-card-link {
    display: inline-block;
    margin-top: var(--spacing-xs);
    font-family: var(--nav-head-font);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-pill);
    border: 2px solid var(--accent-blue-border-strong);
    background: rgba(19, 223, 250, 0.678);
    transition: background var(--transition-base),
                border-color var(--transition-base),
                color var(--transition-fast),
                transform var(--transition-fast);
    letter-spacing: 0.03em;
}

.practice-card-link:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #fff;
    transform: translateX(3px);
}

.practice-card-link:focus-visible {
    outline: 3px solid var(--accent-blue);
    outline-offset: 3px;
}

/* ============================================================
   14. DEFENSE PHILOSOPHY SECTION
   ============================================================ */
.philosophy-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--primary-gradient);
    padding: var(--spacing-lg) var(--spacing-md);
    margin: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-lg);
    transition: box-shadow var(--transition-base);
    max-width: var(--max-width);
    width: var(--section-width);
    text-align: center;
    gap: var(--spacing-sm);
}

.philosophy-section:hover {
    box-shadow: 0 0 0.75rem var(--box-shadow-color);
}

.philosophy-section p {
    font-family: var(--primary-main-font);
    font-size: var(--para-font-size);
    line-height: 1.8;
    display: inline;
    text-align: center;
    color: var(--text-muted);
    text-wrap: balance;
    overflow-wrap: break-word;
    width: 100%;
    margin: 0;
}

/* ============================================================
   15. BNS / BNSS TRANSITION SECTION
   ============================================================ */
.bns-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: var(--section-width);
    max-width: var(--max-width);
    margin: var(--spacing-md) var(--spacing-sm);
    border-radius: var(--radius-lg);
    background-color: var(--text-secondary-color);
    border: solid rgb(88 85 78 / 0.99);
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-lg);
    transition: box-shadow var(--transition-base);
}

.bns-section:hover {
    box-shadow: 0.5rem 0.75rem 1.875rem var(--box-shadow-color);
}

.bns-section > p {
    font-family: var(--primary-main-font);
    font-size: var(--para-font-size);
    line-height: 1.8;
    display: inline;
    text-align: center;
    padding-inline: clamp(1.25rem, 4vw, 1.45rem);
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
    text-wrap: balance;
    width: 100%;
}

.bns-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bns-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-family: var(--primary-main-font);
    font-size: 0.9rem;
    line-height: 1.65;
    padding: 0.75rem var(--spacing-sm);
    border-radius: var(--radius-sm);
    /*! border: 4px solid #2b8ffac9; */
    background: var(--primary-gradient);
    transition: box-shadow var(--transition-base),
                transform var(--transition-fast);
}

.bns-list li:hover {
    box-shadow: 0.1875rem 0.1875rem 1.5rem var(--box-shadow-color);
    transform: translateX(3px);
    border-block-color: #2b8ffa; /* Removed extra semicolon */
}

.bns-list li strong {
    font-weight: 700;
    color: #ff8300;
    flex-shrink: 0;
    min-width: 10rem;
    display: inline-block;
}

/* ============================================================
   16. CLOSING SECTION
   ============================================================ */
.closing-section {
    display: flex;
    background: var(--primary-gradient);
    justify-content: center;
    align-items: center;
    padding: var(--spacing-md);
    margin: var(--spacing-xs) var(--spacing-sm) var(--spacing-sm);
    border-radius: var(--radius-lg);
    flex-direction: column;
    transition: box-shadow var(--transition-base);
    max-width: var(--max-width);
    width: var(--section-width);
    font-style: italic;
    text-align: center;
    gap: var(--spacing-sm);
}

.closing-section:hover {
    box-shadow: 0 0 0.75rem var(--box-shadow-color);
}

.closing-section p {
    font-family: var(--primary-main-font);
    font-size: var(--para-font-size);
    line-height: 2.20;
    display: inline;
    padding-inline: clamp(1.2rem, 4vw, 1.45rem);
    text-wrap: balance;
    text-align: center;
    overflow-wrap: anywhere;
    width: 100%;
    font-style: italic;
}

.closing-cta-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-top: var(--spacing-xs);
    font-style: normal;
}

.cta-text-link {
    display: inline-block;
    font-family: var(--nav-head-font);
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-pill);
    border: 2px solid #ffffff;
    background: rgb(0, 129, 146); /* Removed extra semicolon */
    transition: background var(--transition-base),
                color var(--transition-fast),
                transform var(--transition-fast),
                border-color var(--transition-base);
    letter-spacing: 0.02em;
    font-style: normal;
}

.cta-text-link:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: white;
    transform: translateY(-2px);
}

.cta-text-link:focus-visible {
    outline: 3px solid var(--accent-blue);
    outline-offset: 3px;
}

/* ============================================================
   17. INTERNAL NAVIGATION LINKS
   ============================================================ */
.internal-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: var(--section-width);
    max-width: var(--max-width);
    margin: var(--spacing-sm) var(--spacing-sm) var(--spacing-md);
    padding: var(--spacing-lg) var(--spacing-md);
    border-radius: var(--radius-lg);
    background: var(--header-background);
    border: 4px solid var(--accent-blue-border);
    transition: box-shadow var(--transition-base);
}

.internal-nav-links:hover {
    box-shadow: var(--box-shadow-md);
}

.internal-nav-links h3 {
    font-family: var(--heading-font);
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 400;
    text-align: center;
    margin: 0 0 var(--spacing-sm);
    color: var(--text-color);
    letter-spacing: 0.02em;
}

.internal-nav-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.internal-nav-links li {
    display: flex;
    align-items: center;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    transition: background var(--transition-base),
                transform var(--transition-fast),
                border-color var(--transition-base);
}

.internal-nav-links li::before {
    content: "→";
    margin-right: var(--spacing-xs);
    font-size: 0.85rem;
    color: var(--accent-blue);
    flex-shrink: 0;
}

.internal-nav-links li:hover {
    background: rgba(43, 143, 250, 0.08);
    border-color: var(--accent-blue-border);
    transform: translateX(4px);
}

.internal-nav-links a {
    font-family: var(--nav-head-font);
    font-size: 0.72rem;
    font-weight: 300;
    color: var(--link-color);
    text-decoration: none;
    transition: color var(--transition-fast);
    line-height: 1.5;
}

.internal-nav-links a:hover {
    color: var(--service-link-hover-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.internal-nav-links a strong {
    font-weight: 600;
    font-size: 0.75rem;
}

/* ============================================================
   18. WORKING HOURS SECTION
   ============================================================ */
.working-hours {
    background-color: var(--text-secondary-color);
    font-family: var(--nav-head-font);
    font-size: var(--para-font-size);
    font-weight: 300;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: var(--section-width);
    max-width: var(--max-width);
    padding: var(--spacing-lg) var(--spacing-md);
    margin: var(--spacing-sm) auto var(--spacing-xl);
    border-radius: var(--radius-md);
    border: 4px solid var(--accent-blue-border);
    box-shadow: var(--box-shadow-sm);
    transition: box-shadow var(--transition-base);
    gap: var(--spacing-md);
}

.working-hours:hover {
    box-shadow: var(--box-shadow-md);
}

.working-hours-heading {
    font-family: var(--heading-font);
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    font-weight: 400;
    color: var(--text-color);
    margin: 0;
    letter-spacing: 0.02em;
}

.working-hours-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    width: 100%;
}

.hours-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.hours-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.hours-time {
    font-family: var(--heading-font);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 600;
    color: var(--text-strong);
    margin: 0;
}

.hours-days {
    font-family: var(--nav-head-font);
    font-size: 0.68rem;
    font-weight: 300;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    line-height: 1.5;
}

.hours-divider {
    width: 1px;
    height: 3rem;
    background: var(--accent-blue-border-strong);
}

.hours-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-top: var(--spacing-xs);
}

.hours-call-btn,
.hours-wa-btn {
    display: inline-block;
    font-family: var(--nav-head-font);
    font-size: 0.72rem;
    font-weight: 400;
    text-decoration: none;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-pill);
    transition: background var(--transition-base),
                color var(--transition-fast),
                transform var(--transition-fast),
                box-shadow var(--transition-base);
    letter-spacing: 0.03em;
}

.hours-call-btn {
    background: var(--accent-blue);
    color: #fff;
    border: 2px solid var(--accent-blue);
}

.hours-call-btn:hover {
    background: var(--accent-dark-blue);
    border-color: var(--accent-dark-blue);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-sm);
    color: #fff;
}

.hours-wa-btn {
    background: #00da54;
    color: #fff;
    border: 2px solid #00da54;
}

.hours-wa-btn:hover {
    background: #00b844;
    border-color: #00b844;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-sm);
    color: #fff;
}

.hours-call-btn:focus-visible,
.hours-wa-btn:focus-visible {
    outline: 3px solid var(--accent-blue);
    outline-offset: 3px;
}

/* ============================================================
   19. WHATSAPP FIXED BUTTON
   ============================================================ */
.waBook {
    position: fixed;
    right: 2%;
    bottom: 2%;
    z-index: 999;
    filter: drop-shadow(0 4px 10px rgba(0, 218, 84, 0.3));
    transition: filter var(--transition-base),
                transform var(--transition-fast);
}

.waBook:hover {
    filter: drop-shadow(0 6px 16px rgba(0, 218, 84, 0.55));
    transform: translateY(-2px);
}

.fixedWa {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    text-decoration: none;
}

.wa-svg-wrap {
    display: block;
    width: 35px;
    height: 35px;
    transition: transform var(--transition-fast);
}

.fixedWa:hover .wa-svg-wrap {
    transform: scale(1.1) rotate(-5deg);
}

.fixedWa span {
    background-color: #00da54;
    border: 2px solid #ffffff;
    font-size: 0.875rem;
    padding: 2px 6px;
    border-radius: var(--radius-pill);
    font-family: var(--hindi-font), sans-serif;
    font-weight: 200;
    color: var(--text-secondary-color);
    white-space: nowrap;
}

    /* ---------- 14. FOOTER ---------- */
.downFooter{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    width:100%;
    height:auto;
    margin-top:clamp(2rem,5vw,3rem);
    padding-top:3rem;
    padding-bottom:clamp(1.5rem,4vw,2rem);
    background-color:rgba(161,175,222,.32);
    border-top:2px solid #c3cfe2;
    box-shadow:0 -2px 12px rgba(0,0,0,.08);
    transition:background var(--spring),border-color var(--spring),box-shadow var(--spring);
}
:is(html.dark-mode,body.dark-mode) .downFooter{
    background-color:rgba(20,30,50,.55);
    border-top-color:#333;
    box-shadow:0 -2px 12px rgba(0,0,0,.4);
}
.socialLink{display:flex;flex-direction:column;align-items:center;gap:.5rem;margin-bottom:clamp(.5rem,2vw,1rem)}
.socialLink p{
    margin:0;
    padding-bottom:2rem;
    font-family:var(--nav-head-font);
    font-size:var(--para-font-size);
    font-weight:300;
    transition:color var(--spring);
}
.socialIcons{display:flex;flex-direction:row;align-items:center;justify-content:center;flex-wrap:wrap;gap:clamp(1rem,3vw,1.5rem)}
.social-logo{
    width:28px;
    height:28px;
    object-fit:contain;
    filter:grayscale(15%);
    transition:transform var(--spring),filter var(--spring);
}
.socialIcons a:is(:hover,:focus) .social-logo{
    transform:scale(1.2) translateY(-3px);
    filter:grayscale(0%) drop-shadow(0 3px 6px rgba(0,0,0,.2));
}
.socialIcons a:focus-visible{outline:3px solid var(--accent-blue);outline-offset:4px;border-radius:4px}
.downFooter nav{display:grid;place-items:center;gap:clamp(.5rem, 2vw, 1.5rem);margin:clamp(2rem,1vw,.5rem) 0;}
.policy{
    padding:.3rem .6rem;
    border-radius:var(--radius-sm);
    color:var(--text-color);
    font-family:var(--nav-head-font);
    font-size:12px;
    font-weight:300;
    text-decoration:none;
    transition:color var(--spring),background var(--spring);
}
.policy:is(:hover,:focus){
    color:var(--service-link-hover-color);
    background:rgba(0,0,0,.05);
    text-decoration:underline;
    text-underline-offset:3px;
}
:is(html.dark-mode,body.dark-mode) .policy:hover{background:rgba(255,255,255,.05)}
.policy:focus-visible{outline:3px solid var(--accent-blue);outline-offset:3px}
.footerBottom{
    width:90%;
    margin-top:clamp(.5rem,2vw,1rem);
    padding-top:clamp(.25rem,1vw,.5rem);
    border-top:1px solid rgba(0,0,0,.1);
    text-align:center;
    transition:border-color var(--spring);
}
:is(html.dark-mode,body.dark-mode) .footerBottom{border-top-color:rgba(255,255,255,.08)}
.footerBottom p{
    margin:.5rem 0;
    padding:0;
    color:var(--text-muted);
    font-family:var(--nav-head-font);
    font-size:smaller;
    font-weight:300;
    line-height:1.65;
    transition:color var(--spring);
}

/* ============================================================
   21. THEME TOGGLE BUTTON
   ============================================================ */
.theme-toggle {
    position: fixed;
    bottom: 5rem;
    right: 1.5%;
    z-index: 998; /* Lowered so it sits under the mobile menu overlay */
    background: var(--primary-gradient);
    border: 2px solid rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--box-shadow-md);
    transition: transform var(--transition-fast),
                box-shadow var(--transition-base);
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: var(--box-shadow-lg);
}

.theme-toggle:focus-visible {
    outline: 3px solid var(--accent-blue);
    outline-offset: 3px;
}

/* ============================================================
   22. RESPONSIVE — TABLET (max-width: 1024px)
   ============================================================ */
@media (max-width: 64rem) {

    /* Force all structural containers to 95% on tablet (matching Part 2 logic) */
    .main-section-introduction,
    .exp-highlight,
    .credentials-section,
    .experience-section,
    .practice-areas-section,
    .philosophy-section,
    .bns-section,
    .closing-section,
    .internal-nav-links,
    .working-hours {
        width: 95%;
    }

    .practice-grid {
        grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    }

    .bns-list li strong {
        min-width: 8rem;
    }
}

/* ============================================================
   23. RESPONSIVE — MOBILE (max-width: 768px)
   ============================================================ */
@media (max-width: 47.9375rem) {

    /* Force all structural containers to 97% on mobile (matching Part 2 logic) */
    .main-section-introduction,
    .exp-highlight,
    .credentials-section,
    .experience-section,
    .practice-areas-section,
    .philosophy-section,
    .bns-section,
    .closing-section,
    .internal-nav-links,
    .working-hours {
        width: 97%;
    }

    /* Main title */
    .page-title {
        font-size: clamp(1.5rem, 6vw, 3.5rem);
        font-weight: 600;
        padding-top: var(--spacing-lg);
        padding-left: var(--spacing-xs);
        padding-right: var(--spacing-xs);
    }

    /* Breadcrumb */
    .breadcrumb-nav {
        padding: var(--spacing-xs) var(--spacing-sm);
    }

    .breadcrumb-item {
        font-size: 0.68rem;
    }

    /* Introduction */
    .main-section-introduction {
        padding: var(--spacing-sm);
        margin: var(--spacing-xs) auto;
    }

    .main-section-introduction p {
        font-size: var(--font-size-base);
        line-height: 2.2;
    }

    .intro-highlight {
        font-size:   var(--font-size-base) !important;
        line-height: 2.2;
    }

    /* Exp highlight bar */
    .exp-highlight {
        gap: 1.2rem;
        padding: var(--spacing-sm);
        margin: var(--spacing-sm) auto;
    }

    .exp-divider {
        display: none;
    }

    .exp-stat .number {
        font-size: 1.7rem;
    }

    /* Legal images */
    .legal-img-wrap {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .legal-img-single.img-gavel {
        height: 13rem;
    }

    /* Credentials & Experience Sections */
    .credentials-section,
    .experience-section {
        padding: var(--spacing-sm);
        margin: var(--spacing-sm) auto;
    }

    .credentials-list li,
    .exp-list li {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.85rem;
    }

    /* Practice grid */
    .practice-areas-section {
        padding: var(--spacing-sm);
        margin: var(--spacing-sm) auto;
    }

    .practice-grid {
        grid-template-columns: 1fr;
    }

    .practice-card {
        padding: var(--spacing-sm);
    }

    .practice-card h3 {
        font-size: 0.92rem;
    }

    .practice-card p {
        font-size: 0.82rem;
    }

    /* Philosophy, BNS, Closing Sections */
    .philosophy-section,
    .bns-section,
    .closing-section {
        padding: var(--spacing-sm);
        margin: var(--spacing-sm) auto;
    }

    .bns-list li {
        flex-direction: column;
        gap: 0.3rem;
    }

    .bns-list li strong {
        min-width: unset;
    }

    .closing-cta-links {
        flex-direction: column;
        align-items: center;
    }

    .cta-text-link {
        width: 100%;
        max-width: 20rem;
        text-align: center;
    }

    /* Internal nav */
    .internal-nav-links {
        padding: var(--spacing-sm);
        margin: var(--spacing-sm) auto;
    }

    .internal-nav-links a {
        font-size: 0.7rem;
    }

    /* Working hours */
    .working-hours {
        padding: var(--spacing-md) var(--spacing-sm);
        margin: var(--spacing-sm) auto var(--spacing-xl);
    }

    .working-hours-grid {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .hours-divider {
        display: none;
    }

    .hours-cta {
        flex-direction: column;
        align-items: center;
    }

    .hours-call-btn,
    .hours-wa-btn {
        width: 100%;
        max-width: 18rem;
        text-align: center;
    }

    /* Footer & Widgets */
    .downFooter {
        padding: var(--spacing-md) var(--spacing-sm);
    }

    .socialIcons {
        gap: var(--spacing-sm);
    }

    .tc-consent-content {
        flex-direction: column;
    }

    .tc-consent-agree-btn {
        width: 100%;
    }

    .waBook {
        right: 3%;
        bottom: 2.5%;
    }
}

/* ============================================================
   24. RESPONSIVE — SMALL MOBILE (max-width: 480px)
   ============================================================ */
@media (max-width: 30rem) {

    .page-title {
        font-size: clamp(1.7rem, 1.5rem + 1.5vw, 3rem);
        font-weight: 600;
        padding-top: var(--spacing-md);
    }

    .section-heading {
        font-size: 1.3rem;
        font-weight: 500;
    }

    .exp-stat .number {
        font-size: 1.45rem;
    }

    .exp-stat .label {
        font-size: 0.55rem;
    }

    .practice-card-icon {
        font-size: 1.3rem;
    }

    .working-hours-heading {
        font-size: 0.95rem;
    }

    .hours-time {
        font-size: 0.9rem;
    }

    .hours-days {
        font-size: 0.62rem;
    }

    .breadcrumb-item {
        font-size: 0.62rem;
    }

    .bns-list li,
    .exp-list li,
    .credentials-list li {
        padding: 0.6rem 0.75rem;
        font-size: 0.82rem;
    }
}

/* ============================================================
   25. DARK MODE COMPATIBILITY
   Extends your existing dark-mode.css module
   Ensures both .dark and .dark-mode are targeted for safety
   ============================================================ */

:is(html.dark-mode, body.dark) .main-section-introduction,
:is(html.dark-mode, body.dark-mode) .main-section-introduction {
    background: linear-gradient(135deg, #1e2a3a 0%, #2a3a50 100%);
}

:is(html.dark-mode, body.dark) .exp-highlight,
:is(html.dark-mode, body.dark-mode) .exp-highlight {
    background: linear-gradient(135deg, #1e2535 0%, #2a3555 100%);
    border-color: rgba(43, 143, 250, 0.4);
}

:is(html.dark-mode, body.dark) .exp-stat .number,
:is(html.dark-mode, body.dark-mode) .exp-stat .number {
    color: #7ab8ff;
}

:is(html.dark-mode, body.dark) .exp-stat .label,
:is(html.dark-mode, body.dark-mode) .exp-stat .label {
    color: #a0b8d0;
}

:is(html.dark-mode, body.dark) .credentials-section,
:is(html.dark-mode, body.dark-mode) .credentials-section,
:is(html.dark-mode, body.dark) .experience-section,
:is(html.dark-mode, body.dark-mode) .experience-section,
:is(html.dark-mode, body.dark) .practice-areas-section,
:is(html.dark-mode, body.dark-mode) .practice-areas-section,
:is(html.dark-mode, body.dark) .bns-section,
:is(html.dark-mode, body.dark-mode) .bns-section {
    background-color: #1a2030;
    border-color: rgba(88, 85, 78, 0.5);
}

:is(html.dark-mode, body.dark) .credentials-list li,
:is(html.dark-mode, body.dark-mode) .credentials-list li,
:is(html.dark-mode, body.dark) .exp-list li,
:is(html.dark-mode, body.dark-mode) .exp-list li,
:is(html.dark-mode, body.dark) .bns-list li,
:is(html.dark-mode, body.dark-mode) .bns-list li {
    background: linear-gradient(135deg, #1e2a3a 0%, #243040 100%);
    border-color: rgba(43, 143, 250, 0.45);
}

:is(html.dark-mode, body.dark) .practice-card,
:is(html.dark-mode, body.dark-mode) .practice-card {
    background: linear-gradient(135deg, #1e2a3a 0%, #243040 100%);
    border-color: rgba(43, 143, 250, 0.45);
}

:is(html.dark-mode, body.dark) .practice-card h3,
:is(html.dark-mode, body.dark-mode) .practice-card h3 {
    color: #d0e4ff;
}

:is(html.dark-mode, body.dark) .practice-card p,
:is(html.dark-mode, body.dark-mode) .practice-card p {
    color: #a0b0c8;
}

:is(html.dark-mode, body.dark) .practice-card-link,
:is(html.dark-mode, body.dark-mode) .practice-card-link {
    background: rgba(43, 143, 250, 0.15);
    border-color: rgba(43, 143, 250, 0.5);
    color: #7ab8ff;
}

:is(html.dark-mode, body.dark) .practice-card-link:hover,
:is(html.dark-mode, body.dark-mode) .practice-card-link:hover {
    background: var(--accent-blue);
    color: #fff;
}

:is(html.dark-mode, body.dark) .philosophy-section,
:is(html.dark-mode, body.dark-mode) .philosophy-section {
    background: linear-gradient(135deg, #1e2a3a 0%, #2a3a50 100%);
}

:is(html.dark-mode, body.dark) .closing-section,
:is(html.dark-mode, body.dark-mode) .closing-section {
    background: linear-gradient(135deg, #1e2a3a 0%, #243040 100%);
}

:is(html.dark-mode, body.dark) .closing-section p,
:is(html.dark-mode, body.dark-mode) .closing-section p {
    color: #b0c8e0;
}

:is(html.dark-mode, body.dark) .cta-text-link,
:is(html.dark-mode, body.dark-mode) .cta-text-link {
    background: rgba(43, 143, 250, 0.15);
    border-color: rgba(43, 143, 250, 0.5);
    color: #7ab8ff;
}

:is(html.dark-mode, body.dark) .cta-text-link:hover,
:is(html.dark-mode, body.dark-mode) .cta-text-link:hover {
    background: var(--accent-blue);
    color: #fff;
}

:is(html.dark-mode, body.dark) .internal-nav-links,
:is(html.dark-mode, body.dark-mode) .internal-nav-links {
    background: linear-gradient(135deg, #1e2535 0%, #2a3555 100%);
    border-color: rgba(43, 143, 250, 0.4);
}

:is(html.dark-mode, body.dark) .internal-nav-links h3,
:is(html.dark-mode, body.dark-mode) .internal-nav-links h3 {
    color: #d0e4ff;
}

:is(html.dark-mode, body.dark) .internal-nav-links a,
:is(html.dark-mode, body.dark-mode) .internal-nav-links a {
    color: #7ab8ff;
}

:is(html.dark-mode, body.dark) .internal-nav-links li:hover,
:is(html.dark-mode, body.dark-mode) .internal-nav-links li:hover {
    background: rgba(43, 143, 250, 0.12);
}

:is(html.dark-mode, body.dark) .working-hours,
:is(html.dark-mode, body.dark-mode) .working-hours {
    background-color: #1a2030;
    border-color: rgba(43, 143, 250, 0.4);
}

:is(html.dark-mode, body.dark) .working-hours-heading,
:is(html.dark-mode, body.dark-mode) .working-hours-heading {
    color: #d0e4ff;
}

:is(html.dark-mode, body.dark) .hours-time,
:is(html.dark-mode, body.dark-mode) .hours-time {
    color: #7ab8ff;
}

:is(html.dark-mode, body.dark) .hours-days,
:is(html.dark-mode, body.dark-mode) .hours-days {
    color: #8090a8;
}

:is(html.dark-mode, body.dark) .hours-divider,
:is(html.dark-mode, body.dark-mode) .hours-divider {
    background: rgba(43, 143, 250, 0.35);
}

:is(html.dark-mode, body.dark) .breadcrumb-nav,
:is(html.dark-mode, body.dark-mode) .breadcrumb-nav {
    background: rgba(30, 42, 60, 0.8);
    border-color: rgba(43, 143, 250, 0.35);
}

:is(html.dark-mode, body.dark) .breadcrumb-item a,
:is(html.dark-mode, body.dark-mode) .breadcrumb-item a {
    color: #7ab8ff;
}

:is(html.dark-mode, body.dark) .breadcrumb-current,
:is(html.dark-mode, body.dark-mode) .breadcrumb-current {
    color: #d0e4ff;
}

:is(html.dark-mode, body.dark) .breadcrumb-item,
:is(html.dark-mode, body.dark-mode) .breadcrumb-item {
    color: #8090a8;
}

:is(html.dark-mode, body.dark) .tc-consent-banner,
:is(html.dark-mode, body.dark-mode) .tc-consent-banner {
    background: rgba(20, 30, 50, 0.95);
    border-color: rgba(43, 143, 250, 0.4);
}

:is(html.dark-mode, body.dark) .tc-consent-content h3,
:is(html.dark-mode, body.dark-mode) .tc-consent-content h3 {
    color: #d0e4ff;
}

:is(html.dark-mode, body.dark) .tc-consent-text,
:is(html.dark-mode, body.dark-mode) .tc-consent-text {
    color: #a0b0c8;
}

:is(html.dark-mode, body.dark) .tc-consent-link,
:is(html.dark-mode, body.dark-mode) .tc-consent-link {
    color: #7ab8ff;
}

:is(html.dark-mode, body.dark) .theme-toggle,
:is(html.dark-mode, body.dark-mode) .theme-toggle {
    background: linear-gradient(135deg, #1e2a3a 0%, #2a3555 100%);
    border-color: rgba(255, 255, 255, 0.2);
}

:is(html.dark-mode, body.dark) .downFooter,
:is(html.dark-mode, body.dark-mode) .downFooter {
    background-color: rgba(20, 30, 50, 0.55);
}

:is(html.dark-mode, body.dark) .footerBottom,
:is(html.dark-mode, body.dark-mode) .footerBottom {
    border-top-color: rgba(255, 255, 255, 0.08);
}

:is(html.dark-mode, body.dark) .footerBottom p,
:is(html.dark-mode, body.dark-mode) .footerBottom p {
    color: #8090a8;
}

:is(html.dark-mode, body.dark) .policy,
:is(html.dark-mode, body.dark-mode) .policy {
    color: #a0b8d0;
}

:is(html.dark-mode, body.dark) .policy:hover,
:is(html.dark-mode, body.dark-mode) .policy:hover {
    color: #7ab8ff;
    background: rgba(255, 255, 255, 0.05);
}

:is(html.dark-mode, body.dark) .legal-img-wrap,
:is(html.dark-mode, body.dark-mode) .legal-img-wrap,
:is(html.dark-mode, body.dark) .legal-img-single,
:is(html.dark-mode, body.dark-mode) .legal-img-single {
    border-color: rgba(43, 143, 250, 0.4);
}

/* ============================================================
   26. PRINT STYLES
   ============================================================ */
@media print {

    .waBook,
    .theme-toggle,
    .tc-consent-banner,
    .compactMenu,
    .menuBtn,
    .hours-cta,
    .closing-cta-links,
    .internal-nav-links,
    .breadcrumb-nav {
        display: none !important;
    }

    .home-body {
        background: #fff !important;
        color: #000 !important;
    }

    .main-section-introduction,
    .credentials-section,
    .experience-section,
    .practice-areas-section,
    .philosophy-section,
    .bns-section,
    .closing-section {
        background: none !important;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        page-break-inside: avoid;
    }

    .exp-list li,
    .credentials-list li,
    .bns-list li,
    .practice-card {
        background: none !important;
        box-shadow: none !important;
        border: 1px solid #999 !important;
        page-break-inside: avoid;
    }

    .practice-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.7rem;
        color: #555;
    }

    .downFooter {
        background: none !important;
        border-top: 1px solid #ccc;
    }
}
