:root {
    --primary: #1e3a8a;
    --navy: #1a2d5a;
    --navy-dark: #0f1e3d;
    --green: #4caf50;
    --green-dark: #388e3c;
    --gold: #f0b429;
    --light-bg: #f7f8fc;
    --text-muted: #6b7280;
    --border: #e5e7eb;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Urbanist', sans-serif;
}

.text-primary {
    color: var(--primary) !important;
}

.text-justify {
    text-align: justify;
}

/* ===== TOP BAR ===== */
.topbar {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    padding: 6px 0;

    i {
        color: #ffd5bf;
    }
}

.topbar a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.topbar a:hover {
    color: #fff;
}

.topbar a.social-icon {
    font-size: 16px;
    margin-left: 5px;
    opacity: 0.8;
    transition: opacity 0.2s, transform 0.2s;
}

.topbar a.social-icon:hover {
    opacity: 1;
    color: #fff;
    transform: translateY(-2px);
}



/* ===== NAVBAR ===== */
.header-sticky-wrapper {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    /* Sticky moved to wrapper */
    position: relative;
    z-index: 1001;
    padding-block: 14px;
}

.main-nav .navbar-brand img {
    height: 60px;
}

.main-nav .navbar-brand span {
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--navy);
    margin-left: 8px;
}

/* Reduced spacing for nav links */
.main-nav .nav-link {
    color: var(--navy) !important;
    font-weight: 500;
    font-size: 16px;
    padding: 4px 8px !important;
    transition: color .2s;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: var(--green) !important;
}

/* Contact Admission Widget in Navbar */
.nav-contact-widget {
    display: flex;
    align-items: start;
    gap: 10px;
    /* margin-left: 15px; */
    text-decoration: none;
}

.nav-contact-icon {
    font-size: 34px;
    color: rgb(220, 53, 69);
    line-height: 1;
    /* Blue phone icon */
}

.nav-contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.nav-contact-label {
    font-size: 13px;
    color: lightslategray;
    /* Pink color */
    font-weight: 400;
}

.nav-contact-number {
    font-size: 16px;
    color: #0d5e8b;
    /* Blue color */
    font-weight: 700;
    /* white-space: nowrap; */
}

/* ===== HEADER MARQUEE ===== */
.header-marquee {
    background: linear-gradient(135deg, rgb(21, 45, 219) 0%, rgb(220, 53, 69) 100%);
    /* Deep blue matching footer/design */
    color: #fff;
    font-size: 14px;
    padding: 0;
    position: absolute;
    right: 0;
    width: 100%;
    z-index: 1000;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
}

.header-marquee .marquee-wrapper {
    display: flex;
    align-items: center;
    height: 40px;
}

.marquee-label {
    /* background: rgba(0, 0, 0, 0.3); */
    /* Lighter purple/blue pill */
    padding: 4px 0px;
    border-radius: 0 0 20px 0;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    /* margin-right: 20px; */
    font-size: 14px;
    flex-shrink: 0;
    z-index: 2;

    /* Sit above scrolling text if overlap */
    i {
        color: #ffd5bf;
        font-size: 18px;
    }
}

.marquee-content-wrap {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.marquee-content-scroll {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 25s linear infinite;
}

.marquee-content-scroll a {
    margin-right: 40px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
}

.marquee-content-scroll a i {
    margin-right: 8px;
    opacity: 1;
    color: #ffd5bf;
}

@keyframes marquee {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-100%, 0);
    }
}

.marquee-content-wrap:hover .marquee-content-scroll {
    animation-play-state: paused;
}

/* ===== HERO SLIDER ===== */
.hero-slider-section {
    position: relative;
    height: 85vh;
    /* Taller hero as per modern designs */
    min-height: 600px;
    background: #000;
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    overflow: hidden;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    /* Start slightly scaled up for the zoom effect */
    transform: scale(1);
    transition: transform 8s ease;
    /* Assume assets exist */
}

/* Animation on active slide */
.swiper-slide-active .hero-slide-bg {
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 30, 61, 0.9) 0%, rgba(15, 30, 61, 0.6) 50%, rgba(15, 30, 61, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding-left: 10px;
}

.hero-subtitle {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #d1d5db;
    /* Light gray */
    margin-bottom: 12px;
    display: block;
}

.hero-title {
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 400;
    /* As per some modern thin font aesthetic or standard playfair */
    font-family: 'Urbanist', sans-serif;
    /* Use Playfair for headings */
    line-height: 1.1;
    margin-bottom: 24px;
    color: #fff;
}

.hero-motto {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.motto-line {
    width: 4px;
    height: 36px;
    background: #8e44ad;
    /* Purple accent to match the button roughly */
    margin-right: 15px;
    display: block;
}

.motto-text {
    font-size: 22px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    font-family: 'Inter', sans-serif;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary-custom {
    background: linear-gradient(135deg, rgb(21, 45, 219) 0%, rgb(220, 53, 69) 100%);
    color: #fff;
    border: none;
    padding: 14px 34px;
    font-weight: normal;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(72, 52, 212, 0.3);
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, rgb(21, 45, 219) 0%, rgb(220, 53, 69) 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(72, 52, 212, 0.4);
}

.btn-light-custom {
    background: #fff;
    color: #1a2d5a;
    border: 1px solid #1a2d5a;
    padding: 14px 34px;
    font-weight: normal;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.btn-light-custom:hover {
    background: #f8f9fa;
    color: #0f1e3d;
    border: 1px solid #1a2d5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.btn-red-custom {
    background: #fff;
    color: rgb(220, 53, 69);
    border: 1px solid rgb(220, 53, 69);
    padding: 14px 34px;
    font-weight: normal;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.btn-red-custom:hover {
    background: rgb(220, 53, 69);
    color: rgb(255, 255, 255);
    border: 1px solid rgb(220, 53, 69);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 70, 0.2);
}

/* Swiper Navigation Customization */
.swiper-button-next,
.swiper-button-prev {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    color: #fff;
}

.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.4;
    width: 10px;
    height: 10px;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #fff;
}

/* ===== COUNTER STATS SECTION ===== */
.counter-stats-section {
    padding: 60px 0;
    background: var(--navy-dark);
}

.counter-card {
    background: transparent;
    border-radius: 0;
    padding: 20px;
    border: none;
    box-shadow: none;
    text-align: center;
    height: 100%;
    position: relative;
}

/* Vertical separator line */
.counter-stats-section .col-lg-3:not(:last-child) .counter-card::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 991px) {
    .counter-stats-section .col-lg-3:not(:last-child) .counter-card::after {
        display: none;
    }
}

.counter-card h3 {
    font-family: 'Urbanist', sans-serif;
    font-size: 48px;
    font-weight: 400;
    color: #fff;
    /* High contrast white */
    margin-bottom: 16px;
    line-height: 1;
}

.counter-card p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    text-transform: capitalize;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
    /* Light grey for contrast */
    margin: 0;
}

/* ===== PATRON SAINT SECTION ===== */
.patron-section .patron-img-col {
    position: relative;
    height: auto;
}

/* On large screens, make image sticky */
@media (min-width: 992px) {
    .patron-section .patron-img-col .sticky-img-wrap {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        height: 100vh;
        overflow: hidden;
    }
}

.patron-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensure image covers the full height */
}

.patron-img-col,
.patron-content-col {
    /* Ensure no gutters */
    padding: 0;
}

.patron-content-col {
    background: linear-gradient(to bottom, rgba(126, 94, 176, 0.75) 0%, rgba(46, 49, 147, 0.9) 100%), url('../images/banner-01.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Purple from design */
    color: #fff;
    display: flex;
    align-items: center;
    /* Center content vertically if content is short, or just flow */
    min-height: 100vh;
    /* Match viewport height */
}

.patron-content-inner {
    padding: 80px;
    /* max-width: 700px; */
}

.patron-subtitle {
    font-size: clamp(20px, 2vw, 34px);
    font-family: 'Urbanist', sans-serif;
    margin-bottom: 0;
}

.patron-title {
    font-family: 'Urbanist', sans-serif;
    font-size: clamp(32px, 3vw, 56px);
    font-weight: bold;
    margin-bottom: 24px;
    line-height: 1.1;
}

.patron-quote {
    font-size: 20px;
    font-style: italic;
    opacity: 0.9;
    border-left: 3px solid rgba(255, 255, 255, 0.4);
    padding-left: 20px;
    margin-bottom: 30px;
    font-family: 'Playfair Display', serif;
    /* Or just standard serif for quote appeal */
}

.patron-text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.85);
}

.patron-content-inner .btn-light-custom {
    background: #fff;
    color: #5b4abb;
    margin-top: 20px;
}

.patron-content-inner .btn-light-custom:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

@media (max-width: 991px) {
    .patron-content-inner {
        padding: 40px 20px;
    }

    .sticky-img-wrap {
        height: 400px;
        /* Fixed height on mobile */
    }
}



/* ===== ABOUT ===== */
.about-section {
    padding: 80px 0;
}

.sticky-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 240px;
    /* Adjusted to fit below the sticky navbar and marquee */
    z-index: 10;
}

@media (max-width: 991px) {
    .sticky-sidebar {
        position: static;
        margin-bottom: 24px;
    }
}

.section-label {
    color: var(--green);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.section-label::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: var(--green);
}

.section-title {
    font-size: clamp(26px, 3vw, 40px);
    color: var(--navy);
    font-weight: normal;
}

.about-section p {
    color: #555;
    line-height: 1.8;
    font-size: 16px;
}

.read-more {
    color: var(--green);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}

.read-more:hover {
    color: var(--green-dark);
}



/* ===== DEPARTMENTS SECTION ===== */
.departments-section {
    padding: 80px 0;
    /* Dotted grid background similar to design */
    background-color: #f8f9fa;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 24px 24px;
}

.department-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    text-align: left;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.department-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.dept-img-wrap {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.dept-img-wrap.achievements-highlights-img {
    height: 400px;
}

@media (max-width: 1200px) {
    .dept-img-wrap.achievements-highlights-img {
        height: 290px;
    }
}

@media (max-width: 992px) {
    .dept-img-wrap.achievements-highlights-img {
        height: 440px;
    }
}

@media (max-width: 768px) {
    .dept-img-wrap.achievements-highlights-img {
        height: 240px;
    }
}

.dept-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.department-card:hover .dept-img-wrap img {
    transform: scale(1.05);
}

.department-card h5 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--navy);
}

.department-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-view-more {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    transition: gap 0.2s ease;
}

.btn-view-more i {
    transition: transform 0.2s ease;
}

.btn-view-more:hover {
    color: var(--navy);
    gap: 4px;
}

.btn-view-more:hover i {
    transform: translateX(3px);
}

/* ===== RECENT NEWS SECTION ===== */
.news-section {
    padding: 80px 0;
    background: #fff;
}

.no-image-placeholder {
    background: linear-gradient(135deg, rgb(21, 45, 219) 0%, rgb(220, 53, 69) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-no-image-placeholder {
    height: 260px;
    width: 100%;
}

.custom-logo-link .custom-logo {
    opacity: 0.3;
}

.news-section h2.main-title {
    font-size: 42px;
    font-family: 'Playfair Display', serif;
    /* Using Playfair for that specific elegant heading look if available, otherwise Urbanist */
    font-family: 'Urbanist', sans-serif;
    color: var(--navy);
    margin-bottom: 40px;
}

/* Featured Card */
.featured-news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.featured-news-card:hover {
    transform: translateY(-5px);
}

.featured-img-wrap {
    height: 350px;
    overflow: hidden;
    position: relative;

    &::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /* background: linear-gradient(135deg, rgba(21, 44, 219, 0.2) 0%, rgba(220, 53, 70, 0.8) 100%); */
    }
}

.featured-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-news-card:hover .featured-img-wrap img {
    transform: scale(1.05);
}

.featured-content {
    background: #e8f1ff;
    /* Teal color from design */
    padding: 30px;
    flex-grow: 1;
}

.featured-meta {
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 12px;
    font-weight: 500;
}

.featured-title {
    font-size: 26px;
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 24px;
    line-height: 1.3;
}

.btn-read-more-arrow {
    font-size: 15px;
    font-weight: 600;
    color: hotpink;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease-in-out;
}

.btn-read-more-arrow:hover {
    border-bottom-color: #1a202c;
    gap: 5px;
}

/* News List */
.news-list-wrap {
    background: #fff;
    padding-left: 20px;
}

.news-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px dotted #e2e8f0;
    padding-bottom: 15px;
}

.news-list-header h5 {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
}

.btn-view-all {
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.btn-view-all i {
    background: #2d3748;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    font-size: 12px;
}

.news-list-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}

.news-list-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.news-thumb {
    width: 150px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;

    &::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /* background: linear-gradient(135deg, rgba(21, 44, 219, 0.2) 0%, rgba(220, 53, 70, 0.8) 100%) */
    }
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-list-info {
    flex-grow: 1;
}

.news-date {
    font-size: 13px;
    color: #718096;
    margin-bottom: 8px;
    display: block;
}

.news-list-title {
    font-size: 18px;
    font-weight: 600;
    font-family: 'Urbanist', sans-serif;
    line-height: 1.4;
    margin: 0;
}

.news-list-title a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.2s;
}

.news-list-title a:hover {
    color: var(--primary);
}

@media (max-width: 991px) {
    .news-list-wrap {
        padding-left: 0;
        margin-top: 40px;
    }
}

/* The original NEWS section and its children are removed as per instruction */



/* ===== FOOTER ===== */
.footer {
    background: #1e3a8a;
    /* Deep blue similar to design */
    color: #e2e8f0;
    padding-top: 80px;
    font-size: 15px;
    position: relative;
    z-index: 10;
    border-radius: 20px 20px 0px 0px;
}

.footer-logo {
    height: 60px;
    width: auto;
    border-radius: 4px;
    background: #fff;
    padding: 2px;
}

.footer-heading {
    color: #fff;
    font-family: 'Urbanist', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--green);
}

.footer-contact-info p {
    font-size: 14px;
    line-height: 1.6;
    color: #cbd5e1;
}

.footer-contact-info i {
    font-size: 18px;
    color: #93c5fd;
    /* Light blue icon */
}

.footer-contact-info a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact-info a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 1;
}

.footer-links.two-column {
    columns: 2;
}

.footer-links li {
    margin-bottom: 12px;
    break-inside: avoid;
}

.footer-links li a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.footer-links li a:hover {
    padding-left: 8px;
    color: #fff;
}

.footer-links li a::before {
    content: '\203A';
    /* Angle bracket */
    position: absolute;
    left: 0;
    opacity: 0;
    transition: all 0.2s;
}

.footer-links li a:hover::before {
    opacity: 1;
    left: -12px;
}


/* Footer Bottom */
.footer-bottom {
    background: #172554;
    /* Darker shade */
    padding: 24px 0;
    margin-top: 60px;
    font-size: 16px;
    width: 100%;
    border-radius: 20px 20px 0px 0px;
}

.footer-legal-links a {
    color: #94a3b8;
    text-decoration: none;
    margin-right: 20px;
    transition: color 0.2s;
    display: inline-block;
}

.footer-legal-links a:hover {
    color: #fff;
}

.copyright-text {
    line-height: 1.6;
    color: #94a3b8;
}

.designer-text {
    color: #64748b;
    font-size: 12px;
}

/* ===== ANIMATIONS ===== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: none;
}

/* ===== PAGE TITLE COMPONENT ===== */
.page-title-section {
    position: relative;
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    min-height: 340px;
    display: flex;
    align-items: center;
}

.page-title-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgb(220 53 69 / 60%) 0%, rgb(15 30 61 / 80%) 100%);
    z-index: 1;
}

.page-title-overlay.single-research-overlay {
    background: linear-gradient(to right, rgb(0 0 0 / 80%) 0%, rgb(0 0 0 / 80%) 100%);
}

.page-title-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-title-content h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-family: 'Urbanist', sans-serif;
    font-weight: bold;
    color: #fff;
    margin-bottom: 0;
}

/* ===== Page Content Section ===== */
.content-section {
    padding: 80px 0;

    .wp-block-heading,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        font-weight: bold;
        color: darkmagenta;
    }

    .wp-block-list,
    ul,
    ol {
        padding-left: 0px;
        margin: 0 0 1rem 0em;
    }

    .wp-block-list,
    ul,
    ol {
        list-style: none;
        counter-reset: item;
    }

    .wp-block-list:last-child,
    ul:last-child,
    ol:last-child {
        margin-bottom: 0;
    }

    .wp-block-list li,
    ul li,
    ol li {
        counter-increment: item;
        position: relative;
        padding-left: 30px;
        margin-bottom: 10px;
    }

    .wp-block-list li:last-child,
    ul li:last-child,
    ol li:last-child {
        margin-bottom: 0;
    }

    .wp-block-list ol li::before,
    ol li::before {
        content: counter(item);

        position: absolute;
        left: 0;
        top: 2px;

        width: 20px;
        height: 20px;

        background: var(--primary);
        color: #fff;

        display: flex;
        align-items: center;
        justify-content: center;

        border-radius: 50%;
        font-size: 12px;
    }

    .wp-block-list ul li::before,
    ul li::before {
        content: "\ea6e";
        position: absolute;
        left: 0;
        top: 4px;
        width: 20px;
        height: 20px;
        background: var(--primary);
        border-radius: 50%;
        font-family: remixicon !important;
        font-style: normal;
        -webkit-font-smoothing: antialiased;
        display: grid;
        place-content: center;
        color: white;
    }

    .wp-block-buttons {
        display: flex;
        flex-wrap: wrap !important;
        gap: 16px;
    }

    .wp-block-button {
        margin: 0 !important;
    }

    .wp-block-button .wp-block-button__link,
    .wp-block-button .wp-element-button {
        background: #152ddb !important;
        background: linear-gradient(135deg, rgb(21, 45, 219) 0%, rgb(220, 53, 69) 100%) !important;
        color: #fff !important;
        border: none !important;
        padding: 14px 34px !important;
        font-weight: normal;
        border-radius: 6px !important;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        white-space: normal;
        text-align: center;
        box-shadow: 0 4px 15px rgba(72, 52, 212, 0.3) !important;
        text-decoration: none !important;
    }

    .wp-block-button .wp-block-button__link:hover,
    .wp-block-button .wp-element-button:hover {
        background: linear-gradient(135deg, rgb(220, 53, 69) 0%, rgb(220, 53, 69) 100%) !important;
        color: #fff !important;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(220, 53, 69, 0.6) !important;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .page-title-section {
        padding: 60px 0;
        min-height: 200px;
    }

    .content-section {
        padding: 40px 0;
    }

    .hero-slider-section {
        height: 500px;
        min-height: 500px;
    }

    .hero-title {
        font-size: 34px;
    }

    .feature-item {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .topbar .d-flex {
        flex-wrap: wrap;
        gap: 6px;
    }
}

.research-section {
    padding: 80px 0;
    background-color: #f8f9fa;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 24px 24px;
}

.dept-post-date {
    width: fit-content;
    color: white;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    z-index: 2;
    background: linear-gradient(135deg, rgb(21, 45, 219) 0%, rgb(220, 53, 69) 100%);
    padding: 5px 16px;
    border-radius: 50px;
}

.academic-awards-section {
    padding: 80px 0;
    background: linear-gradient(to right, rgb(220 53 69 / 80%) 0%, rgb(15 30 61 / 60%) 100%), url(../images/banner-01.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    .section-label {
        color: yellow;
        justify-content: center;

        &::before {
            background: yellow;
        }
    }

    .section-title {
        font-size: clamp(24px, 5vw, 40px);
        color: white;
    }

    .dept-img-wrap.academic-awards-img {
        height: auto;
        aspect-ratio: 4/5;
    }

    .content-wrapper {
        position: relative;
    }

    .content-wrapper .medal-img {
        position: absolute;
        top: -58px;
        left: -10px;
        width: auto;
        height: 60px;
        object-fit: contain;
        z-index: 2;
    }

    .department-card .award_title {
        color: deeppink;
        font-size: clamp(18px, 3vw, 22px);
    }

    .department-card .title {
        font-size: clamp(16px, 3vw, 18px);
    }
}

.extracurricular-awards-section {
    padding: 80px 0;

    .section-label {
        justify-content: center;
    }

    .dept-img-wrap.extracurricular-awards-img {
        height: auto;
        aspect-ratio: 4/5;
    }
}

/* News and Events START */
.news-archive {
    padding: 80px 0;
}

.news-wrapper {
    column-count: 1;
    column-gap: 20px;
}

.news-item {
    break-inside: avoid;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 10px;
}

/* Responsive */
@media (min-width: 768px) {
    .news-wrapper {
        column-count: 2;
    }
}

@media (min-width: 992px) {
    .news-wrapper {
        column-count: 3;
    }
}

@media (min-width: 1400px) {
    .news-wrapper {
        column-count: 4;
    }
}

/* News Grid Card Styles */
.news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-img-wrap {
    height: auto;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(21, 45, 219, 0.5) 0%, rgba(220, 53, 69, 0.5) 100%);

    &.page-labs-img {
        height: 250px;
    }
}

.news-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    transform: scale(1.01);
}

.news-card:hover .news-img-wrap img {
    transform: scale(1.05);
}

.news-content {
    background: #ffff;
    padding: 30px;
    flex-grow: 1;
    position: relative;
}

.news-meta {
    font-size: 14px;
    color: #4a5568;
    font-weight: 500;
    position: absolute;
    top: 0;
    transform: translateY(-50%);
    left: 20px;
    background: linear-gradient(135deg, rgb(21, 45, 219) 0%, rgb(220, 53, 69) 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 40px;
}

.news-title {
    font-size: clamp(18px, 3vw, 22px);
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 10px;
    line-height: 1.3;
}

/* News and Events END */

/* ===== TESTIMONIALS SECTION ===== */
/* .testimonies-section {
    background: #f7f8fc;
} */

/* .testimonies-subtitle {
    letter-spacing: 0.5px;
} */

.testimonial-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-video-wrap {
    border-radius: 12px;
    overflow: hidden;
    /* Maintain a specific aspect ratio, e.g. 4:5 or portrait style based on design */
    aspect-ratio: 3 / 4;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-video-wrap:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-video-wrap img,
.testimonial-video-wrap video,
.testimonial-video-wrap .placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.testimonial-video-wrap:hover img,
.testimonial-video-wrap:hover video {
    transform: scale(1.03);
}

.play-btn-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    z-index: 2;
}

.play-btn-overlay svg {
    width: 24px;
    height: 24px;
    /* margin-left: 4px; */
}

.testimonial-video-wrap:hover .play-btn-overlay {
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%) scale(1.1);
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    line-height: 1.4;
}

/* ===== CUSTOM VIDEO POPUP MODAL ===== */
.custom-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-video-modal.active {
    opacity: 1;
    visibility: visible;
}

.custom-video-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 30, 61, 0.7);
    /* bluish dark bg */
    backdrop-filter: blur(8px);
    /* blurred bg */
}

.custom-video-modal-content {
    position: relative;
    z-index: 1051;
    width: 90%;
    max-width: 900px;
    height: 80vh;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.custom-video-modal.active .custom-video-modal-content {
    transform: scale(1);
}

.custom-video-modal-content video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Handles both vertical and horizontal properly */
    display: block;
    background: #000;
}

.custom-video-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
}

.custom-video-modal-close:hover {
    background: rgba(220, 53, 69, 0.9);
}

.custom-video-modal-close svg {
    width: 24px;
    height: 24px;
}

.res-img-wrap {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1;
    border-radius: 30px 0 30px 0;
}

.res-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.incharges-section {
    padding: 0 0 80px 0;

    .incharges-wrapper {
        background-image:
            linear-gradient(to right, rgba(30, 59, 138, 0.8), rgba(220, 53, 69, 0.8)),
            url('../images/banner-01.webp');

        background-size: cover;
        background-position: center;
        color: white;
    }

    .incharges-content-wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;

        .incharge-item {
            background: rgba(0, 0, 0, 0.17);
            backdrop-filter: blur(4px);
            padding: 20px 30px;
            border-radius: 20px;

            .incharge-name {
                font-size: clamp(18px, 3vw, 22px);
                font-weight: 700;
                color: white;
                margin-bottom: 0px;
                line-height: 1.3;
            }

            .incharge-designation {
                font-size: clamp(16px, 3vw, 18px);
                font-weight: 500;
                color: yellow;
                margin-bottom: 0px;
                line-height: 1.3;
            }
        }
    }
}

.contact-section {
    padding: 80px 0;
}

.faculty-list {
    padding: 80px 0px;
    background: linear-gradient(to bottom, aliceblue, white);
}

/* Faculty Grid Styles */
.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.faculty-card {
    background: linear-gradient(to top, white 0%, aliceblue 50%);
    border: 1px solid #d1e1f8;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    text-align: center;
    padding: 2.5rem 1.5rem;
    box-shadow: 0 10px 40px rgb(0 0 0 / 8%);
}

.faculty-card:hover {
    background: linear-gradient(to top, white 0%, rgb(255, 240, 247) 50%);
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #d1e1f8;
}

.faculty-card h3 {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 0px;
    color: var(--primary);
}

.faculty-card p {
    color: rgb(220, 53, 69);
    font-weight: 500;
    margin-bottom: 0;
    font-size: 1rem;
}

.faculty-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    border: 4px solid #f8f9fa;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    display: block;
}

.faculty-img.placeholder {
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #486581;
    font-size: 3rem;
    font-weight: 700;
}

/* HOD Card Special Highlight */
.faculty-card.hod-card {
    grid-column: 1 / -1;
    /* Make it span across full width in the grid */
    max-width: 800px;
    margin: 0 auto 2rem auto;
    background: linear-gradient(to bottom right, #ffc7c7, #c5bcff);
    /* border: 2px solid #0d6efd; */
    /* Highlight border with your primary color */
    /* box-shadow: 0 15px 35px rgba(13, 110, 253, 0.15); */
    padding: 3rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    text-align: left;
    gap: 2.5rem;
}

.faculty-card.hod-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(13, 110, 253, 0.25);
}

.hod-card .faculty-img {
    width: 220px;
    height: 220px;
    margin: 0;
    border-color: #e6f0ff;
    border-width: 6px;
}

.hod-card .hod-text-content {
    flex: 1;
    min-width: 250px;
}

.hod-card .hod-text-content h3 {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    color: #0d6efd;
    margin-bottom: 0.25rem;
}

.hod-card .hod-text-content .text-primary {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.hod-card .hod-text-content p {
    font-size: 1.15rem;
    line-height: 1.6;
}

/* Responsive adjustments for HOD card */
@media (max-width: 768px) {
    .faculty-card.hod-card {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 1.5rem;
    }

    .hod-card .faculty-img {
        margin: 0 auto;
        width: 180px;
        height: 180px;
    }
}


.has-text-align-center {
    text-align: center;
}

/* ===== TABLE CONTAINER ===== */
.wp-block-table {
    /* border-radius: 12px; */
    /* overflow: hidden; */
    /* background: #ffffff; */
    /* box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05); */
}

/* ===== TABLE ===== */
.wp-block-table table {
    width: 100%;
    border-collapse: separate !important;
    font-family: system-ui, -apple-system, sans-serif;
}

/* ===== HEADER ===== */
.wp-block-table thead th {
    background: #1e3a8a;
    /* deep blue */
    color: #ffffff;
    font-weight: 600;
    padding: 16px;
    text-align: left;
    font-size: 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.wp-block-table thead th:last-child {
    border-right: none;
}

.wp-block-table thead {
    border-bottom: 1px solid #d1e1f8 !important;
}

/* ===== BODY CELLS ===== */
.wp-block-table tbody td {
    padding: 16px;
    font-size: 15px;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.wp-block-table tbody td,
.wp-block-table tbody th {
    border: 1px solid #d1e1f8 !important;
}

/* ===== ZEBRA STRIPES ===== */
.wp-block-table tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

/* ===== HOVER EFFECT ===== */
.wp-block-table tbody tr:hover {
    background-color: #eef2ff;
    transition: 0.2s ease;
}

/* ===== SL NO COLUMN ===== */
.wp-block-table td:first-child {
    width: 60px;
    font-weight: 600;
    color: #6b7280;
}

/* ===== NAME COLUMN ===== */
.wp-block-table tbody td {
    font-weight: 500;
    color: #111827;
}

/* ===== MULTIPLE NAMES STYLE ===== */
.wp-block-table td:nth-child(3) {
    line-height: 1.6;
}

/* ===== ROUNDED HEADER CORNERS ===== */
.wp-block-table thead th:first-child {
    border-top-left-radius: 12px;
}

.wp-block-table thead th:last-child {
    border-top-right-radius: 12px;
}

.wp-block-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px !important;
}

.wp-block-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px !important;
}

.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
    background-color: #e2f1ff !important;
}

.wp-block-table tbody tr:nth-child(even) {
    background-color: #f9fcff !important;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {

    .wp-block-table table,
    .wp-block-table thead,
    .wp-block-table tbody,
    .wp-block-table th,
    .wp-block-table td,
    .wp-block-table tr {
        /* display: block; */
        width: 100%;
    }

    /* .wp-block-table thead {
        display: none;
    } */

    .wp-block-table tr {
        margin-bottom: 16px;
        background: #ffffff;
        border-radius: 10px;
        padding: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .wp-block-table td {
        padding: 8px 12px;
        border: none;
    }

    .wp-block-table td::before {
        content: attr(data-label);
        font-weight: 600;
        display: block;
        color: #6b7280;
        margin-bottom: 4px;
    }
}