:root {
    --primary-color: #e62b1e; /* Matched Red from Logo */
    --secondary-color: #000000; /* Black */
    --accent-color: #f30f0f; /* Lighter Red */
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.3s ease-in-out;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
    background-color: var(--white);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

/* Common Page/Contact Header */
.page-header, .contact-header {
    background: linear-gradient(rgba(192, 57, 43, 0.9), rgba(0, 0, 0, 0.8)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: clamp(100px, 15vh, 150px) 0 clamp(50px, 8vh, 80px);
    color: white;
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1, .contact-header h1 {
    margin-bottom: 1rem;
    font-weight: 800;
    text-transform: uppercase;
}

/* Navbar Scrolled Effect */
.navbar-scrolled {
    background: #e62b1e !important;
    padding: 0.5rem 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Scroll to Top Button */
#scrollToTop {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: var(--transition);
}

#scrollToTop:hover {
    background: #000;
    transform: translateY(-5px);
}

.navbar {
    background: #e62b1e !important; /* Matched Red from Logo */
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: var(--transition);
    z-index: 2000 !important;
}

.navbar-brand span {
    color: var(--white) !important;
}

/* Navbar Logo Styling */
.navbar-logo {
    transition: transform 0.3s ease;
    max-width: 100%;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.navbar-brand-right {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-left: 1.5rem;
    padding: 0;
}

/* Navbar Right Logo Refinement */
.right-logo {
    height: 65px !important; /* Adjusted for better aspect ratio */
    width: auto !important; /* Maintain original aspect ratio */
    border-radius: 12px;
    background: #fff;
    padding: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    margin-right: 0; /* Align perfectly to the right */
    object-fit: contain !important; /* Ensure no distortion */
}

@media (max-width: 991.98px) {
    .navbar .container-fluid {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .navbar-logo {
        height: 45px !important;
    }

    .right-logo {
        height: 45px !important;
        margin-right: 0 !important;
        padding: 3px !important;
    }

    .navbar-toggler {
        margin: 0 10px;
        padding: 4px 8px;
        font-size: 1rem;
        order: 2; /* Move toggler between logos */
    }

    .navbar-brand {
        order: 1;
    }

    .navbar-brand-right {
        order: 3;
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #e62b1e; /* Keep same red */
        padding: 1rem;
        z-index: 1000;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }

    .nav-item {
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .dropdown-menu {
        background-color: rgba(0,0,0,0.2) !important;
        border: none;
        text-align: center;
        box-shadow: none;
    }
}

/* Hero Section Responsiveness */
@media (max-width: 767.98px) {
    .hero-section {
        height: 70vh; /* More height on mobile */
    }
    
    .hero-text-box {
        padding: 1.5rem;
        border-radius: 15px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-buttons .btn {
        width: 100%;
        margin: 0.5rem 0;
    }

    .notice-label {
        min-width: 80px;
        font-size: 0.8rem;
    }
}

/* Table Responsiveness */
.table-responsive-custom {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

.table-responsive-custom table {
    min-width: 600px; /* Force scroll on very small screens */
}

/* Card Improvements */
.place-card, .committee-card, .glass-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
}

@media (max-width: 575.98px) {
    .gallery-item img {
        height: 200px;
    }
}


.nav-link {
    font-weight: 500;
    color: var(--white) !important;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--secondary-color) !important; /* Black on hover */
}

.dropdown-menu {
    background-color: var(--secondary-color);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    z-index: 3000 !important; /* Ensure dropdown appears over the floating logo */
}

.dropdown-item {
    color: var(--white);
    padding: 0.5rem 1.5rem;
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Committee & Member Cards */
.committee-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    height: 100%;
    border-bottom: 4px solid var(--primary-color);
}

.committee-card:hover {
    transform: translateY(-10px);
}

.member-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 5px solid #f8f9fa;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.member-name {
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 5px;
}

.member-designation {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.member-affiliation {
    color: #666;
    font-size: 0.85rem;
}

@media (max-width: 767.98px) {
    .committee-card {
        padding: 20px;
    }
    .member-img {
        width: 120px;
        height: 120px;
    }
}

/* Hero Section with Carousel */
.hero-section {
    position: relative;
    height: 60vh; /* Reduced height for clean carousel slider */
    width: 100vw;
    min-height: 400px;
    overflow: hidden;
}

#heroCarousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-inner, .carousel-item {
    height: 100%;
}

.carousel-item {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #000;
    height: 60vh;
    min-height: 400px;
}

/* Removed carousel item before overlay */

.hero-content-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100; /* Increased z-index */
}

.hero-content {
    text-align: center;
    color: var(--white);
    width: 100%;
    max-width: 900px;
    padding: 2rem;
    position: relative;
    margin: 0 auto;
}

/* Soft dark overlay behind text */
.hero-text-box {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    padding: 3rem;
    border-radius: 20px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    display: inline-block;
    width: 100%;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p.lead {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Notice Bar Marquee - Update colors */
.notice-bar {
    background: white; /* Red marquee */
    color: #f30f0f;
    padding: 10px 0;
    font-weight: 500;
    overflow: hidden;
    position: fixed;
    top: 60px; /* Below navbar */
    width: 100%;
    z-index: 1999;
}

.hero-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-logo {
    width: 150px !important;
    height: 150px !important;
    object-fit: contain !important;
    border-radius: 15px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    transition: var(--transition);
    display: block;
    margin: 0 auto;
}

.hero-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.4));
}

.hero-buttons {
    margin-top: 3rem;
    display: block;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 99;
}

.hero-buttons .btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-weight: 600;
    margin: 0.5rem;
    border-radius: 50px;
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary-gradient {
    background: linear-gradient(45deg, var(--primary-color), #8e2a1e); /* Red gradient */
    border: none;
    color: var(--white);
}

.btn-primary-gradient:hover {
    transform: translateY(-3px);
    background: linear-gradient(45deg, #8e2a1e, var(--secondary-color)); /* Red to Black hover */
    box-shadow: 0 5px 15px rgba(192,57,43,0.4);
}

/* Notice Bar Marquee Styles */
.notice-bar-home {
    position: relative;
    z-index: 100;
    margin-top: -1px;
    background: #e62b1e;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.notice-label {
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    white-space: nowrap;
    min-width: 120px;
    text-align: center;
    background-color: #e62b1e;
    color: #fff;
}

.notice-marquee-wrapper {
    height: 40px;
    display: flex;
    align-items: center;
    background-color: #e62b1e;
    border-color: rgba(255,255,255,0.2) !important;
}

.notice-marquee-wrapper marquee {
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
}

.carousel-control-prev, .carousel-control-next {
    z-index: 150 !important;
}

.carousel-indicators {
    z-index: 150 !important;
}
.section-padding {
    padding: 100px 0;
}

.registration-table table {
    border: 2px solid #003366 !important;
}

.registration-table th, .registration-table td {
    border: 1px solid #003366 !important;
}

.registration-table thead th {
    background-color: #003366 !important;
    color: #fff !important;
    font-weight: 700;
}

.registration-table tbody td {
    color: #000;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
    .section-title {
        margin-bottom: 2.5rem;
    }
}

/* Section Headings */
.section-title {
    position: relative;
    margin-bottom: 4rem;
    padding-bottom: 1.5rem;
    text-align: center;
    color: var(--primary-color);
    font-weight: 800;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Global Text Alignment */
section p, .glass-card p {
    text-align: justify;
}

.about-img img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.about-img img:hover {
    transform: scale(1.02);
}

/* Partner Logos */
.partner-logo {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
    max-width: 150px;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Smooth Animated Background Sections */
.animated-section {
    position: relative;
    overflow: hidden;
    background: #fff;
    z-index: 1;
}

.animated-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 80, 157, 0.05) 0%, transparent 70%);
    animation: rotate-bg 20s linear infinite;
    z-index: -1;
}

@keyframes rotate-bg {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Glassmorphism & Modern Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.95); /* More solid white for Red/Black theme */
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

.glass-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: #fff;
    box-shadow: 0 15px 45px rgba(192, 57, 43, 0.2);
    border-color: var(--primary-color);
}

.glass-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}

.glass-card:hover::after {
    left: 100%;
}

.profile-card {
    text-align: center;
}

.profile-img-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 1.5rem;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.glass-card:hover .profile-img {
    border-color: var(--secondary-color);
    box-shadow: 0 0 20px rgba(0, 80, 157, 0.3);
}

/* Swiper Slider Customization */
.swiper-container {
    padding: 50px 20px !important;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
}

/* Glow Effect */
.glow-on-hover:hover {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.schedule-table {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.schedule-table thead {
    background: var(--primary-color); /* Red table header */
    color: #fff;
}

.schedule-table td {
    padding: 1.5rem;
    vertical-align: middle;
}

.schedule-time {
    font-weight: 700;
    color: var(--secondary-color);
    min-width: 120px;
}

.dates-table {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.dates-table th {
    background-color: var(--secondary-color); /* Black table header */
    color: var(--white);
    padding: 1.2rem;
}

.dates-table td {
    padding: 1rem 1.2rem;
    vertical-align: middle;
}

.dates-table tr:hover {
    background-color: rgba(192, 57, 43, 0.05); /* Light red hover */
}

/* Gallery Glimpse */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

/* Gallery / Glimpse Improvements */
.gallery-item img {
    width: 100%;
    height: 250px; /* Fixed height for uniform ratio */
    object-fit: cover;
    border-radius: 10px;
    transition: var(--transition);
}

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

/* Places to Visit Cards */
.place-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    background: #fff;
    height: 100%;
}

.place-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.place-info {
    padding: 15px;
    text-align: center;
}

/* Footer Styling */
footer {
    background: #000;
    color: #fff;
    padding: clamp(60px, 8vh, 80px) 0 20px;
    margin-top: 50px;
}

footer h4 {
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

footer a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
    display: block;
    margin-bottom: 10px;
}

footer a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

footer .footer-social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: #333;
    border-radius: 50%;
    color: #fff;
    margin-right: 10px;
    transition: var(--transition);
}

footer .footer-social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

footer hr {
    border-color: rgba(255,255,255,0.1);
    margin: 40px 0 20px;
}

@media (max-width: 991.98px) {
    footer {
        text-align: center;
    }
    footer h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Fade-in Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Countdown Timer */
.countdown-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    display: inline-flex;
    gap: 1.5rem;
}

.countdown-item span {
    display: block;
    font-size: 2rem;
    font-weight: 700;
}

.countdown-item label {
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* Scroll to Top */
#scrollToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--secondary-color);
    color: white;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

#scrollToTop:hover {
    background-color: var(--primary-color);
}
