/*
 * style.css
 * Red Gradient Theme Stylesheet for Panchayat Raj Engineering Division, Chitradurga
 * Theme Palette: Deep Maroon Red Gradient, Gold Accents, Clean Typography, High Contrast
 */

:root {
    --primary-red: #580c0c;
    --primary-red-dark: #330505;
    --primary-red-light: #8b1818;
    --primary-red-hover: #6e1010;
    --primary-gradient: linear-gradient(90deg, #3d0707 0%, #680e0e 50%, #2b0404 100%);
    --primary-gradient-subtle: linear-gradient(135deg, #420808 0%, #6b1010 100%);
    --hero-gradient-overlay: linear-gradient(135deg, rgba(28, 3, 3, 0.84) 0%, rgba(65, 8, 8, 0.76) 100%);
    
    --accent-gold: #e5b455;
    --accent-gold-dark: #c8963e;
    --accent-red-bar: #8b0d0d;

    --bg-page: #f4efe9;
    --bg-white: #ffffff;
    --bg-light-cream: #faf7f2;
    --bg-card-active: #fce8e6;

    --text-dark: #220505;
    --text-body: #332d29;
    --text-muted: #6b635c;

    --border-color: #e5ded7;
    --border-red-light: #f5b8b6;

    --transition-speed: 0.25s ease;
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Nunito', 'Noto Sans Kannada', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-body);
    background-color: var(--bg-page);
    line-height: 1.45;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', 'Noto Sans Kannada', sans-serif;
    font-weight: 800;
}

a {
    color: var(--primary-red);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--primary-red-light);
}

/* 1. Accessibility Top Utility Bar */
.accessibility-bar {
    background-color: var(--primary-red-dark);
    color: #ffffff;
    font-size: 0.8rem;
    padding: 6px 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.accessibility-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.accessibility-left a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.8rem;
}

.accessibility-left a:hover {
    color: var(--accent-gold);
}

.top-nav-sep {
    color: rgba(255, 255, 255, 0.3);
}

.top-city-dropdown {
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #555;
    background: #250303;
    color: #fff;
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
}

.accessibility-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-search-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    padding: 2px 6px;
}

.top-search-form input {
    background: none;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 0.8rem;
    padding: 2px 6px;
    width: 120px;
    font-family: inherit;
}

.top-search-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.top-search-form button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding: 2px 4px;
}

.font-size-adjust button, .contrast-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 2px 7px;
    cursor: pointer;
    font-size: 0.75rem;
    border-radius: 3px;
    transition: background var(--transition-speed);
}

.font-size-adjust button:hover, .contrast-btn:hover {
    background-color: var(--accent-gold);
    color: #000000;
}

/* Language Toggle Buttons */
.lang-toggle {
    display: flex;
    gap: 4px;
}

.lang-btn {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    padding: 2px 8px;
    font-size: 0.75rem;
    cursor: pointer;
    border-radius: 3px;
    font-family: inherit;
    transition: all var(--transition-speed);
}

.lang-btn.active {
    background-color: var(--accent-gold);
    color: #000000;
    border-color: var(--accent-gold);
    font-weight: bold;
}

.lang-btn:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 2. Brand Header Block */
.brand-header {
    background: var(--primary-red-dark);
    color: #ffffff;
    padding: 14px 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--accent-gold-dark);
    flex-wrap: wrap;
    gap: 15px;
}

.leader-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 290px;
}

.leader-photo {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--accent-gold);
    background-color: #3d0707;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.leader-info h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
}

.leader-info p {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.25;
    margin-top: 2px;
}

.center-logo-title {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: center;
    flex: 1;
    justify-content: center;
    max-width: 650px;
}

.govt-logo {
    height: 62px;
    object-fit: contain;
}

.dept-titles h2 {
    font-size: 1.35rem;
    color: #ffffff;
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.3px;
}

.dept-titles p {
    font-size: 0.9rem;
    color: var(--accent-gold);
    font-weight: 700;
    margin-top: 2px;
}

/* 3. Navigation Bar */
.main-nav {
    background: var(--primary-gradient);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.88rem;
    gap: 6px;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.nav-link:hover, .nav-item:hover > .nav-link {
    background-color: var(--primary-red-hover);
    color: var(--accent-gold);
}

.nav-link.active-page {
    border-bottom: 3px solid var(--accent-gold);
    background-color: rgba(255, 255, 255, 0.08);
}

/* Right button inside Nav */
.nav-right-btn {
    display: flex;
    align-items: center;
}

.btn-view-disclosures {
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    transition: all var(--transition-speed);
}

.btn-view-disclosures:hover {
    background: #ffffff;
    color: var(--primary-red-dark);
}

/* Dropdown Menus */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-white);
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
    list-style: none;
    min-width: 260px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity var(--transition-speed), transform var(--transition-speed), visibility var(--transition-speed);
    z-index: 1100;
    border-top: 3px solid var(--primary-red);
    border-radius: 0 0 6px 6px;
}

.dropdown-scrollable {
    max-height: 400px;
    overflow-y: auto;
    min-width: 320px;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 18px;
    color: var(--text-dark);
    font-size: 0.85rem;
    border-bottom: 1px solid #f1f1f1;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.dropdown-menu li a:hover {
    background-color: var(--bg-card-active);
    color: var(--primary-red);
    padding-left: 22px;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 12px 0;
}

/* 4. Hero Section & Background Slider */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 480px;
    padding: 130px 20px 170px 20px;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.4s ease-in-out, transform 8s ease;
    transform: scale(1.05);
}

.hero-bg-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(20, 2, 2, 0.42) 0%, rgba(0, 0, 0, 0.28) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 920px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    color: var(--accent-gold);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.hero-section h1 {
    font-size: 2.6rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    text-shadow: 2px 3px 8px rgba(0,0,0,0.7);
    color: #ffffff;
}

.hero-section h2 {
    font-size: 2.3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    text-shadow: 2px 3px 8px rgba(0,0,0,0.7);
}

.hero-section p {
    font-size: 1.1rem;
    opacity: 0.96;
    max-width: 760px;
    margin: 0 auto;
    font-weight: 500;
    text-shadow: 1px 2px 6px rgba(0,0,0,0.7);
}

/* 5. Main Wrapper & Floating Taluks Card Section */
.main-page-wrapper {
    max-width: 1240px;
    width: 94%;
    margin: 0 auto;
    padding-bottom: 50px;
}

.taluks-section {
    margin-top: -65px;
    position: relative;
    z-index: 10;
}

.taluks-card-container {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.09);
    padding: 26px 30px;
    border: 1px solid var(--border-color);
}

.section-accent-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-red-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.red-bar {
    width: 4px;
    height: 18px;
    background-color: var(--accent-red-bar);
    border-radius: 2px;
    display: inline-block;
}

.section-subtext {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 22px;
}

.taluks-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.taluk-box {
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 16px 8px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.taluk-box:hover {
    transform: translateY(-3px);
}

.taluk-box.active-taluk {
    background-color: #fdeae7;
    border: 1px solid #f5b8b6;
    border-radius: 12px;
}

.taluk-icon-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: #fce8ea;
    border: 1px solid #f6cfd3;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px auto;
    overflow: hidden;
    position: relative;
    transition: all var(--transition-speed);
}

.taluk-box.active-taluk .taluk-icon-circle {
    border: 3px solid #580c0c;
    background-color: #fce8ea;
    box-shadow: 0 0 0 3px rgba(88, 12, 12, 0.16);
}

.taluk-map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.map-pin-dot {
    position: absolute;
    width: 9px;
    height: 9px;
    background-color: #e02424;
    border: 1.5px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(224, 36, 36, 0.9), 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 5;
    transform: translate(-50%, -50%);
}

/* Exact location pin coordinates for each taluk on Chitradurga district map */
.map-pin-dot.pin-chitradurga { top: 48%; left: 46%; }
.map-pin-dot.pin-challakere  { top: 32%; left: 63%; }
.map-pin-dot.pin-hiriyur     { top: 68%; left: 62%; }
.map-pin-dot.pin-holalkere   { top: 62%; left: 32%; }
.map-pin-dot.pin-hosadurga   { top: 80%; left: 30%; }
.map-pin-dot.pin-molakalmuru { top: 16%; left: 68%; }

.taluk-box h4 {
    font-size: 0.98rem;
    font-weight: 800;
    color: #1a0404;
    margin-bottom: 3px;
}

.taluk-box p {
    font-size: 0.78rem;
    color: #555555;
    font-weight: 600;
}

.taluk-summary-strip {
    background-color: #fde8cd;
    border: 1.5px solid #f6d4a7;
    border-radius: 8px;
    padding: 14px 22px;
    color: #4a0e0e;
    font-size: 0.9rem;
    font-weight: 600;
}

/* 6. Key Statistics Bar */
.stats-counter-bar {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 24px;
    margin: 30px 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.stat-item {
    border-right: 1px solid var(--border-color);
    padding: 0 10px;
}

.stat-item:last-child {
    border-right: none;
}

.stat-num {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary-red);
    font-family: 'Outfit', sans-serif;
    line-height: 1.1;
}

.stat-txt {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 700;
    margin-top: 4px;
}

/* 7. Notifications & Circulars Section */
.notif-circ-container {
    margin: 35px 0;
}

.cards-4-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 12px;
}

.info-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px 18px;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-dark);
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card:hover {
    border-color: var(--border-red-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(88, 12, 12, 0.06);
}

.tag-new {
    background: #b82e2e;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
}

/* 8. Proactive Disclosures RTI Grid Section */
.rti-grid-section {
    margin-top: 40px;
}

.rti-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.rti-pill-badge {
    background-color: #fdebeb;
    color: var(--primary-red);
    border: 1px solid var(--border-red-light);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 20px;
}

.rti-search-bar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 16px;
    margin-bottom: 22px;
}

.rti-search-input-box {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.rti-search-input-box i {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.rti-search-input-box input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text-dark);
}

.rti-items-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 700;
}

/* 3-Column Grid for 17 Cards */
.cards-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.rti-card-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 18px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: all var(--transition-speed);
}

.rti-card-item:hover {
    border-color: var(--primary-red-light);
    box-shadow: 0 6px 18px rgba(88, 12, 12, 0.09);
    transform: translateY(-2px);
}

.rti-num-badge {
    width: 36px;
    height: 36px;
    background-color: #f7ebd8;
    color: #7c4f14;
    font-weight: 800;
    font-size: 0.95rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rti-card-content {
    flex: 1;
}

.rti-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
}

.rti-card-top h4 {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary-red-dark);
    line-height: 1.3;
}

.rti-chevron {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 4px;
}

.rti-card-content p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.35;
}

/* Inner Page Layouts */
main {
    flex: 1;
    max-width: 1240px;
    width: 94%;
    margin: 0 auto;
    padding: 30px 0;
}

.page-container {
    background-color: var(--bg-white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
}

.page-header-block {
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.page-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-red);
}

/* 9. Footer Section */
footer {
    background: var(--primary-red-dark);
    color: #ffffff;
    padding: 40px 20px 20px 20px;
    font-size: 0.85rem;
    border-top: 3px solid var(--accent-gold);
    margin-top: auto;
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    padding-bottom: 30px;
    margin-bottom: 20px;
}

.footer-logo-desc h3 {
    color: var(--accent-gold);
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.footer-logo-desc p {
    opacity: 0.85;
    line-height: 1.5;
}

.footer-links h4 {
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: var(--accent-gold);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: rgba(255,255,255,0.85);
    transition: color var(--transition-speed);
}

.footer-links ul li a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    opacity: 0.75;
    font-size: 0.8rem;
}

/* Responsive Mobile Navigation Bar & Hamburger Toggle */
@media (max-width: 992px) {
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.4);
        color: #ffffff;
        font-size: 1.3rem;
        cursor: pointer;
        padding: 8px 14px;
        border-radius: 6px;
        margin: 10px 0;
    }

    .nav-container {
        flex-wrap: wrap;
        padding: 0 15px;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--primary-red-dark);
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        padding: 10px 0;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        padding: 12px 20px;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
        background-color: rgba(0, 0, 0, 0.2);
        border-top: none;
        border-radius: 0;
        width: 100%;
    }

    .nav-item.dropdown-active .dropdown-menu {
        display: block;
    }

    .dropdown-menu li a {
        color: #ffffff;
        padding-left: 35px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-right-btn {
        margin: 10px 0 12px auto;
    }

    .taluks-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .cards-4-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cards-grid-3col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .accessibility-bar {
        flex-direction: column;
        gap: 8px;
        padding: 8px 12px;
        text-align: center;
    }

    .accessibility-left, .accessibility-right {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .top-search-form {
        max-width: 100%;
    }

    .brand-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 14px 15px;
        justify-content: center;
    }

    .center-logo-title {
        flex-direction: column;
        gap: 8px;
    }

    .dept-titles h2 {
        font-size: 1.15rem;
    }

    .dept-titles p {
        font-size: 0.82rem;
    }

    .hero-section {
        min-height: 380px;
        padding: 80px 15px 120px 15px;
    }

    .hero-section h1 {
        font-size: 1.7rem;
    }

    .hero-section h2 {
        font-size: 1.4rem;
    }

    .hero-section p {
        font-size: 0.95rem;
    }

    .taluks-section {
        margin-top: -40px;
    }

    .taluks-card-container {
        padding: 18px 15px;
    }

    .taluks-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .taluk-icon-circle {
        width: 75px;
        height: 75px;
    }

    .taluk-summary-strip {
        padding: 12px 14px;
        font-size: 0.82rem;
    }

    .stats-counter-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 18px 10px;
    }

    .stat-num {
        font-size: 1.8rem;
    }

    .cards-4-grid, .cards-grid-3col {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}

/* 10. Explicit Black Text Color for RTI Detail Views & PDF Content (Amshas Items) */
.rti-detail-body,
.pdf-document-view,
#rti-main-content-body,
.content-section {
    color: #111111 !important;
}

.rti-detail-body p,
.rti-detail-body div,
.rti-detail-body span,
.rti-detail-body li,
.rti-detail-body td,
.rti-detail-body th,
.pdf-document-view p,
.pdf-document-view div,
.pdf-document-view span,
.pdf-document-view li,
.pdf-document-view td,
.pdf-document-view th {
    color: #111111 !important;
}

.pdf-document-view h2,
.pdf-document-view h3,
.pdf-document-view h4,
.pdf-subheading {
    color: var(--primary-red-dark) !important;
}

.custom-pdf-table th,
.custom-pdf-table td {
    color: #111111 !important;
    border-color: #333333 !important;
}

.custom-pdf-table th {
    background-color: #f0eae1 !important;
    color: var(--primary-red-dark) !important;
    font-weight: 800 !important;
}

/* ==========================================================================
   11. About Us Page Design System (Matching Theme & Screenshot Layout)
   ========================================================================== */
.about-hero-section {
    position: relative;
    width: 100%;
    min-height: 340px;
    background: linear-gradient(135deg, rgba(30, 4, 4, 0.78) 0%, rgba(10, 2, 2, 0.68) 100%), url('../images/hero1.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding: 70px 20px 100px 20px;
}

.about-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.section-eyebrow {
    color: #c9933b;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: block;
}

.about-hero-content h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 3px 10px rgba(0,0,0,0.5);
}

.about-page-wrapper {
    max-width: 1240px;
    width: 94%;
    margin: 0 auto;
    padding-bottom: 60px;
}

/* Floating 4-Step Process Header Card */
.about-steps-floating-card {
    margin-top: -55px;
    position: relative;
    z-index: 20;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    padding: 24px 30px;
}

.steps-4-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.step-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #580c0c;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-text h4 {
    font-size: 1.02rem;
    font-weight: 800;
    color: #1a0404;
    margin-bottom: 2px;
}

.step-text p {
    font-size: 0.78rem;
    color: #666666;
    line-height: 1.35;
}

/* About Section Titles */
.about-section-block {
    margin-top: 50px;
}

.section-heading-main {
    font-size: 1.5rem;
    font-weight: 800;
    color: #4a0e0e;
    margin-bottom: 18px;
    line-height: 1.25;
}

/* Who We Are Grid */
.who-we-are-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 35px;
    align-items: center;
}

.office-building-frame {
    background-color: #f7ede2;
    border: 1px solid #ead8c5;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
}

.office-building-img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: 8px;
}

.who-we-are-text p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #333333;
    margin-bottom: 14px;
}

/* Field Presence 6 Cards Grid */
.field-presence-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.field-presence-subtext {
    max-width: 440px;
    font-size: 0.8rem;
    color: #666666;
    text-align: right;
    line-height: 1.35;
}

.subdiv-cards-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.subdiv-card {
    background-color: #fdf6ec;
    border: 1.5px solid #f6e5d0;
    border-radius: 10px;
    padding: 20px 10px;
    text-align: center;
    transition: transform var(--transition-speed);
}

.subdiv-card:hover {
    transform: translateY(-3px);
}

.subdiv-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #e5b455;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px auto;
}

.subdiv-card h4 {
    font-size: 0.95rem;
    font-weight: 800;
    color: #1a0404;
    margin-bottom: 3px;
}

.subdiv-card p {
    font-size: 0.75rem;
    color: #b8860b;
    font-weight: 700;
}

/* Key Functions Grid (2 rows of 3 cards) */
.functions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.function-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 22px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.function-num {
    font-size: 1.4rem;
    font-weight: 900;
    color: #d9a036;
    margin-bottom: 8px;
}

.function-card p {
    font-size: 0.88rem;
    color: #222222;
    font-weight: 600;
    line-height: 1.4;
}

/* Decision Making Process Timeline */
.timeline-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
    margin-top: 25px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 10%;
    width: 80%;
    height: 2px;
    background-color: #e6d2b5;
    z-index: 1;
}

.timeline-step {
    position: relative;
    z-index: 2;
    text-align: center;
}

.timeline-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #580c0c;
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px auto;
    box-shadow: 0 0 0 4px #ffffff;
}

.timeline-step h4 {
    font-size: 0.95rem;
    font-weight: 800;
    color: #1a0404;
    margin-bottom: 4px;
}

.timeline-step p {
    font-size: 0.78rem;
    color: #666666;
}

/* Norms & Timeframes 3 Dark Cards */
.norms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.norm-card {
    background-color: #580c0c;
    color: #ffffff;
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(88, 12, 12, 0.15);
}

.norm-val {
    font-size: 2.2rem;
    font-weight: 900;
    color: #e5b455;
    font-family: 'Outfit', sans-serif;
    line-height: 1.1;
    margin-bottom: 8px;
}

.norm-card p {
    font-size: 0.84rem;
    opacity: 0.92;
    line-height: 1.4;
    font-weight: 500;
}

/* Organizational Structure Hierarchy Box */
.hierarchy-card-container {
    background-color: #fdfaf6;
    border: 1.5px solid #f6e8d8;
    border-radius: 14px;
    padding: 35px 25px;
    text-align: center;
}

.hierarchy-root-box {
    background-color: #580c0c;
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    padding: 12px 28px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(88, 12, 12, 0.15);
}

.hierarchy-level2-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 20px;
}

.hierarchy-box-white {
    background: #ffffff;
    border: 1.5px solid #ebd9c5;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #222222;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.hierarchy-bottom-box {
    background: #ffffff;
    border: 1.5px solid #ebd9c5;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #222222;
    display: inline-block;
}

/* Office Orders Accordion Panels */
.office-accordion-item {
    background-color: #fdfaf6;
    border: 1.5px solid #f6e8d8;
    border-radius: 10px;
    margin-bottom: 14px;
    overflow: hidden;
}

.office-accordion-header {
    padding: 16px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: #fdfaf6;
    font-weight: 800;
    font-size: 0.98rem;
    color: #1a0404;
}

.office-accordion-header:hover {
    background-color: #faebd7;
}

.office-accordion-icon {
    font-size: 1.1rem;
    color: #777777;
    font-weight: 700;
}

.office-accordion-body {
    padding: 0 22px 20px 22px;
    font-size: 0.92rem;
    line-height: 1.6;
    color: #333333;
    border-top: 1px solid #f6e8d8;
    background-color: #ffffff;
}

@media (max-width: 1024px) {
    .subdiv-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .who-we-are-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .steps-4-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .subdiv-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .functions-grid {
        grid-template-columns: 1fr;
    }
    .timeline-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .timeline-container::before {
        display: none;
    }
    .norms-grid {
        grid-template-columns: 1fr;
    }
    .hierarchy-level2-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   12. Contact Us Page Design System (Matching Screenshot & Theme)
   ========================================================================== */
.contact-hero-section {
    position: relative;
    width: 100%;
    min-height: 320px;
    background: linear-gradient(135deg, rgba(30, 4, 4, 0.78) 0%, rgba(10, 2, 2, 0.68) 100%), url('../images/hero1.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding: 70px 20px 100px 20px;
}

.contact-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-hero-content h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 3px 10px rgba(0,0,0,0.5);
}

.contact-page-wrapper {
    max-width: 1240px;
    width: 94%;
    margin: 0 auto;
    padding-bottom: 60px;
}

/* Floating Contact Summary Bar */
.contact-steps-floating-card {
    margin-top: -55px;
    position: relative;
    z-index: 20;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    padding: 22px 30px;
}

.contact-4-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.contact-summary-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contact-summary-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #580c0c;
    color: #ffffff;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-summary-text h4 {
    font-size: 0.98rem;
    font-weight: 800;
    color: #1a0404;
    margin-bottom: 2px;
}

.contact-summary-text p {
    font-size: 0.78rem;
    color: #666666;
    line-height: 1.35;
}

/* Main 2-Column Grid (Info & Map) */
.contact-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
    align-items: flex-start;
}

.contact-detail-row {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.contact-icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #fce8ea;
    border: 1px solid #f6cfd3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #580c0c;
    font-size: 1.05rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(88, 12, 12, 0.06);
}

.contact-row-text h4 {
    font-size: 1.02rem;
    font-weight: 800;
    color: #1a0404;
    margin-bottom: 4px;
}

.contact-row-text p {
    font-size: 0.88rem;
    color: #444444;
    line-height: 1.5;
}

.contact-map-frame {
    width: 100%;
    height: 380px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.contact-map-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 992px) {
    .contact-main-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .contact-4-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .contact-4-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   13. Amsha Detail Page Design System (Matching Reference Screenshot)
   ========================================================================== */
.amsha-page-wrapper {
    max-width: 1080px;
    width: 94%;
    margin: 25px auto 60px auto;
}

.amsha-hero-card {
    background-color: #580c0c;
    color: #ffffff;
    border-radius: 16px 16px 0 0;
    padding: 32px 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.amsha-badge {
    background-color: #c9933b;
    color: #3b0909;
    font-weight: 800;
    font-size: 0.78rem;
    padding: 5px 14px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

.amsha-hero-card h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.3;
}

.amsha-hero-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    font-weight: 400;
}

.amsha-body-card {
    background-color: #ffffff;
    border-radius: 0 0 16px 16px;
    padding: 35px 35px 25px 35px;
    border: 1px solid var(--border-color);
    border-top: none;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.06);
}

.amsha-inner-content {
    background-color: #fdfaf6;
    border: 1.5px solid #f6e8d8;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 30px;
    color: #111111;
}

.amsha-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 15px;
}

.amsha-btn-secondary {
    background-color: #f0eae1;
    color: #580c0c;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 10px 20px;
    border-radius: 6px;
    border: 1px solid #e3d2bf;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color var(--transition-speed);
}

.amsha-btn-secondary:hover {
    background-color: #e6dacb;
    color: #3b0909;
}

.amsha-btn-primary {
    background-color: #580c0c;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color var(--transition-speed);
}

.amsha-btn-primary:hover {
    background-color: #3d0707;
    color: #ffffff;
}
