/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}


.top-bar {
    font-size: 0.9rem;
    background-color: #d81616;
}

.top-bar .contact-info i,
.top-bar .social-links i {
    color: #333;
}

.top-bar .social-links a {
    margin-left: 10px;
    color: #333;
    transition: color 0.3s ease;
}

.top-bar .social-links a:hover {
    color: #007bff;
}

.contact-info {
    display: flex;
    align-items: center;
}

.contact-info i {
    color: #f1eded;
}

.separator {
    color: #adb5bd;
}

.social-links {
    display: inline-flex;
    gap: 20px;
}

.social-links a {
    color: #4D4F53;
    font-size: 16px;
    transition: all 0.3s;
}

.social-links a:hover {
    transform: translateY(-2px);
}

.fa-facebook-f:hover {
    color: #3b5998;
}

.fa-instagram:hover {
    color: #e1306c;
}

.fa-twitter:hover {
    color: #1da1f2;
}

.fa-youtube:hover {
    color: #ff0000;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .col-md-6 {
        width: 100%;
        text-align: center !important;
    }

    .contact-info {
        justify-content: center;
        margin-bottom: 10px;
    }

    .social-links {
        justify-content: center;
    }
}

.hero {
    height: 100vh;
    min-height: 600px;
}

/* Marquee Background Container */
.marquee-bg {
    overflow: hidden;
    z-index: 0;
}

/* Marquee Track */
.marquee-track {
    display: flex;
    width: 500%;
    /* 5 images (3 original + 2 duplicates) */
    height: 100%;
    animation: scroll 30s linear infinite;
    will-change: transform;
}

/* Individual Slides */
.marquee-slide {
    flex: 0 0 20%;
    /* 100% / 5 images */
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Animation Keyframes */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-60%);
        /* Move by 3 slides (60%) */
    }
}

/* Overlay */
.overlay {
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* Content Positioning */
.position-relative.z-1 {
    z-index: 2;
}

/* Highlight Text */
.highlight {
    color: #8C1515;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero {
        min-height: 500px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero .lead {
        font-size: 1rem;
    }

    .hero {
        min-height: 450px;
    }

    .marquee-track {
        animation-duration: 40s;
        /* Slower on mobile */
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .btn-lg {
        color: #8C1515;
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.section-title span {
    color: #8C1515;
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
}

.section-title h2 {
    font-size: 36px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.section-title p {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.single-features {
    background-color: #f0efe6;
    padding: 30px;
    border-radius: 5px;
    margin-bottom: 30px;
    transition: all 0.5s ease;
    text-align: center;
    box-shadow: 0 0 15px #0000000d;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid #e0dfd8;

}

.feature-heading {
    font-size: 1.5rem;
    font-weight: 600;
}

.single-features::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: #8C1515;
    z-index: -1;
    transition: height 0.5s ease;
}

.single-features:hover {
    transform: translateY(-10px);
    background-color: #e8e8e0;
}

.single-features:hover::before {
    height: 100%;
}

.single-features:hover .icon {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.single-features:hover h3,
.single-features:hover p {
    color: #ffffff;
    transition: color 0.3s ease 0.2s;
    /* Delay text color change */
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #0000;
}

.single-features,
.academic-card {
    transform-style: preserve-3d;
    backface-visibility: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
        box-shadow 0.3s ease;
}

.single-features:hover,
.academic-card:hover {
    transform: translateY(-5px) rotateX(2deg) rotateY(2deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2), 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Top Bar */
.top-bar {
    background-color: #8C1515;
    color: white;
    font-size: 0.9rem;
}

.top-bar a {
    color: white;
    text-decoration: none;
}

.top-bar a:hover {
    text-decoration: underline;
}

/* Header */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
}

.navbar-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #8C1515;
}

.navbar-brand p {
    font-size: 0.7rem;
    color: #4D4F53;
}

.nav-link {
    font-weight: 500;
    padding: 5.4rem 1rem !important;
}

/* Hero Section */
/* Existing CSS remains the same */
/* Enhanced Video Styles */
.video-container {
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.enhanced-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    filter: brightness(0.85);
    transition: filter 0.5s ease;
}

.video-container:hover .enhanced-video {
    filter: brightness(1) saturate(1.1);
}

.video-overlay {
    background: linear-gradient(45deg,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(0, 0, 0, 0.7) 100%);
    mix-blend-mode: multiply;
    animation: overlay-shift 20s infinite linear;
}

@keyframes overlay-shift {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}

/* Video Content Enhancements */
.video-content {
    position: relative;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
    background: rgba(140, 21, 21, 0.9);
}

.video-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(140, 21, 21, 0.4);
    backdrop-filter: blur(5px);
}

/* Fallback Image Styling */
.video-fallback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    display: none;
    /* Only shows if video fails */
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .enhanced-video {
        filter: brightness(0.8);
    }

    .video-overlay {
        background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
    }
}


/* Academics Section */
/* Academic Programs Section Styles */
.academics-section {
    position: relative;
    overflow: hidden;
}

.section-title {
    position: relative;
    margin-bottom: 1.5rem;
}

.academic-card {
    border-radius: 12px !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    background: white;
}

.academic-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.card-img-container {
    height: 180px;
    overflow: hidden;
}

.card-img-top {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.academic-card:hover .card-img-top {
    transform: scale(1.05);
}

.program-icon svg,
.program-icon svg * {
    color: #8C1515;
    /* Stanford Red or any deep red */
    fill: #8C1515;
}

.program-icon {
    color: #8C1515;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background-color: rgba(140, 21, 21, 0.1);
}

.bg-primary-light {
    background-color: rgba(140, 21, 21, 0.1);
}

.transition-all {
    transition: all 0.3s ease;
}

.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

/* Text and Color Utilities */
.text-primary {
    color: #8C1515 !important;
}

.text-muted {
    color: #4D4F53 !important;
}

.text-dark {
    color: #212529 !important;
}

.bg-light {
    background-color: #f8f9fa !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card-img-container {
        height: 160px;
    }

    .card-body {
        padding: 1.5rem !important;
    }
}


/* Testimonials */
.testimonial-text {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 5px;
}

.testimonial-text:before {
    content: '\201C';
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.1);
    position: absolute;
    top: -20px;
    left: 10px;
}

/* Footer */
.footer {
    background-color: #212529;
}

.footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white;
}

.social-links a {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: #8C1515;
}

/* Animations */
.animate__animated {
    visibility: visible !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        min-height: 60vh;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .navbar-brand h1 {
        font-size: 1.2rem;
    }
}

.marquee-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 2rem 0;
    background-color: #ffffff !important;
    /* optional */
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: scroll-left 20s linear infinite;
    gap: 2rem;
}

.stat-card {
    min-width: 250px;
    flex-shrink: 0;
    background: #f5f5dc !important;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e5d5;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    perspective: 500px;
}

.stat-card:hover {
    background: #f0f0e0 !important;
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    /* Slightly darker warm beige on hover */
}

/* Dynamic Floating Shadow */
.stat-card::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: 50%;
    width: 80%;
    height: 20%;
    background: radial-gradient(ellipse at center,
            rgba(0, 0, 0, 0.2) 0%,
            rgba(0, 0, 0, 0) 80%);
    transform: translateX(-50%);
    filter: blur(5px);
    transition: all 0.3s ease;
    z-index: -1;
}

.stat-card:hover::after {
    bottom: -15%;
    width: 100%;
    opacity: 0.4;
}

/* Animated Gradient Border */
.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(45deg,
            rgba(140, 21, 21, 0.1) 0%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(140, 21, 21, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: border-glow 3s linear infinite;
}

@keyframes border-glow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.stat-card:hover::before {
    opacity: 1;
}

/* Hover Shine Effect */
.stat-card:hover .shine-overlay {
    animation: marquee-shine 1.5s ease;
}

.shine-overlay {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            rgba(255, 255, 255, 0) 25%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0) 75%);
    transform: rotate(45deg);
    opacity: 0;
}

@keyframes marquee-shine {
    0% {
        left: -50%;
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        left: 150%;
        opacity: 0;
    }
}

/* Particle Animation */
.stat-card-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.stat-card-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(140, 21, 21, 0.2);
    animation: particle-flow 4s linear infinite;
}

@keyframes particle-flow {
    0% {
        transform: translateY(-100%) translateX(0);
    }

    100% {
        transform: translateY(200%) translateX(100px);
    }
}

/* Mobile Optimization */
@media (max-width: 768px) {

    .stat-card::before,
    .stat-card::after {
        display: none;
    }

    .stat-card:hover {
        transform: scale(1.02);
    }
}

/* Animation */
@keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Left-to-Right Typing Effect (No Cursor) */
@keyframes typing-ltr {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

.typing-animation {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    animation: typing-ltr 3s steps(40, end) forwards;
}

/* Animation timing */
.typing-animation:first-child {
    animation-delay: 0.2s;
}

.typing-animation:last-child {
    animation-delay: 0.3s;
    /* Starts after first animation completes */
    color: #8C1515;
    /* Your highlight color */
}

.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: black; /* base background */
}

.slideshow-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fadeToBlack 9s infinite;
}

.slideshow-slide::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
}
/* Dark overlay mask */
.slideshow-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Adjust opacity as needed */
    z-index: 1;
}


.slideshow-slide:nth-child(1) {
    animation-delay: 0s;
}
.slideshow-slide:nth-child(2) {
    animation-delay: 3s;
}
.slideshow-slide:nth-child(3) {
    animation-delay: 6s;
}

@keyframes fadeToBlack {
    0%, 100% {
        opacity: 0;
    }
    10%, 30% {
        opacity: 1;
    }
    40%, 90% {
        opacity: 0;
    }
}

@keyframes fadeLoop {
    0%, 100% {
        opacity: 0;
    }
    10%, 30% {
        opacity: 1;
    }
    40%, 90% {
        opacity: 0;
    }
}


/* Ensure hero content stays above slideshow */
.hero {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-top: 20vh;
}

@media (max-width: 768px) {
    .hero {
        padding-top: 10vh;
    }

    .slideshow-container {
        height: 80vh;
    }
}


.video-overlay {
    background: rgba(0, 0, 0, 0.5);
    /* Slightly stronger overlay for punch */
    z-index: 1;
    pointer-events: none;
}

.marquee-container .stat-card i {
    color: #8c1515 !important;
}

.btn {
    background-color: #8C1515;
    color: white;
    border: none;
}

.btn:hover {
    background-color: #6a1010;
    color: white;
}

.btn-primary {
    background-color: #8C1515 !important;
    /* School's maroon color */
    border-color: #8C1515 !important;
}

.btn-primary:hover {
    background-color: #6a1010 !important;
    /* Darker shade for hover */
    border-color: #6a1010 !important;
}

/* Update outline button colors */
.btn-outline-primary {
    color: #8C1515 !important;
    border-color: #8C1515 !important;
}

.btn-outline-primary:hover {
    background-color: #8C1515 !important;
    color: white !important;
}

.btn-primary:focus,
.btn-primary:active {
    box-shadow: 0 0 0 0.25rem rgba(140, 21, 21, 0.5);
    background-color: #6a1010;
    border-color: #6a1010;
}

.feature-heading {
    font-size: 2rem;
    /* Slightly smaller size */
    text-decoration: underline;
    /* Underline effect */
}

.feature-heading:hover {
    color: #ff6347;
    /* Change to a vibrant color on hover */
    text-shadow: 0 0 10px rgba(255, 99, 71, 0.8), 0 0 20px rgba(255, 99, 71, 0.6);
    transform: scale(1.1);
    /* Slight zoom-in effect */
}

/* Flip + Fade Animation */
.flip-fade-box {
    perspective: 1000px;
    transform-style: preserve-3d;
    opacity: 0;
    transform: rotateY(90deg);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.flip-fade-box.visible {
    opacity: 1;
    transform: rotateY(0deg);
}

/* Staggered Animation Delay */
.features-area .col-lg-3:nth-child(1) {
    transition-delay: 0.2s;
}

.features-area .col-lg-3:nth-child(2) {
    transition-delay: 0.4s;
}

.features-area .col-lg-3:nth-child(3) {
    transition-delay: 0.6s;
}

.features-area .col-lg-3:nth-child(4) {
    transition-delay: 0.8s;
}

.academics-section .col-md-6:nth-child(1) {
    transition-delay: 0.2s;
}

.academics-section .col-md-6:nth-child(2) {
    transition-delay: 0.4s;
}

.academics-section .col-md-6:nth-child(3) {
    transition-delay: 0.6s;
}

/* News Section Specific Animations */
.news-section .flip-fade-box {
    perspective: 1200px;
}

.news-section .flip-fade-box:nth-child(1) {
    transition-delay: 0.2s;
}

.news-section .flip-fade-box:nth-child(2) {
    transition-delay: 0.4s;
}

.news-section .flip-fade-box:nth-child(3) {
    transition-delay: 0.6s;
}

/* News Card 3D Enhancements */
.news-card {
    min-height: 400px;
    /* Adjust as needed */
    max-height: 450px;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
        box-shadow 0.3s ease;
}

.news-card .card-body {
    overflow: hidden;
    display: -webkit-box;
    /* Limit text lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* Hide overflow */
    text-overflow: ellipsis;
}

.news-card:hover {
    transform: translateY(-5px) rotateX(1.5deg) rotateY(1.5deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2) !important;
}

/* Image Hover Effect */
.news-card img {
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.news-card:hover img {
    transform: scale(1.08) rotateZ(0.5deg);
}

/* News Section Specific Animations */
.news-section .flip-fade-box {
    perspective: 1200px;
}

.news-section .flip-fade-box:nth-child(1) {
    transition-delay: 0.2s;
}

.news-section .flip-fade-box:nth-child(2) {
    transition-delay: 0.4s;
}

.news-section .flip-fade-box:nth-child(3) {
    transition-delay: 0.6s;
}

/* News Card 3D Enhancements */
.news-card {
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
        box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px) rotateX(1.5deg) rotateY(1.5deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2) !important;
}

/* Image Hover Effect */
.news-card img {
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.news-card:hover img {
    transform: scale(1.08) rotateZ(0.5deg);
}

.hover-dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Transparent & Stylish Dropdown */
.custom-dropdown {
    background: rgba(255, 255, 255, 0.85);
    /* slight blur if needed */
    backdrop-filter: blur(5px);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

/* Dropdown items hover */
.dropdown-item:hover {
    background-color: rgba(140, 21, 21, 0.1);
    color: #8c1515;
    font-weight: 500;
}

/* Active Item in Red */
.dropdown-item.active {
    color: #fff;
    background-color: #8c1515;
    font-weight: bold;
}

/* Custom Arrow Icon */
.custom-arrow::after {
    content: " ▼";
    /* arrow character */
    font-size: 0.7rem;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

/* Rotate arrow on hover */
.hover-dropdown:hover .custom-arrow::after {
    transform: rotate(180deg);
}

.dropdown-item.active {
    background-color: #8c1515 !important;
    /* red background */
    color: #ffffff !important;
    /* white text */
    font-weight: 600;
}

/* Ensure no blue default styles override it */
.dropdown-item:focus,
.dropdown-item:active {
    background-color: #8c1515 !important;
    color: #ffffff !important;
}

/* Dropdown item hover effect */
.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item:active {
    background-color: #8c1515 !important;
    /* red background */
    color: #ffffff !important;
    /* white text */
}

/* Academic Program Cards */
.academic-card {
    border-top: 4px solid #8C1515;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.academic-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #8C1515;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.academic-card:hover::before {
    transform: scaleX(1);
}

/* News Cards */
.news-card {
    border: 1px solid rgba(140, 21, 21, 0.15);
    position: relative;
}

.news-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right,
            rgba(140, 21, 21, 0.05) 0%,
            rgba(140, 21, 21, 0.02) 100%);
    z-index: 1;
    pointer-events: none;
}

.news-card .btn-outline-primary {
    border-width: 1.5px;
}

/* Card Header Accents */
.card-img-top-container {
    position: relative;
    overflow: hidden;
}

.card-img-top-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #8C1515;
    transform: translateY(4px);
    transition: transform 0.3s ease;
}

.academic-card:hover .card-img-top-container::after {
    transform: translateY(0);
}

/* Date Styling */
.news-date {
    color: #8C1515 !important;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Read More Button Hover */
.news-card .btn-outline-primary:hover {
    background: #6a1010 !important;
    border-color: #6a1010 !important;
}

html {
    scroll-behavior: smooth;
}

/* Optional: Force right alignment (if dropdown-menu-end isn't enough) */
.dropdown-menu.custom-dropdown {
    right: 0 !important;
    left: auto !important;
    margin-top: 0;
    /* Remove default dropdown spacing if needed */
}

/* Multi-level dropdown (right side) */
.dropdown-submenu .submenu {
    top: 0;
    left: 100%;
    margin-left: 0.1rem;
    display: none;
    position: absolute;
    border-radius: 0.375rem;
    background-color: white;
    z-index: 1050;
}

.dropdown-submenu:hover>.submenu {
    display: block;
}

.dropdown-submenu>a::after {
    content: "▶";
    float: right;
    margin-top: 5px;
    font-size: 0.7rem;
}

.submenu {
    transition: all 0.2s ease;
}

/* Submenu opens to the right */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>.dropdown-item {
    position: relative;
}

.dropdown-submenu>.dropdown-item::after {
    content: "▶";
    position: absolute;
    right: 10px;
    font-size: 0.7rem;
}


/* Only show submenu when hovering on Management specifically */
.dropdown-submenu .submenu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 0.2rem;
    background: #fff;
    min-width: 220px;
    border-radius: 0.375rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1050;
}

/* Show only when hovering directly on the .submenu-trigger */
.dropdown-submenu:hover>.submenu {
    display: block;
    opacity: 1;
    font-size: visible;
}

/* Optional: remove default caret */
.dropdown-submenu>a::after {
    display: none;
}

/* Small subtle arrow to the right */
.submenu-trigger span {
    font-size: 1rem;
    color: #8C1515;
}

/* Prevent submenus from showing automatically */
.dropdown-menu .dropdown-submenu .submenu {
    display: none !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

/* Show submenu only when hovering directly on 'Management' */
.dropdown-menu .dropdown-submenu:hover>.submenu {
    display: block !important;
    opacity: 1;
    visibility: visible;
}

.aspect-ratio-box {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.aspect-ratio-box img {
    object-fit: cover;
    /* Ensures images fill the space without stretching */
}

.card-text {
    max-height: 4.5em;
    /* Approx 3 lines (1.5em per line) */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
}

.card-text::after {
    content: "...";
    position: absolute;
    bottom: 0;
    right: 0;
    background: white;
    /* Match card background */
    padding-left: 5px;
}

/* Ensure flex items wrap properly on mobile */
.top-bar .d-flex {
    gap: 10px;
    /* Adds spacing between contact info and social links */
}

/* Adjust spacing for contact info and social links */
.contact-info {
    white-space: nowrap;
    /* Prevents phone/email from breaking into multiple lines */
}

.social-links {
    display: flex;
    gap: 10px;
    /* Spacing between social icons */
}

/* Hide desktop social links on mobile */
.d-none.d-md-block {
    display: none;
}

/* Show mobile social links only on mobile */
.d-md-none {
    display: flex;
}

/* On larger screens, revert to original layout */
@media (min-width: 768px) {
    .d-md-none {
        display: none !important;
    }

    .d-none.d-md-block {
        display: block !important;
    }
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.top-bar {
    background-color: #f5f5dc;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
}

.contact-info {
    display: flex;
    align-items: center;
}

.contact-info i {
    color: #f1eded;
}

.separator {
    color: #adb5bd;
}

.social-links {
    display: inline-flex;
    gap: 20px;
}

.social-links a {
    color: #4D4F53;
    font-size: 16px;
    transition: all 0.3s;
}

.social-links a:hover {
    transform: translateY(-2px);
}

.fa-facebook-f:hover {
    color: #3b5998;
}

.fa-instagram:hover {
    color: #e1306c;
}

.fa-twitter:hover {
    color: #1da1f2;
}

.fa-youtube:hover {
    color: #ff0000;
}

/* Hero Section - Mobile Optimized */
.hero {
    height: 100vh;
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
}


.video-overlay {
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    pointer-events: none;
}

/* Content Container - Mobile Optimized */
.hero .container {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.hero h3 {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero .lead {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Typing Animation */
@keyframes typing-ltr {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

.typing-animation {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    animation: typing-ltr 3s steps(40, end) forwards;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .hero h3 {
        font-size: 1.5rem;
    }

    .hero .lead {
        font-size: 1.25rem;
    }

    .hero .btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
}

@media (min-width: 992px) {
    .hero h3 {
        font-size: 3rem;
    }
}

/* Ensure flex items wrap properly on mobile */
.top-bar .d-flex {
    gap: 10px;
}

.contact-info {
    white-space: nowrap;
}

.social-links {
    display: flex;
    gap: 10px;
}

/* Hide desktop social links on mobile */
.d-none.d-md-block {
    display: none;
}

/* Show mobile social links only on mobile */
.d-md-none {
    display: flex;
}

/* On larger screens, revert to original layout */
@media (min-width: 768px) {
    .d-md-none {
        display: none !important;
    }

    .d-none.d-md-block {
        display: block !important;
    }
}

@media (max-width: 576px) {
    .hero h3 {
        font-size: 1.rem;
    }

    .hero .lead {
        font-size: 0.95rem;
    }

    .hero .btn-lg {
        font-size: 1rem;
        padding: 0.6rem 1.2rem;
        width: 100%;
        max-width: 280px;
    }

    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* Rest of your existing CSS remains unchanged */
.section-title {
    text-align: center;
    margin-bottom: 60px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.section-title span {
    color: #8C1515;
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
}

.section-title h2 {
    font-size: 36px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.section-title p {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.single-features {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 5px;
    margin-bottom: 30px;
    transition: all 0.5s ease;
    text-align: center;
    box-shadow: 0 0 15px #0000000d;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-heading {
    font-size: 1.5rem;
    font-weight: 600;
}

.single-features::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: #8C1515;
    z-index: -1;
    transition: height 0.5s ease;
}

.single-features:hover {
    transform: translateY(-10px);
}

.single-features:hover::before {
    height: 100%;
}

.single-features:hover .icon {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.single-features:hover h3,
.single-features:hover p {
    color: #ffffff;
    transition: color 0.3s ease 0.2s;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #0000;
}

.single-features,
.academic-card {
    transform-style: preserve-3d;
    backface-visibility: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
        box-shadow 0.3s ease;
}

.single-features:hover,
.academic-card:hover {
    transform: translateY(-5px) rotateX(2deg) rotateY(2deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2), 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Top Bar */
.top-bar {
    background-color: #8C1515;
    color: white;
    font-size: 0.9rem;
}

.top-bar a {
    color: white;
    text-decoration: none;
}

.top-bar a:hover {
    text-decoration: underline;
}

/* Header */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #8C1515;
}

.navbar-brand p {
    font-size: 0.7rem;
    color: #4D4F53;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
}

.navbar-brand img {
    max-height: 40px;
    /* adjust this value as needed */
}

/* Reduce spacing around nav links */
.navbar-nav .nav-link {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    margin: 0 0.5rem;
}

.navbar {
    margin-bottom: 0 !important;
}

/* Video Styles */
.video-container {
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.enhanced-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    filter: brightness(0.85);
    transition: filter 0.5s ease;
}

.video-container:hover .enhanced-video {
    filter: brightness(1) saturate(1.1);
}

.video-overlay {
    background: linear-gradient(45deg,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(0, 0, 0, 0.7) 100%);
    mix-blend-mode: multiply;
    animation: overlay-shift 20s infinite linear;
}

@keyframes overlay-shift {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}

/* Video Content Enhancements */
.video-content {
    position: relative;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
    background: rgba(140, 21, 21, 0.9);
}

.video-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(140, 21, 21, 0.4);
    backdrop-filter: blur(5px);
}

/* Fallback Image Styling */
.video-fallback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    display: none;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .enhanced-video {
        filter: brightness(0.8);
    }

    .video-overlay {
        background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
    }
}

/* Academics Section */
.academics-section {
    position: relative;
    overflow: hidden;
}

.section-title {
    position: relative;
    margin-bottom: 1.5rem;
}

.academic-card {
    border-radius: 12px !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    background: white;
}

.academic-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.card-img-container {
    height: 180px;
    overflow: hidden;
}

.card-img-top {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.academic-card:hover .card-img-top {
    transform: scale(1.05);
}

.program-icon svg,
.program-icon svg * {
    color: #8C1515;
    fill: #8C1515;
}

.program-icon {
    color: #8C1515;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background-color: rgba(140, 21, 21, 0.1);
}

.bg-primary-light {
    background-color: rgba(140, 21, 21, 0.1);
}

.transition-all {
    transition: all 0.3s ease;
}

.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

/* Text and Color Utilities */
.text-primary {
    color: #8C1515 !important;
}

.text-muted {
    color: #4D4F53 !important;
}

.text-dark {
    color: #212529 !important;
}

.bg-light {
    background-color: #f8f9fa !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card-img-container {
        height: 160px;
    }

    .card-body {
        padding: 1.5rem !important;
    }
}

/* Testimonials */
.testimonial-text {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 5px;
}

.testimonial-text:before {
    content: '\201C';
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.1);
    position: absolute;
    top: -20px;
    left: 10px;
}

/* Footer */
.footer {
    background-color: #212529;
}

.footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white;
}

.social-links a {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: #8C1515;
}

/* Animations */
.animate__animated {
    visibility: visible !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        min-height: 60vh;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .navbar-brand h1 {
        font-size: 1.2rem;
    }
}

.marquee-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 2rem 0;
    background-color: #f8f9fa;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: scroll-left 20s linear infinite;
    gap: 2rem;
}

.stat-card {
    min-width: 250px;
    flex-shrink: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Animation */
@keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-container .stat-card i {
    color: #8c1515 !important;
}

.btn {
    background-color: #8C1515;
    color: white;
    border: none;
}

.btn:hover {
    background-color: #6a1010;
    color: white;
}

.btn-primary {
    background-color: #8C1515 !important;
    border-color: #8C1515 !important;
}

.btn-primary:hover {
    background-color: #6a1010 !important;
    border-color: #6a1010 !important;
}

.btn-outline-primary {
    color: #8C1515 !important;
    border-color: #8C1515 !important;
}

.btn-outline-primary:hover {
    background-color: #8C1515 !important;
    color: white !important;
}

.btn-primary:focus,
.btn-primary:active {
    box-shadow: 0 0 0 0.25rem rgba(140, 21, 21, 0.5);
    background-color: #6a1010;
    border-color: #6a1010;
}

.feature-heading {
    font-size: 2rem;
    text-decoration: underline;
}

.feature-heading:hover {
    color: #ff6347;
    text-shadow: 0 0 10px rgba(255, 99, 71, 0.8), 0 0 20px rgba(255, 99, 71, 0.6);
    transform: scale(1.1);
}

/* Flip + Fade Animation */
.flip-fade-box {
    perspective: 1000px;
    transform-style: preserve-3d;
    opacity: 0;
    transform: rotateY(90deg);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.flip-fade-box.visible {
    opacity: 1;
    transform: rotateY(0deg);
}

/* Staggered Animation Delay */
.features-area .col-lg-3:nth-child(1) {
    transition-delay: 0.2s;
}

.features-area .col-lg-3:nth-child(2) {
    transition-delay: 0.4s;
}

.features-area .col-lg-3:nth-child(3) {
    transition-delay: 0.6s;
}

.features-area .col-lg-3:nth-child(4) {
    transition-delay: 0.8s;
}

.academics-section .col-md-6:nth-child(1) {
    transition-delay: 0.2s;
}

.academics-section .col-md-6:nth-child(2) {
    transition-delay: 0.4s;
}

.academics-section .col-md-6:nth-child(3) {
    transition-delay: 0.6s;
}

/* News Section Specific Animations */
.news-section .flip-fade-box {
    perspective: 1200px;
}

.news-section .flip-fade-box:nth-child(1) {
    transition-delay: 0.2s;
}

.news-section .flip-fade-box:nth-child(2) {
    transition-delay: 0.4s;
}

.news-section .flip-fade-box:nth-child(3) {
    transition-delay: 0.6s;
}

/* News Card 3D Enhancements */
.news-card {
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
        box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px) rotateX(1.5deg) rotateY(1.5deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2) !important;
}

/* Image Hover Effect */
.news-card img {
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.news-card:hover img {
    transform: scale(1.08) rotateZ(0.5deg);
}

.hover-dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Transparent & Stylish Dropdown */
.custom-dropdown {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

/* Dropdown items hover */
.dropdown-item:hover {
    background-color: rgba(140, 21, 21, 0.1);
    color: #8c1515;
    font-weight: 500;
}

/* Active Item in Red */
.dropdown-item.active {
    color: #fff;
    background-color: #8c1515;
    font-weight: bold;
}

/* Custom Arrow Icon */
.custom-arrow::after {
    content: " ▼";
    font-size: 0.7rem;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

/* Rotate arrow on hover */
.hover-dropdown:hover .custom-arrow::after {
    transform: rotate(180deg);
}

.dropdown-item.active {
    background-color: #8c1515 !important;
    color: #ffffff !important;
    font-weight: 600;
}

/* Ensure no blue default styles override it */
.dropdown-item:focus,
.dropdown-item:active {
    background-color: #8c1515 !important;
    color: #ffffff !important;
}

/* Dropdown item hover effect */
.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item:active {
    background-color: #8c1515 !important;
    color: #ffffff !important;
}

/* Academic Program Cards */
.academic-card {
    border-top: 4px solid #8C1515;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.academic-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #8C1515;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.academic-card:hover::before {
    transform: scaleX(1);
}

/* News Cards */
.news-card {
    border: 1px solid rgba(140, 21, 21, 0.15);
    position: relative;
}

.news-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right,
            rgba(140, 21, 21, 0.05) 0%,
            rgba(140, 21, 21, 0.02) 100%);
    z-index: 1;
    pointer-events: none;
}

.news-card .btn-outline-primary {
    border-width: 1.5px;
}

/* Card Header Accents */
.card-img-top-container {
    position: relative;
    overflow: hidden;
}

.card-img-top-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #8C1515;
    transform: translateY(4px);
    transition: transform 0.3s ease;
}

.academic-card:hover .card-img-top-container::after {
    transform: translateY(0);
}

/* Date Styling */
.news-date {
    color: #8C1515 !important;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Read More Button Hover */
.news-card .btn-outline-primary:hover {
    background: #6a1010 !important;
    border-color: #6a1010 !important;
}

html {
    scroll-behavior: smooth;
}

/* Optional: Force right alignment (if dropdown-menu-end isn't enough) */
.dropdown-menu.custom-dropdown {
    right: 0 !important;
    left: auto !important;
    margin-top: 0;
}

/* Multi-level dropdown (right side) */
.dropdown-submenu .submenu {
    top: 0;
    left: 100%;
    margin-left: 0.1rem;
    display: none;
    position: absolute;
    border-radius: 0.375rem;
    background-color: white;
    z-index: 1050;
}

.dropdown-submenu:hover>.submenu {
    display: block;
}

.dropdown-submenu>a::after {
    content: "▶";
    float: right;
    margin-top: 5px;
    font-size: 0.7rem;
}

.submenu {
    transition: all 0.2s ease;
}

/* Submenu opens to the right */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>.dropdown-item {
    position: relative;
}

.dropdown-submenu>.dropdown-item::after {
    content: "▶";
    position: absolute;
    right: 10px;
    font-size: 0.7rem;
}

/* Only show submenu when hovering on Management specifically */
.dropdown-submenu .submenu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 0.2rem;
    background: #fff;
    min-width: 220px;
    border-radius: 0.375rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1050;
}

/* Show only when hovering directly on the .submenu-trigger */
.dropdown-submenu:hover>.submenu {
    display: block;
    opacity: 1;
    font-size: visible;
}

/* Optional: remove default caret */
.dropdown-submenu>a::after {
    display: none;
}

/* Small subtle arrow to the right */
.submenu-trigger span {
    font-size: 1rem;
    color: #8C1515;
}

/* Prevent submenus from showing automatically */
.dropdown-menu .dropdown-submenu .submenu {
    display: none !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

/* Show submenu only when hovering directly on 'Management' */
.dropdown-menu .dropdown-submenu:hover>.submenu {
    display: block !important;
    opacity: 1;
    visibility: visible;
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.top-bar {
    background-color: #f5f5dc;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
}

.contact-info {
    display: flex;
    align-items: center;
}

.contact-info i {
    color: #f1eded;
}

.separator {
    color: #adb5bd;
}

.social-links {
    display: inline-flex;
    gap: 20px;
}

.social-links a {
    color: #4D4F53;
    font-size: 16px;
    transition: all 0.3s;
}

.social-links a:hover {
    transform: translateY(-2px);
}

.fa-facebook-f:hover {
    color: #3b5998;
}

.fa-instagram:hover {
    color: #e1306c;
}

.fa-twitter:hover {
    color: #1da1f2;
}

.fa-youtube:hover {
    color: #ff0000;
}

/* Hero Section - Mobile Optimized */
.hero {
    height: 100vh;
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
}



.video-overlay {
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    pointer-events: none;
}

/* Content Container - Mobile Optimized */
.hero .container {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.hero h3 {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero .lead {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Typing Animation */
@keyframes typing-ltr {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

.typing-animation {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    animation: typing-ltr 3s steps(40, end) forwards;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .hero h3 {
        font-size: 1.5rem;
    }

    .hero .lead {
        font-size: 1.25rem;
    }

    .hero .btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
}

@media (min-width: 992px) {
    .hero h3 {
        font-size: 3rem;
    }
}

/* Ensure flex items wrap properly on mobile */
.top-bar .d-flex {
    gap: 10px;
}

.contact-info {
    white-space: nowrap;
}

.social-links {
    display: flex;
    gap: 10px;
}

/* Hide desktop social links on mobile */
.d-none.d-md-block {
    display: none;
}

/* Show mobile social links only on mobile */
.d-md-none {
    display: flex;
}

/* On larger screens, revert to original layout */
@media (min-width: 768px) {
    .d-md-none {
        display: none !important;
    }

    .d-none.d-md-block {
        display: block !important;
    }
}

@media (max-width: 576px) {
    .hero h3 {
        font-size: 1.rem;
    }

    .hero .lead {
        font-size: 0.95rem;
    }

    .hero .btn-lg {
        font-size: 1rem;
        padding: 0.6rem 1.2rem;
        width: 100%;
        max-width: 280px;
    }

    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* Rest of your existing CSS remains unchanged */
.section-title {
    text-align: center;
    margin-bottom: 60px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.section-title span {
    color: #8C1515;
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
}

.section-title h2 {
    font-size: 36px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.section-title p {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.single-features {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 5px;
    margin-bottom: 30px;
    transition: all 0.5s ease;
    text-align: center;
    box-shadow: 0 0 15px #0000000d;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-heading {
    font-size: 1.5rem;
    font-weight: 600;
}

.single-features::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: #8C1515;
    z-index: -1;
    transition: height 0.5s ease;
}

.single-features:hover {
    transform: translateY(-10px);
}

.single-features:hover::before {
    height: 100%;
}

.single-features:hover .icon {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.single-features:hover h3,
.single-features:hover p {
    color: #ffffff;
    transition: color 0.3s ease 0.2s;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #0000;
}

.single-features,
.academic-card {
    transform-style: preserve-3d;
    backface-visibility: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
        box-shadow 0.3s ease;
}

.single-features:hover,
.academic-card:hover {
    transform: translateY(-5px) rotateX(2deg) rotateY(2deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2), 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Top Bar */
.top-bar {
    background-color: #8C1515;
    color: white;
    font-size: 0.9rem;
}

.top-bar a {
    color: white;
    text-decoration: none;
}

.top-bar a:hover {
    text-decoration: underline;
}

/* Header */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #8C1515;
}

.navbar-brand p {
    font-size: 0.7rem;
    color: #4D4F53;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
}

/* Video Styles */
.video-container {
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.enhanced-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    filter: brightness(0.85);
    transition: filter 0.5s ease;
}

.video-container:hover .enhanced-video {
    filter: brightness(1) saturate(1.1);
}

.video-overlay {
    background: linear-gradient(45deg,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(0, 0, 0, 0.7) 100%);
    mix-blend-mode: multiply;
    animation: overlay-shift 20s infinite linear;
}

@keyframes overlay-shift {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}

/* Video Content Enhancements */
.video-content {
    position: relative;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
    background: rgba(140, 21, 21, 0.9);
}

.video-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(140, 21, 21, 0.4);
    backdrop-filter: blur(5px);
}

/* Fallback Image Styling */
.video-fallback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    display: none;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .enhanced-video {
        filter: brightness(0.8);
    }

    .video-overlay {
        background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
    }
}

/* Academics Section */
.academics-section {
    position: relative;
    overflow: hidden;
}

.section-title {
    position: relative;
    margin-bottom: 1.5rem;
}

.academic-card {
    border-radius: 12px !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    background: white;
}

.academic-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.card-img-container {
    height: 180px;
    overflow: hidden;
}

.card-img-top {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.academic-card:hover .card-img-top {
    transform: scale(1.05);
}

.program-icon svg,
.program-icon svg * {
    color: #8C1515;
    fill: #8C1515;
}

.program-icon {
    color: #8C1515;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background-color: rgba(140, 21, 21, 0.1);
}

.bg-primary-light {
    background-color: rgba(140, 21, 21, 0.1);
}

.transition-all {
    transition: all 0.3s ease;
}

.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

/* Text and Color Utilities */
.text-primary {
    color: #8C1515 !important;
}

.text-muted {
    color: #4D4F53 !important;
}

.text-dark {
    color: #212529 !important;
}

.bg-light {
    background-color: #f8f9fa !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card-img-container {
        height: 160px;
    }

    .card-body {
        padding: 1.5rem !important;
    }
}

/* Testimonials */
.testimonial-text {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 5px;
}

.testimonial-text:before {
    content: '\201C';
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.1);
    position: absolute;
    top: -20px;
    left: 10px;
}

/* Footer */
.footer {
    background-color: #212529;
}

.footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white;
}

.social-links a {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: #8C1515;
}

/* Animations */
.animate__animated {
    visibility: visible !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        min-height: 60vh;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .navbar-brand h1 {
        font-size: 1.2rem;
    }
}

.marquee-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 2rem 0;
    background-color: #f8f9fa;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: scroll-left 20s linear infinite;
    gap: 2rem;
}

.stat-card {
    min-width: 250px;
    flex-shrink: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Animation */
@keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-container .stat-card i {
    color: #8c1515 !important;
}

.btn {
    background-color: #8C1515;
    color: white;
    border: none;
}

.btn:hover {
    background-color: #6a1010;
    color: white;
}

.btn-primary {
    background-color: #8C1515 !important;
    border-color: #8C1515 !important;
}

.btn-primary:hover {
    background-color: #6a1010 !important;
    border-color: #6a1010 !important;
}

.btn-outline-primary {
    color: #8C1515 !important;
    border-color: #8C1515 !important;
}

.btn-outline-primary:hover {
    background-color: #8C1515 !important;
    color: white !important;
}

.btn-primary:focus,
.btn-primary:active {
    box-shadow: 0 0 0 0.25rem rgba(140, 21, 21, 0.5);
    background-color: #6a1010;
    border-color: #6a1010;
}

.feature-heading {
    font-size: 2rem;
    text-decoration: underline;
}

.feature-heading:hover {
    color: #ff6347;
    text-shadow: 0 0 10px rgba(255, 99, 71, 0.8), 0 0 20px rgba(255, 99, 71, 0.6);
    transform: scale(1.1);
}

/* Flip + Fade Animation */
.flip-fade-box {
    perspective: 1000px;
    transform-style: preserve-3d;
    opacity: 0;
    transform: rotateY(90deg);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.flip-fade-box.visible {
    opacity: 1;
    transform: rotateY(0deg);
}

/* Staggered Animation Delay */
.features-area .col-lg-3:nth-child(1) {
    transition-delay: 0.2s;
}

.features-area .col-lg-3:nth-child(2) {
    transition-delay: 0.4s;
}

.features-area .col-lg-3:nth-child(3) {
    transition-delay: 0.6s;
}

.features-area .col-lg-3:nth-child(4) {
    transition-delay: 0.8s;
}

.academics-section .col-md-6:nth-child(1) {
    transition-delay: 0.2s;
}

.academics-section .col-md-6:nth-child(2) {
    transition-delay: 0.4s;
}

.academics-section .col-md-6:nth-child(3) {
    transition-delay: 0.6s;
}

/* News Section Specific Animations */
.news-section .flip-fade-box {
    perspective: 1200px;
}

.news-section .flip-fade-box:nth-child(1) {
    transition-delay: 0.2s;
}

.news-section .flip-fade-box:nth-child(2) {
    transition-delay: 0.4s;
}

.news-section .flip-fade-box:nth-child(3) {
    transition-delay: 0.6s;
}

/* News Card 3D Enhancements */
.news-card {
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
        box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px) rotateX(1.5deg) rotateY(1.5deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2) !important;
}

/* Image Hover Effect */
.news-card img {
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.news-card:hover img {
    transform: scale(1.08) rotateZ(0.5deg);
}

.hover-dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Transparent & Stylish Dropdown */
.custom-dropdown {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

/* Dropdown items hover */
.dropdown-item:hover {
    background-color: rgba(140, 21, 21, 0.1);
    color: #8c1515;
    font-weight: 500;
}

/* Active Item in Red */
.dropdown-item.active {
    color: #fff;
    background-color: #8c1515;
    font-weight: bold;
}

/* Custom Arrow Icon */
.custom-arrow::after {
    content: " ▼";
    font-size: 0.7rem;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

/* Rotate arrow on hover */
.hover-dropdown:hover .custom-arrow::after {
    transform: rotate(180deg);
}

.dropdown-item.active {
    background-color: #8c1515 !important;
    color: #ffffff !important;
    font-weight: 600;
}

/* Ensure no blue default styles override it */
.dropdown-item:focus,
.dropdown-item:active {
    background-color: #8c1515 !important;
    color: #ffffff !important;
}

/* Dropdown item hover effect */
.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item:active {
    background-color: #8c1515 !important;
    color: #ffffff !important;
}

/* Academic Program Cards */
.academic-card {
    border-top: 4px solid #8C1515;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.academic-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #8C1515;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.academic-card:hover::before {
    transform: scaleX(1);
}

/* News Cards */
.news-card {
    border: 1px solid rgba(140, 21, 21, 0.15);
    position: relative;
}

.news-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right,
            rgba(140, 21, 21, 0.05) 0%,
            rgba(140, 21, 21, 0.02) 100%);
    z-index: 1;
    pointer-events: none;
}

.news-card .btn-outline-primary {
    border-width: 1.5px;
}

/* Card Header Accents */
.card-img-top-container {
    position: relative;
    overflow: hidden;
}

.card-img-top-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #8C1515;
    transform: translateY(4px);
    transition: transform 0.3s ease;
}

.academic-card:hover .card-img-top-container::after {
    transform: translateY(0);
}

/* Date Styling */
.news-date {
    color: #8C1515 !important;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Read More Button Hover */
.news-card .btn-outline-primary:hover {
    background: #6a1010 !important;
    border-color: #6a1010 !important;
}

html {
    scroll-behavior: smooth;
}

/* Optional: Force right alignment (if dropdown-menu-end isn't enough) */
.dropdown-menu.custom-dropdown {
    right: 0 !important;
    left: auto !important;
    margin-top: 0;
}

/* Multi-level dropdown (right side) */
.dropdown-submenu .submenu {
    top: 0;
    left: 100%;
    margin-left: 0.1rem;
    display: none;
    position: absolute;
    border-radius: 0.375rem;
    background-color: white;
    z-index: 1050;
}

.dropdown-submenu:hover>.submenu {
    display: block;
}

.dropdown-submenu>a::after {
    content: "▶";
    float: right;
    margin-top: 5px;
    font-size: 0.7rem;
}

.submenu {
    transition: all 0.2s ease;
}

/* Submenu opens to the right */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>.dropdown-item {
    position: relative;
}

.dropdown-submenu>.dropdown-item::after {
    content: "▶";
    position: absolute;
    right: 10px;
    font-size: 0.7rem;
}

/* Only show submenu when hovering on Management specifically */
.dropdown-submenu .submenu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 0.2rem;
    background: #fff;
    min-width: 220px;
    border-radius: 0.375rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1050;
}

/* Show only when hovering directly on the .submenu-trigger */
.dropdown-submenu:hover>.submenu {
    display: block;
    opacity: 1;
    font-size: visible;
}

/* Optional: remove default caret */
.dropdown-submenu>a::after {
    display: none;
}

/* Small subtle arrow to the right */
.submenu-trigger span {
    font-size: 1rem;
    color: #8C1515;
}

/* Prevent submenus from showing automatically */
.dropdown-menu .dropdown-submenu .submenu {
    display: none !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

/* Show submenu only when hovering directly on 'Management' */
.dropdown-menu .dropdown-submenu:hover>.submenu {
    display: block !important;
    opacity: 1;
    visibility: visible;
}

/* Add this to your existing styles.css file */

/* Testimonials Section - Mobile Optimized */
.testimonials-section {
    position: relative;
    padding: 2rem 0;
    background-size: cover;
    background-position: center;
}

.testimonial-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #fffafa;
    position: relative;
    padding: 0 1rem;
}

.testimonial-text:before {
    content: '\201C';
    font-size: 3rem;
    color: rgba(140, 21, 21, 0.2);
    position: absolute;
    top: -1.5rem;
    left: 0;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 1rem;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    border: 2px solid #8C1515;
}

.author-info h5 {
    margin-bottom: 0.2rem;
    color: #8C1515;
    font-weight: 600;
}

.author-info p {
    font-size: 0.8rem;
    color: #ffffff;
    margin-bottom: 0;
}

/* Background Photo Visibility */
.testimonials-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    opacity: 0.7;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .testimonials-section {
        padding: 1.5rem 0;
    }

    .testimonial-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .testimonial-text {
        font-size: 0.85rem;
        padding: 0 0.5rem;
    }

    .testimonial-text:before {
        font-size: 2.5rem;
        top: -1rem;
    }

    .testimonial-author img {
        width: 40px;
        height: 40px;
    }

    .testimonials-bg {
        opacity: 0.8;
        /* Increase opacity for better visibility on mobile */
    }
}

@media (max-width: 576px) {
    .testimonial-card {
        padding: 0.8rem;
    }

    .testimonial-text {
        font-size: 0.8rem;
    }

    .testimonials-bg {
        opacity: 0.9;
        /* Further increase opacity for very small screens */
    }
}

/* Carousel Controls for Testimonials */
.testimonial-carousel .carousel-control-prev,
.testimonial-carousel .carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: #8C1515;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
}

.testimonial-carousel .carousel-control-prev:hover,
.testimonial-carousel .carousel-control-next:hover {
    opacity: 1;
}

.testimonial-carousel .carousel-control-prev {
    left: 10px;
}

.testimonial-carousel .carousel-control-next {
    right: 10px;
}

/* Carousel Indicators */
.testimonial-carousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(140, 21, 21, 0.5);
    border: none;
    margin: 0 5px;
}

.testimonial-carousel .carousel-indicators button.active {
    background-color: #8C1515;
}

/* Animation for Testimonials */
@keyframes fadeInTestimonial {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-card {
    animation: fadeInTestimonial 0.6s ease-out forwards;
}