
/* === PSV 2025: TRENDY & MODERN CSS === */

/* ---------------------------------- */
/* 1. ROOT & BODY 
/* ---------------------------------- */
:root {
    --primary-color: #347d5c;       /* Green */
    --primary-color-rgb: 52, 125, 92;
    --secondary-color: #312E6B;     /* Dark Blue/Purple */
    --secondary-color-rgb: 49, 46, 107;
    --accent-color: #D3AF35;        /* Gold */
    --accent-color-rgb: 211, 175, 53;
    
    --light-bg: #f8f9fa;
    --light-bg-darker: #e9ecf3; /* For subtle section contrast */
    --card-bg: #ffffff;
    --dark-text: #333;
    --light-text: #ffffff;
    --gray-text: #555;
}

body {
    
   font-family: 'Poppins', sans-serif;
    background-color: #e6f4ea;
    overflow-x: hidden;
}

/* Base Bootstrap overrides */
.py-5 {
    padding: 4.5rem 0;
}
.lead {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--gray-text);
}

/* ---------------------------------- */
/* 2. SECTION TITLES 
/* ---------------------------------- */
.section-title, .section-title-left {
    font-weight: 700;
    /* Title is Green (Primary) */
    color: var(--primary-color);
    margin-bottom: 20px; 
    position: relative;
    padding-bottom: 12px;
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Allows for dual-color titles like "Recent EVENTS" */
.section-title-left span {
    color: var(--secondary-color);
}

.section-title::after, .section-title-left::after {
    content: '';
    position: absolute;
    bottom: 0;
    height: 4px;
    width: 80px; 
    /* Trendy gradient underline */
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    border-radius: 2px;
}
.section-title::after {
    left: 50%;
    transform: translateX(-50%);
}
.section-title-left::after {
    left: 0;
}

/* --- Modern Variable Definitions --- */
:root {
    --accent-color: #ffcc00; /* Gold/Yellow for visibility */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

/* Container Height */
#heroCarousel .carousel-item {
    height: 85vh;
    min-height: 400px;
    background: #000;
}

#heroCarousel .carousel-item img {
    height: 100%;
    object-fit: cover;
    opacity: 0.8; /* Dimmed for text readability */
    transition: transform 6s ease-in-out; /* Slow zoom effect */
}

#heroCarousel .carousel-item.active img {
    transform: scale(1.1);
}

/* Glassmorphism Caption */
#heroCarousel .carousel-caption {
    bottom: 15%;
    left: 8%;
    right: auto;
    text-align: left;
    max-width: 600px;
    padding: 40px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(0px);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    z-index: 10;
}

.caption-content .badge {
    background: var(--accent-color);
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#heroCarousel .carousel-caption h5 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #fff;
    line-height: 1.1;
}

#heroCarousel .carousel-caption p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

/* Button inside slider */
.btn-accent {
    background: var(--accent-color);
    color: #000;
    font-weight: 600;
    border-radius: 50px;
    padding: 10px 25px;
    border: none;
}

/* Text Animation */
.animate-text {
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Floating Controls */
.carousel-control-prev, .carousel-control-next {
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    top: 50%;
    margin: 0 20px;
    opacity: 1;
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    background: var(--accent-color);
    color: #000;
}

/* Custom Progress Indicators */
.carousel-indicators [button] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 8px;
    background-color: rgba(255,255,255,0.4);
    border: 2px solid transparent;
}

.carousel-indicators .active {
    background-color: var(--accent-color) !important;
    transform: scale(1.3);
}

/* === MOBILE FRIENDLY FIXES === */
@media (max-width: 768px) {
    #heroCarousel .carousel-item {
        height: 60vh;
        min-height: 400px;
    }

    #heroCarousel .carousel-caption {
        bottom: 5%;
        left: 5%;
        right: 5%;
        padding: 20px;
        max-width: 100%;
        border-radius: 15px;
    }

    #heroCarousel .carousel-caption h6 {
        font-size: 1.1rem;
    }
    
    #heroCarousel .carousel-caption p {
        font-size: 0.9rem;
    }
    
    .carousel-control-prev, .carousel-control-next {
        display: none; /* Clean look on mobile */
    }
}

/* ---------------------------------- */
/* 4. FACILITIES CARDS - 2026 UPGRADE
/* ---------------------------------- */
#facilities {
    background: #f8f9fa;
    position: relative;
}

.facility-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    height: 100%;
    border: none;
    /* Soft Multi-layered Shadow */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), 0 1px 8px rgba(0, 0, 0, 0.02);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Background Floating Accent */
.facility-card::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--accent-color);
    opacity: 0.03;
    border-radius: 50%;
    top: -50px;
    right: -50px;
    transition: all 0.5s ease;
}

.facility-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

.facility-card:hover::after {
    opacity: 0.1;
    transform: scale(2);
}

/* Icon Styling */
.facility-card .icon-wrapper {
    font-size: 2.8rem;
    color: var(--primary-color);
    width: 100px;
    height: 100px;
    border-radius: 24px; /* Squircle shape */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    background: #fdfdfd;
    box-shadow: 8px 8px 15px #e0e0e0, -8px -8px 15px #ffffff; /* Neumorphism */
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.facility-card:hover .icon-wrapper {
    background: var(--primary-color);
    color: #ffffff;
    transform: rotateY(360deg); /* Modern flip effect */
    border-radius: 50%;
}

.facility-card h5 {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    margin: 0;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.facility-card:hover h5 {
    color: var(--primary-color);
}

/* === MOBILE FRIENDLY OPTIMIZATION === */
@media (max-width: 768px) {
    .facility-card {
        padding: 25px 15px;
        /* Make cards slightly smaller on mobile to fit grid better */
    }
    
    .facility-card .icon-wrapper {
        width: 70px;
        height: 70px;
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .facility-card h5 {
        font-size: 1rem;
    }

    /* Prevent hover effects from "sticking" on touch devices */
    .facility-card:active {
        transform: scale(0.95);
        background: #f1f1f1;
    }
}

/* ==================================== */
/* 5. ABOUT US SECTION - 2026 UPGRADE   */
/* ==================================== */
/* Helper Classes */
.fw-800 { font-weight: 800; }
.text-pink { color: #ff0080; }
.bg-pink { background: #ff0080; }
.bg-pink-light { background: rgba(255, 0, 128, 0.1); }
.text-orange { color: #ff8c00; }
.bg-orange { background: #ff8c00; }
.text-gradient-pink {
    background: linear-gradient(90deg, #ff0080, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Image Container Styling */
.about-visual-wrapper {
    position: relative;
    padding: 40px;
}

.blob-image-container {
    width: 100%;
    height: 450px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border: 8px solid white;
}

.main-about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Glass Stat Cards */
.glass-stat-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.5);
    z-index: 5;
}

.stat-students { top: 10%; right: -5%; }
.stat-years { bottom: 10%; left: -5%; }

.stat-icon-circle {
    width: 45px; height: 45px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.2rem;
}

/* Decorative Background */
.about-bg-circle {
    position: absolute;
    width: 300px; height: 300px;
    background: linear-gradient(135deg, #ff008010, #ff8c0010);
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

/* Vision/Mission Cards */
.vm-card {
    padding: 25px;
    border-radius: 25px;
    transition: 0.3s;
    height: 100%;
    border: 1px solid transparent;
}

.pink-card { background: #fff0f6; border-color: #ffdeeb; }
.orange-card { background: #fffaf0; border-color: #ffecd2; }

.vm-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.vm-header i { font-size: 1.5rem; }
.pink-card i, .pink-card h5 { color: #ff0080; }
.orange-card i, .orange-card h5 { color: #ff8c00; }

.vm-list {
    list-style: none;
    padding: 0; margin: 0;
}

.vm-list li {
    font-size: 0.9rem;
    padding: 5px 0;
    font-weight: 500;
    position: relative;
    padding-left: 20px;
}

.vm-list li::before {
    content: "➜";
    position: absolute;
    left: 0;
    font-size: 0.8rem;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .blob-image-container { height: 350px; }
    .stat-students, .stat-years { position: relative; right: 0; left: 0; margin-top: 15px; width: fit-content; }
    .about-visual-wrapper { padding: 20px 0; }
    .about-bg-circle { display: none; }
}


/* ------------------------------------------------ */
/* 7. STATS SECTION (Height Reduced)
/* ------------------------------------------------ */

#stats {
    background: var(--secondary-color);
    background-image: linear-gradient(rgba(var(--secondary-color-rgb), 0.8), rgba(var(--secondary-color-rgb), 0.8)), 
                      url('assets/images/campus-texture.jpg'); 
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    /* REDUCED HEIGHT: 55px top/bottom padding */
    padding: 55px 0; 
    position: relative;
    overflow: hidden;
}

#stats .section-title {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); 
    color: var(--light-text) !important; 
    margin-bottom: 35px; /* Reduced margin */
}

.stat-item {
    background: rgba(var(--secondary-color-rgb), 0.75); 
    border: 1px solid rgba(var(--light-text), 0.3);
    border-radius: 15px;
    padding: 25px 20px; /* Reduced padding */
    margin-bottom: 30px;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    cursor: default;
    
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    text-align: center; 
}

.stat-item:hover {
    transform: translateY(-10px) scale(1.03); 
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5), 
                0 0 20px var(--accent-color);
    background: var(--secondary-color);
    border-color: var(--accent-color);
}

.stat-item i {
    color: var(--accent-color); 
    transition: transform 0.4s ease, color 0.4s ease;
    margin-bottom: 10px !important; 
}

.stat-item:hover i {
    transform: rotateY(360deg); 
    color: var(--light-text); 
}

.stat-item .display-4 {
    font-size: 3.5rem; 
    font-weight: 900;
    margin-bottom: 5px;
    color: var(--light-text); 
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.stat-item .lead {
    font-weight: 500;
    color: var(--light-text); 
    font-size: 1.1rem;
    margin-top: 5px;
}

/* --- Animated Background Elements (Optional but adds depth) --- */
#stats::before {
    content: '';
    position: absolute;
    top: 5%;
    left: 5%;
    width: 200px;
    height: 200px;
    background: rgba(var(--accent-color-rgb), 0.1); 
    border-radius: 50%;
    animation: moveCircle 25s infinite linear;
    z-index: 0;
}
#stats::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: 15%;
    width: 150px;
    height: 150px;
    background: rgba(var(--primary-color-rgb), 0.2); 
    border-radius: 50%;
    animation: moveCircle 20s infinite reverse linear;
    z-index: 0;
}

@keyframes moveCircle {
    0% { transform: translate(0, 0); }
    25% { transform: translate(20px, 30px); }
    50% { transform: translate(0, 0); }
    75% { transform: translate(-30px, -20px); }
    100% { transform: translate(0, 0); }
}

/* ------------------------------------------------ */
/* 8. ANNOUNCEMENTS & EVENTS - 2026 PRO UPGRADE
/* ------------------------------------------------ */

#announcements-events {
    background: #fdfdf2; /* Softer, modern cream instead of harsh yellow */
    padding: 100px 0;
    position: relative;
}

/* --- ANNOUNCEMENTS (Notice Board) --- */
.announcements-header-upg {
    background: linear-gradient(135deg, #028955fa 0%, #1e1b4b 100%);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 22px;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
    box-shadow: 0 10px 30px rgba(49, 46, 107, 0.2);
}

.announcements-box {
    background: #ffffff;
    border-radius: 0 0 20px 20px;
    height: 480px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    position: relative;
}

/* Smooth Scroll Container (Replaces Marquee) */
#announcementsContainer {
    height: 100%;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
}
#announcementsContainer::-webkit-scrollbar { display: none; } /* Chrome/Safari */

.announcement-item {
    padding: 18px 20px;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.announcement-item:hover {
    background: #fff9e6;
    transform: scale(1.02);
    padding-left: 30px;
    border-left: 5px solid #D3AF35;
}

.announcement-date-box {
    background: #f4f7f6;
    color: #369d5a;
    min-width: 60px;
    padding: 10px;
    border-radius: 15px;
    text-align: center;
    margin-right: 18px;
    border: 1px solid #edf2f7;
    transition: 0.3s;
}

.announcement-item:hover .announcement-date-box {
    background: #369d5a;
    color: #fff;
}

.announcement-date-day { font-size: 1.3rem; font-weight: 800; display: block; line-height: 1; }
.announcement-date-month { font-size: 0.75rem; text-transform: uppercase; font-weight: 700; opacity: 0.8; }

.announcement-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.5;
    transition: 0.3s;
}

/* --- RECENT EVENTS CARDS --- */
.event-card {
    min-width: 100%;
    height: 420px;
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 30px 60px rgba(0,0,0,0.07);
    margin-bottom: 10px;
    border: 1px solid rgba(0,0,0,0.03);
}

.event-img-wrapper {
    width: 45%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.event-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.event-card:hover .event-img {
    transform: scale(1.15) rotate(2deg);
}

.event-content {
    width: 55%;
    padding: 50px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-content h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #312E6B;
    margin: 15px 0;
    line-height: 1.2;
}

.view-more-btn {
    background: linear-gradient(90deg, #ff0080, #ff8c00);
    color: #fff !important;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 700;
    width: fit-content;
    box-shadow: 0 10px 20px rgba(255, 0, 128, 0.2);
    transition: 0.4s;
}

.view-more-btn:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 30px rgba(255, 0, 128, 0.4);
}

/* Navigation Buttons */
.nav-btn {
    width: 55px; height: 55px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    color: #312E6B;
    border: 1px solid #eee;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-btn:hover {
    background: #312E6B;
    color: #fff;
    transform: translateY(-5px);
}

@media (max-width: 991px) {
    .event-card { flex-direction: column; height: auto; border-radius: 20px; }
    .event-img-wrapper { width: 100%; height: 250px; }
    .event-content { width: 100%; padding: 30px; }
    .event-content h3 { font-size: 1.6rem; }
}

/* ---------------------------------- */
/* 8. WHY CHOOSE US SECTION
/* ---------------------------------- */
#why-choose-us {
    background-color: var(--light-bg-darker); /* Match about section */
}

.choice-card {
    background-color: var(--card-bg); 
    padding: 30px 25px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #fff;
    box-shadow: 0 10px 30px rgba(var(--secondary-color-rgb), 0.07);
    height: 100%;
    transition: all 0.3s ease;
    /* Accent border is Green (Primary) */
    border-bottom: 4px solid var(--primary-color); 
}

.choice-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(var(--secondary-color-rgb), 0.12);
    /* Hover border is Gold (Accent) */
    border-bottom-color: var(--accent-color); 
}

.choice-icon {
    font-size: 3.5rem;
    /* Icon is Green (Primary) */
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.choice-card:hover .choice-icon {
    color: var(--accent-color);
}

.choice-title {
    /* Title is Blue (Secondary) */
    color: var(--secondary-color);
    font-weight: 700; 
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.choice-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--gray-text); 
}

/* ---------------------------------- */
/* 9. FLASH NEWS (From previous steps)
/* ---------------------------------- */
.flash-news-container {
    background: linear-gradient(270deg, var(--secondary-color), #252254, var(--secondary-color));
    background-size: 400% 400%;
    animation: subtleShift 20s ease infinite;
    padding: 5px 0; 
    border-bottom: 1px solid #252254; 
    overflow: hidden;
    box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.2);
}

@keyframes subtleShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.flash-news-content {
    display: flex;
    align-items: center;
}

.flash-title {
    background: linear-gradient(120deg, var(--accent-color), #f5d773, #d3af35);
    background-size: 200% 200%;
    animation: shimmer 5s linear infinite, floatGlow 3s ease-in-out infinite;
    color: var(--secondary-color); /* Blue text for contrast */
    font-weight: 800;
    padding: 8px 40px 8px 25px; 
    font-size: 0.9rem;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    clip-path: polygon(0 0, 95% 0, 100% 50%, 95% 100%, 0 100%);
    box-shadow: 0 0 18px rgba(243, 208, 70, 0.5);
    letter-spacing: 1px;
    z-index: 15;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.flash-title i {
    margin-right: 10px;
    font-size: 1.1em;
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes floatGlow {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 0 14px rgba(243, 208, 70, 0.6);
    }
    50% {
        transform: translateY(-2px);
        box-shadow: 0 0 20px rgba(243, 208, 70, 0.8);
    }
}

.marquee-wrapper {
    flex-grow: 1;
    overflow: hidden;
    margin-left: -15px; 
    z-index: 10;
    position: relative;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 70px;
    z-index: 20;
}
.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--secondary-color) 20%, transparent);
}
.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--secondary-color) 20%, transparent);
}

.marquee-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    white-space: nowrap;
    padding-left: 20px;
}

.marquee-list li {
    padding: 0 30px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}

.marquee-list li:hover {
    transform: scale(1.05);
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.marquee-list li::before {
    content: '\f111'; /* Font Awesome circle icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.6rem;
    color: var(--accent-color);
    margin-right: 12px;
    animation: pulse 2s infinite ease-in-out;
}

.marquee-list li a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}
.marquee-list li a:hover {
    color: var(--accent-color);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.7; }
}

@media (max-width: 767.98px) {
    #heroCarousel .carousel-item { height: 60vh; min-height: 400px; }
    #heroCarousel .carousel-caption h5 { font-size: 1.8rem; }
    #heroCarousel .carousel-caption p { font-size: 1rem; }
    .carousel-control-prev { left: 10px; }
    .carousel-control-next { right: 10px; }

    .flash-title {
        font-size: 0.8rem;
        padding: 6px 30px 6px 15px;
        clip-path: polygon(0 0, 95% 0, 100% 50%, 95% 100%, 0 100%);
    }
    .marquee-wrapper { margin-left: -10px; }
    .marquee-wrapper::before, .marquee-wrapper::after { width: 30px; }
    .marquee-list li { font-size: 0.85rem; padding: 0 15px; }

    .stat-box-1, .stat-box-2 {
        position: static; /* Stack on mobile */
        max-width: 300px;
        margin: 20px auto;
        animation: none; /* Disable floating on mobile */
    }
    .about-image-container { padding: 0; }
}


        /* ==================================== */
        /* 6. CTA LINK STYLING (e.g., Admission button if used) */
        /* ==================================== */
        .flash-title {
            /* Assuming --accent-color is the background color */
            color: var(--dark-text) !important;
            background-color: var(--accent-color) !important;
            font-weight: 600;
            font-size: 0.50rem;
            padding: 12px 15px; 
            border-radius: 8px;
            text-decoration: none;
            display: block;
            transition: all 0.3s ease-in-out;
            box-shadow: 0 4px 10px rgba(255, 193, 7, 0.4); 
            margin: 0 2px;
        }
        
        .flash-title:hover {
            opacity: 0.9;
            transform: translateY(-2px); 
            box-shadow: 0 6px 15px rgba(255, 193, 7, 0.6);
        }
        
        /* Adjustments for integration */
        .navbar-dark .navbar-nav .nav-item .flash-title {
            margin-left: 6px; 
        }
        .navbar-dark .navbar-nav .nav-item:last-child .flash-title {
             padding: 12px 15px; 
        }


        /* ==================================== */
        /* 7. MOBILE FIXES (<= 991px is mobile/tablet) */
        /* ==================================== */
        @media (max-width: 991px) {
             .bg-primary-dark {
                 border-radius: 0 0 12px 12px;
             }
             .navbar-dark .navbar-nav .nav-link {
                 transform: none !important;
                 box-shadow: none !important;
             }
             .flash-title {
                 margin: 5px 0;
                 padding: 10px 15px;
             }
             /* Ensure dropdown menus stack correctly on mobile click */
             .dropdown-menu {
                 position: static !important;
                 border: none !important;
                 box-shadow: none !important;
                 transform: none !important;
                 opacity: 1 !important;
                 visibility: visible !important;
             }
             
             .dropdown-submenu > .dropdown-menu {
                 padding-left: 20px; 
             }
        }
     

/* ==================================== */
/* 2. SECONDARY UTILITY BAR (TRENDY GLASSMORPHISM) */
/* ==================================== */

/* --- 2.1 Wrapper (Container for Contact Info & Menu) --- */
.secondary-nav-wrapper {
    /* Subtle Glassmorphism Effect: Transparent dark color (70% opacity) */
    background-color: #FFA500; 
    /* Add subtle backdrop blur (The Glass effect) */
    backdrop-filter: blur(5px); 
    -webkit-backdrop-filter: blur(5px);
    
    /* Subtle border-bottom for definition */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    
    /* Slightly taller bar and more horizontal padding */
    padding: 8px 30px; 
    
    /* KEY FLEXBOX: Display items and distribute space */
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    border-radius: 10px 10px 0px 0px;
}

/* --- 2.2 Contact Information (Left Side) --- */
.contact-info {
    /* Slightly less pure white for glass look */
    color: rgb(0,0,0); 
    font-size: 0.85rem;
    font-weight: 500;
    gap: 30px; /* More space between items */
    display: flex; 
    align-items: center;
}

.contact-item {
    padding: 2px 0; 
    transition: color 0.2s ease, transform 0.2s ease;
    text-decoration: none; 
    color: inherit; /* Inherits the slightly transparent white color */
}

/* Add a vertical separator between contact items */
.contact-item:not(:last-child) {
    /* A thin, low-opacity white line for visual separation */
    border-right: 1px solid rgb(0,0,0); 
    padding-right: 30px;
}

/* Enhancing the Icons/Initial Characters */
.contact-item:first-letter {
    color: var(--accent-color); /* Highlight the icon/first letter with accent color */
    font-weight: 500; /* Subtle look */
    margin-right: 2px; 
    font-size: 0.9rem; /* Slightly smaller for better flow */
    display: inline-block;
}

/* Hover effect */
.contact-item:hover {
    color: rgb(48, 25, 52); 
    /* Use scale instead of translate for a smoother/subtler effect */
    transform: scale(1.03); 
}

/* --- 2.3 Secondary Menu List (Right Side) --- */
.secondary-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px; /* Slightly more space */
}

.secondary-nav-list li {
    display: inline-block; 
    flex-shrink: 0; 
}

.secondary-nav-list a {
    color: #f8f9fa;  /* Subtle transparency */
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 5px 0; /* Vertical padding is 0 for cleaner look */
    transition: all 0.2s ease;
    text-transform: capitalize; /* More subtle than uppercase */
}

.secondary-nav-list a:hover {
    color: rgb(48, 25, 52);  
    /* Remove background color change, use underline for modern accent */
    border-bottom: 1px solid rgb(48, 25, 52); ; 
    padding-bottom: 3px;
    background-color: transparent;
}

/* --- 2.4 Admission CTA Styling (The Flash Title) --- */
.flash-title-secondary {
    /* Use a subtle gradient for a premium metallic look (Gold) */
    background-color:  #06052e;
    color: #f9f9f9;
    font-weight: 700 !important;
    padding: 6px 14px !important; 
    border-radius: 20px !important; /* Pill shape is very modern */
    box-shadow: 0 3px 10px (0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.flash-title-secondary:hover {
    transform: translateY(-2px); /* Lift effect */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
    opacity: 1; /* Keep opacity at 1 */
     background-color: var(--light-bg);
}



/* ==================================== */
/* 3. MOBILE ADJUSTMENTS (Max 767px) */
/* ==================================== */
@media (max-width: 767px) {
    .secondary-nav-wrapper {
        /* Remove backdrop blur for better mobile performance */
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background-color: #D3AF35; /* Solid color on mobile */
        
        /* Enable horizontal scrolling for the entire bar */
        overflow-x: auto; 
        white-space: nowrap;
        justify-content: flex-start; 
        padding-top: 10px;
        padding-bottom: 10px;
        padding-left: 15px; /* Ensure some padding on the left */
        padding-right: 15px; /* Ensure some padding on the right */
        
        /* Hide scrollbar for a cleaner look */
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .secondary-nav-wrapper::-webkit-scrollbar {
        display: none; 
    }
    
    /* Contact info adjustments for scrolling */
    .contact-info {
        flex-shrink: 0; 
        margin-right: 20px; 
        font-size: 0.75rem; /* Tighter font size for small screens */
    }
    
    /* Remove the vertical separator on mobile for better flow */
    .contact-item:not(:last-child) {
        border-right: none; 
        padding-right: 0;
    }
    
    .contact-item {
        margin-right: 15px; 
        display: inline-block;
    }
    
    /* Menu list adjustments for scrolling */
    .secondary-nav-list {
        flex-shrink: 0;
        width: max-content; 
    }
    
    /* Tighter font size for menu links */
    .secondary-nav-list a {
        font-size: 0.75rem;
        padding: 5px 5px;
        border-bottom: none; /* Remove desktop hover effect */
    }
    
    .contact-item:first-letter {
        font-size: 0.85rem; 
    }

    .flash-title-secondary {
        /* Tighter padding for CTA on mobile */
        padding: 5px 10px !important;
        font-size: 0.75rem !important;
        color: #f9f9f9;
    }
}
/* ------------------------------------------------ */
/* 9. COURSES SECTION - PREMIUM REVEAL STYLE
/* ------------------------------------------------ */
#courses {
    background-color: var(--light-bg);
    padding: 80px 0;
}

.course-card {
    position: relative;
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    height: 320px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* Background Department Icon Pattern */
.course-card::before {
    content: "\f19d"; /* Graduation Cap Icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    font-size: 8rem;
    bottom: -20px;
    right: -20px;
    color: var(--primary-color);
    opacity: 0.03;
    transition: 0.5s;
}

.course-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(var(--secondary-color-rgb), 0.2);
}

.course-card:hover::before {
    transform: scale(1.2) rotate(-15deg);
    opacity: 0.07;
}

.course-body {
    padding: 40px 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.course-icon-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
    transition: 0.5s;
    box-shadow: 0 10px 20px rgba(var(--primary-color-rgb), 0.3);
}

.course-card:hover .course-icon-circle {
    transform: scale(1.1) rotateY(180deg);
    background: var(--accent-color);
}

.course-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 10px;
    line-height: 1.3;
}

.course-dept {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    font-weight: 700;
}

/* --- The Reveal Overlay --- */
.course-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(49, 46, 107, 0.95); /* Secondary color with opacity */
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-card:hover .course-overlay {
    opacity: 1;
    transform: translateY(0);
}

.course-overlay p {
    color: #eee;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.btn-course-outline {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-course-outline:hover {
    background: var(--accent-color);
    color: #000;
}

/* === MOBILE FIX === */
@media (max-width: 768px) {
    .course-card { height: 280px; }
    .course-title { font-size: 1.1rem; }
}

