/* CSS Variables */
:root {
    --primary-red: #DC143C;
    --cherry-red: #C41E3A;
    --dark-red: #8B0000;
    --light-red: #FF6B7A;
    --accent-blue: #2C5F8D;
    --light-blue: #4A7BA7;
    --text-dark: #2c3e50;
    --text-gray: #6c757d;
    --bg-light: #fff5f7;
    --white: #ffffff;
    --shadow: 0 5px 15px rgba(220, 20, 60, 0.1);
    --shadow-lg: 0 10px 30px rgba(220, 20, 60, 0.15);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans 3', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-red);
    color: var(--white);
}

.btn-primary:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    color: var(--cherry-red);
    border: 2px solid var(--cherry-red);
}

.btn-outline:hover {
    background: var(--cherry-red);
    color: var(--white);
}

/* Top Header */
.top-header {
    background: var(--cherry-red);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.top-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.contact-info {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.contact-info a {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info a:hover {
    color: #FFD700;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--white);
    color: var(--cherry-red);
    transform: translateY(-3px);
}

/* Main Navigation */
.main-nav {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.logo-text {
    color: var(--cherry-red);
    line-height: 1.1;
}

.logo img {
    width: 50px;
    height: 50px;
}

.logo-main {
    font-size: 24px;
    font-weight: 900;
}

.logo-sub {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-blue);
    margin-top: 2px;
    letter-spacing: 0.5px;
    margin-right: 15px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--cherry-red);
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu>li>a {
    color: var(--text-dark);
    font-weight: 600;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-menu>li>a:hover {
    color: var(--cherry-red);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-radius: 5px;
    overflow: hidden;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px; 
    color: var(--text-dark);
    border-bottom: 1px solid var(--bg-light);
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background: var(--bg-light);
    color: var(--cherry-red);
    padding-left: 25px;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 650px;
    overflow: hidden;
}

.slider-container {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.slide-text-wrapper {
    max-width: 700px;
    width: 90%;
    text-align: center;
    color: var(--white);
    padding: 25px 35px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    animation: slideUp 1s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide.active .slide-text-wrapper {
    animation: slideUp 1s ease;
}

.slide-title {
    font-size: 48px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.1;
}

.slide-description {
    font-size: 18px;
    margin-bottom: 25px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    font-weight: 400;
    line-height: 1.4;
}

.slide-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--cherry-red);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: 30px;
}

.slider-btn.next {
    right: 30px;
}

.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.dot.active {
    background: var(--white);
    width: 40px;
    border-radius: 7px;
}

/* Update Segments */
.update-segments {
    background: var(--bg-light);
    padding: 60px 0;
}

.segments-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.segment {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.segment-header {
    background: linear-gradient(135deg, var(--cherry-red), var(--primary-red));
    color: var(--white);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.segment-header i {
    font-size: 30px;
}

.segment-header h3 {
    margin: 0;
    font-size: 22px;
}

.scrolling-updates {
    height: 300px;
    overflow-y: hidden;
    padding: 20px;
    position: relative;
}

.scrolling-updates::-webkit-scrollbar {
    width: 6px;
}

.scrolling-updates::-webkit-scrollbar-track {
    background: var(--bg-light);
}

.scrolling-updates::-webkit-scrollbar-thumb {
    background: var(--cherry-red);
    border-radius: 3px;
}

.update-item {
    display: block;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid var(--cherry-red);
    background: var(--bg-light);
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.update-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow);
}

.update-date {
    display: block;
    font-size: 12px;
    color: var(--cherry-red);
    font-weight: 600;
    margin-bottom: 5px;
}

.update-text {
    display: block;
    color: var(--text-dark);
}

/* NEW Badge with Flashing Animation */
.new-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: var(--text-dark);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    animation: flashBadge 1.5s infinite;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.5);
}

@keyframes flashBadge {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 42px;
    color: var(--cherry-red);
    margin-bottom: 10px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-gray);
}

/* Courses Section */
.courses {
    padding: 80px 0;
    background: var(--white);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.course-card {
    background: var(--white);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--cherry-red), var(--primary-red));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.course-card:hover::before {
    transform: scaleX(1);
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.course-card.featured {
    background: linear-gradient(135deg, var(--cherry-red), var(--primary-red));
    color: var(--white);
}

.course-card.featured h3,
.course-card.featured p,
.course-card.featured li {
    color: var(--white);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--accent-blue);
    color: var(--white);
    padding: 5px 40px;
    font-weight: 600;
    transform: rotate(45deg);
    font-size: 12px;
}

.course-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--cherry-red), var(--primary-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 35px;
}

.course-card.featured .course-icon {
    background: var(--white);
    color: var(--cherry-red);
}

.course-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.course-card p {
    color: var(--text-gray);
    margin-bottom: 20px;
}

.course-card ul {
    text-align: left;
    margin-bottom: 25px;
}

.course-card ul li {
    padding: 8px 0;
    color: var(--text-dark);
    position: relative;
    padding-left: 25px;
}

.course-card ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--cherry-red);
}

/* Achievements Section */
.achievements {
    background: linear-gradient(135deg, var(--cherry-red), var(--dark-red));
    padding: 80px 0;
    color: var(--white);
}

.achievements .section-header h2,
.achievements .section-header p {
    color: var(--white);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.achievement-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.achievement-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-10px);
}

.achievement-number {
    font-size: 60px;
    font-weight: 900;
    font-family: 'Playfair Display', serif;
    color: var(--white);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.achievement-card p {
    font-size: 18px;
    color: var(--white);
}

/* Events Section */
.events {
    padding: 80px 0;
    background: var(--bg-light);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.event-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 25px;
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.event-date {
    background: linear-gradient(135deg, var(--cherry-red), var(--primary-red));
    color: var(--white);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    min-width: 80px;
    height: fit-content;
}

.event-date .day {
    display: block;
    font-size: 36px;
    font-weight: 900;
    font-family: 'Playfair Display', serif;
}

.event-date .month {
    display: block;
    font-size: 16px;
    text-transform: uppercase;
}

.event-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--cherry-red);
}

.event-content p {
    color: var(--text-gray);
    margin-bottom: 15px;
}

.event-link {
    color: var(--cherry-red);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.event-link:hover {
    gap: 10px;
}

/* News Updates Section */
.news-updates {
    padding: 80px 0;
    background: var(--white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 25px;
}

.news-date {
    display: inline-block;
    color: var(--cherry-red);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.news-content p {
    color: var(--text-gray);
    margin-bottom: 15px;
}

.news-link {
    color: var(--cherry-red);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.news-link:hover {
    gap: 10px;
}

/* Image Gallery Section */
.gallery {
    padding: 80px 0;
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    height: 300px;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(220, 20, 60, 0.95), transparent);
    color: var(--white);
    padding: 30px 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 22px;
    margin-bottom: 5px;
    color: var(--white);
}

.gallery-overlay p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

/* Offers Section */
.offers {
    padding: 80px 0;
    background: var(--bg-light);
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.offer-card {
    background: var(--white);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.offer-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.offer-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--cherry-red);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
}

.offer-card h3 {
    font-size: 26px;
    margin: 40px 0 15px;
    color: var(--cherry-red);
}

.offer-card p {
    color: var(--text-gray);
    margin-bottom: 25px;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--cherry-red);
    transform: translateY(-5px);
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--cherry-red);
    padding-left: 5px;
}

.contact-list li {
    display: flex;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

.contact-list li i {
    color: var(--cherry-red);
    margin-top: 3px;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.footer-bottom i {
    color: var(--cherry-red);
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    opacity: 1;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.float-btn:hover {
    transform: scale(1.2) !important;
    animation: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.float-btn.whatsapp {
    background: #25D366;
}

.float-btn.whatsapp:hover {
    background: #128C7E;
}

.float-btn.phone {
    background: var(--cherry-red);
}

.float-btn.phone:hover {
    background: var(--dark-red);
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 83px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 83px);
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
        gap: 20px;
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-toggle {
        display: flex;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .hero-slider {
        height: 500px;
    }

    .slide-title {
        font-size: 36px;
    }

    .slide-description {
        font-size: 16px;
    }

    .slide-text-wrapper {
        padding: 20px 25px;
    }

    .slide-buttons {
        flex-direction: column;
        align-items: center;
    }

    .slide-buttons .btn {
        width: 100%;
        max-width: 250px;
    }

    .segments-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 450px;
    }

    .slide-title {
        font-size: 32px;
    }

    .slide-description {
        font-size: 15px;
    }

    .slide-text-wrapper {
        padding: 20px;
    }

    .slider-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .slider-btn.prev {
        left: 15px;
    }

    .slider-btn.next {
        right: 15px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .courses-grid,
    .events-grid,
    .news-grid,
    .offers-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        height: 250px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .floating-buttons {
        bottom: 20px;
        right: 20px;
    }

    .float-btn {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
}

@media (max-width: 576px) {
    .top-header-content {
        flex-direction: column;
        text-align: center;
    }

    .contact-info {
        flex-direction: column;
        gap: 10px;
    }

    .hero-slider {
        height: 400px;
    }

    .slide-title {
        font-size: 28px;
    }

    .slide-description {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .slide-text-wrapper {
        padding: 18px 15px;
    }

    .slide-buttons .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .slider-btn.prev {
        left: 10px;
    }

    .slider-btn.next {
        right: 10px;
    }

    .slider-dots {
        bottom: 20px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .dot.active {
        width: 30px;
    }

    .event-card {
        flex-direction: column;
    }

    .event-date {
        width: fit-content;
    }
}

/* ============================================
   UGC-NET PAGE SPECIFIC STYLES
   ============================================ */

/* Course Hero Section */
.course-hero {
    background: linear-gradient(135deg, var(--cherry-red) 0%, var(--dark-red) 100%);
    color: var(--white);
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.course-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
}

.course-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.course-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.course-hero .subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-badges .badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
}

/* UGC-NET Content Sections */
.ugc-net-content {
    padding: 80px 0;
    background: var(--bg-light);
}

.content-section {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.content-section h2 {
    color: var(--cherry-red);
    font-size: 1.8rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 15px;
}

.content-section h2 i {
    color: var(--accent-blue);
    font-size: 1.5rem;
}

/* Content Blocks */
.content-block {
    margin-bottom: 30px;
}

.content-block p {
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.highlight-box {
    background: linear-gradient(135deg, #fff5f7 0%, #ffeef1 100%);
    border-left: 4px solid var(--cherry-red);
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
}

.highlight-box h4 {
    color: var(--cherry-red);
    margin-bottom: 15px;
}

.highlight-box ul {
    list-style: none;
    padding: 0;
}

.highlight-box li {
    padding: 8px 0;
    color: var(--text-dark);
    position: relative;
    padding-left: 25px;
}

.highlight-box li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--cherry-red);
    font-weight: bold;
}

/* Categories Table */
.categories-table {
    margin: 40px 0;
}

.categories-table h3 {
    color: var(--accent-blue);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.categories-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.categories-table th {
    background: var(--cherry-red);
    color: var(--white);
    padding: 18px 15px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
}

.categories-table td {
    padding: 18px 15px;
    border: 1px solid #eee;
    text-align: center;
    color: var(--text-dark);
}

.categories-table tr:nth-child(even) {
    background: var(--bg-light);
}

/* Fellowships Section */
.fellowships-section {
    margin-top: 40px;
}

.fellowships-section h3 {
    color: var(--accent-blue);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fellowships-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.fellowship-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 25px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.fellowship-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.fellowship-card h4 {
    color: var(--cherry-red);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.fellowship-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.5;
}

.note-box {
    background: #fff9e6;
    border: 1px solid #ffeaa7;
    padding: 20px;
    border-radius: 8px;
    margin-top: 25px;
}

.note-box p {
    color: #856404;
    margin: 0;
    line-height: 1.6;
}

/* Exam Pattern Details */
.exam-pattern-details {
    margin: 40px 0;
}

.exam-pattern-details h3 {
    color: var(--accent-blue);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.exam-pattern-details table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.exam-pattern-details th {
    background: var(--accent-blue);
    color: var(--white);
    padding: 18px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}

.exam-pattern-details td {
    padding: 18px 15px;
    border: 1px solid #eee;
    color: var(--text-dark);
    vertical-align: top;
}

.exam-pattern-details tr:nth-child(even) {
    background: var(--bg-light);
}

.exam-pattern-details strong {
    color: var(--cherry-red);
}

/* Exam Details Grid */
.exam-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.exam-detail-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.exam-detail-card h4 {
    color: var(--cherry-red);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.exam-detail-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.exam-detail-card li {
    padding: 5px 0;
    color: var(--text-dark);
}

.exam-detail-card p {
    color: var(--text-gray);
    margin: 0;
    line-height: 1.6;
}

.small-note {
    font-size: 0.85rem;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

/* Important Notes */
.important-notes {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-top: 40px;
    border-left: 4px solid var(--accent-blue);
}

.important-notes h3 {
    color: var(--cherry-red);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notes-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.note-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.note-item i {
    color: var(--cherry-red);
    margin-top: 3px;
    font-size: 0.9rem;
}

.note-item p {
    color: var(--text-dark);
    margin: 0;
    line-height: 1.6;
}

/* Eligibility Grid */
.eligibility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.eligibility-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.eligibility-card h3 {
    color: var(--accent-blue);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
}

.eligibility-list {
    list-style: none;
    padding: 0;
}

.eligibility-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    color: var(--text-dark);
    line-height: 1.6;
}

.eligibility-list li:last-child {
    border-bottom: none;
}

.eligibility-list strong {
    color: var(--cherry-red);
}

.sublist {
    list-style: none;
    padding-left: 20px;
    margin-top: 8px;
}

.sublist li {
    padding: 5px 0;
    border-bottom: none;
    color: var(--text-gray);
    position: relative;
}

.sublist li::before {
    content: '•';
    position: absolute;
    left: -15px;
    color: var(--cherry-red);
}

/* Rules Grid */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.rule-card {
    text-align: center;
    padding: 30px 25px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.rule-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.rule-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--cherry-red), var(--accent-blue));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
}

.rule-card h3 {
    color: var(--cherry-red);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.rule-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Links Grid */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.link-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.link-card h4 {
    color: var(--accent-blue);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.link-card p {
    margin: 0;
}

.link-card a {
    color: var(--cherry-red);
    text-decoration: none;
    word-break: break-all;
}

.link-card a:hover {
    text-decoration: underline;
}

/* Fellowship Links */
.fellowship-links {
    margin-top: 40px;
}

.fellowship-links h3 {
    color: var(--accent-blue);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fellowship-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.fellowship-link {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--cherry-red);
}

.fellowship-link h5 {
    color: var(--cherry-red);
    margin-bottom: 10px;
    font-size: 1rem;
}

.fellowship-link p {
    margin: 0;
}

.fellowship-link a {
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 0.9rem;
    word-break: break-all;
}

.fellowship-link a:hover {
    text-decoration: underline;
}

/* Subject Table */
.subject-table-container {
    margin: 40px 0;
}

.subject-table-container h3 {
    color: var(--accent-blue);
    margin-bottom: 25px;
    font-size: 1.3rem;
}

.subject-table-wrapper {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.subject-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    min-width: 600px;
}

.subject-table th {
    background: var(--accent-blue);
    color: var(--white);
    padding: 18px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
    position: sticky;
    top: 0;
}

.subject-table td {
    padding: 15px;
    border: 1px solid #eee;
    color: var(--text-dark);
    vertical-align: top;
}

.subject-table tr:nth-child(even) {
    background: var(--bg-light);
}

.subject-table tr:hover {
    background: rgba(220, 20, 60, 0.05);
}

.subject-download {
    background: #e7f3ff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid var(--accent-blue);
}

.subject-download p {
    margin: 0;
    color: var(--text-dark);
}

.subject-download a {
    color: var(--cherry-red);
    font-weight: 600;
    text-decoration: none;
}

.subject-download a:hover {
    text-decoration: underline;
}

/* Program Features Grid */
.program-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.program-feature {
    text-align: center;
    padding: 30px 25px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

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

.program-feature .feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--cherry-red), var(--accent-blue));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.program-feature:hover .feature-icon {
    transform: rotate(360deg) scale(1.1);
}

.program-feature h3 {
    color: var(--cherry-red);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.program-feature p {
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

/* Batch Details */
.batch-details {
    margin-top: 50px;
}

.batch-details h3 {
    color: var(--accent-blue);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.batch-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.batch-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 35px 30px;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    position: relative;
    transition: all 0.3s ease;
}

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

.batch-card.featured {
    background: linear-gradient(135deg, var(--cherry-red) 0%, var(--dark-red) 100%);
    color: var(--white);
}

.featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-blue);
    color: var(--white);
    padding: 8px 25px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(44, 95, 141, 0.3);
}

.batch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.batch-card.featured .batch-header {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.batch-header h4 {
    color: var(--cherry-red);
    margin: 0;
    font-size: 1.4rem;
}

.batch-card.featured .batch-header h4 {
    color: var(--white);
}

.batch-duration {
    color: var(--text-gray);
    font-weight: 600;
    background: #f8f9fa;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.batch-card.featured .batch-duration {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.batch-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.batch-card li {
    padding: 10px 0;
    color: var(--text-dark);
    position: relative;
    padding-left: 30px;
}

.batch-card.featured li {
    color: var(--white);
}

.batch-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--cherry-red);
    font-weight: bold;
    font-size: 1.1rem;
}

.batch-card.featured li::before {
    color: var(--white);
}

.batch-card .btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    font-weight: 600;
}

.batch-card.featured .btn {
    background: var(--white);
    color: var(--cherry-red);
}

.batch-card.featured .btn:hover {
    background: var(--accent-blue);
    color: var(--white);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--cherry-red) 0%, var(--dark-red) 100%);
    color: var(--white);
    padding: 60px 40px;
    text-align: center;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    color: var(--white);
    font-size: 2.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.cta-feature {
    text-align: center;
}

.cta-feature i {
    font-size: 2.5rem;
    color: #FFD700;
    margin-bottom: 10px;
}

.cta-feature p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 1.1rem;
}

.btn-outline-white {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--cherry-red);
}

.cta-offer {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 500px;
    margin: 0 auto;
}

.cta-offer p {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cta-offer i {
    color: #FFD700;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .course-hero h1 {
        font-size: 2.5rem;
    }

    .content-section {
        padding: 30px;
    }

    .eligibility-grid,
    .rules-grid,
    .program-features-grid,
    .batch-cards {
        grid-template-columns: 1fr;
    }

    .notes-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .course-hero {
        padding: 80px 0 60px;
    }

    .course-hero h1 {
        font-size: 2rem;
    }

    .course-hero .subtitle {
        font-size: 1rem;
    }

    .hero-badges {
        flex-direction: column;
        align-items: center;
    }

    .content-section {
        padding: 25px 20px;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }

    .fellowships-grid,
    .exam-details-grid,
    .links-grid,
    .fellowship-links-grid {
        grid-template-columns: 1fr;
    }

    .cta-section {
        padding: 50px 20px;
    }

    .cta-content h2 {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 10px;
    }

    .cta-features {
        flex-direction: column;
        gap: 25px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .course-hero h1 {
        font-size: 1.8rem;
    }

    .btn-large {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .subject-table-wrapper {
        font-size: 0.9rem;
    }

    .subject-table td {
        padding: 12px 10px;
    }

    .cta-offer p {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
}

/* Highlight text styling */
.highlight-text {
    color: #000000;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
    margin: 0 2px;
}

/* Vision Page Specific Styles */
.core-values-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.core-values-list li {
    padding: 12px 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-left: 4px solid var(--cherry-red);
    border-radius: 5px;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.core-values-list li strong {
    color: var(--cherry-red);
}

/* Content block styling for vision page */
.content-block h2 {
    color: var(--cherry-red);
    font-size: 2rem;
    margin-bottom: 10px;
}

.content-block h3 {
    color: var(--accent-blue);
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Vision Page Title Section */
.title-section {
    text-align: center;
    margin-bottom: 40px;
}

.institute-title {
    padding: 30px;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.1) 0%, rgba(44, 95, 141, 0.1) 100%);
    border-radius: 10px;
    border-left: 5px solid var(--cherry-red);
    border-right: 5px solid var(--accent-blue);
}

.institute-title h2 {
    color: var(--cherry-red);
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
    font-weight: 900;
}

.institute-title h3 {
    color: var(--accent-blue);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Vision content styling */
.content-section h2 {
    color: var(--cherry-red);
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.content-block p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: var(--text-dark);
}

/* Core Values List */
.core-values-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.core-values-list li {
    padding: 12px 20px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-left: 4px solid var(--cherry-red);
    border-radius: 5px;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.core-values-list li strong {
    color: var(--cherry-red);
}

/* Scroll to Top Button - FINAL FIX */
.scroll-to-top {
    position: fixed;
    bottom: 170px; /* Above the floating buttons */
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--cherry-red);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9998; /* Below floating buttons */
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--dark-red);
    transform: translateY(0) scale(1.1);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.4);
}

/* For pages without floating buttons, adjust position */
body:not(:has(.floating-buttons)) .scroll-to-top {
    bottom: 30px;
}

.plain-rules {
    margin-top: 25px;
}

.plain-rules p {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 20px;
    padding-left: 20px;
    position: relative;
}

.plain-rules p:last-child {
    margin-bottom: 0;
}

.plain-rules p::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--cherry-red);
    font-weight: bold;
    font-size: 1.2rem;
}

.plain-rules strong {
    color: var(--accent-blue);
}

/* ============================================
   COMPLETE DROPDOWN & SUBMENU FIX - REPLACE EXISTING
   ============================================ */

/* Main dropdown menu */
.dropdown {
    position: relative;
}

.dropdown > .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 240px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: visible !important; /* CRITICAL: allows submenu to appear outside */
    z-index: 9999;
    padding: 8px 0;
}

.dropdown:hover > .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Dropdown menu items */
.dropdown-menu li {
    position: relative;
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background: var(--bg-light);
    color: var(--cherry-red);
    padding-left: 25px;
}

/* Submenu styles - appears to the right */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dropdown-submenu > a i {
    font-size: 12px;
    color: var(--text-gray);
    margin-left: 10px;
}

.dropdown-submenu .submenu-menu {
    position: absolute;
    top: 0;
    left: 100%;
    background: var(--white);
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    border-radius: 8px;
    z-index: 10000;
    padding: 8px 0;
    margin-left: 5px; /* Small gap between menus */
}

.dropdown-submenu:hover > .submenu-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
}

/* Submenu links */
.submenu-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    white-space: nowrap;
}

.submenu-menu li:last-child a {
    border-bottom: none;
}

.submenu-menu li a:hover {
    background: var(--bg-light);
    color: var(--cherry-red);
    padding-left: 25px;
}

/* Desktop specific styles - ensure submenus work */
@media (min-width: 993px) {
    .dropdown-menu {
        display: block !important;
    }
    
    .submenu-menu {
        display: block !important;
    }
    
    /* Fix for overflow issues */
    .main-nav {
        overflow: visible !important;
    }
    
    .nav-content {
        overflow: visible !important;
    }
    
    .nav-menu {
        overflow: visible !important;
    }
}

/* Mobile styles - keep existing but ensure they don't affect desktop */
@media (max-width: 992px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
        width: 100%;
        padding-left: 20px;
        overflow: hidden;
    }
    
    .dropdown.active > .dropdown-menu {
        display: block !important;
    }
    
    .dropdown-submenu .submenu-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
        padding-left: 20px;
        width: 100%;
        margin-left: 0;
    }
    
    .dropdown-submenu.active > .submenu-menu {
        display: block !important;
    }
    
    .dropdown-submenu.active > a i {
        transform: rotate(90deg);
    }
}

/* Mega Dropdown Styles */
.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--white);
    min-width: 900px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-radius: 12px;
    z-index: 9999;
    padding: 25px;
}

.dropdown:hover .mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-dropdown-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.mega-dropdown-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-dropdown-col ul li {
    margin-bottom: 5px;
    position: relative;
}

.mega-dropdown-col ul li a {
    display: block;
    padding: 10px 12px;
    color: var(--text-dark);
    font-size: 0.95rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.mega-dropdown-col ul li a:hover {
    background: var(--bg-light);
    color: var(--cherry-red);
    padding-left: 18px;
}

/* Submenu within mega dropdown */
.mega-dropdown-col .dropdown-submenu {
    position: relative;
}

.mega-dropdown-col .dropdown-submenu > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 15px;
}

.mega-dropdown-col .dropdown-submenu > a i {
    font-size: 10px;
    color: var(--text-gray);
    transition: transform 0.2s ease;
}

.mega-dropdown-col .dropdown-submenu:hover > a i {
    transform: translateX(3px);
    color: var(--cherry-red);
}

.mega-dropdown-col .dropdown-submenu .submenu-menu {
    position: absolute;
    top: 0;
    left: 100%;
    background: var(--white);
    min-width: 220px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    border-radius: 8px;
    z-index: 10000;
    padding: 8px 0;
    margin-left: 5px;
}

.mega-dropdown-col .dropdown-submenu:hover .submenu-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 992px) {
    .mega-dropdown {
        position: static;
        min-width: 100%;
        transform: none;
        box-shadow: none;
        padding: 15px;
        display: none;
    }
    
    .dropdown.active .mega-dropdown {
        display: block;
    }
    
    .mega-dropdown-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .mega-dropdown-col .dropdown-submenu .submenu-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
        padding-left: 15px;
    }
    
    .mega-dropdown-col .dropdown-submenu.active .submenu-menu {
        display: block;
    }
}

/* Update your existing .logo-tamil class */
.logo-tamil {
    font-family: 'Noto Sans Tamil', 'Latha', 'Nirmala UI', 'Tamil MN', sans-serif;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.3px;
    color: var(--cherry-red); /* or your preferred color */
    margin-bottom: 2px;
}