@import url('https://fonts.googleapis.com/css2?family=Bree+Serif&family=Caveat:wght@400;700&family=Lobster&family=Monoton&family=Open+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Playfair+Display+SC:ital,wght@0,400;0,700;1,700&family=Playfair+Display:ital,wght@0,400;0,700;1,700&family=Roboto:ital,wght@0,400;0,700;1,400;1,700&family=Source+Sans+Pro:ital,wght@0,400;0,700;1,700&family=Work+Sans:ital,wght@0,400;0,700;1,700&display=swap');

/* ====== THEME ROOTS ====== */
:root[data-theme="dark"] {
    --bg-color: #02021b;
    --text-color: #fff;
    --accent: #e60073;
    --accent2: #7c3aed;
    --navbar-bg: rgba(10, 10, 30, 0.7);
    --card-bg: #181836;
    --card-hover: #23234a;
    --tab-bg: #23234a;
    --tab-active: #7c3aed;
    --tab-inactive: #44445a;
    --marquee-bg: #181836;
    --marquee-text: #fff;
    --btn-bg: #7c3aed;
    --btn-hover: #e60073;
    --shadow: 0 4px 32px 0 rgba(0, 0, 0, 0.25);
    --tab-central: #7c3aed;
    --tab-statewise: #e60073;
    --tab-private: #06b6d4;
}

:root[data-theme="light"] {
    --bg-color: #fff;
    --text-color: #111;
    --accent: #e60073;
    --accent2: #7c3aed;
    --navbar-bg: rgba(255, 255, 255, 0.1);
    --card-bg: #f8f9fa;
    --card-hover: #e6e6f7;
    --tab-bg: #f1f1fa;
    --tab-active: #7c3aed;
    --tab-inactive: #e0e0e0;
    --marquee-bg: #f8f9fa;
    --marquee-text: #7c3aed;
    --btn-bg: #7c3aed;
    --btn-hover: #e60073;
    --shadow: 0 4px 32px 0 rgba(0, 0, 0, 0.08);
    --tab-central: #7c3aed;
    --tab-statewise: #e60073;
    --tab-private: #06b6d4;
}

/* ====== GENERAL ====== */
html,
body {
    background: var(--bg-color);
    color: var(--text-color);
    transition: background 0.4s, color 0.4s;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: 'Quicksand', 'Arial', sans-serif;
    overflow-x: hidden;
}

a,
a:visited {
    color: var(--accent2);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent);
}

/* ====== OPENING PAGE ====== */
#opening-page {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 1s;
}

#opening-page.hide {
    opacity: 0;
    pointer-events: none;
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: var(--accent2);
    opacity: 0.15;
    animation: moveCircle 10s infinite linear;
}

.circle:nth-child(1) {
    width: 60px;
    height: 60px;
    top: 10%;
    left: 20%;
    animation-duration: 7s;
}

.circle:nth-child(2) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 70%;
    animation-duration: 9s;
}

.circle:nth-child(3) {
    width: 50px;
    height: 50px;
    top: 70%;
    left: 50%;
    animation-duration: 8s;
}

.circle:nth-child(4) {
    width: 40px;
    height: 40px;
    top: 30%;
    left: 80%;
    animation-duration: 6s;
}

.circle:nth-child(5) {
    width: 35px;
    height: 35px;
    top: 80%;
    left: 80%;
    animation-duration: 10s;
}

.circle:nth-child(6) {
    width: 30px;
    height: 30px;
    top: 5%;
    left: 15%;
    animation-duration: 7s;
}

.circle:nth-child(7) {
    width: 28px;
    height: 28px;
    top: 45%;
    left: 85%;
    animation-duration: 9s;
}

.circle:nth-child(8) {
    width: 32px;
    height: 32px;
    top: 75%;
    left: 40%;
    animation-duration: 8s;
}

.circle:nth-child(9) {
    width: 60px;
    height: 60px;
    top: 60%;
    left: 60%;
    animation-duration: 10s;
}

.circle:nth-child(10) {
    width: 25px;
    height: 25px;
    top: 85%;
    left: 70%;
    animation-duration: 6s;
}

@keyframes moveCircle {
    0% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(50px, -50px) scale(1.2);
    }

    50% {
        transform: translate(-50px, 50px) scale(0.8);
    }

    75% {
        transform: translate(30px, -30px) scale(1.1);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

.logo-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
}

.logo-container img {
    max-width: 205px;
    opacity: 0;
    transform: scale(0) rotate(-10deg);
    animation: reveal-image 2s ease-out 0.5s forwards;
    text-shadow: 2px 2px 2px rgba(143, 137, 137, 0.749);
}

.logo-container h3 {
    font-size: 60px;
    letter-spacing: 3px;
    color: var(--accent2);
    text-shadow: 2px 2px 2px var(--text-color), 2px 2px 2px var(--accent2);
    margin: 10px 0;
    opacity: 0;
    width: 100%;
    text-align: center;
    animation: reveal-heading 2s ease-out 2.5s forwards;
}

.logo-container p {
    font-size: 35px;
    color: var(--accent);
    font-family: 'Quicksand', sans-serif;
    line-height: 1.5;
    margin: 10px 0 20px;
    opacity: 0;
    width: 100%;
    text-align: center;
    animation: reveal-paragraph 2s ease-out 3.5s forwards;
}

@keyframes reveal-image {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-10deg);
    }

    60% {
        opacity: 0.8;
        transform: scale(1.2) rotate(5deg);
    }

    80% {
        transform: scale(0.9) rotate(-2deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

@keyframes reveal-heading {
    0% {
        opacity: 0;
        transform: translateY(-30px);
        letter-spacing: 10px;
    }

    60% {
        opacity: 0.8;
        transform: translateY(5px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: 3px;
    }
}

@keyframes reveal-paragraph {
    0% {
        opacity: 0;
        transform: translateY(30px);
        letter-spacing: 2px;
    }

    30% {
        letter-spacing: 3px;
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: normal;
    }
}

/* ====== THEME SWITCH ====== */
.theme-switch-wrapper {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: #ccc;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    position: absolute;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    background-color: #fff;
    bottom: 4px;
    left: 4px;
    content: "";
    height: 26px;
    width: 26px;
    position: absolute;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--accent2);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.slider .icons {
    display: flex;
    justify-content: space-between;
    padding: 0 5px;
    align-items: center;
    height: 100%;
}

.slider .icons i {
    color: #fff;
    font-size: 14px;
}

/* ====== MAIN NAVBAR ====== */
.main-navbar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: background 0.4s, box-shadow 0.4s;
    min-height: 60px;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

:root[data-theme="dark"] .main-navbar {
    background: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.main-navbar.scrolled {
    background: rgba(124, 58, 237, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

:root[data-theme="dark"] .main-navbar.scrolled {
    background: rgba(124, 58, 237, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.main-navbar .navbar-brand {
    display: flex;
    align-items: center;
}

.main-navbar .navbar-brand img {
    height: 40px;
    width: auto;
}

.main-navbar .navbar-brand span {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
    transition: color 0.3s;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.main-navbar .navbar-nav {
    margin-right: 2.5rem;
}

.main-navbar .navbar-nav .nav-link {
    color: #fff;
    font-weight: 600;
    margin: 0 0.5rem;
    position: relative;
    transition: all 0.3s ease;
    transform: translateY(0);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

:root[data-theme="dark"] .main-navbar .navbar-nav .nav-link {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.main-navbar .navbar-nav .nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--accent2);
    transition: width 0.3s;
    margin: 0 auto;
}

.main-navbar .navbar-nav .nav-link:hover::after,
.main-navbar .navbar-nav .nav-link.active::after {
    width: 80%;
}

.main-navbar .navbar-nav .nav-link:hover {
    color: var(--accent2);
    transform: translateY(-2px);
}

/* Remove hover color change in light mode */
:root[data-theme="light"] .main-navbar .navbar-nav .nav-link:hover {
    color: var(--text-color);
}

/* Remove hover effects when scrolled */
.main-navbar.scrolled .navbar-nav .nav-link:hover {
    color: var(--text-color);
    transform: translateY(-2px);
}

.main-navbar .theme-switch-wrapper {
    position: static;
    top: auto;
    right: auto;
    margin-left: 1rem;
}

/* ====== HERO SECTION ====== */
.hero-section {
    min-height: 100vh;
    background: url('https://res.cloudinary.com/dxxz4qcy9/image/upload/v1750224448/e4glp90lq7esbmhtraip.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(44, 62, 80, 0.7) 0%, rgba(124, 58, 237, 0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1.5s;
}

.hero-content h1 {
    color: #fff !important;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====== SCHOLARSHIP INFO BADGE ====== */
.scholarship-info-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.badge-container {
    position: relative;
    display: inline-block;
}

.badge-link {
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.badge-link:hover {
    transform: translateY(-3px) scale(1.02);
    text-decoration: none;
}

.badge-link .badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: pulse-glow 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2), 0 4px 15px rgba(255, 255, 255, 0.1);
}

.badge-link:hover .badge {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 35px rgba(124, 58, 237, 0.4), 0 8px 25px rgba(0, 0, 0, 0.3);
}

.badge-link .badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.badge-link:hover .badge::before {
    left: 100%;
}

.badge-link .badge::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.badge-link:hover .badge::after {
    width: 200px;
    height: 200px;
}

/* Enhanced star animation */
.badge-link .badge i.fa-star {
    animation: star-twinkle 2s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

.badge-link:hover .badge i.fa-star {
    animation: star-spin 0.8s ease-in-out;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.8));
}

@keyframes star-spin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(0,0,0,0.3), 0 0 0 0 rgba(124, 58, 237, 0.7);
    }
    50% {
        box-shadow: 0 8px 25px rgba(0,0,0,0.4), 0 0 0 10px rgba(124, 58, 237, 0);
    }
}

@keyframes star-twinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* ====== UPDATES MARQUEE ====== */
.updates-section {
    background: var(--marquee-bg);
    box-shadow: var(--shadow);
    border-radius: 1rem;
    margin: 2rem 0;
}

.badge.bg-gradient-primary, .updates-marquee {
    vertical-align: middle;
}
.d-flex.align-items-center.mb-3 {
    align-items: center !important;
}
.updates-marquee {
    overflow-x: auto !important;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: thin;
    scrollbar-color: #7c3aed #e0e0e0;
}
.updates-marquee::-webkit-scrollbar {
    height: 7px;
    background: #e0e0e0;
}
.updates-marquee::-webkit-scrollbar-thumb {
    background: #7c3aed;
    border-radius: 4px;
}
.marquee-inner-custom {
    display: inline-block;
    white-space: nowrap;
    position: static !important;
    transform: none !important;
}

.badge.bg-gradient-primary {
    background: linear-gradient(90deg, var(--accent2), var(--accent));
    color: #fff;
    font-size: 1rem;
    padding: 0.7em 1.2em;
    border-radius: 1.5em;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.15);
}

.updates-marquee:hover .marquee-inner {
    animation-play-state: paused;
}

.marquee-link {
    color: var(--accent2);
    font-weight: 600;
    margin: 0 1em;
    text-decoration: none;
    transition: color 0.2s, text-shadow 0.2s;
    text-shadow: 0 2px 8px rgba(124, 58, 237, 0.08);
}

.marquee-link:hover {
    color: var(--accent);
    text-shadow: 0 2px 8px rgba(230, 0, 115, 0.15);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ====== ABOUT & OBJECTIVE ====== */
.about-section {
    background: var(--bg-color);
    color: var(--text-color);
    
}

.about-img {
    width: 100%;
    min-height: 300px;
    background: linear-gradient(135deg, var(--accent2), var(--accent));
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    animation: fadeInLeft 1.5s;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    
}

.about-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    animation: float 6s ease-in-out infinite;
}

.about-img::after {
    content: '🎓';
    font-size: 4rem;
    animation: bounce 2s ease-in-out infinite;
}

.about-section .col-md-6 p {
    text-align: justify;  /* Straight edges on both left & right */
    line-height: 1.6;     /* Comfortable spacing */
}


@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-40px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ====== SCHOLARSHIP TABS & CARDS ====== */
.scholarship-section {
    background: var(--bg-color);
}

.nav-pills {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
}

.nav-pills .nav-link {
    background: var(--tab-inactive);
    color: var(--text-color);
    margin: 0;
    border-radius: 2em;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.08);
    transition: background 0.3s, color 0.3s, transform 0.3s;
    padding: 0.75rem 1.5rem;
}

.nav-pills .nav-link:hover {
    transform: translateY(-2px);
}

.nav-pills .nav-link.active {
    color: #fff;
    box-shadow: 0 2px 12px rgba(124, 58, 237, 0.18);
    transform: translateY(-2px);
}

.nav-pills .nav-link#central-tab.active {
    background: var(--tab-central);
}

.nav-pills .nav-link#statewise-tab.active {
    background: var(--tab-statewise);
}

.nav-pills .nav-link#private-tab.active {
    background: var(--tab-private);
}

.flip-card {
    background: transparent;
    width: 100%;
    height: 220px;
    perspective: 1000px;
    margin: 0 auto;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(.4, 2, .6, 1);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner,
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: var(--card-bg);
    color: var(--text-color);
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, color 0.3s;
}

.flip-card-front {
    z-index: 2;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.flip-card-back {
    transform: rotateY(180deg);
    z-index: 3;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.flip-card .btn {
    background: var(--btn-bg);
    color: #fff;
    border: none;
    border-radius: 2em;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.08);
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
    margin-top: 1rem;
}

.flip-card .btn:hover {
    background: var(--btn-hover);
    color: #fff;
    box-shadow: 0 4px 16px rgba(230, 0, 115, 0.15);
}

/* ====== GALLERY ====== */
.gallery-section {
    background: var(--bg-color);
}

.gallery-section .carousel-inner img {
    border-radius: 1.5rem;
    box-shadow: 0 12px 40px rgba(44, 62, 80, 0.2);
    transition: transform 0.4s ease;
    width: 100%;
    height: 600px;
    max-height: 75vh;
    object-fit: contain !important;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--card-bg) 100%);
    padding: 1.5rem;
    border: 1px solid rgba(124, 58, 237, 0.1);
}

.carousel-indicators {
    bottom: 18px !important;
}

@media (max-width: 767px) {
    .gallery-section .carousel-inner img {
        height: 260px;
        max-height: 55vh;
        object-fit: contain !important;
        background: #fff;
    }
    .carousel-indicators {
        bottom: 8px !important;
    }
}

@media (max-width: 575px) {
    .gallery-section .carousel-inner img {
        height: 180px;
        max-height: 40vh;
        object-fit: contain !important;
        background: #fff;
    }
    .carousel-indicators {
        bottom: 2px !important;
    }
}

.gallery-section .carousel-inner img:hover {
    transform: scale(1.02) rotate(-1deg);
    box-shadow: 0 15px 50px rgba(124, 58, 237, 0.25), 0 8px 30px rgba(44, 62, 80, 0.3);
    border-color: rgba(124, 58, 237, 0.3);
}

/* ====== CONTACT US ====== */
.contact-section {
    background: var(--bg-color);
}

.contact-footer {
    background: #131a2a;
    color: #bfc9d8;
    border-radius: 2rem;
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.15);
}

.contact-footer .footer-title {
    color: var(--accent);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-footer .footer-desc {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.contact-footer .footer-divider {
    border-top: 1px solid #2a3142;
}

.contact-footer .footer-col-title {
    color: var(--accent);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.contact-footer .footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-footer .footer-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.contact-footer .footer-list i {
    color: var(--accent);
    margin-right: 0.7rem;
    font-size: 1.2rem;
}

.contact-footer .footer-social {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-top: 0.5rem;
}

.contact-footer .footer-social i {
    font-size: 2.2rem;
    color: var(--accent);
    transition: color 0.2s;
}

.contact-footer .footer-social i:hover {
    color: var(--accent2);
}

@media (max-width: 991px) {
    .contact-footer {
        padding: 2rem 1rem 1rem 1rem;
    }
}

@media (max-width: 767px) {
    .contact-footer {
        border-radius: 1rem;
        padding: 1.5rem 0.5rem 1rem 0.5rem;
    }

    .contact-footer .footer-title {
        font-size: 1.5rem;
    }

    .contact-footer .footer-col-title {
        font-size: 1.1rem;
    }

    .contact-footer .footer-list li {
        font-size: 1rem;
    }
}

/* ====== RESPONSIVE ====== */
@media (max-width: 991px) {
    .about-img {
        min-height: 200px;
    }

    .logo-container h3 {
        font-size: 36px;
    }

    .main-navbar .navbar-brand span {
        font-size: 1.2rem;
    }

    .main-navbar .container.position-relative {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .d-lg-none.d-flex.align-items-center {
        position: static;
        right: auto;
        top: auto;
        gap: 0.5rem;
        display: flex !important;
        align-items: center;
        height: 100%;
    }

    .navbar-toggler {
        position: static;
        margin: 0;
        z-index: 1051;
        box-shadow: none;
        align-self: center;
    }

    .main-navbar .theme-switch-wrapper {
        position: static;
        margin: 0;
        align-self: center;
    }
}

@media (max-width: 767px) {
    .logo-container h3 {
        font-size: 28px;
    }

    .logo-container p {
        font-size: 16px;
    }

    .main-navbar .navbar-brand span {
        font-size: 1rem;
    }

    .main-navbar .navbar-brand img {
        height: 30px;
    }

    .about-img {
        min-height: 120px;
    }

    .flip-card {
        height: 200px;
    }

    .nav-pills {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .nav-pills .nav-link {
        width: 100%;
        text-align: center;
    }

    .main-navbar .theme-switch-wrapper {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .contact-info {
        padding: 1.5rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 575px) {
    .logo-container img {
        max-width: 120px;
    }

    .main-navbar .navbar-brand img {
        height: 25px;
    }

    .main-navbar .navbar-brand span {
        font-size: 0.9rem;
    }

    .flip-card {
        height: 150px;
    }

    .nav-pills .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (min-width: 992px) {
    .main-navbar .container.position-relative {
        position: relative;
    }

    .main-navbar .theme-switch-wrapper.d-lg-block {
        margin-left: 0;
        margin-right: 0.5rem;
        position: static;
        top: auto;
        right: auto;
        transform: none;
    }
}

/* Theme switch color green when checked */
.theme-switch input:checked+.slider {
    background-color: #22c55e !important;
    /* green */
}

.theme-switch input:checked+.slider:before {
    background-color: #fff;
    transform: translateX(26px);
}

.theme-switch .icons i {
    color: #fff;
}

.theme-switch input:checked+.slider .icons i {
    color: #22c55e !important;
}

.contact-section-wide {
    width: 100vw;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--accent2) 50%, var(--accent) 100%);
    padding: 0;
    margin: 0;
    border-top-left-radius: 3rem;
    border-top-right-radius: 3rem;
    box-shadow: 0 -12px 40px rgba(44, 62, 80, 0.15);
    position: relative;
    overflow: hidden;
}

.contact-section-wide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.contact-row {
    min-height: 420px;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.contact-info-col {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(124, 58, 237, 0.05) 100%);
    color: var(--text-color);
    min-height: 420px;
    border-top-left-radius: 3rem;
    border-bottom-left-radius: 3rem;
    box-shadow: 0 12px 40px rgba(44, 62, 80, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem;
    flex: 1;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(124, 58, 237, 0.1);
}

.contact-info-col::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(124, 58, 237, 0.03) 50%, transparent 70%);
    border-radius: inherit;
    pointer-events: none;
}

.contact-info-content {
    width: 100%;
    /* Remove max-width and margin-left */
}

.contact-title {
    font-size: 2.1rem;
    color: var(--accent2);
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.contact-icon-animate {
    display: inline-block;
    animation: bounce 2s infinite;
    color: var(--accent);
    font-size: 2.2rem;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    margin-bottom: 1.7rem;
    background: rgba(124, 58, 237, 0.07);
    border-radius: 1rem;
    padding: 1.1rem 1rem;
    transition: background 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 12px rgba(124, 58, 237, 0.08);
    cursor: pointer;
}

.contact-list li:hover {
    background: linear-gradient(90deg, var(--accent2) 0%, var(--accent) 100%);
    color: #fff;
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.18);
}

.contact-list li:hover .icon-box,
.contact-list li:hover .contact-label,
.contact-list li:hover .contact-value {
    color: #fff !important;
}

.icon-box {
    background: linear-gradient(135deg, var(--accent2), var(--accent));
    color: #fff;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.12);
    transition: background 0.3s, color 0.3s;
}

.contact-label {
    font-weight: 700;
    color: var(--accent2);
    font-size: 1.1rem;
    display: block;
}

.contact-value {
    color: var(--text-color);
    font-size: 1.05rem;
    display: block;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-value:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Map Icon Box */
.contact-map-col {
    background: linear-gradient(135deg, var(--accent2) 0%, var(--accent) 50%, var(--bg-color) 100%);
    min-height: 420px;
    border-top-right-radius: 3rem;
    border-bottom-right-radius: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex: 1;
    position: relative;
    overflow: hidden;
}

.contact-map-col::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.map-icon-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    border-radius: 2.5rem;
    box-shadow: 0 12px 40px rgba(44, 62, 80, 0.25), 0 4px 20px rgba(124, 58, 237, 0.2);
    padding: 3rem 3rem 2.5rem 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 240px;
    max-width: 320px;
    position: relative;
    overflow: hidden;
}

.map-icon-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    border-radius: inherit;
    transition: transform 0.4s ease;
}

.map-icon-box:hover::before {
    transform: translateX(100%);
}

.map-icon-box:hover {
    transform: translateY(-8px) scale(1.08);
    box-shadow: 0 20px 50px rgba(44, 62, 80, 0.35), 0 8px 30px rgba(124, 58, 237, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
}

.map-icon-box i {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 1rem;
    display: block;
    animation: pin-bounce 2s ease-in-out infinite;
}

.map-icon-box:hover i {
    animation: pin-bounce 1s ease-in-out infinite;
}

.map-label {
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 0.5rem;
    display: block;
}

.map-label {
    font-size: 1.3rem;
    color: var(--accent2);
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.map-icon-box:hover .map-label {
    color: #fff;
}

@keyframes pin-bounce {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-12px) scale(1.12);
    }
}

/* Responsive */
@media (max-width: 991px) {
    .contact-section-wide {
        border-radius: 0;
    }

    .contact-info-col,
    .contact-map-col {
        border-radius: 0;
        min-height: 320px;
        padding: 2rem 1rem;
    }

    .contact-info-content {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 767px) {
    .contact-row {
        flex-direction: column;
    }

    .contact-info-col,
    .contact-map-col {
        min-height: 220px;
        padding: 2rem 1rem;
    }

    .map-icon-box {
        min-width: 120px;
        padding: 1.5rem 1.5rem 1rem 1.5rem;
    }

    .map-icon-box i {
        font-size: 2.5rem;
    }
}

/* Marquee Dropdown Styles */
.dropdown-marquee {
  position: relative;
  overflow: visible !important;
}

.dropdown-content {
  display: none;
  position: absolute;
  left: 0;
  bottom: 120%;
  background: #fff !important;
  color: #111 !important;
  z-index: 2147483647 !important;
  min-width: 240px;
  max-width: 95vw;
  box-shadow: 0 8px 32px rgba(44,62,80,0.22), 0 2px 12px rgba(124,58,237,0.18);
  border-radius: 0.7em;
  border: 2px solid #7c3aed;
  padding: 1.2em 1.4em;
  font-size: 1.12rem;
  opacity: 1 !important;
  min-height: 180px;
}

.dropdown-marquee.open .dropdown-content {
  display: block !important;
}

.dropdown-content a {
  color: #7c3aed !important;
  font-weight: bold;
  display: block;
  margin-bottom: 0.7em;
  text-decoration: underline;
  background: none !important;
  font-size: 1.08em;
  letter-spacing: 0.01em;
}

.dropdown-content a:last-child {
  margin-bottom: 0;
}

/* Central Scholarship Details Section Theming - Improved for background and links */
.central-details-section {
  background: transparent !important;
  color: var(--text-color);
  transition: background 0.4s, color 0.4s;
}
:root[data-theme="light"] .central-details-section a {
  color: #1a237e !important;
  text-decoration: underline;
}
:root[data-theme="dark"] .central-details-section a {
  color: #7c3aed !important;
  text-decoration: underline;
}
.central-details-section .card {
  background: transparent !important;
  color: inherit;
  box-shadow: none;
}

/* Fix heading visibility in bright mode */
.central-details-section .card h2,
.central-details-section .card h3,
.central-details-section .card h4,
.central-details-section .card h5,
.central-details-section .card h6 {
  color: var(--text-color) !important;
  font-weight: 700;
}

.central-details-section .card strong,
.central-details-section .card b {
  color: var(--text-color) !important;
  font-weight: 700;
}

/* Marquee Section Theming - Consistent Purple Accent */
:root[data-theme="light"] #marquee-container,
:root[data-theme="light"] #marquee-container .marquee-inner-custom,
:root[data-theme="light"] #marquee-container .update-dropdown-custom,
:root[data-theme="light"] #marquee-container .dropdown-title-custom,
:root[data-theme="dark"] #marquee-container,
:root[data-theme="dark"] #marquee-container .marquee-inner-custom,
:root[data-theme="dark"] #marquee-container .update-dropdown-custom,
:root[data-theme="dark"] #marquee-container .dropdown-title-custom {
  color: #7c3aed !important;
  font-weight: 600 !important;
  font-size: 1.18rem !important;
  opacity: 1 !important;
}
#marquee-container {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap;
  min-height: 48px;
  max-width: 100%;
  position: relative;
  display: block;
}

.navbar-toggler-icon {
  background-image: none !important;
  width: 1.8em;
  height: 1.8em;
  display: inline-block;
  position: relative;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after,
.navbar-toggler-icon span {
  content: '';
  display: block;
  position: absolute;
  left: 0.3em;
  right: 0.3em;
  height: 0.22em;
  border-radius: 2px;
  background: var(--text-color);
  transition: background 0.3s;
}

.navbar-toggler-icon::before {
  top: 0.35em;
}
.navbar-toggler-icon::after {
  bottom: 0.35em;
}
.navbar-toggler-icon span {
  top: 0.79em;
}

/* For Bootstrap default, add a span inside the icon for the middle bar */
.navbar-toggler-icon {
  position: relative;
}
.navbar-toggler-icon span {
  position: absolute;
  left: 0.3em;
  right: 0.3em;
  top: 0.79em;
  height: 0.22em;
  background: var(--text-color);
  border-radius: 2px;
  content: '';
  display: block;
}

/* When navbar is scrolled, ensure contrast */
.main-navbar.scrolled .navbar-toggler-icon::before,
.main-navbar.scrolled .navbar-toggler-icon::after,
.main-navbar.scrolled .navbar-toggler-icon span {
  background: #fff;
}

:root[data-theme="light"] .main-navbar.scrolled .navbar-toggler-icon::before,
:root[data-theme="light"] .main-navbar.scrolled .navbar-toggler-icon::after,
:root[data-theme="light"] .main-navbar.scrolled .navbar-toggler-icon span {
  background: #fff;
}

.marquee-inner-custom {
  /* Remove previous flex and static positioning to restore animation */
}

.updates-popup { display: none !important; }

#marquee-dropdown-popup {
  z-index: 2147483647 !important;
  pointer-events: auto !important;
  background: var(--card-bg, #fff);
  color: var(--text-color, #222);
  border-radius: 0.7em;
  box-shadow: 0 4px 24px rgba(44,62,80,0.18), 0 1.5px 8px rgba(124,58,237,0.12);
  border: 1px solid #e0e0e0;
  min-width: 200px;
  max-width: 90vw;
  padding: 0.9em 1.2em;
  font-size: 1rem;
  opacity: 0.98;
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  display: none;
}



/* ====== HEADING COLORS ====== */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
    transition: color 0.3s ease;
}

.scholarship-section h2,
.about-section h2,
.gallery-section h2 {
    background: linear-gradient(135deg, var(--accent2), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.scholarship-section h2::after,
.about-section h2::after,
.gallery-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent2), var(--accent));
    border-radius: 2px;
}

/* ====== FLIP CARD FIX ====== */
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

/* ====== RESPONSIVE IMPROVEMENTS ====== */
@media (max-width: 767px) {
    .badge-link .badge {
        font-size: 1rem !important;
        padding: 0.75rem 1.5rem !important;
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }
    
    .badge-link .badge i {
        font-size: 1rem;
    }
    
    .flip-card {
        margin: 0.5rem;
    }
    
    .flip-card .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        white-space: nowrap;
    }
    
    .flip-card-front,
    .flip-card-back {
        padding: 1.5rem 1rem;
    }
    
    .flip-card-front h5,
    .flip-card-back h5 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .flip-card-front i,
    .flip-card-back i {
        font-size: 2rem !important;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 575px) {
    .badge-link .badge {
        font-size: 0.9rem !important;
        padding: 0.6rem 1.2rem !important;
        flex-direction: row;
        align-items: center;
        gap: 0.3rem;
    }
    
    .badge-link .badge i {
        font-size: 0.9rem;
    }
    
    .flip-card .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Ensure scholarship info badge elements stay in line */
    .scholarship-info-badge .badge-container {
        display: flex;
        justify-content: center;
    }
    
    .badge-link .badge {
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}



/* ====== CIRCULARS HEADING STYLE ====== */
.circulars-heading-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

.circulars-heading-wrapper h5 {
    background: linear-gradient(135deg, var(--accent2), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.heading-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent2), var(--accent));
    border-radius: 2px;
    margin: 0 auto;
    position: relative;
}

.heading-line::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    animation: line-pulse 2s ease-in-out infinite;
}

@keyframes line-pulse {
    0%, 100% {
        opacity: 1;
        transform: translate(-50%, -50%) scaleX(1);
    }
    50% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scaleX(1.5);
    }
}

/* ====== NEW CONTACT SECTION - BEAUTIFUL CARD DESIGN ====== */
.contact-section-new {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

:root[data-theme="dark"] .contact-section-new {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
}

.contact-section-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="particles" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(124,58,237,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(124,58,237,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(124,58,237,0.1)"/><circle cx="90" cy="90" r="1" fill="rgba(124,58,237,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23particles)"/></svg>');
    pointer-events: none;
}

.contact-header {
    position: relative;
    z-index: 2;
}

.contact-main-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #7c3aed, #e60073);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(124, 58, 237, 0.5);
    margin-bottom: 1rem;
    animation: glow-pulse 2s ease-in-out infinite;
}

.contact-subtitle {
    font-size: 1.3rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 0;
}

@keyframes glow-pulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

/* Contact Cards */
.contact-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(124, 58, 237, 0.05) 100%);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(124, 58, 237, 0.1);
    height: 100%;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(124, 58, 237, 0.03) 50%, transparent 70%);
    border-radius: inherit;
    transition: transform 0.4s ease;
}

.contact-card:hover::before {
    transform: translateX(100%);
}

.contact-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(44, 62, 80, 0.25), 0 8px 30px rgba(124, 58, 237, 0.2);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: #fff;
    position: relative;
    z-index: 2;
}

.address-card .card-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.phone-card .card-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.email-card .card-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

.location-card .card-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent2);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.card-text {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

/* Institution Card */
.institution-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(124, 58, 237, 0.08) 100%);
    border-radius: 2rem;
    padding: 2.5rem;
    height: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(124, 58, 237, 0.15);
    position: relative;
    overflow: hidden;
}

.institution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(124, 58, 237, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.institution-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.institution-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #7c3aed, #e60073);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #fff;
    box-shadow: 0 12px 35px rgba(124, 58, 237, 0.3);
}

.institution-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent2);
    margin-bottom: 0.5rem;
}

.institution-full-name {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.8;
    margin-bottom: 0;
}

.map-section {
    text-align: center;
    position: relative;
    z-index: 2;
}

.map-icon-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #7c3aed, #e60073);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: #fff;
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.3);
    animation: float 3s ease-in-out infinite;
}

.map-address {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.open-maps-btn {
    background: linear-gradient(135deg, #7c3aed, #e60073);
    color: #fff;
    border: none;
    border-radius: 2rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.open-maps-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(124, 58, 237, 0.4);
    background: linear-gradient(135deg, #8b5cf6, #f59e0b);
}

/* Responsive Design */
@media (max-width: 991px) {
    .contact-main-title {
        font-size: 2.8rem;
    }
    
    .institution-card {
        margin-top: 2rem;
        min-height: 350px;
    }
}

@media (max-width: 767px) {
    .contact-main-title {
        font-size: 2.2rem;
    }
    
    .contact-subtitle {
        font-size: 1.1rem;
    }
    
    .contact-card {
        min-height: 180px;
        padding: 1.5rem;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .institution-card {
        padding: 2rem;
        min-height: 300px;
    }
    
    .institution-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .map-icon-large {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
}

@media (max-width: 575px) {
    .contact-main-title {
        font-size: 1.8rem;
    }
    
    .contact-card {
        min-height: 160px;
        padding: 1.2rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-text {
        font-size: 0.9rem;
    }
}

/* ====== DETAILS PAGES NAVBAR FIXES ====== */
/* Fix navbar text visibility in light mode */
:root[data-theme="light"] .main-navbar .navbar-brand span,
:root[data-theme="light"] .main-navbar .navbar-nav .nav-link {
    color: #333 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

:root[data-theme="light"] .main-navbar .navbar-nav .nav-link:hover {
    color: var(--accent2) !important;
}

/* Fix navbar text visibility when scrolled in light mode */
:root[data-theme="light"] .main-navbar.scrolled .navbar-brand span,
:root[data-theme="light"] .main-navbar.scrolled .navbar-nav .nav-link {
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ====== DETAILS PAGES HEADING FIXES ====== */
/* Fix heading visibility in dark mode for all details sections */
:root[data-theme="dark"] .central-details-section .card h2,
:root[data-theme="dark"] .central-details-section .card h3,
:root[data-theme="dark"] .central-details-section .card h4,
:root[data-theme="dark"] .central-details-section .card h5,
:root[data-theme="dark"] .central-details-section .card h6,
:root[data-theme="dark"] .ap-details-section .card h2,
:root[data-theme="dark"] .ap-details-section .card h3,
:root[data-theme="dark"] .ap-details-section .card h4,
:root[data-theme="dark"] .ap-details-section .card h5,
:root[data-theme="dark"] .ap-details-section .card h6,
:root[data-theme="dark"] .odisha-details-section .card h2,
:root[data-theme="dark"] .odisha-details-section .card h3,
:root[data-theme="dark"] .odisha-details-section .card h4,
:root[data-theme="dark"] .odisha-details-section .card h5,
:root[data-theme="dark"] .odisha-details-section .card h6,
:root[data-theme="dark"] .mp-details-section .card h2,
:root[data-theme="dark"] .mp-details-section .card h3,
:root[data-theme="dark"] .mp-details-section .card h4,
:root[data-theme="dark"] .mp-details-section .card h5,
:root[data-theme="dark"] .mp-details-section .card h6,
:root[data-theme="dark"] .tn-details-section .card h2,
:root[data-theme="dark"] .tn-details-section .card h3,
:root[data-theme="dark"] .tn-details-section .card h4,
:root[data-theme="dark"] .tn-details-section .card h5,
:root[data-theme="dark"] .tn-details-section .card h6,
:root[data-theme="dark"] .bihar-details-section .card h2,
:root[data-theme="dark"] .bihar-details-section .card h3,
:root[data-theme="dark"] .bihar-details-section .card h4,
:root[data-theme="dark"] .bihar-details-section .card h5,
:root[data-theme="dark"] .bihar-details-section .card h6,
:root[data-theme="dark"] .gujarat-details-section .card h2,
:root[data-theme="dark"] .gujarat-details-section .card h3,
:root[data-theme="dark"] .gujarat-details-section .card h4,
:root[data-theme="dark"] .gujarat-details-section .card h5,
:root[data-theme="dark"] .gujarat-details-section .card h6,
:root[data-theme="dark"] .karnataka-details-section .card h2,
:root[data-theme="dark"] .karnataka-details-section .card h3,
:root[data-theme="dark"] .karnataka-details-section .card h4,
:root[data-theme="dark"] .karnataka-details-section .card h5,
:root[data-theme="dark"] .karnataka-details-section .card h6,
:root[data-theme="dark"] .private-details-section .card h2,
:root[data-theme="dark"] .private-details-section .card h3,
:root[data-theme="dark"] .private-details-section .card h4,
:root[data-theme="dark"] .private-details-section .card h5,
:root[data-theme="dark"] .private-details-section .card h6,
:root[data-theme="dark"] .private-educational-loans-details-section .card h2,
:root[data-theme="dark"] .private-educational-loans-details-section .card h3,
:root[data-theme="dark"] .private-educational-loans-details-section .card h4,
:root[data-theme="dark"] .private-educational-loans-details-section .card h5,
:root[data-theme="dark"] .private-educational-loans-details-section .card h6 {
    color: #fff !important;
    font-weight: 700;
}

/* Fix bold text visibility in dark mode for all details sections */
:root[data-theme="dark"] .central-details-section .card strong,
:root[data-theme="dark"] .central-details-section .card b,
:root[data-theme="dark"] .ap-details-section .card strong,
:root[data-theme="dark"] .ap-details-section .card b,
:root[data-theme="dark"] .odisha-details-section .card strong,
:root[data-theme="dark"] .odisha-details-section .card b,
:root[data-theme="dark"] .mp-details-section .card strong,
:root[data-theme="dark"] .mp-details-section .card b,
:root[data-theme="dark"] .tn-details-section .card strong,
:root[data-theme="dark"] .tn-details-section .card b,
:root[data-theme="dark"] .bihar-details-section .card strong,
:root[data-theme="dark"] .bihar-details-section .card b,
:root[data-theme="dark"] .gujarat-details-section .card strong,
:root[data-theme="dark"] .gujarat-details-section .card b,
:root[data-theme="dark"] .karnataka-details-section .card strong,
:root[data-theme="dark"] .karnataka-details-section .card b,
:root[data-theme="dark"] .private-details-section .card strong,
:root[data-theme="dark"] .private-details-section .card b,
:root[data-theme="dark"] .private-educational-loans-details-section .card strong,
:root[data-theme="dark"] .private-educational-loans-details-section .card b {
    color: #fff !important;
    font-weight: 700;
}

/* Fix card background and text color for all details sections */
:root[data-theme="dark"] .central-details-section .card,
:root[data-theme="dark"] .ap-details-section .card,
:root[data-theme="dark"] .odisha-details-section .card,
:root[data-theme="dark"] .mp-details-section .card,
:root[data-theme="dark"] .tn-details-section .card,
:root[data-theme="dark"] .bihar-details-section .card,
:root[data-theme="dark"] .gujarat-details-section .card,
:root[data-theme="dark"] .karnataka-details-section .card,
:root[data-theme="dark"] .private-details-section .card,
:root[data-theme="dark"] .private-educational-loans-details-section .card {
    background: var(--card-bg) !important;
    color: var(--text-color) !important;
}

/* Fix text color in light mode for all details sections */
:root[data-theme="light"] .central-details-section .card,
:root[data-theme="light"] .ap-details-section .card,
:root[data-theme="light"] .odisha-details-section .card,
:root[data-theme="light"] .mp-details-section .card,
:root[data-theme="light"] .tn-details-section .card,
:root[data-theme="light"] .bihar-details-section .card,
:root[data-theme="light"] .gujarat-details-section .card,
:root[data-theme="light"] .karnataka-details-section .card,
:root[data-theme="light"] .private-details-section .card,
:root[data-theme="light"] .private-educational-loans-details-section .card {
    background: var(--card-bg) !important;
    color: var(--text-color) !important;
}

/* Fix heading visibility in light mode for all details sections */
:root[data-theme="light"] .central-details-section .card h2,
:root[data-theme="light"] .central-details-section .card h3,
:root[data-theme="light"] .central-details-section .card h4,
:root[data-theme="light"] .central-details-section .card h5,
:root[data-theme="light"] .central-details-section .card h6,
:root[data-theme="light"] .ap-details-section .card h2,
:root[data-theme="light"] .ap-details-section .card h3,
:root[data-theme="light"] .ap-details-section .card h4,
:root[data-theme="light"] .ap-details-section .card h5,
:root[data-theme="light"] .ap-details-section .card h6,
:root[data-theme="light"] .odisha-details-section .card h2,
:root[data-theme="light"] .odisha-details-section .card h3,
:root[data-theme="light"] .odisha-details-section .card h4,
:root[data-theme="light"] .odisha-details-section .card h5,
:root[data-theme="light"] .odisha-details-section .card h6,
:root[data-theme="light"] .mp-details-section .card h2,
:root[data-theme="light"] .mp-details-section .card h3,
:root[data-theme="light"] .mp-details-section .card h4,
:root[data-theme="light"] .mp-details-section .card h5,
:root[data-theme="light"] .mp-details-section .card h6,
:root[data-theme="light"] .tn-details-section .card h2,
:root[data-theme="light"] .tn-details-section .card h3,
:root[data-theme="light"] .tn-details-section .card h4,
:root[data-theme="light"] .tn-details-section .card h5,
:root[data-theme="light"] .tn-details-section .card h6,
:root[data-theme="light"] .bihar-details-section .card h2,
:root[data-theme="light"] .bihar-details-section .card h3,
:root[data-theme="light"] .bihar-details-section .card h4,
:root[data-theme="light"] .bihar-details-section .card h5,
:root[data-theme="light"] .bihar-details-section .card h6,
:root[data-theme="light"] .gujarat-details-section .card h2,
:root[data-theme="light"] .gujarat-details-section .card h3,
:root[data-theme="light"] .gujarat-details-section .card h4,
:root[data-theme="light"] .gujarat-details-section .card h5,
:root[data-theme="light"] .gujarat-details-section .card h6,
:root[data-theme="light"] .karnataka-details-section .card h2,
:root[data-theme="light"] .karnataka-details-section .card h3,
:root[data-theme="light"] .karnataka-details-section .card h4,
:root[data-theme="light"] .karnataka-details-section .card h5,
:root[data-theme="light"] .karnataka-details-section .card h6,
:root[data-theme="light"] .private-details-section .card h2,
:root[data-theme="light"] .private-details-section .card h3,
:root[data-theme="light"] .private-details-section .card h4,
:root[data-theme="light"] .private-details-section .card h5,
:root[data-theme="light"] .private-details-section .card h6,
:root[data-theme="light"] .private-educational-loans-details-section .card h2,
:root[data-theme="light"] .private-educational-loans-details-section .card h3,
:root[data-theme="light"] .private-educational-loans-details-section .card h4,
:root[data-theme="light"] .private-educational-loans-details-section .card h5,
:root[data-theme="light"] .private-educational-loans-details-section .card h6 {
    color: var(--text-color) !important;
    font-weight: 700;
}

/* Fix bold text visibility in light mode for all details sections */
:root[data-theme="light"] .central-details-section .card strong,
:root[data-theme="light"] .central-details-section .card b,
:root[data-theme="light"] .ap-details-section .card strong,
:root[data-theme="light"] .ap-details-section .card b,
:root[data-theme="light"] .odisha-details-section .card strong,
:root[data-theme="light"] .odisha-details-section .card b,
:root[data-theme="light"] .mp-details-section .card strong,
:root[data-theme="light"] .mp-details-section .card b,
:root[data-theme="light"] .tn-details-section .card strong,
:root[data-theme="light"] .tn-details-section .card b,
:root[data-theme="light"] .bihar-details-section .card strong,
:root[data-theme="light"] .bihar-details-section .card b,
:root[data-theme="light"] .gujarat-details-section .card strong,
:root[data-theme="light"] .gujarat-details-section .card b,
:root[data-theme="light"] .karnataka-details-section .card strong,
:root[data-theme="light"] .karnataka-details-section .card b,
:root[data-theme="light"] .private-details-section .card strong,
:root[data-theme="light"] .private-details-section .card b,
:root[data-theme="light"] .private-educational-loans-details-section .card strong,
:root[data-theme="light"] .private-educational-loans-details-section .card b {
    color: var(--text-color) !important;
    font-weight: 700;
}