:root {
    --hp-blue: #003893;
    --hp-gold: #c8982a;
    --hp-light: #eef3fb;
    --hp-red: #c0392b;
    --hp-green: #1a7a4a;
    --hp-gray: #555;
    --base-font-size: 16px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Source Sans 3", sans-serif;
    font-size: var(--base-font-size);
    color: #222;
    background: #fff;
}

/* ── Accessibility Bar ─────────────────────────────── */
#accessBar {
    background: #fff;
    color: #1a2f6b;
    font-size: 1rem;
    padding: 4px 0;
}
#accessBar a,
#accessBar button {
    color: #1a2f6b;
    text-decoration: none;
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.35);
    border-radius: 3px;
    padding: 2px 8px;
    margin: 0 2px;
    cursor: pointer;
    font-size: 0.78rem;
    transition: background 0.2s;
}
#accessBar a:hover,
#accessBar button:hover {
    background: rgba(255, 255, 255, 0.15);
}
.font-ctrl {
    font-weight: 700;
}
.lang-active {
    background: var(--hp-gold) !important;
    border-color: var(--hp-gold) !important;
    color: #000 !important;
}

/* ── Header / Logo Bar ─────────────────────────────── */
#logoBar {
    background: linear-gradient(135deg, #003893 0%, #1654b8 60%, #003070 100%);
    padding: 14px 0;
    position: relative;
    overflow: hidden;
}

/* BACKGROUND LAYER */
#logoBar::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
            to right,
            rgba(255, 255, 255, 0.9),
            rgba(255, 255, 255, 0.2)
        ),
        url("../img/header-background.png");

    background-size: cover;
    background-position: center;
    border: 2px solid rgba(0, 0, 0, 0.3);
}

/* CONTENT ABOVE BACKGROUND */
#logoBar .container {
    position: relative;
    z-index: 1;
}
.logo-emblem {
    height: 90px;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-emblem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portal-title {
    font-family: "Playfair Display", serif;
    color: #1a2f6b;
    font-size: 2.5rem;
    line-height: 1.2;
    text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.4);
}
.portal-sub {
    color: #e5985a;
    font-size: 1rem;
    letter-spacing: 0.04em;
}
.portal-tagline {
    color: #e5985a;
    /* color: var(--hp-gold); */
    font-size: 1rem;
    font-style: italic;
    margin-top: 2px;
}
.gov-logo-right img {
    max-height: 70px;
}

/* ── Navigation ─────────────────────────────────────── */
#mainNav {
    background: #fff;
    border-bottom: 3px solid var(--hp-gold);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1030;
}
#mainNav .navbar-nav .nav-link {
    color: #003893 !important;
    font-weight: 800;
    font-size: 1.5rem;
    padding: 12px 14px;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}
#mainNav .navbar-nav .nav-link:hover,
#mainNav .navbar-nav .nav-link.active {
    color: var(--hp-gold) !important;
    border-bottom-color: var(--hp-gold);
}
#mainNav .dropdown-menu {
    border-top: 3px solid var(--hp-gold);
    border-radius: 0 0 6px 6px;
}
#mainNav .dropdown-item {
    font-size: 1.2rem;
    color: #003893;
}
#mainNav .dropdown-item:hover {
    background: var(--hp-light);
    color: var(--hp-gold);
}

/* ── Ticker ─────────────────────────────────────────── */
#ticker {
    background: #fff3cd;
    border-top: 2px solid var(--hp-gold);
    border-bottom: 2px solid var(--hp-gold);
    padding: 6px 0;
    font-size: 1rem;
    overflow: hidden;
}
.ticker-label {
    background: var(--hp-red);
    color: #fff;
    padding: 3px 12px;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 0 20px 20px 0;
    white-space: nowrap;
    flex-shrink: 0;
}
.ticker-track {
    display: flex;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}
.ticker-track:hover {
    animation-play-state: paused;
}
@keyframes ticker {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* ── Slider ─────────────────────────────────────────── */
#heroSlider {
    max-height: 480px;
    overflow: hidden;
}
.slide-overlay {
    position: absolute;
    inset: 0;
    /* background: linear-gradient( */
        /* to right, */
        /* rgba(0, 30, 100, 0.72) 0%, */
        /* rgba(0, 30, 100, 0.1) 100% */
    /* ); */
}
.slide-caption {
    position: absolute;
    bottom: 60px;
    left: 8%;
    color: #fff;
    max-width: 520px;
}
.slide-caption h2 {
    font-family: "Playfair Display", serif;
    font-size: 2rem;
    text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.6);
}
.slide-caption p {
    font-size: 1rem;
    opacity: 0.9;
}
.carousel-item img {
    object-fit: cover;
    width: 100%;
    height: 480px;
    filter: brightness(0.85);
}

/* ── Stats Strip ─────────────────────────────────────── */
#statsStrip {
    background: #fff;
    /* background: var(--hp-blue); */
    color: #fff;
    padding: 18px 0;
}
.stat-box {
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 0;
}
.stat-box:last-child {
    border-right: none;
}
.stat-num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--hp-gold);
    line-height: 1;
}
.stat-lbl {
    font-size: 1rem;
    opacity: 1;
    color: var(--hp-gold);
    margin-top: 4px;
}

/* ── Section titles ──────────────────────────────────── */
.sec-title {
    font-family: "Playfair Display", serif;
    color: var(--hp-blue);
    font-size: 2rem;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 6px;
}
.sec-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 52px;
    height: 3px;
    background: var(--hp-gold);
}
.sec-title.center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ── Quick Links ─────────────────────────────────────── */
.quick-card {
    border: none;
    border-radius: 10px;
    text-align: center;
    padding: 24px 16px;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
    color: #fff;
    text-decoration: none;
    display: block;
}
.quick-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    color: #fff;
}
.quick-card i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
}
.quick-card span {
    font-size: 1.2rem;
    font-weight: 500;
}
.qc1 {
    background: linear-gradient(135deg, #003893, #1654b8);
}
.qc2 {
    background: linear-gradient(135deg, #1a7a4a, #28a96a);
}
.qc3 {
    background: linear-gradient(135deg, #c8982a, #e8b84b);
    color: #000 !important;
}
.qc3:hover {
    color: #000 !important;
}
.qc4 {
    background: linear-gradient(135deg, #c0392b, #e55347);
}
.qc5 {
    background: linear-gradient(135deg, #5f3dc4, #845ef7);
}
.qc6 {
    background: linear-gradient(135deg, #0077b6, #00b4d8);
}

/* ── Notices / Updates ───────────────────────────────── */
#noticesSection {
    background: var(--hp-light);
}
.notice-box {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 56, 147, 0.08);
    height: 100%;
}
.notice-header {
    background: var(--hp-blue);
    color: #fff;
    padding: 12px 18px;
    border-radius: 8px 8px 0 0;
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 320px;
    overflow-y: auto;
}
.notice-list li {
    border-bottom: 1px dashed #dde4f0;
    padding: 10px 16px;
    font-size: 1.2rem;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.notice-list li:last-child {
    border-bottom: none;
}
.badge-new {
    background: #e74c3c;
    color: #fff;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 20px;
    flex-shrink: 0;
}
.notice-date {
    color: var(--hp-gray);
    font-size: 0.8rem;
}
.notice-list li a {
    color: var(--hp-blue);
    text-decoration: none;
}
.notice-list li a:hover {
    color: var(--hp-gold);
    text-decoration: underline;
}

/* ── Modules Grid ────────────────────────────────────── */
.module-card {
    border: 1px solid #dde4f0;
    border-radius: 10px;
    padding: 22px;
    height: 100%;
    transition: all 0.25s;
    background: #fff;
}
.module-card:hover {
    border-color: var(--hp-gold);
    box-shadow: 0 6px 24px rgba(0, 56, 147, 0.1);
}
.module-icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 14px;
}
.module-card h6 {
    color: var(--hp-blue);
    font-weight: 700;
    font-size: 1.2rem;
}
.module-card p {
    font-size: 1rem;
    text-align: justify;
    color: var(--hp-gray);
    margin: 0;
}

/* ── Tender / Reports ─────────────────────────────────── */
.doc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 1.2rem;
}
.doc-item:last-child {
    border-bottom: none;
}
.doc-item .doc-icon {
    font-size: 1.6rem;
    color: #c0392b;
    flex-shrink: 0;
}
.doc-item a {
    color: var(--hp-blue);
    text-decoration: none;
}
.doc-item a:hover {
    color: var(--hp-gold);
}

/* ── Gallery ─────────────────────────────────────────── */
/* Styling for the Gallery Hover Effect */
.gallery-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
    height: 180px; /* Fixed height for uniformity */
}

.gallery-thumb:hover {
    transform: translateY(-5px);
}

/* Overlay styling */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 56, 147, 0.7); /* HP Blue with transparency */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 2rem;
}

.gallery-thumb:hover .gallery-overlay {
    opacity: 1;
}

/* Label at the bottom of the card */
.gallery-caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 8px;
    font-size: 1rem;
    text-align: center;
}

/* ── Footer ──────────────────────────────────────────── */
footer {
    background: #0b1f54;
    color: #c8d8f8;
    font-size: 1rem;
}
footer h6 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 14px;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.06em;
}
footer a {
    color: #9ab4e8;
    text-decoration: none;
}
footer a:hover {
    color: var(--hp-gold);
}
footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
footer ul li {
    margin-bottom: 6px;
}
footer ul li::before {
    content: "›";
    margin-right: 6px;
    color: var(--hp-gold);
}
.footer-bottom {
    background: #06122e;
    color: #8899bb;
    font-size: 1.2rem;
    padding: 12px 0;
    text-align: center;
}
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin: 0 4px;
    color: #c8d8f8 !important;
    transition: all 0.2s;
}
.social-icons a:hover {
    background: var(--hp-gold);
    border-color: var(--hp-gold);
    color: #000 !important;
}

/* ── Responsive tweaks ───────────────────────────────── */
@media (max-width: 768px) {
    .portal-title {
        font-size: 1.1rem;
    }
    .logo-emblem {
        width: 90px;
        height: 62px;
        font-size: 1.6rem;
    }
    .slide-caption h2 {
        font-size: 1.2rem;
    }
    .stat-num {
        font-size: 1.4rem;
    }
}

/* ── Hindi font override ─────────────────────────────── */
.lang-hi {
    font-family: "Tiro Devanagari Hindi", serif;
}

/* ── Back to Top ─────────────────────────────────────── */
#backTop {
    position: fixed;
    bottom: 28px;
    right: 22px;
    background: var(--hp-blue);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
#backTop:hover {
    background: var(--hp-gold);
    color: #000;
}
