﻿html {
    scroll-behavior: smooth;
}

html, body {
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/*.hamburger-menu {
    display: flex !important;
}*/

.page-content {
    margin-top: 6.5%;
}

.hudco-container {
    width: 90%;
}

/* ==========================================================
   DEFAULT CONTENT LIST STYLES
   (Apply only inside page content, not navbar/menu)
========================================================== */

.page-content ul,
.page-content ol {
    margin: 0 0 1.25rem;
    padding-left: 1.6rem;
}

.page-content ul {
    list-style: disc;
}

.page-content ol {
    list-style: decimal;
}

.page-content li {
    margin-bottom: .45rem;
    line-height: 1.75;
    color: #333;
}

/* Nested Lists */

.page-content ul ul,
.page-content ol ol,
.page-content ul ol,
.page-content ol ul {
    margin-top: .45rem;
    margin-bottom: .45rem;
}

.page-content ul ul {
    list-style: circle;
}

    .page-content ul ul ul {
        list-style: square;
    }

.page-content ol ol {
    list-style: lower-alpha;
}

    .page-content ol ol ol {
        list-style: lower-roman;
    }

/* Prevent huge gaps after last item */

.page-content li:last-child {
    margin-bottom: 0;
}

/* Links inside lists */

.page-content li a {
    color: #0056b3;
    text-decoration: none;
}

    .page-content li a:hover {
        text-decoration: underline;
    }

/* =========================================
   Site Back Button
   ========================================= */

.site-back-button {
    width: 100%;
    padding: 12px 5%;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.site-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #880000;
    border-radius: 4px;
    background: #fff;
    color: #880000;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

    .site-back-btn i {
        font-size: 13px;
    }

    .site-back-btn:hover {
        background: #880000;
        color: #fff;
    }

    .site-back-btn:active {
        transform: translateX(-2px);
    }

    .site-back-btn:focus-visible {
        outline: 3px solid rgba(136, 0, 0, 0.25);
        outline-offset: 2px;
    }

@media (max-width: 767px) {

    .site-back-button {
        padding: 10px 4%;
    }

    .site-back-btn {
        padding: 7px 13px;
        font-size: 13px;
    }
}

/* ===========================
   HUDCO Welcome Popup
=========================== */

.welcome-modal {
    position: fixed;
    inset: 0;
    background: rgba(20, 25, 35, 0.65);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

    .welcome-modal.show {
        display: flex;
    }

.welcome-card {
    width: min(650px, 92vw);
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.30);
    border: 5px solid #b8860b;
}

.welcome-header {
    /*background: linear-gradient(135deg,#8b1f1f,#a52a2a);*/
    color: #fff;
    padding: 30px;
    text-align: center;
    background: #0b319b;
}

.welcome-logo {
    width: 90px;
    margin-bottom: 15px;
    margin:auto;
}

.welcome-header h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

.welcome-header h4 {
    margin-top: 8px;
    font-size: 1.35rem;
    font-weight: 500;
}

.welcome-body {
    padding: 35px;
    text-align: center;
}

    .welcome-body p {
        margin-bottom: 18px;
        color: #fff;
        line-height: 1.7;
        font-size: 1.05rem;
    }

.welcome-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.welcome-btn {
    min-width: 170px;
    padding: 14px 30px;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: .25s;
}

    .welcome-btn.english {
        color:#fff;
        border: 1px solid #fff;
    }

        .welcome-btn.english:hover {
            background: #b8860b;
            color: #fff;
        }

    .welcome-btn.hindi {
        color: #fff;
        border: 1px solid #fff;
    }

        .welcome-btn.hindi:hover {
            background: #b8860b;
            color: #fff;
        }

.welcome-footer {
    background: #f8f8f8;
    border-top: 1px solid #ececec;
    padding: 15px;
    text-align: center;
    font-size: .9rem;
    color: #777;
}

@media (max-width:768px) {

    .welcome-card {
        width: 94%;
    }

    .welcome-header h2 {
        font-size: 1.6rem;
    }

    .welcome-header h4 {
        font-size: 1.15rem;
    }

    .welcome-buttons {
        flex-direction: column;
        align-items: center;
    }

    .welcome-btn {
        width: 100%;
        max-width: 250px;
    }
}

/*HUDCO Highlights*/
/*========================================
            GALLERY HEADER
========================================*/

.hh-section {
    padding: 2%;
}

.hh-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.hh-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 28px;
    border-radius: 999px;
    background: linear-gradient(135deg,#880000,#650000);
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 12px 28px rgba(136,0,0,.2);
    margin-bottom: 22px;
}

.hh-title {
    font-size: clamp(2.6rem,3vw,4rem);
    font-weight: 800;
    color: #13294b;
    margin-bottom: 18px;
}

.hh-subtitle {
    max-width: 700px;
    margin: auto;
    color: #707682;
    line-height: 1.9;
    font-size: 1.08rem;
}

.hh-heading-line {
    width: 90px;
    height: 4px;
    margin: 20px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #880000, transparent);
}

.highlight-card {
    opacity: 0;
    transform: translateY(40px);
    transition: .8s;
}

.animate-on-scroll.in-view .highlight-card {
    opacity: 1;
    transform: none;
}

.highlight-card:nth-child(1) {
    transition-delay: .1s;
}

.highlight-card:nth-child(2) {
    transition-delay: .2s;
}

.highlight-card:nth-child(3) {
    transition-delay: .3s;
}

.highlight-card:nth-child(4) {
    transition-delay: .4s;
}

.highlight-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-height: 650px;
    overflow-y: auto;
    padding: 10px;
}

.highlight-gallery-item {
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.10);
}

.highlight-gallery-img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform .3s ease;
}

    .highlight-gallery-img:hover {
        transform: scale(1.03);
    }

.highlight-gallery-caption {
    margin: 10px 5px 5px;
    text-align: center;
    font-weight: 500;
    color: #333;
}

@media (max-width: 576px) {

    .highlight-gallery {
        grid-template-columns: 1fr;
    }

    .highlight-gallery-img {
        height: 220px;
    }
}

/*==================================================
    GLOBAL SCROLL ANIMATION
==================================================*/

.animate-on-scroll {
    position: relative;
    opacity: 0;
    transform: translateY(70px);
    transition: opacity .9s ease, transform .9s cubic-bezier(.22,.61,.36,1);
    will-change: transform,opacity;
}

    .animate-on-scroll.in-view {
        opacity: 1;
        transform: none;
    }

.animate-on-scroll.in-view .corner {
    width: 70px;
    height: 70px;
    opacity: 1;
}

.animate-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s ease;
}

.animate-on-scroll.in-view .animate-item {
    opacity: 1;
    transform: none;
}
.animate-item:nth-child(1) {
    transition-delay: .10s;
}

.animate-item:nth-child(2) {
    transition-delay: .20s;
}

.animate-item:nth-child(3) {
    transition-delay: .30s;
}

.animate-item:nth-child(4) {
    transition-delay: .40s;
}

.animate-item:nth-child(5) {
    transition-delay: .50s;
}

.delay-1 {
    transition-delay: .15s;
}

.delay-2 {
    transition-delay: .30s;
}

.delay-3 {
    transition-delay: .45s;
}

.delay-4 {
    transition-delay: .60s;
}

.hover-lift {
    transition: transform .35s ease, box-shadow .35s ease;
}

    .hover-lift:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 45px rgba(0,0,0,.15);
    }

.animate-on-scroll {
    position: relative;
    opacity: 0;
    transform: translateY(70px);
    transition: opacity .9s ease, transform .9s cubic-bezier(.22,.61,.36,1);
}

    .animate-on-scroll.in-view {
        opacity: 1;
        transform: none;
    }

.animate-item {
    opacity: 0;
    transform: translateY(25px);
    transition: .7s;
}

.animate-on-scroll.in-view .animate-item {
    opacity: 1;
    transform: none;
}

.animate-item:nth-child(1) {
    transition-delay: .15s;
}

.animate-item:nth-child(2) {
    transition-delay: .3s;
}

.animate-item:nth-child(3) {
    transition-delay: .45s;
}



/* Frame basics */
.event-frame {
    position: relative;
    overflow: hidden;
    min-height: 320px;
}

/* Slides */
.event-slide {
    /*display: none;*/
    width: 100%;
}

    .event-slide.active {
        display: flex;
        flex-wrap: wrap;
    }

.btn-web {
    all: unset;
    width: 90px;
    height: 20px;
    font-size: 16px;
    background: transparent;
    border: none;
    position: relative;
    color: #222;
    cursor: pointer;
    z-index: 1;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

    .btn-web:hover {
        color: #880000;
    }

/* Top-right "View All" button */
.read-more-overlay {
    position: absolute;
    top: .75rem;
    right: .75rem;
    z-index: 4; /* above everything */
    pointer-events: auto; /* clickable */
}

/* Controls bar centered at bottom */
.slider-controls {
    position: absolute;
    left: 50%;
    bottom: .75rem;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: .5rem;
}

/* Pause/Play button bottom-right */
#pausePlayBtn {
    right: .75rem;
    bottom: .75rem;
    z-index: 3;
}

/* Make sure images occupy area */
.event-slide img {
    display: block;
    width: 100%;
    height: auto;
}

/* Optional: give slides space at bottom so controls don't overlap caption */
/*.event-caption {
    margin-bottom: 2.25rem;
}*/

/* Ensure the frame is a positioning context */
.event-frame {
    position: relative;
    min-height: 320px;
    overflow: hidden;
}



.event-slide img {
    display: block;
    width: 100%;
    height: auto;
}

/* Unified controls bar */
.eg-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: .75rem;
    display: flex;
    align-items: center;
    justify-content: space-between; /* left / center / right */
    padding: 0 .75rem;
    z-index: 5;
    pointer-events: none; /* prevent the bar from blocking image interactions */
}

    /* Re-enable interaction for the actual controls inside */
    .eg-controls > * {
        pointer-events: auto;
    }

.eg-controls-center {
    display: flex;
    align-items: center;
    gap: .5rem;
}

/* Optional: keep caption clear of the bar */
/*.event-caption {
    margin-bottom: 2.25rem;
}*/

/* If you kept a previous .read-more-overlay style, neutralize it here */
.read-more-overlay, .eg-viewall {
    z-index: 5;
}

/* Chatbot toggle */
/*.chatbot-toggle,
#chatbot-toggle {
    position: fixed;
    bottom: 45px;
    right: 75px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #1D5C90;
    color: #fff;
    border-radius: 24px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    z-index: 220000;
    box-shadow: 0 8px 24px rgba(7,22,48,0.18);
}*/

/* Toggle hover */
/*.chatbot-toggle:hover {
        transform: scale(1.06);
    }*/

/* Toggle icon */
/*.chatbot-toggle img,
    .imgchaticon {
        width: 36px;
        height: 36px;
        object-fit: contain;
        display: inline-block;
    }*/

/* Chat container */
.chatbot-container,
#chatbot-container {
    position: fixed;
    bottom: 1vw;
   /* left: 1%;*/
    width: 600px;
    height: 600px;
    flex-direction: column;
    max-width: 90%;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(6,18,36,0.14);
    overflow: hidden;
    z-index: 220001;
    display: none; /* hidden by default */
    border: 1px solid #ccc;
    background-color: white;
    right: 8%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

    .chatbot-container::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 200px; /* size control */
        height: 200px;
        background: url('/images/hudco-logo.png') no-repeat center;
        background-size: contain;
        opacity: 0.18; /* watermark effect */
        transform: translate(-50%, -50%);
        pointer-events: none;
    }

/* header */
.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    background: #0e1a2b;
    color: #fff;
}

/* title wrapper */
.chat-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .chat-title-wrap img {
        width: 10% !important;
        border-radius: 20px;
    }

/* controls */
.chat-controls {
    display: flex;
    gap: 6px;
    align-items: center;
}

    .chat-controls .chat-btn {
        background: #880000;
        border: none;
        padding: 0.5vw 0.8vw;
        border-radius: 20px;
        cursor: pointer;
        color: #fff;
    }

.welcmsg {
    position: relative;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    font-weight: 100;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

    .welcmsg::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 200px; /* size control */
        height: 200px;
        /*background: url('/images/hudco-logo.png') no-repeat center;*/
        background-size: contain;
        opacity: 0.18; /* watermark effect */
        transform: translate(-50%, -50%);
        pointer-events: none;
    }

/* content */
.chat-content {
    padding: 12px;
    max-height: 550px;
    overflow-y: auto;
    text-align: center;
}

/* input area */
.chat-input-container {
    padding: 10px;
    border-top: 1px solid #eef2f6;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
}

#chat-input {
    flex: 1;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #ccc;
    padding: 0 12px;
    outline: none;
    width: 100%;
}

.chat-input-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background: #0d6efd;
    color: white;
    transition: .2s;
}

    .chat-input-btn:hover {
        transform: scale(1.08);
    }

    .chat-input-btn:active {
        transform: scale(.95);
    }

.cb-disclaimer {
    font-size: 0.7em;
    padding: 0% 1% 1% 1%;
    color: #b90a0a !important;
    background: linear-gradient(87deg, #fff1f1, #ffd9dc);
}

    .cb-disclaimer b {
        color: #b90a0a !important;
    }

.cmdprrofile_bttn {
    display: inline-block;
    font-size: 0.8vw;
    text-transform: uppercase;
    z-index: 98;
    border-radius: 35px;
    position: absolute;
    font-weight: bold;
    margin-left: 69%;
    height: 435px;
    width: 26%;
}

.cmd-image-wrapper {
    position: relative;
    display: inline-block;
    padding: 5px;
    opacity: 0;
    transform: translateY(45px) scale(.96);
    transition: opacity .8s ease, transform .8s ease;
}

    .cmd-image-wrapper.animate {
        opacity: 1;
        transform: translateY(0) scale(1);
    }


/* Image */

.cmd-card-img {
    position: relative;
    display: block;
    border-radius: 8px;
    z-index: 2;
    box-shadow: 0 12px 30px rgba(0,0,0,.10), 0 4px 12px rgba(136,0,0,.08);
    transition: transform .7s ease;
}

.cmd-image-wrapper.animate .cmd-card-img {
    animation: imageBreath .8s ease 1.6s;
}


/* Frame */

.draw-frame {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    overflow: visible;
}


    /* Vertical line */

    .draw-frame::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 15px;
        height: 0;
        background: #880000;
       /* border-radius: 30px 30px 0 0;*/
        box-shadow: 0 0 10px rgba(136,0,0,.25);
    }


    /* Bottom line */

    .draw-frame::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0;
        height: 15px;
        background: #880000;
        /*border-radius: 0 30px 30px 30px;*/
        box-shadow: 0 0 10px rgba(136,0,0,.25);
    }


/* Animate Lines */

.cmd-image-wrapper.animate .draw-frame::before {
    animation: drawLeft .8s ease forwards;
}

.cmd-image-wrapper.animate .draw-frame::after {
    animation: drawBottom .7s ease .8s forwards;
}


/*=========================================
      GOLDEN SPARK
=========================================*/

.spark {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    left: -7px;
    top: -7px;
    z-index: 20;
    background: radial-gradient(circle, #fff 0%, #ffe082 25%, #ffc107 60%, #ff9800 80%);
    box-shadow: 0 0 6px #ffd54f, 0 0 14px #ffd54f, 0 0 28px rgba(255,213,79,.8);
    opacity: 0;
}


/* Spark Animation */

.cmd-image-wrapper.animate .spark {
    animation: sparkDown .8s linear forwards, sparkRight .7s linear .8s forwards, sparkPulse .7s ease 1.5s;
}



/*=========================================
      KEYFRAMES
=========================================*/


@keyframes drawLeft {

    from {
        height: 0;
    }

    to {
        height: 100%;
    }
}


@keyframes drawBottom {

    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}


@keyframes sparkDown {

    0% {
        opacity: 1;
        transform: translate(0,0);
    }

    100% {
        opacity: 1;
        transform: translate(0,100%);
    }
}


@keyframes sparkRight {

    from {
        transform: translate(0,100%);
    }

    to {
        transform: translate(100%,100%);
    }
}


@keyframes sparkPulse {

    50% {
        transform: translate(100%,100%) scale(1.8);
    }

    100% {
        opacity: 0;
        transform: translate(100%,100%) scale(.5);
    }
}


@keyframes imageBreath {

    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.025);
    }

    100% {
        transform: scale(1);
    }
}

.section_two .two_left h1.title {
    font-size: 1.5vw;
    color: #39427a;
    font-weight: 700;
    text-align: left;
}

.bttn {
    border: none;
}

.section_two .two_right .home_cat {
    position: relative;
    width: 100%;
    display: inline-block;
    margin: 5px 0 125px;
}

    .section_two .two_right .home_cat .box_left,
    .section_two .two_right .home_cat .box_right {
        width: 84%;
        position: absolute;
        right: 56px;
        padding: 0 24px;
        text-align: left;
        height: auto;
        box-shadow: 2px 2px 5px #52525270;
        transition: 0.6s;
        min-height: 121px;
        border-radius: 5px;
    }

    .section_two .two_right .home_cat .box_left {
        background: linear-gradient(to left, rgba(255, 255, 255, 0%), #ececec);
        top: 0;
    }

    .section_two .two_right .home_cat .box_right {
        background: linear-gradient(to left, rgba(255, 0, 0, 0), #e0d6c5);
        top: 17px;
    }

.section_one {
    margin-top: 2%;
}

.vmopt2:after {
    background: #d7b983;
}

.opt2 {
    margin-top: -119px;
}

.news-description p a:visited {
    color: inherit !important;
}

.block-top-inner h5,
.cmd-koc {
    color: black !important;
}

.cmd-koc {
    text-align: center !important;
    font-size: 240% !important;
    font-weight: 300 !important;
}

.cmd-nm {
    font-size: 120%;
    font-weight: 300 !important;
    color: #000 !important;
    font-family: 'Noto Sans', sans-serif;
}

.service-block {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: all 0.3s ease;
}

    .service-block:hover {
        transform: scale(1.05);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .service-block .inner-box .image-box {
        position: relative;
    }

    .service-block:hover .image-box img {
        transform: scale(1.05);
        opacity: 0.8;
    }

    .service-block .inner-box .image-box .overlay-box,
    .service-block .inner-box .image-box .caption {
        position: absolute;
        width: 98%;
        text-align: center;
        background-color: #225c99;
        color: #fff;
    }

    .service-block .inner-box .image-box .overlay-box {
        left: 3px;
        bottom: 52px;
        padding: 5px 3px;
    }

    .service-block .inner-box .image-box .caption {
        left: -23px;
        bottom: 0;
        font-size: 15px;
        padding: 16px 0;
        font-weight: 400;
        text-transform: uppercase;
    }

    .service-block .inner-box .image-box .overlay-box .text {
        font-size: 16px;
        line-height: 1.6em;
        font-family: 'Cabin', sans-serif;
        margin-bottom: 15px;
    }

    .service-block .inner-box .image-box .overlay-box h3 {
        font-size: 15px;
        font-weight: 400;
        text-transform: uppercase;
        margin-bottom: 12px;
    }

.overlay-box {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    top: 200px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    opacity: 0;
    transition: bottom 0.3s ease, opacity 0.3s ease;
    padding: 10px;
}

.service-block:hover .overlay-box {
    bottom: 0;
    opacity: 1;
}

.service-block:hover .inner-box .image-box .caption {
    width: 102%;
}

.service-block:hover .inner-box .image-box .overlay-box {
    width: 96%;
    left: 0;
}

.news-description p a:hover {
    color: #007bff !important;
}

.table-responsive {
    height: 380px;
    width: 100%;
    margin-top: 47px;
    overflow-y: auto;
}

table {
    width: 100%;
}

.csr-img {
    width: 100%;
}

.csr-div {
    margin: -25px 0 -20px;
}

.news-desc {
    text-align: left;
    margin-top: -5px;
}

.fa, .fab, .fad, .fal, .far, .fas {
    line-height: 1.5;
}

/* General Buttons */
.nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.view-more-btn {
    display: block;
    text-align: center;
    padding: 10px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

    .view-more-btn:hover {
        background: #0056b3;
    }

/* Event Gallery */
.event-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    max-width: 900px;
    margin-top: 10px;
}

.gallery-container {
    flex: 2;
    position: relative;
    max-width: 600px;
}

.event-slide {
    display: none;
    text-align: center;
}

    .event-slide img {
        width: 95%;
        height: 290px;
        max-height: 400px;
        border-radius: 5px;
    }

/*.event-caption {
    margin-top: 10px;
    font-size: 1.2em;
    font-weight: bold;
}*/

.thumbnail-slider {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 2%;
}

.thumbnail-image {
    width: 100px;
    height: 80px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s, transform 0.3s;
    border-radius: 5px;
}

    .thumbnail-image.active-thumbnail {
        opacity: 1;
        border: 2px solid #ff6600;
        transform: scale(1.1);
    }

/* Timeline Styles */
.news-timeline {
    max-height: 300px;
    overflow-y: auto;
    padding: 1.5rem 2rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fafafa;
}

    .news-timeline::-webkit-scrollbar {
        width: 6px;
    }

    .news-timeline::-webkit-scrollbar-thumb {
        background-color: #ccc;
        border-radius: 3px;
    }

.news-more {
    text-align: right;
}

/* Timeline items (reused class consolidated) */
.timeline-item {
    display: flex;
    align-items: flex-start;
    position: relative;
    margin-bottom: 0rem;
}

.timeline-icon {
    position: absolute;
    left: -15px;
    top: 0;
    width: 20px;
    height: 20px;
    background: #fff;
    border: 2px solid #007bff;
    border-radius: 50%;
    text-align: center;
    font-size: 12px;
    color: #007bff;
    line-height: 18px;
    margin-right: 0.75rem;
}

.timeline-content p {
    margin: 0 0 5px;
}

.timeline-content a {
    color: #222;
    font-weight: 500;
    text-decoration: none;
}

    .timeline-content a:hover {
        color: #880000;
    }

.timeline-date {
    font-size: 0.8rem;
    color: #888;
}

/* Marquee */
/* Marquee Separator */
.marquee-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    /*  background: linear-gradient(to right, #800000, #a21d1d);*/
    color: #880000;
    padding: 0.6rem 5rem;
    /*  box-shadow: 0 2px 4px rgba(0,0,0,0.15);*/
    /*  border-top: 3px solid #660000;
    border-bottom: 3px solid #660000;*/
    position: relative;
    overflow: hidden;
    /*font-family: sans-serif;*/
    height: 85px;
    background: #f2f2f2;
}

.marquee-separator {
    margin-left:3%;
}

.marquee-toggle-btn {
    background: rgba(255, 255, 255, 0.15);
    color: #880000;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

    .marquee-toggle-btn:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.1);
    }

.marquee-vm-btn {
    all: unset;
    width: 90px;
    height: 20px;
    font-size: 16px;
    background: transparent;
    border: none;
    position: relative;
    color: #880000;
    cursor: pointer;
    z-index: 1;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    border: 1px solid #880000;
}

    .marquee-vm-btn:hover {
        background: #880000;
        color: #fff;
    }

    .marquee-container {
        flex: 1;
        overflow: hidden;
        white-space: nowrap;
    }

.marquee-bullet {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #0d4ebc;
    margin: 0 10px 0 5px;
    vertical-align: middle;
    border-radius: 50%;
}

.scroll-bond {
    animation-name: marquee;
    animation-duration: var(--marquee-duration);
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-play-state: paused;
    white-space: nowrap;
    display: inline-block;
}

    .scroll-bond.marquee-ready {
        animation-play-state: running;
    }

.marquee-item {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    margin-right: 80px;
}

.marquee-bullet {
    margin-right: 12px;
    flex-shrink: 0;
}

@keyframes marquee {
    from {
        transform: translateX(var(--marquee-start));
    }

    to {
        transform: translateX(var(--marquee-end));
    }
}


/* Section One - About HUDCO & Latest Updates */
.section_one {
    /* display: flex;*/
    /*background-color: #e7edf3;*/
  /*  padding: 2rem;*/
    /* min-height: 760px;*/
}

    .section_one .row {
        /*display: flex;*/
        align-items: stretch; /* makes columns equal height */
        /* gap: 1%;*/ /* space between columns */
    }

    /*.section_one .two_left,
    .section_one .two_right {
        background: #fff;
        padding: 20px;
        border-radius: 8px;
    }*/
    .section_one .two_left,
    .section_one .two_right {
        /*background: #fff;*/
        padding: 1%;
        border-radius: 8px;
        display: flex;
        flex-direction: column;
        /* height: 100%;*/
        /* margin-left: 1.5%;*/
    }

        .section_one .two_left .news-more,
        .section_one .two_right .news-more {
            margin-top: auto; /* Pushes to bottom */
            text-align: right; /* Right align */
        }

    .section_one .wn-rm,
    .section_one .vm-fn {
        display: inline-block;
        background-color: #800000;
        color: white;
        padding: 0.4rem 1rem;
        border-radius: 4px;
        text-decoration: none;
        transition: background-color 0.3s ease;
    }

        .section_one .wn-rm:hover,
        .section_one .vm-fn:hover {
            background-color: #660000;
        }


    .section_one .title {
        font-size: 1.2rem;
        font-weight: 600;
        color: #880000;
        border-bottom: 2px solid #ddd;
        padding-bottom: 0.5rem;
        margin-bottom: 1rem;
    }

    .section_one p {
        font-size: 1rem;
        line-height: 1.5;
        color: #333;
        margin-bottom: 1rem;
    }

.abt-us {
    /* overflow-y: scroll;*/
    border: 1px solid #e1e1e1;
    padding: 2%;
    border-radius: 10px;
    text-align: justify;
}


/* Read More Button */
.wnDate {
    color: #444;
    font-weight: bold;
}

.wn-rm {
    color: #850d0d;
    padding: 0.6rem 1.2rem;
    border: 1px solid #850d0d;
    border-radius: 5px;
    text-transform: capitalize;
    display: inline-block;
    margin-top: 0.5rem;
    transition: background-color 0.3s ease;
    font-size: 0.8rem;
}

    .wn-rm:hover {
        background-color: #850d0d;
        color: #fff;
    }

/* Tabs */
.nav-tabs-npv .nav-link-npv {
    color: #333;
    background-color: #eee;
    border: none;
    border-radius: 0;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .nav-tabs-npv .nav-link-npv.active {
        background-color: #fff;
        color: #880000;
        border-bottom: 2px solid #880000;
    }

.tab-content {
    background-color: #fff;
    padding: 1rem;
    border: 1px solid #ddd;
    border-top: none;
    animation: fadeIn 0.3s ease-in-out;
    /*overflow-y: scroll;*/
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */




/* Default table styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #DDECEF;
}

    .data-table th,
    .data-table td {
        border: 1px solid #DDECEF;
        padding: 5px;
        font-size: 14px;
        text-align: left; /* default */
    }

        /* Right-align numeric columns */
        .data-table td:nth-child(2),
        .data-table td:nth-child(3),
        .data-table td:nth-child(4),
        .data-table td:nth-child(5) {
            text-align: right;
        }

    .data-table th {
        color: #1656cf;
        font-weight: bold;
        text-transform: capitalize;
    }

/* Responsive tweaks */



/*This section contains all tender related css*/

/* Tender UI: modern card + grid layout */
.tender-container {
    padding: 28px 16px;
    max-width: 1100px;
    margin: 0 auto;
}

.tender-hero {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.85em;
}

    .tender-hero .title {
        font-size: 1.35rem;
        font-weight: 700;
        line-height: 1.2;
    }

    .tender-hero .subtitle {
        font-size: .95rem;
        color: #555;
    }

    .tender-hero tr td {
        padding: 1%;
        margin-left: 5%;
    }

.tender-card, .cmd-pics-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(15,23,42,0.06);
    padding: 20px;
    margin-bottom: 18px;
}

.tender-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.meta-item {
    background: transparent;
    padding: 10px;
    border-radius: 6px;
}

    .meta-item .label {
        display: block;
        font-size: .82rem;
        color: #666;
        margin-bottom: 4px;
    }

    .meta-item .value {
        font-weight: 600;
        color: #111;
        font-size: .95rem;
    }

.tender-docs table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

.tender-docs th, .tender-docs td {
    padding: 10px 8px;
    border-bottom: 1px solid #eef2f6;
    text-align: left;
}

.tender-docs th {
    font-weight: 700;
    font-size: .92rem;
    color: #222;
}

.small-muted {
    color: #6b7280;
    font-size: .86rem;
}

.btn-ghost {
    background: transparent;
    border: 1px solid #e6e9ef;
    padding: 6px 10px;
    border-radius: 8px;
}

.btn-primary-soft {
    background: #0f63f0;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
}

@media (prefers-reduced-motion:reduce) {

    .animate-on-scroll,
    .animate-item,
    .corner {
        transition: none !important;
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

@media print {
    body * {
        visibility: hidden;
    }

    #print-area, #print-area * {
        visibility: visible;
    }

    #print-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
}

/* Strong, scoped table styling for tender-card (put this at the end of your CSS file) */

/* Header (scoped) */
.tender-card table.table thead th,
.tender-card table thead th {
    background: #800000 !important;
    color: #fff !important;
    font-weight: 600;
    padding: 10px 12px;
    border-color: #700000;
}

/* Alternate row cell backgrounds — higher specificity and applied to TD to beat framework rules */
.tender-card table.table tbody > tr:nth-child(odd) > td,
.tender-card table tbody > tr:nth-child(odd) > td {
    background-color: #ffffff !important; /* white */
}

.tender-container table.table tbody > tr:nth-child(odd) > td,
.tender-container table tbody > tr:nth-child(odd) > td {
    background-color: #ffffff !important; /* white */
}

.tender-card table.table tbody > tr:nth-child(even) > td,
.tender-card table tbody > tr:nth-child(even) > td {
    background-color: #eff1f3 !important; /* very light gray */
}

.tender-container table.table tbody > tr:nth-child(even) > td,
.tender-container table tbody > tr:nth-child(even) > td {
    background-color: #eff1f3 !important; /* very light gray */
}

/* Hover (applies to cells) */
.tender-card table.table tbody > tr:hover > td,
.tender-card table tbody > tr:hover > td {
    background-color: rgb(185 199 213) !important;
}

/* Keep cell padding and borders consistent (scoped) */
.tender-card table.table td,
.tender-card table.table th,
.tender-card table td,
.tender-card table th {
    padding: 10px 12px !important;
    border-color: #e6eef6 !important;
}

    /* Optional: emphasise first column */
    .tender-card table.table td:first-child,
    .tender-card table td:first-child {
        font-weight: 600;
        color: #0f1724;
    }

.page-heading {
    text-align: center;
    border-bottom: 3px solid #800000; /* Maroon underline accent */
    padding-bottom: 8px;
    margin-bottom: 24px;
    position: relative;
    font-size: 1.2em;
    color: #b04a4a;
}

    .page-heading::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -3px;
        height: 3px;
        width: 60px;
        background: linear-gradient(90deg, #800000, #b22222);
        border-radius: 3px;
    }

    .page-heading h1 {
        font-size: 1.75rem;
        font-weight: 700;
        color: #222;
        margin: 0;
        line-height: 1.3;
    }

    .page-heading p {
        font-size: 1.4rem;
        color: #555;
        margin-top: 4px;
        letter-spacing: 0.3px;
    }

/* ===== HUDCO two-card + press-cuttings slider styles (prefixed) ===== */
:root {
    --hudco-maroon: #6a1b09;
    --hudco-light: #e7edf3;
    --hudco-card-w: 22%;
}

/* Base box model */
.hudco * {
    box-sizing: border-box;
}

/* Section wrapper */
.hudco-two-card-section {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
    background: radial-gradient(circle at top left,#f8fbff 0%,#ffffff 55%,#f6f7fb 100%);
}

    .hudco-two-card-section::before {
        content: "";
        position: absolute;
        width: 600px;
        height: 600px;
        left: -180px;
        top: -250px;
        border-radius: 50%;
        background: rgba(136,0,0,.05);
        filter: blur(80px);
    }

    .hudco-two-card-section::after {
        content: "";
        position: absolute;
        width: 450px;
        height: 450px;
        right: -180px;
        bottom: -200px;
        border-radius: 50%;
        background: rgba(14,26,43,.06);
        filter: blur(80px);
    }

/* Cards container with background pill */
.hudco-card-shell {
    position: relative;
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: stretch; /* equal height cards */
    padding: 28px 16px 44px;
    flex-wrap: nowrap;
    overflow-x: auto;
}

    .hudco-card-shell::before {
        content: "";
        position: absolute;
        left: 4%;
        right: 4%;
        bottom: 25px;
        height: 180px;
        border-radius: 40px;
        background: linear-gradient( 90deg, #6a1b09, #880000, #6a1b09 );
        opacity: .95;
    }

/* Generic visual card */
.hudco-card {
    position: relative;
    z-index: 2;
    background: #fff;
    width: 22%;
    min-height: 500px;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 10px;
    transition: .45s;
    box-shadow: 0 18px 45px rgba(0,0,0,.08);
    transition: transform .45s, box-shadow .45s;
}
    .hudco-card::before {
        content: "";
        position: absolute;
        top: -120%;
        left: -60%;
        width: 45%;
        height: 240%;
        background: rgba(255,255,255,.28);
        transform: rotate(22deg);
        transition: 1s;
        z-index: 6;
    }

    .hudco-card:hover::before {
        left: 150%;
    }

    .hudco-card:hover {
        transform: translateY(-12px);
        box-shadow: 0 35px 70px rgba(0,0,0,.18);
    }

.hudco-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hudco-overlay-btn i {
    transition: .35s;
}

.hudco-card:hover .hudco-overlay-btn i {
    transform: translateX(5px);
}

.hudco-overlay-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    padding: 32px 28px;
    color: #fff;
    background: linear-gradient( to top, rgba(8,15,32,.97) 0%, rgba(8,15,32,.88) 35%, rgba(8,15,32,.55) 68%, rgba(8,15,32,.15) 100% );
    backdrop-filter: blur(3px);
    transform: translateY(100%);
    transition: transform .55s cubic-bezier(.22,.61,.36,1);
}

.hudco-card:hover .hudco-overlay-content {
    transform: translateY(0);
}

.hudco-overlay .card-name {
    font-size: 1.5rem;
    margin: 10px 0;
    color: white;
}

.hudco-overlay .card-desc {
    opacity: .9;
    line-height: 1.7;
    margin-bottom: 22px;
}

.hudco-overlay-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: #0f284b;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 700;
    transition: .35s;
}

    .hudco-overlay-btn:hover {
        transform: translateX(6px);
    }

/*==================================================
                SECTION HEADER
==================================================*/

.hudco-section-header {
    text-align: center;
    margin-bottom: 10px;
}

.hudco-section-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 30px;
    margin-bottom: 22px;
    border-radius: 999px;
    background: linear-gradient( 135deg, #880000, #5d0000 );
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    box-shadow: 0 12px 30px rgba(136,0,0,.18);
}

.hudco-section-title {
    margin: 0;
    font-size: clamp(2.6rem,3vw,4.4rem);
    font-weight: 800;
    color: #10284b;
    line-height: 1.15;
}

.hudco-section-subtitle {
    max-width: 650px;
    margin: 22px auto 0;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #6d7280;
}

.hudco-heading-line {
    width: 90px;
    height: 4px;
    margin: 15px auto 0;
    border-radius: 999px;
    background: linear-gradient( 90deg, transparent, #880000, transparent );
}

/* Visual area (image container) */
.hudco-card-visual {
    position: relative;
    flex: 1;
    overflow: hidden;
    border-radius: 18px;
}

    /* CMD portrait (non-slider image) */
    .hudco-card-visual img.hudco-cmd-img {
        width: 100%;
        height: 95%; /* compact portrait size */
        max-width: 100%;
        object-fit: cover;
        border-radius: 8px;
        display: block;
        transition: transform .8s ease;
    }

.hudco-card:hover .hudco-cmd-img {
    transform: scale(1.08);
}

/* Slider card uses a taller visual area — target the slider card specifically */
.hudco-card.hudco-slider-card > .hudco-card-visual {
    flex: 0 0 320px; /* make slider area taller so image fills to title */
}

/* Slider viewport full area */
.hudco-slider-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: block;
}

/* Slide covers full viewport and uses object-fit to crop/cover */
.hudco-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .45s ease, visibility .01s linear .45s;
    z-index: 1;
    pointer-events: none;
}

    .hudco-slide.is-active {
        opacity: 1;
        visibility: visible;
        z-index: 3;
        pointer-events: auto;
    }

/* Card textual content */
.hudco-card-content {
    padding: 10px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1vw;
    text-align: center;
}

.hudco-card-title {
    margin-top: 10px;
    margin-bottom: 6px;
    color: #880000;
    font-weight: 700;
    z-index: 4;
    position: relative;
    text-align: center;
}

.hudco-card-label {
    font-size: .72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #880000;
    font-weight: 700;
    margin-bottom: 10px;
}

/* CMD text */


.card-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #12284b;
   /* margin-bottom: 18px;*/
    line-height: 1.2;
    margin: 0;
}

/*.card-desc {
    font-size: 1rem;
    color: #444;
    text-align: center;
    line-height: 1.25;
}*/

.card-desc {
    color: #fff;
    line-height: 1.3;
    font-size: 1.3rem;
    min-height: 50px;
    font-weight: 500;
}

/*.card-desc {
    font-size: 0.92rem;
   margin-bottom: 0.6rem;   color: #555;
    color: #555;
    line-height: 1.3;
  
}*/

/* Buttons */
.hudco-actions {
    margin-top: 5%;
}

.hudco-btn, .hudco-link {
    background: var(--hudco-maroon);
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
}

    .hudco-btn:focus, .hudco-link:focus {
        outline: 3px solid rgba(75,23,143,0.18);
    }

/* Controls + indicators */
.hudco-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-top: 8px;
    z-index: 5;
    padding-bottom: 6px;
}

.hudco-ctrl {
    background: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    cursor: pointer;
    font-size: 16px;
}

    .hudco-ctrl:focus {
        outline: 3px solid rgba(75,23,143,0.16);
    }

.hudco-indicators {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 10px;
    padding-bottom: 6px;
}

.hudco-ind-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0,0,0,0.12);
    cursor: pointer;
    border: none;
}

    .hudco-ind-dot.active {
        background: #800000;
    }

/* Modal / lightbox styles */
.hudco-img-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 12000;
    padding: 20px;
    backdrop-filter: blur(2px);
}

.hudco-img-modal {
    max-width: calc(100% - 40px);
    max-height: calc(100% - 40px);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .hudco-img-modal img {
        max-width: 100%;
        max-height: 100%;
        height: auto;
        width: auto;
        border-radius: 6px;
        box-shadow: 0 20px 60px rgba(0,0,0,0.6);
        display: block;
    }

/* Close button */
.hudco-img-modal-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #fff;
    color: #000;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

/* Prev / Next buttons */
.hudco-img-modal-prev,
.hudco-img-modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.hudco-img-modal-prev {
    left: -60px;
}

.hudco-img-modal-next {
    right: -60px;
}



    /* Accessibility focus styles */
    .hudco-img-modal-close:focus,
    .hudco-img-modal-prev:focus,
    .hudco-img-modal-next:focus {
        outline: 3px solid rgba(128,0,0,0.16);
        outline-offset: 2px;
    }

/* Hide on print */
@media print {
    .hudco-img-modal-overlay {
        display: none !important;
    }
}

/* Responsive */


/* Subtle line under CMD name */
/*.title-line {
    width: 60%;
    height: 2px;
    background: linear-gradient(to right, #bbb, #ddd, #bbb);
    margin: 6px auto 8px auto;
    border-radius: 2px;
    opacity: 0.8;
}*/

.title-line {
    width: 80px;
    height: 3px;
    background: linear-gradient( 90deg, transparent, #880000, transparent );
    margin: 0 auto 5px;
}

.cmd-vm {
    display: inline-block;
    background-color: #800000;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

    .cmd-vm:hover {
        background-color: #660000;
    }

/* ===========================
   Compact cards — consolidated
   Paste this once (after your main CSS). 
   Tweak --visual-h to scale visuals.
   =========================== */

.compact-cards {
    --compact-g: 12px;
    --card-radius: 10px;
    --accent-shadow: rgba(8,20,40,0.18);
    --visual-h: 350px; /* desktop visual height — change to 300px for larger images */5
    --visual-h-tablet: 220px;
    --visual-h-mobile: 160px;
    --control-size: 36px;
}

    /* Row/columns layout: force equal height columns */
    .compact-cards .row.g-4 {
        gap: var(--compact-g);
        align-items: stretch;
    }

    .compact-cards .col-lg-4, .compact-cards .col-lg-3 {
        display: flex;
        align-items: stretch;
    }

    /* Card base */
    .compact-cards .hudco-card {
        width: 100%;
        padding: 10px 1px calc(var(--control-size) * 2 + 5px); /* <-- reserve room for controls + indicators */
        /* border-radius: var(--card-radius);
        box-shadow: 0 8px 20px rgba(70,6,6,0.22);*/
        background: none;
        display: flex;
        flex-direction: column;
        gap: 8px;
        flex: 1 1 auto;
        min-height: 0;
        box-sizing: border-box;
        position: relative;
        overflow: visible; /* allow controls to visually sit outside visual area */
    }

    /* Titles */
    .compact-cards .hudco-card-title {
        line-height: 1.15;
        font-size: 1.2rem;
        font-weight: 600;
        color: #880000;
        padding-bottom: 0.5rem;
        margin-bottom: 1rem;
    }

    /* Visual area (image container) — consistent height across cards */
    .compact-cards .hudco-card-visual,
    .compact-cards .event-frame {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: var(--visual-h);
        max-height: var(--visual-h);
        border-radius: 8px;
        padding: 6px;
        /*background: #fff;*/
        overflow: hidden;
        position: relative;
        margin-bottom: 6px; /* small gap before caption/controls area */
    }

.event-frame {
    align-items: stretch;
    height: calc(var(--visual-h) + 40px);
    display: flex;
}
.event-image-wrapper {
    position: relative;
    flex: 1;
    overflow: hidden;
    border-radius: 18px;
    background: #eee;
}

    .event-image-wrapper::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( to bottom, rgba(0,0,0,.05), rgba(0,0,0,.15) );
        z-index: 1;
    }

.event-image-blur {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(26px);
    transform: scale(1.2);
    opacity: .65;
}

.event-image {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

    /* Press images (show full document without cropping) */
    .compact-cards .hudco-slider-viewport {
        position: relative;
        height: 100%;
        width: 100%;
    }

        .compact-cards .hudco-slider-viewport img.hudco-slide {
            position: relative; /* not absolute, so it stays centered by flexbox */
            margin: 0 auto;
            height: calc(var(--visual-h) - 28px); /* slightly smaller to allow padding */
            width: auto; /* preserves aspect ratio and scales up by height */
            max-width: 96%;
            object-fit: contain; /* show full image (no crop) */
            object-position: center;
            border-radius: 6px;
            transition: transform .25s ease, opacity .35s ease;
            opacity: 1;
            z-index: 1;
        }

            /* If slider JS toggles .is-active, keep it working — z-index increases */
            .compact-cards .hudco-slider-viewport img.hudco-slide.is-active {
                z-index: 2;
            }

    /* Event gallery images: scale by height (large and centered) */
    .compact-cards .event-frame img,
    .compact-cards .gallery-grid img {
        height: calc(var(--visual-h) - 60px);
        width: auto;
        max-width: 100%;
        object-fit: contain;
        object-position: center;
        display: block;
        border-radius: 6px;
        box-shadow: 0 6px 14px var(--accent-shadow);
        margin: 0 auto;
    }

    /* Thumbnail strip (if used) */
    .compact-cards .thumbnail-slider {
        gap: 6px;
        max-height: 140px;
        overflow-x: auto;
        padding-top: 6px;
    }

    .compact-cards .thumbnail-image {
        width: 72px;
        height: 48px;
        object-fit: cover;
        border-radius: 6px;
    }

    .compact-cards .eg-vm {
        left: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 1% 0%;
    }

        .compact-cards .eg-vm a {
            display: inline-block;
            background-color: #fff;
            color: #800000;
            padding: 0.4rem 1rem;
            border-radius: 4px;
            text-decoration: none;
            transition: background-color 0.3s ease;
            border: 1px solid #800000;
        }

            .compact-cards .eg-vm a:hover {
                background-color: #800000;
                color: #fff;
            }

    /* Controls — centered below the visual area (not overlapping image) */
    .compact-cards .hudco-controls,
    .compact-cards .eg-controls {
        position: absolute;
        left: 50%;
        bottom: calc(-1 * var(--control-size) - -75px); /* push below visual area */
        transform: translateX(-50%);
        z-index: 60;
        display: flex;
        gap: 10px;
        align-items: center;
        justify-content: center;
        background: rgba(255,255,255,0.98);
        padding: 6px 10px;
        border-radius: 28px;
        box-shadow: 0 8px 18px var(--accent-shadow);
        pointer-events: auto;
    }

        /* Controls styling */
        .compact-cards .hudco-ctrl,
        .compact-cards .eg-controls .btn {
            width: var(--control-size);
            height: var(--control-size);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: #fff;
            border: none;
            cursor: pointer;
            font-size: 14px;
        }

    /* Indicators (dots) — below controls */
    .compact-cards .hudco-indicators {
        position: relative; /* << not absolute */
        margin-top: 10px;
        display: flex;
        justify-content: center;
        gap: 8px;
        bottom: -80px !important;
    }

    .compact-cards .hudco-ind-dot {
        width: 8px;
        height: 12px;
        border-radius: 50%;
        background: rgba(0,0,0,0.12);
    }

        .compact-cards .hudco-ind-dot.active {
            background: #800000;
        }
    /* Caption spacing (keeps gap between image and controls) */
    .compact-cards .event-caption {
        margin-top: 8px;
        margin-bottom: 14px;
        text-align: center;
        font-size: 0.8rem;
    }

    /* Social widget sizing / scroll */
    .compact-cards .facebook-widget {
        width: 100%;
        max-height: calc(var(--visual-h) + 40px);
        overflow: auto;
        padding: 6px;
        border-radius: 8px;
    }

        .compact-cards .facebook-widget .fb-page {
            height: calc(var(--visual-h) + 20px) !important;
            width: 100% !important;
        }

    /* small polish */
    .compact-cards hr {
        border: none;
        border-bottom: 1px solid #eee;
        margin: 6px 0 10px;
    }

    /* fallback: ensure the card body below visual can scroll without expanding card */
    .compact-cards .card-body-scroll {
        overflow: auto;
        flex: 1 1 auto;
        padding-top: 6px;
    }

/* ===== responsive adjustments ===== */

/* ==========================================================
   HUDCO Feature Section
========================================================== */

.hudco-feature-section {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    isolation: isolate;
}

    .hudco-feature-section::before {
        content: "";
        position: absolute;
        width: 500px;
        height: 500px;
        left: -180px;
        top: -180px;
        border-radius: 50%;
        /*background: radial-gradient(circle, rgba(136,0,0,.08), transparent 70%);*/
       /* background: radial-gradient(circle, rgba(0,92,170,.10), transparent 70%);
        animation: glowMove1 18s ease-in-out infinite alternate;*/
    }

    .hudco-feature-section::after {
        content: "";
        position: absolute;
        width: 400px;
        height: 400px;
        right: -120px;
        bottom: -120px;
        border-radius: 50%;
       /* background: radial-gradient(circle, rgba(0,92,170,.08), transparent 70%);
        animation: glowMove2 22s ease-in-out infinite alternate;*/
    }

    /* Bring content above background */

    .hudco-feature-section > .container {
        position: relative;
        z-index: 3;
    }

@keyframes glowMove1 {

    from {
        transform: translate(0,0) scale(1);
    }

    to {
        transform: translate(40px,30px) scale(1.15);
    }
}

@keyframes glowMove2 {

    from {
        transform: translate(0,0) scale(1);
    }

    to {
        transform: translate(-35px,-25px) scale(1.12);
    }
}

.hudco-feature-section .container {
    position: relative;
}

    .hudco-feature-section .container::before {
        content: "";
        position: absolute;
        inset: 0;
       /* background-image: linear-gradient(rgba(136,0,0,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(136,0,0,.03) 1px, transparent 1px);*/
        background-size: 60px 60px;
        pointer-events: none;
        z-index: -1;

    }

    .hudco-feature-section .container::after {
        content: "";
        position: absolute;
        right: -180px;
        top: -180px;
        width: 380px;
        height: 380px;
        border-radius: 50%;
        /*background: radial-gradient(circle, rgba(136,0,0,.08), transparent 70%);*/
        pointer-events: none;
        z-index: -1;
    }

/* ==========================================
   Floating Particles
========================================== */

.hudco-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.hudco-particle {
    position: absolute;
    border-radius: 50%;
    animation-name: particleFloat;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    will-change: transform;
    filter: blur(.3px);
}

@keyframes particleFloat {

    0% {
        transform: translate3d(0,0,0) scale(1);
    }

    20% {
        transform: translate3d(var(--x1),var(--y1),0) scale(1.2);
    }

    45% {
        transform: translate3d(var(--x2),var(--y2),0) scale(.9);
    }

    70% {
        transform: translate3d(var(--x3),var(--y3),0) scale(1.15);
    }

    100% {
        transform: translate3d(0,0,0) scale(1);
    }
}

:root {
    --hudco-maroon-1: #800000;
    --hudco-maroon-2: #b00000;
    --hudco-soft-bg: #f5f5f7;
    --hudco-text-main: #111827;
    --hudco-text-muted: #6b7280;
}

/* ===== Card base ===== */
.mp-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transition: transform .22s ease, box-shadow .22s ease;
}

    /* animated top gradient bar */
    .mp-card::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        height: 3px;
        width: 100%;
        background: linear-gradient(90deg, var(--hudco-maroon-1), var(--hudco-maroon-2));
        transform: scaleX(0.4);
        transform-origin: left;
        opacity: 0.7;
        transition: transform .25s ease-out, opacity .25s ease-out;
    }

    .mp-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    }

        .mp-card:hover::before {
            transform: scaleX(1);
            opacity: 1;
        }

/* ===== Image area ===== */
.mp-media {
    position: relative;
    background: var(--hudco-soft-bg);
}

.mp-media-inner {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    margin: 0.85rem 0.85rem 0.35rem;
}

    /* shine sweep on hover */
    .mp-media-inner::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 120deg, transparent 0%, rgba(255, 255, 255, 0.6) 35%, transparent 70% );
        transform: translateX(-130%);
        opacity: 0;
        pointer-events: none;
    }

.mp-card:hover .mp-media-inner::before {
    opacity: 0.9;
    transform: translateX(130%);
    transition: transform .75s ease-out, opacity .45s ease-out;
}

.mp-media-inner img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
    transition: transform .45s ease, filter .3s ease;
}

.mp-card:hover .mp-media-inner img {
    transform: scale(1.06);
    filter: brightness(1.03);
}

/* bottom overlay strip on image */
.mp-media-overlay {
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.35rem;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient( to top, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.4) );
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.75rem;
    color: #f9fafb;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .26s ease, transform .26s ease;
}

.mp-card:hover .mp-media-overlay {
    opacity: 1;
    transform: translateY(0);
}

.mp-overlay-text {
    text-transform: uppercase;
}

.mp-overlay-icon {
    font-size: 0.9rem;
}

/* ===== Body / title ===== */
.mp-body {
    padding: 0.75rem 1rem 1rem;
    border-radius: 0 0 18px 18px;
    background: linear-gradient( 90deg, #880000 0%, #455874 55%, #e3e3e3 100% );
}

.mp-tag {
    display: inline-block;
    margin-bottom: 0.35rem;
    padding: 0.15rem 0.55rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 999px;
    background: rgba(128, 0, 0, 0.08);
    color: var(--hudco-maroon-1);
    font-weight: 600;
}

.mp-title {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
}




/* CMD card: horizontal split */
.hudco-cmd-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem; /* spacing between image and content */
    /*background: #fff;*/
    /* border-radius: 8px;*/
    padding: 0.3rem;
    /*box-shadow: 0 6px 18px rgba(122,43,43,0.51);*/
    overflow: visible;
    width: 100%;
}

/* Left image area (50%) */
.cmd-card-visual {
    flex: 1 1 45%;
    max-width: 85%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /*  border-right: 1px solid #d5d5d5;*/
}

/* Image should fill left column and keep aspect ratio */
.cmd-card-img {
    width: auto;
    height: 90%;
    max-height: 255px; /* adjust as needed */
    object-fit: contain;
    display: block;
    border-radius: 6px;
    border: 1px solid #f3f3f3;
}

/* Right content area (50%) */
.cmd-card-content {
    flex: 1 1 10%;
    max-width: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.25rem 0.5rem;
}

/* Typography */
.cmd-card-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #2b2b2b;
    margin-bottom: 0.35rem;
}

/* Button */
.cmd-card-cta {
    margin: auto;
}

.card-cta .cmd-vm:hover,
.card-cta .cmd-vm:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
    opacity: 0.98;
}

/* Accessibility focus */
.hudco-cmd-card:focus-within {
    outline: 3px solid rgba(128,0,0,0.12);
}

.vision-mission-card {
    margin-top: 1px;
   /* background: #fff;*/
    /* border-radius: 16px;*/
    /*box-shadow: 0 8px 25px rgba(0,0,0,.08);*/
    padding: 25px;
    position: relative;
    min-height: 420px;
    overflow: hidden;
    width: 90%;
    /*margin: auto;*/
    text-align: center;
}

.vm-item {
    position: absolute;
    inset: 25px;
    opacity: 0;
    visibility: hidden;
    transition: .6s ease;
    transform: translateY(15px);
}

    .vm-item.active {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

.vm-heading {
    font-size: 28px;
    font-weight: 700;
    color: #005baa;
    margin-bottom: 15px;
}

    .vm-heading i {
        margin-right: 10px;
    }

.vm-text {
    font-size: 22px;
    line-height: 1.6;
    color: #444;
    font-style: italic;
}

.vm-dots {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    display:none;
}

    .vm-dots span {
        width: 10px;
        height: 10px;
        display: inline-block;
        border-radius: 50%;
        background: #ccc;
        margin: 0 4px;
        transition: .3s;
    }

        .vm-dots span.active {
            background: #880000;
        }

.sidebar {
    margin-bottom: 5%;
}
    /* Sidebar heading */
    .sidebar h5 {
        font-size: 1.1rem;
        font-weight: 700;
        color: #880000;
        margin-bottom: 1rem;
        /* Subtle bottom border effect */
        padding-bottom: 6px;
        border-bottom: 2px solid #80000022; /* light maroon tint */
    }

        /* Optional: small left bar (HUDCO maroon) */
        .sidebar h5::before {
            content: "";
            display: inline-block;
            width: 6px;
            height: 18px;
            background: linear-gradient( to bottom, #880000, #aaaaaa );
            margin-right: 8px;
            border-radius: 3px;
            vertical-align: middle;
        }

    /* Sidebar menu links */
    .sidebar ul li a {
        display: block;
        padding: 6px 10px;
        border-radius: 6px;
        color: #333;
        text-decoration: none;
        transition: all 0.25s ease;
    }

        /* Active menu (your existing blue highlight keeps working) */
        .sidebar ul li a.fw-bold.text-primary {
            background: #ffe9e9;
            border-left: 4px solid #9d2c2c;
            padding-left: 12px;
            font-weight: 600 !important;
            color: #880000 !important;
        }

        /* Hover effect for non-active items */
        .sidebar ul li a:not(.fw-bold):hover {
            background: #f5f5f5;
            padding-left: 14px; /* slight slide effect */
            border-left: 3px solid #ccc;
            color: #000;
        }

.inner-page-css {
    padding: 0% 8% 3%;
    text-align: justify;
}

    .inner-page-css h4 {
        font-size: 1.1rem;
        font-weight: 700;
        color: #3a2e2e;
        /* Subtle bottom border effect */
        border-bottom: 2px solid #80000022; /* light maroon tint */
        margin-bottom: 0.5%;
    }
        /* Optional: small left bar (HUDCO maroon) */
        .inner-page-css h4::before {
            content: "";
            display: inline-block;
            width: 6px;
            height: 18px;
            background: linear-gradient( to bottom, #880000, #aaaaaa );
            margin-right: 8px;
            border-radius: 3px;
            vertical-align: middle;
        }

    .inner-page-css ul {
        list-style-type: disc;
    }

        .inner-page-css ul li {
            margin-left: 3%;
        }

    .inner-page-css .inner-button {
        left: 50%;
        justify-content: center;
        margin: 1% 0%;
    }


        .inner-page-css .inner-button a {
            display: inline-block;
            background-color: #fff;
            color: #800000;
            padding: 0.4rem 1rem;
            border-radius: 4px;
            text-decoration: none;
            transition: background-color 0.3s ease;
            border: 1px solid #800000;
        }

            .inner-page-css .inner-button a:hover {
                background-color: #800000;
                color: #fff;
            }

    .inner-page-css b {
        font-weight: 600;
    }

.clear-btn {
    margin-left: 5px;
}

.office-item {
    max-width: 100%; /* keeps infowindow neat */
}

.office-item-img {
    margin: 0 0 8px 0;
    border-radius: 8px;
    overflow: hidden;
}

    .office-item-img img {
        display: block;
        width: 100%;
        height: auto;
    }

/* ======= Segment Hero (strip like) ======= */

.segment-hero {
    position: relative;
    width: 100%;
    min-height: 330px;
    color: #fff;
    overflow: hidden;
}


    /* Dark gradient for better text contrast */
    .segment-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 40%, rgba(0,0,0,0.85) 100% );
        pointer-events: none;
    }

/* Content overlay */
.segment-hero-overlay {
    position: relative;
    z-index: 2;
    padding-top: 2.2rem;
    padding-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* Big heading at top */
.segment-hero-title {
    font-size: 2rem;
    font-weight: 800;
    max-width: 26rem;
    margin-bottom: 1.5rem;
}

.segment-hero-tabs {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Icon */
.segment-tab-icon {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.segment-tab-sub {
    font-size: 0.8rem;
    opacity: 0.85;
}

/* ======= WHAT WE DO hero ======= */

.segment-hero {
    position: relative;
    width: 100%;
    min-height: 340px;
    color: #fff;
    overflow: hidden;
    margin-top: 0rem;
    aspect-ratio: 24 / 9;
}

.segment-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    filter: brightness(0.85);
    transition: background-image 0.6s ease-in-out, filter 0.3s ease;
}

/* Dark gradient overlay for readability */
.segment-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient( to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0.85) 100% );
    pointer-events: none;
}

.segment-hero-overlay {
    position: relative;
    z-index: 2;
    padding-top: 1.8rem;
    padding-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: inherit;
}

/* Text block */
.segment-hero-kicker {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: #ffdfc9;
    margin-bottom: 0.25rem;
}

.segment-title-subtext {
    /*background: rgb(16 0 0 / 50%);*/
    border-radius: 10px;
    padding: 1%;
    max-width: 32rem;
}

.segment-hero-title {
    font-size: 1.7rem;
    font-weight: 800;
    max-width: 32rem;
    /* margin-bottom: 0.35rem;*/
}

.segment-hero-subtext {
    font-size: 0.9rem;
    max-width: 34rem;
    margin-bottom: 1.3rem;
    color: #f6eae0;
}


.segment-hero-tabs {
    position: relative;
    height: 145px;
    padding-top: 40px;
    overflow: hidden;
    width:25%;
}

    .segment-hero-tabs::-webkit-scrollbar {
        display: none;
    }

.segment-hero-tabs {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Single tab */


.segment-tab {
    position: absolute;
    left: 3%;
    right: 3%;
    top: 40px;
    display: flex;
    flex-direction: column;
    gap: .3rem;
    padding: 1rem 1.25rem;
    max-width: 360px;
    background: rgba(0,0,0,.82);
    color: #fff;
    border-radius: 12px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px);
    transition: opacity .65s ease, transform .65s ease, visibility 0s linear .65s;
}

    .segment-tab:hover {
        background: rgba(0, 0, 0, 0.98);
        transform: translateY(-2px);
        box-shadow: 0 8px 22px rgba(0,0,0,0.4);
        transform: translateY(-5px) scale(1.1);
        overflow: visible;
    }

    /* Active tab in HUDCO maroon */
    .segment-tab.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition-delay: 0s;
    }

    .segment-tab.leaving {
        opacity: 0;
        transform: translateY(-25px);
    }

/* Icon */
.segment-tab-icon {
    font-size: 1.2rem;
    margin-bottom: 0.15rem;
}

/* Main + sub labels */
.segment-tab-main {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
}

    .segment-tab-main::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -2px;
        width: 30%; /* underline length */
        height: 3px; /* underline thickness */
        background: rgba(255,255,255,0.4); /* subtle underline */
        border-radius: 2px;
        transition: width 0.3s ease, background 0.3s ease;
    }

/* Active (red tab) — underline full & bright */
.segment-tab.active .segment-tab-main::after {
    width: 60%; /* expand underline for active state */
    background: #ffffff; /* crisp white line */
}

/*.segment-tab-sub {
    font-size: 0.9rem;
    opacity: 0.9;
}*/

/*.segment-tab:hover .segment-tab-sub,
.segment-tab.active .segment-tab-sub {
    max-height: 120px;
    opacity: 1;
    transform: translateY(0);
}*/

/* ==========================================================
        FLOW CONNECTOR
========================================================== */

.segment-hero-tabs {
    position: relative;
    display: flex;
    gap: 1rem;
    padding-top: 30px;
    overflow-x: auto;
    margin: 0px auto;
    padding-left:3%;
    padding-right:3%;
    display:none;
}

.segment-flow {
    position: absolute;
    left: 0;
    right: 0;
    top: 2px;
    height: 24px;
    pointer-events: none;
    z-index: 1;
}

/* Gray line */

.segment-flow-track {
    position: absolute;
    left: 0%;
    right: 0%;
    top: 10px;
    height: 2px;
    border-radius: 50px;
    background: rgba(255,255,255,.20);
    background-image: repeating-linear-gradient( 90deg, rgba(255,255,255,.20) 0px, rgba(255,255,255,.20) 14px, transparent 14px, transparent 22px );
}

/* Blue growing line */

.segment-flow-progress {
    position: absolute;
    left: 0%;
    width: 0;
    top: 11px;
    height: 3px;
    border-radius: 50px;
    background: linear-gradient(90deg,#0b74ff,#2fd4ff);
    /* transition: width .6s cubic-bezier(.25,.8,.25,1);*/
    
    transition: transform .9s ease;
}

/* Moving pulse */

.segment-flow-pulse {
    position: absolute;
    top: 12px;
    left: 8%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transform: translate(-50%,-50%);
    background: radial-gradient(circle,#fff 10%,#69d2ff 45%,#007cff 100%);
    box-shadow: 0 0 5px #4cb7ff, 0 0 12px #4cb7ff, 0 0 22px #4cb7ff;
    transition: left .6s cubic-bezier(.25,.8,.25,1);
}

.segment-node.completed {
    background: #2f7dff;
    opacity: .45;
    box-shadow: none;
}


/* Nodes */

.segment-node {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #9b9b9b;
    top: 10px;
    transform: translate(-50%,-50%);
    transition: .4s;
}

.segment-node {
    background: #8f8f8f;
    box-shadow: none;
}

    .segment-node::after {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        transform: translate(-50%,-50%) scale(.2);
        opacity: 0;
    }

    .segment-node.active {
        background: #fff;
        transform: translate(-50%,-50%) scale(1.35);
        box-shadow: 0 0 10px #39a5ff, 0 0 24px #39a5ff, 0 0 45px #39a5ff;
    }

        .segment-node.active::after {
            animation: ripple .6s;
        }

@keyframes ripple {

    0% {
        opacity: 1;
        transform: translate(-50%,-50%) scale(.3);
    }

    100% {
        opacity: 0;
        transform: translate(-50%,-50%) scale(3);
    }
}

/* Cards above everything */

.segment-tab {
    z-index: 5;
}
/* ===== HUDCO Stats Strip (counters) ===== */

.hudco-stats-strip {
    background: #0e1a2b; /* deep charcoal like screenshot */
    color: #ffffff;
    padding: 1.4rem 0 1.6rem;
}

.hudco-stats-row {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 0;
}

.hudco-stat-item {
    flex: 1 1 0;
    text-align: center;
    padding: 0 1rem;
    position: relative;
}

    /* vertical separator */
    .hudco-stat-item:not(:last-child)::after {
        content: "";
        position: absolute;
        right: 0;
        top: 15%;
        bottom: 15%;
        width: 1px;
        background: rgba(255, 255, 255, 0.18);
    }

.hudco-stat-value {
    font-size: 1.9rem;
    font-weight: 800;
    color: #ed0707; /* HUDCO maroon */
    letter-spacing: 0.03em;
    margin-bottom: 0.2rem;
}

.hudco-stat-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #f2f2f2;
    white-space: nowrap;
}

.hudco-inline-stat {
    color: #ed0707;
    font-weight: 800;
    font-size: 1.5em;
}

.hudco-stat-subtitle {
    margin-top: 6px;
    font-size: 14px;
    color: #cfcfcf;
    letter-spacing: .4px;
}

/* CMD Section */


.cmd-section {
    margin: 3rem auto;
}

.cmd-section-header {
    margin-bottom: 1rem;
    padding-bottom: 6px;
}

    .cmd-section-header:before {
        content: "";
        display: inline-block;
        width: 6px;
        height: 28px;
        background: linear-gradient( to bottom, #880000, #aaaaaa );
        margin-right: 8px;
        border-radius: 3px;
        vertical-align: middle;
    }

    .cmd-section-header span {
        font-weight: 600;
        font-size: 1.35rem;
    }

.cmd-card {
    background: #ffffff;
    border-radius: 32px;
    padding: 2.25rem 2.5rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

/* Photo + red shape (inspired but different from Oil India) */
.cmd-photo-wrapper {
    position: relative;
    width: 260px;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* Big circular / organic shape clearly behind the image */
/*.cmd-photo-bg {
    position: absolute;
    width: 290px;
    height: 290px;
    background: radial-gradient(circle at 30% 30%, #ff6b6b, #b30000 60%, #7a0010);
    border-radius: 12% 45% 55% 55%;*/ /* organic, not a perfect circle */
/*top: 50%;
    left: 55%;
    transform: translate(-55%, -50%);*/ /* shift slightly left for a nice offset */
/*z-index: 1;
}*/

.cmd-photo-bg {
    position: absolute;
    width: 210px;
    height: 265px;
    background: radial-gradient(circle at 30% 30%, #f9f9f9, #6c6c6c 60%, #f9f9f9);
    border-radius: 30%;
    top: 50%;
    left: 54%;
    transform: translate(-55%, -50%);
    z-index: 1;
    box-shadow: 1px 5px 25px 5px rgb(0 0 0 / 36%);
}

/* CMD image on top of the shape */
.cmd-photo {
    position: relative;
    z-index: 2;
    width: 72%;
    max-width: 190px;
    height: auto;
    border-radius: 72px; /* keep a rounded-rectangle, different from Oil India */
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

/* Name & title under photo (keep as before if you like) */
.cmd-name-block {
    text-align: center;
    margin-top: 1.25rem;
}

.cmd-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.cmd-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #555555;
    margin-bottom: 0;
}

/* Description text */
.cmd-text {
    font-size: 0.85rem;
    line-height: 1.3;
    color: #333333;
    padding-left: 2rem;
    text-align: justify;
}

/* Responsive tweaks */
@media (max-width: 992px) {
    .cmd-card {
        padding: 1.75rem 1.5rem;
    }

    .cmd-text {
        padding-left: 0;
        margin-top: 1.5rem;
        text-align: left;
    }

    .cmd-photo-wrapper {
        max-width: 220px;
    }

    .cmd-photo-bg {
        width: 200px;
        height: 200px;
        transform: translateX(0);
    }

    .cmd-name {
        font-size: 1rem;
    }

    .cmd-title {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .cmd-section {
        margin: 2rem auto;
    }

    .cmd-card {
        border-radius: 24px;
        padding: 1.5rem 1.25rem;
    }

    .cmd-text {
        font-size: 0.9rem;
    }
}


@media (min-width: 1350px) and (max-width: 1500px) {
    .section_one {
        /*height: 60vw;*/
        height: auto;
    }
}

@media (min-width: 1050px) and (max-width: 1349px) {


    .section_one {
        /*height: 55em;*/
        height: auto;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 992px;
    }

   

    .section_one {
        /*height: 100vw;*/
        height: auto;
    }

    .compact-cards {
        --visual-h: var(--visual-h-tablet);
    }

        .compact-cards .hudco-card-visual,
        .compact-cards .event-frame {
            height: var(--visual-h-tablet);
            max-height: var(--visual-h-tablet);
        }

            .compact-cards .hudco-slider-viewport img.hudco-slide,
            .compact-cards .event-frame img {
                height: calc(var(--visual-h-tablet) - 20px);
            }

        /* bring controls a bit closer (less negative bottom) */
        .compact-cards .hudco-controls {
            position: relative; /* << no absolute positioning */
            margin-top: 15%; /* gap below image */
            display: flex;
            gap: 10px;
            align-items: center;
            justify-content: center;
            background: #fff;
            padding: 6px 10px;
            border-radius: 28px;
            box-shadow: 0 6px 18px rgba(0,0,0,0.10);
        }

        .compact-cards .hudco-indicators {
            bottom: calc(-1 * (var(--control-size) * 2) - 2px);
            margin-top: -20%;
        }

        .compact-cards .facebook-widget {
            width: 45%;
            max-height: calc(var(--visual-h) + 251px);
            overflow: hidden;
            margin-left: 28%;
        }

    .hudco-two-card-section {
        padding: 48px 16px 0px;
    }

    .hudco-card-shell::before {
        bottom: 0px;
        background: transparent;
    }

    .hudco-card {
        margin-bottom: 5%;
        width: 30%;
    }

    .left-logos {
        margin-left: 39%;
    }

    .segment-hero-tabs {
        gap: 1rem;
    }

    .segment-hero-title {
        font-size: 1.2rem;
    }

    .segment-hero-subtext {
        font-size: 0.7rem;
    }

    .segment-tab-icon {
        font-size: 0.8rem 12.8px;
        margin-bottom: 0rem;
    }

    .segment-tab-main {
        font-size: 0.8rem;
    }

    .segment-tab-sub {
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    .news-events-container,
    .gallery-grid,
    .section_one {
        flex-direction: column;
        align-items: center;
    }

    .featured-news,
    .event-gallery,
    .two_left,
    .two_right {
        width: 90%;
    }

    .thumbnail-slider {
        flex-direction: row;
        justify-content: center;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        max-height: unset;
        padding-bottom: 10px;
    }

    .scroll-bond a {
        font-size: 0.9rem;
    }

    .mp-media-inner img {
        height: 190px;
    }

    .mp-body {
        padding: 0.65rem 0.85rem 0.9rem;
    }

    .mp-title {
        font-size: 0.95rem;
    }

    .hudco-cmd-card {
        gap: 0.25rem;
        padding: 0.5rem;
        flex-direction: column;
        text-align: center;
    }

    .cmd-card-visual,
    .cmd-card-content {
        max-width: 100%;
        flex-basis: 100%;
    }

    .cmd-card-img {
        max-height: 300px;
        border-radius: 6px;
    }

    .card-desc {
        margin-bottom: 0.8rem;
    }

    .card-cta {
        margin-bottom: 0.5rem;
    }

    .journey-main-card {
        margin-bottom: 1.25rem;
    }

    .journey-timeline {
        max-height: 260px;
    }

    .segment-hero-subtext {
        font-size: 0.6rem;
    }

    .segment-hero {
        /* min-height: 475px;*/
        aspect-ratio: 8 / 3;
    }

    .segment-hero-title {
        font-size: 0.8rem;
        max-width: 100%;
        margin-bottom: 1.1rem;
    }

    .segment-tab {
        min-width: 160px;
    }

    .segment-tab-icon {
        font-size: 0.7rem;
    }

    .segment-tab-main {
        font-size: 0.6rem;
    }

    .segment-tab-sub {
        font-size: 0.6rem;
    }

    .segment-hero-tabs {
        gap: 0.75rem;
    }

    .section_one {
        /* height: 240vw;*/
        height: auto;
    }

        .section_one p {
            font-size: 0.8rem;
        }

        .section_one .two_right {
            margin-top: 5%;
        }

    .hudco-stats-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hudco-stat-item {
        padding: 0.25rem 0;
    }

        .hudco-stat-item::after {
            display: none;
        }

    .hudco-stat-label {
        white-space: normal;
    }

    .compact-cards .facebook-widget {
        width: 46%;
        margin-left: 29%;
    }
}

@media (max-width:980px) {
    :root {
        --hudco-card-w: 420px;
    }

    .hudco-card-visual {
        flex: 0 0 220px;
    }
}

@media (max-width:720px) {
    :root {
        --hudco-card-w: 360px;
    }

    .hudco-card-visual {
        flex: 0 0 200px;
    }

    .hudco-card-shell {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

        .hudco-card-shell::before {
            left: 4%;
            right: 4%;
            height: 80px;
        }
}

/* Make buttons sit inside viewport on small screens */
@media (max-width: 640px) {
    
    .segment-title-subtext {
        max-width: 20rem;
    }

    .hudco-img-modal-prev {
        left: 8px;
    }

    .hudco-img-modal-next {
        right: 8px;
    }

    .hudco-img-modal-close {
        top: 8px;
        right: 8px;
    }
}

@media (max-width: 600px) {
    .data-table td,
    .data-table th {
        font-size: 12px;
    }
}

/* Mobile: put controls inside the visual area (space is tight), and reduce padding reserve */
@media (max-width: 576px) {
    .compact-cards {
        --visual-h: var(--visual-h-mobile);
        /* reduce reserved bottom padding for tiny screens */
        --control-size: 34px;
    }

        .compact-cards .hudco-card {
            padding: 12px 14px 20px; /* small normal padding */
            overflow: visible;
        }

        .compact-cards .hudco-card-visual,
        .compact-cards .event-frame {
            height: var(--visual-h-mobile);
            max-height: var(--visual-h-mobile);
        }

            .compact-cards .hudco-slider-viewport img.hudco-slide,
            .compact-cards .event-frame img {
                height: calc(var(--visual-h-mobile) - 12px);
            }

        /* put controls onto the lower edge of visual (inside) for mobile */
        .compact-cards .hudco-controls {
            bottom: 10px;
            padding: 6px 8px;
            transform: translateX(-50%);
        }

        .compact-cards .hudco-indicators {
            bottom: -32px;
        }

        .compact-cards .hudco-ctrl {
            width: 34px;
            height: 34px;
        }
}

/*Scalable Device Based Css Starts Here*/
/* small screens */
@media (max-width:520px) {
    .chatbot-toggle {
        right: 12px;
        bottom: 12px;
        padding: 8px;
    }

    .chatbot-container {
        left: 12px;
        right: 12px;
        bottom: 70px;
        width: auto;
        max-width: calc(100% - 24px);
    }
}


.finance-section {
    background: #f4f6f9;
    padding: 30px;
    border-radius: 12px;
}

.finance-counters {
    display: grid;
   /* grid-template-columns: 1fr 1fr;*/
    gap: 15px;
    margin-bottom: 15px;
}

    .finance-counters div {
        background: linear-gradient(135deg, #fff, #f7f7f7);
        border-radius: 12px;
        padding: 15px;
        text-align: center;
    }

    .finance-counters h4 {
        font-size: 1.5em;
        color: #666;
        margin-bottom: 6px;
    }

    .finance-counters span {
        font-size: 24px;
        font-weight: 700;
        color: #880000;
    }

        .finance-counters span .finIcn {
            font-size: 15px;
            font-weight: 300;
            padding: 3px;
            color: #222;
        }

.finance-item {
    opacity: 0;
    transition: all 0.9s cubic-bezier(.22,1,.36,1);
}

.finance-left {
    transform: translateX(-80px);
}

.finance-right {
    transform: translateX(80px);
}

.finance-item.show {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.finance-item {
    transform-origin: center;
}

.finance-panel {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}


.project-card-editorial {
    position: relative;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    cursor: pointer;
}

    .project-card-editorial::before {
        content: "";
        position: absolute;
        inset: 8px;
        border: 3px solid rgb(219 209 209 / 75%);
        pointer-events: none;
        border-radius: 12px;
    }

    /* Lift on hover */
    .project-card-editorial:hover {
        transform: translateY(-6px);
        box-shadow: 0 22px 50px rgba(0,0,0,0.18);
    }

/* Image */
.pce-image {
    height: 260px;
    overflow: hidden;
}

    .pce-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s ease;
    }

.project-card-editorial:hover img {
    transform: scale(1.06);
}

/* Overlay */
.pce-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to top, rgba(0,0,0,0.75), rgba(0,0,0,0.15), transparent );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px;
    color: #fff;
}

    /* Title */
    .pce-overlay h3 {
        font-size: 1rem;
        font-weight: 600;
        margin: 0 0 6px;
        line-height: 1.3;
    }

/* CTA */
.pce-cta {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.85;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}


/*=========================================
      EXPLORE HUDCO
==========================================*/

.hudco-feature-panels {
    background: #fafafa;
    padding: 80px 0;
    overflow: hidden;
}

.section-heading {
    text-align: center;
    margin-bottom: 45px;
}

    .section-heading h2 {
        font-size: 42px;
        font-weight: 700;
        color: #003a70;
    }

    .section-heading p {
        color: #666;
        font-size: 18px;
        margin-top: 10px;
    }

.feature-wrapper {
    display: flex;
    height: 580px;
    width: 100%;
}

.feature-panel {
    position: relative;
    flex: 1;
    overflow: hidden;
    transition: .6s ease;
    text-decoration: none;
    cursor: pointer;
}

/* Expand hovered card */

.feature-wrapper:hover .feature-panel {
    flex: .8;
}

.feature-wrapper .feature-panel:hover {
    flex: 1.8;
}

/* Image */

.feature-panel img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 1s;
}

/* Image zoom */

.feature-panel:hover img {
    transform: scale(1.12);
}

/* dark layer */

.feature-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.35);
    transition: .5s;
    z-index: 2;
}

.feature-panel:hover::before {
    background: rgba(0,0,0,.65);
}

/* subtle colour */

.feature-overlay {
    position: absolute;
    inset: 0;
    background: #0069b4;
    opacity: .18;
    z-index: 1;
}

    .feature-overlay.leadership {
        background: #730000;
    }

    .feature-overlay.csr {
        background: #2c7a3f;
    }

    .feature-overlay.cares {
        background: #c67c18;
    }

/* divider */

.feature-panel:not(:last-child) {
    border-right: 1px solid rgba(255,255,255,.18);
}

/* content */

.feature-content {
    position: absolute;
    bottom: 45px;
    left: 35px;
    right: 35px;
    z-index: 5;
    color: #fff;
}

    /* Heading */

    .feature-content h3 {
        font-size: 34px;
        font-weight: 700;
        line-height: 1.15;
        margin-bottom: 20px;
        transition: .5s;
        text-shadow: 0 4px 15px rgba(0,0,0,.35);
    }

    /* Description */

    .feature-content p {
        opacity: 0;
        transform: translateY(20px);
        transition: .5s;
        max-width: 260px;
        line-height: 1.7;
    }

/* Button */

.know-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 22px;
    padding: 12px 30px;
    border-radius: 50px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(18px);
    color: #fff;
    border: 1px solid rgba(255,255,255,.35);
    opacity: 0;
    transform: translateY(20px);
    transition: .5s;
    font-weight: 600;
}

/* Hover */

.feature-panel:hover h3 {
    transform: translateY(-18px);
}

.feature-panel:hover p,
.feature-panel:hover .know-btn {
    opacity: 1;
    transform: translateY(0);
}

/* animated bottom line */

.feature-panel::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 5px;
    background: #58a6ff;
    transition: .6s;
    z-index: 6;
}

.feature-panel:hover::after {
    width: 100%;
}

/* Mobile */

@media(max-width:991px) {

    .feature-wrapper {
        display: block;
        height: auto;
    }

    .feature-panel {
        height: 420px;
    }

    .feature-wrapper:hover .feature-panel,
    .feature-wrapper .feature-panel:hover {
        flex: 1;
    }

    .feature-content h3 {
        font-size: 28px;
    }

    .feature-content p,
    .know-btn {
        opacity: 1;
        transform: none;
    }
}