:root {
    --primary: #1e293b;
    --secondary: #10b981;
    /*--accent: #e58924;*/
    --accent: #E6B85C;
    --bg: #f0fdfa;
    --ast-global-color-0: #c19d68;
    --ast-global-color-1: #9d7c4b;
    --ast-global-color-2: #0F172A;
    --ast-global-color-3: #4A4A4A;
    --ast-global-color-4: #FFFFFF;
    --ast-global-color-5: #FAF5E5;
    --ast-global-color-6: #1e1e1e;
    --ast-global-color-7: #F0E6C5;
    --ast-global-color-8: #222222;
    --ast-global-color-9: #b08a4a;
}

html {
    scroll-behavior: smooth
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    font-weight: inherit;
    font-size: 18px;
    font-size: 1rem;
    line-height: var(--ast-body-line-height, 1.65);
}

.container-custom {
    /*max-width: 1200px;*/
    margin: auto;
    padding: 0 .80in
}

/* Topbar */
.topbar {
    background: #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1050
}

    .topbar button {
        margin-left: 6px;
        font-size: 8px;
        font-weight: 600;
    }

/* Header */
.header {
    background: #fff;
    padding: 10px 0;
    border-bottom: 1px solid #ddd
}

.logo {
    height: 130px
}

.color-primary {
    color: var(--accent);
}

.dept-name {
    max-width: 150vh;
    margin-left: 10px;
}

.site-title {
    color: #e58924;
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 5px;
}

.site-description {
    max-width: 500px;
    font-size: 18px;
    font-size: 1.1rem;
    display: block;
    color: var(--bs-body-color);
    line-height: 1.5;
}

.cm-img-container {
    max-width: 110px;
}

    .cm-img-container .name {
        font-size: 10px;
        font-weight: bold;
    }

    .cm-img-container .designation {
        font-size: 10px;
    }

.cm-img {
    height: 100px;
    border-radius: 12px;
    object-fit: cover
}

/* Navbar */
.navbar {
    background-color: var(--ast-global-color-6);
    position: sticky;
    top: 29px;
    z-index: 1040;
    border-top: 1px solid var(--primary)
}

.nav-link {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--ast-global-color-4);
}

    .nav-link:hover {
        background: var(--accent);
        color: #fff !important;
        border-radius: 6px
    }

.dropdown-menu {
    background-color: var(--ast-global-color-6);
    border-top-width: 2px;
    border-bottom-width: 0px;
    border-right-width: 0px;
    border-left-width: 0px;
    border-color: var(--ast-global-color-0);
    border-style: solid;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
}

    .dropdown-menu a:hover {
        background: var(--accent);
        color: #fff
    }

.dropdown-item {
    border-color: #eaeaea;
    border-style: solid;
    border-bottom-width: 1px;
    color: var(--ast-global-color-4);
}

/* Live */
.live-wrap {
    background: var(--ast-global-color-5);
    /*    color: #fff;*/
    overflow: hidden;
    padding: 4px 0; /* increases height */
    font-size: 14px; /* better readability */
}



.live-text {
    white-space: nowrap;
    display: inline-block;
    padding-left: 100%;
    animation: scroll 24s linear infinite;
    font-weight: 600;
}

    /* Pause on hover */
    .live-text:hover {
        animation-play-state: paused;
    }

    /* Pause while active/selecting */
    .live-text:active {
        animation-play-state: paused;
        cursor: text;
    }

@keyframes scroll {
    100% {
        transform: translateX(-100%)
    }
}

/* Carousel */
/*.carousel-item img{height:450px;object-fit:cover}*/
.carousel-item {
    height: 650px;
    position: relative;
    overflow: hidden;
}

    .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: fill;
        object-position: center;
    }

.carousel-caption {
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

    .carousel-caption h1 {
        color: var(--accent);
        /*color: #E6B85C;*/
        font-weight: 700;
        font-size: 80px;
    }

    .carousel-caption h3 {
        font-weight: 600;
        font-size: 40px;
    }

    .carousel-caption p {
        font-size: 40px;
    }

/* Sections */
.section {
    padding: 50px 0
}


.heading {
    color: #e58924;
    font-weight: 600;
    font-size: 40px;
}

.box {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    transition: .3s
}

    .box > h4 {
        color: #c19d68;
        font-weight: 600;
        font-size: 50px;
        line-height: 4rem;
    }

    .box > p {
        font-family: "Roboto", Sans-serif;
        font-size: 25px;
        font-weight: 400;
        color: var(--bs-body-color);
    }

    .box:hover {
        transform: translateY(-8px)
    }


/* Fixed BG */
.fixed-bg {
    background: url('/images/Karauli.jpeg') center / cover no-repeat fixed;
    color: #fff;
    text-align: center;
    padding: 120px 0;
    position: relative;
    margin-top: 50px;
}

    .fixed-bg h3 {
        font-size: 2.5rem;
        font-weight: 400;
    }

    .fixed-bg p {
        font-size: 1.5rem;
        font-weight: 200;
    }

    .fixed-bg .middletext {
        color: var(--accent);
        font-size: 2.5rem;
        font-weight: 700;
    }

    .fixed-bg::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.5)
    }

    .fixed-bg * {
        position: relative
    }
/* Testimonial */
.test-card {
    position: relative;
    padding-top: 60px;
    text-align: center
}

    .test-card img {
        width: 110px;
        height: 110px;
        border-radius: 50%;
        position: absolute;
        top: -55px;
        left: 50%;
        transform: translateX(-50%);
        border: 6px solid #fff;
        object-fit: cover;
        box-shadow: 0 0 0 1px #e58924;
    }

.testimonial-section {
    background: url('/images/slide1.jpg') center / cover no-repeat fixed;
}

.testimonial-title {
    margin-bottom: 80px;
    color: var(--ast-global-color-4);
    font-weight: bold;
    font-size: 50px;
    font-variant: small-caps;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.test-card .btn {
    border-radius: 20px;
    padding: 5px 15px;
    transition: 0.3s;
}

    .test-card .btn:hover {
        background: var(--primary);
        color: #fff;
    }
/* Footer */
.footer {
    background: #1e1e1e;
    color: #ccc;
    padding: 0px 0 0px; /* more space for overlap */
    overflow: visible;
}

    .footer a {
        color: #9ca3af;
        text-decoration: none;
        font-size: 16px;
    }

        .footer a:hover {
            color: #fff;
        }


    .footer h5 {
        border-bottom: 2px solid rgba(255,255,255,0.2);
        display: inline-block;
        padding-bottom: 5px;
        margin-bottom: 12px;
    }

.copy {
    background: #161616;
    color: var(--ast-global-color-0);
    text-align: center;
    padding: 20px;
    min-height: 30px;
    font-size: 18px;
}
/* Equal column structure */
.footer .col-md-3 {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.mb-1 {
    margin-bottom: -7.5rem !important;
}

.img-center {
    display: flex;
    justify-content: center; /* horizontal center */
    align-items: center;
    margin: -10px 0px 40px 0px;
}
/* Common box style */
.footer-box {
    background: rgba(255,255,255,0.05);
    padding: 5px 10px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: 0.3s;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.1);
}
    /* Hover */
    .footer-box:hover {
        transform: translateY(-5px);
        background: rgba(255,255,255,0.08);
    }
    /* ONLY first box overlap */
    .footer-box.overlap {
        position: relative;
        top: -85px;
        z-index: 2;
        box-shadow: 0 20px 40px rgba(0,0,0,0.4);
        background: #1e1e1e;
    }
/* Align other columns properly */
.footer .col-md-3:not(:first-child) {
    padding-top: 20px;
}

.footer-title {
    margin-bottom: 10px; /* reduce heading gap */
    color: #fff;
    font-size: 1.3888888888889rem;
    line-height: 1.5;
}

.footer-link {
    display: block;
    margin-bottom: 6px; /* controlled spacing */
    color: #9ca3af;
    text-decoration: none;
}

    .footer-link:hover {
        color: #fff;
    }
/* Remove default paragraph spacing */
.footer p {
    color: #9ca3af;
    margin-bottom: 2px;
    text-align: left;
    font-size: 16px;
    overflow-wrap: anywhere;
}

    .footer p .innerheader {
        color: #fff;
        font-size: 1.333333333rem;
    }


@media(max-width:768px) {
    .header {
        text-align: center
    }

    .container-custom {
        padding: 0 20px
    }
}


.single-item-wrapper h3.author-name {
    width: 100%;
    margin: 0px !important;
    font-size: 20px !important;
    padding: 0px;
    line-height: 1.25;
    font-weight: 400;
    color: var(--accent);
}

.single-item-wrapper h4.author-bio {
    margin: 0px !important;
    font-size: 14px !important;
}

.single-item-wrapper .item-content-wrapper {
    color: #333;
    order: -1;
    padding: 10px;
    border-radius: 15px;
}

.item-content-wrapper {
    padding: 20px;
    background: #f8f8f8;
    position: relative;
}

.text-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 140px; /* FIXED TOTAL HEIGHT (text + button) */
}

.text {
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.justify-text {
    text-align: justify;
}

/* Push button to bottom */
.read-more {
    align-self: center;
    margin-top: auto;
    font-size: 11px;
}

.read-more {
    display: none;
}
/* Popup */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.popup-content {
    position: relative;
    background: #fff;
    padding: 20px;
    width: 400px;
    margin: 10% auto;
    border-radius: 10px;
    overflow-wrap: break-word;
}

#popup-text {
    margin-top: 15px;
}

.popup-close {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    color: #444;
    font-size: 20px;
    cursor: pointer;
    transition: 0.2s ease;
}

    .popup-close:hover {
        background: rgba(0, 0, 0, 0.15);
        color: #000;
    }

.email-line {
    display: grid;
    grid-template-columns: 16px 1fr;
    column-gap: 4px;
    align-items: baseline;
    line-height: 1.5;
}

    .email-line span {
        word-break: break-all;
    }


.btn-warning {
    background: var(--accent);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#about-us {
    background: #F6F6F6;
    overflow: hidden;
    padding: 30px 0 75px 0 !important;
}

.nav-tabs .nav-item .nav-link {
    color: var(--accent)
}

    .nav-tabs .nav-item .nav-link.active {
        color: var(--primary)
    }

#backTotop {
    display: inline-block;
    background-color: var(--ast-global-color-0);
    width: 40px;
    height: 40px;
    text-align: center;
    border-radius: 4px;
    position: fixed;
    bottom: 30px;
    right: 1in;
    transition: background-color .3s,opacity .5s,visibility .5s;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    line-height: 40px;
    color: var(--primary);
    border: 1px solid #fff;
    cursor: pointer;
    font-size: 22px;
}

    #backTotop.show {
        opacity: 1;
        visibility: visible;
    }

@media (min-width: 500px) {
    #backTotop {
        margin: 30px;
    }
}

/* LEFT MAP CARD */
.map-card {
    flex: 1 1 60%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    overflow: hidden;
}

    .map-card iframe {
        width: 100%;
        height: 375px;
        border: 15px solid white;
        border-radius: 12px;
    }

/* RIGHT PANEL */
.info-panel {
    flex: 1 1 35%;
    background: var(--ast-global-color-5);
    border-radius: 16px;
    padding: 34px 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

    .info-panel h2 {
        margin-top: 0;
        color: #b08a4a;
        font-weight: bold;
    }

    .info-panel h3 {
        margin-bottom: 10px;
    }

.divider {
    border-top: 1px dashed #777;
    margin: 15px 0;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.icon {
    width: 40px;
    height: 40px;
    background: #c19d68;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.info-text {
    font-size: 15px;
    line-height: 1.4;
}

    .info-text strong {
        display: block;
        margin-bottom: 4px;
    }

.btn-info {
    background-color: var(--accent);
    border: var(--accent);
}

.table-striped thead th {
    background-color: #FAF5E5;
}


.hero {
    position: relative;
    height: 300px;
    background: #f9f6f6 url(/images/Karauli.jpeg) no-repeat center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 !important;
}

    .hero h1 {
        color: white;
        font-size: 60px;
        /*background: rgba(0, 0, 0, 0.5);*/
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        padding: 10px 20px;
        border-radius: 5px;
    }


.footerlogo {
    background-color: #c19d68;
    background-image: none;
    min-height: 150px;
    padding: 20px 15px 15px 0;
}

    .footerlogo img {
        object-fit: contain;
    }

.logo-scroll::-webkit-scrollbar {
    display: inline;
}

.logo-scroll {
    -ms-overflow-style: inherit;
    scrollbar-width: thin;
}

.logo-scroll {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    scroll-behavior: smooth;
    margin-left: calc((100% - 43%) / 2);
    padding-bottom: 8px;
    box-sizing: content-box;
}

.logo-track {
    display: flex;
    gap: 10px;
    min-width: max-content;
}

.logo-box {
    width: 180px; /* fixed width */
    height: 110px; /* fixed height */
    flex: 0 0 auto; /* prevent shrinking */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 6px;
    padding: 10px;
}

    .logo-box img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }


.about {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 70px 70px;
    gap: 60px;
}

.image-wrapper {
    position: relative;
    width: 40%;
}

/* COMMON */
.bg-shape {
    position: absolute;
    border-radius: 20px;
    z-index: 1;
}

    /* TOP LEFT GOLD SHAPE */
    .bg-shape.top-left {
        width: 75%;
        height: 75%;
        background: #c7a96b;
        top: -25px;
        left: -25px;
    }

    /* BOTTOM RIGHT DARK SHAPE */
    .bg-shape.bottom-right {
        width: 75%;
        height: 75%;
        background: #2f2f2f;
        bottom: -25px;
        right: -25px;
        border-radius: 20px;
    }

/* MAIN IMAGE */
.main-img {
    position: relative;
    z-index: 2;
    border-style: none;
    border-radius: 10px 150px 10px 150px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}

    .main-img img {
        width: 100%;
        height: 480px;
        object-fit: fill;
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

/* TEXT */
.about-text {
    width: 48%;
}

    .about-text h2 {
        font-size: 50px;
        margin-bottom: 15px;
        font-weight: 600;
        color: #b89255;
    }

    .about-text p {
        font-size: 20px;
        color: #555;
        line-height: 1.8;
        margin-bottom: 12px;
    }

/* ================= FEATURES ================= */
.features {
    background: #b89255;
    padding: 40px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    padding: 0px 20px;
}

.feature {
    border: 2px solid rgba(255,255,255,0.5);
    padding: 25px 10px;
    text-align: center;
    color: #fff;
    border-radius: 10px;
    font-size: 1.5rem;
    font-weight: 600;
    transition: 0.3s;
}

    .feature i {
        font-size: 60px;
        line-height: 1;
    }

    .feature:hover {
        background: rgba(255,255,255,0.12);
        transform: translateY(-4px);
    }

/* ================= VISION & MISSION ================= */
.section {
    padding: 70px 0;
}

.aboutsectionrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 70px;
    margin: 0px 150px;
}

    .aboutsectionrow.reverse {
        flex-direction: row-reverse;
        padding-top: 30px;
    }

/* IMAGE STYLE */
.img-box {
    width: 47%;
}

    .img-box img {
        width: 80%;
        border-radius: 50px 12px 50px 50px;
        object-fit: cover;
    }

/* TEXT */
.text-box {
    width: 48%;
}

    .text-box h2 {
        font-size: 50px;
        color: #b89255;
        margin-bottom: 10px;
    }

    .text-box p, .text-box li {
        font-size: 20px;
        color: #555;
        line-height: 1.7;
    }

ul {
    padding-left: 18px;
}

/* ================= RESPONSIVE ================= */
@media(max-width: 900px) {
    .about, .row {
        flex-direction: column;
    }

    .image-wrapper, .about-text,
    .img-box, .text-box {
        width: 100%;
    }

    .feature-grid {
        grid-template-columns: repeat(2,1fr);
    }
}
