/* =========================================
   1. General Reset & Typography
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
}

/* =========================================
   2. Utilities & Common Classes
   ========================================= */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0; /* Increased padding for better spacing */
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
    color: #2c3e50;
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #e74c3c;
    margin: 15px auto 0;
    border-radius: 2px;
}

.bg-light { background-color: #f8f9fa; }
.bg-blue { background-color: #2c3e50; }
.text-white { color: #fff; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px; /* Pill shape */
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: #e74c3c;
    color: #fff;
}

.btn-primary:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline:hover {
    background: #fff;
    color: #2c3e50;
}

/* Button Pulse Animation */
.pulse-anim {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(231, 76, 60, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

/* =========================================
   3. Navbar
   ========================================= */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navbar .container {
    display: flex;
    justify-content: space-between; /* Pushes Logo to left, Links to right */
    align-items: center;
    height: 80px;
}

/* --- Logo Group Styling --- */
.logo-group {
    display: flex;
    align-items: center;
    gap: 15px; 
    text-decoration: none;
}

.nav-logo {
    height: 50px; /* Controls image size */
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 2px solid #ddd;
    padding-left: 15px;
}

.logo-text .main-text {
    font-weight: 800;
    color: #2c3e50;
    font-size: 1rem;
    line-height: 1.1;
}

.logo-text .sub-text {
    font-size: 0.8rem;
    color: #7f8c8d;
    font-weight: 500;
}

/* --- Navigation Links Styling --- */
.nav-links {
    list-style: none; /* Removes the bullet points */
    display: flex;    /* Makes them horizontal */
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 30px; /* Space between links */
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #e74c3c;
}

.highlight-link {
    color: #e74c3c !important; /* Forces the Register link to be red */
}

/* --- Mobile Responsiveness --- */
@media(max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        height: auto;
        padding: 10px;
    }

    .logo-group {
        margin-bottom: 15px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .nav-links li {
        margin: 0;
    }
    
    .logo-text {
        display: none; /* Hides text on small screens to save space */
    }
}

/* =========================================
   4. Enhanced Hero Section
   ========================================= */
.hero {
    position: relative;
    /* Clean academic/tech background image */
    background: url('IIT_BHU_stylized.png') no-repeat center center/cover;
    height: 90vh; /* Takes up most of the screen */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: -1px; /* Removes tiny gap if any */
}

.hero .overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Gradient overlay: Dark Blue to Purple */
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9), rgba(106, 17, 203, 0.85));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    backdrop-filter: blur(5px);
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    line-height: 1.1;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero .subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Hero Info Grid (Date & Location) */
.hero-info-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.info-box {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    background: rgba(0,0,0,0.2);
    padding: 10px 20px;
    border-radius: 8px;
}

/* Countdown Timer Styling */
#countdown-container {
    margin: 40px 0;
}

#countdown-container p {
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.time-unit {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 10px;
    min-width: 90px;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
}

.time-unit span {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
}

.time-unit small {
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-top: 5px;
    display: block;
    opacity: 0.8;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* =========================================
   5. About Section Cards (UPDATED)
   ========================================= */

#about {
    background: #fff; /* Reset background to white */
    color: #333;      /* Reset text color to standard dark grey */
    padding: 80px 0;  /* Standard section padding */
}

/* Ensure the Section Title uses the standard dark blue color */
#about .section-title {
    color: #2c3e50;
    text-shadow: none; /* Remove the shadow we added earlier */
    margin-bottom: 50px;
}

/* Reset the paragraph text to standard grey */
#about > .container > p {
    color: #555;
    text-shadow: none;
}

/* Remove the shadow from the title underline */
#about .section-title::after {
    background: #e74c3c;
    box-shadow: none;
}

/* Logo styling can remain as is */
.org-logo {
    max-width: 100px;
    height: auto;
    margin: 0 auto 15px auto;
    display: block;
}

/* Standard Card Styling */
.card {
    background: #fff;
    padding: 30px;
    border-left: 5px solid #3498db;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* Soft, standard shadow */
    border-radius: 0 8px 8px 0;
    color: #333;
}

.card h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.4rem;
}


/* =========================================
   Horizontal About Card Styling
   ========================================= */

/* Specific class for horizontal cards to avoid breaking other cards */
.about-card-horizontal {
    display: flex;             /* Enables side-by-side layout */
    align-items: center;       /* Vertically centers the logo with the text */
    gap: 25px;                 /* Space between logo and text */
    text-align: left;          /* Ensures text aligns left, not center */
    padding: 40px 30px;        /* Slightly more padding looks better here */
}

/* Adjust the logo for horizontal layout */
.about-card-horizontal .org-logo {
    width: 110px;              /* Fixed width for consistency */
    max-width: none;           /* Override previous max-width */
    margin: 0;                 /* Remove the auto margin that centered it */
    flex-shrink: 0;            /* Prevents logo from shrinking if text is long */
}

/* Styling for the text container */
.about-card-horizontal .card-text h3 {
    margin-bottom: 10px;
    margin-top: 0;
}

.about-card-horizontal .card-text p {
    margin: 0;
    font-size: 0.95rem;        /* Slightly smaller font for dense text blocks */
    color: #555;
}

/* Mobile Responsiveness: Stack them back up on small phones */
@media (max-width: 600px) {
    .about-card-horizontal {
        flex-direction: column; /* Stack vertically on mobile */
        text-align: center;     /* Center align text on mobile */
    }
    
    .about-card-horizontal .org-logo {
        margin-bottom: 20px;
    }
}

/* =========================================
   6. Course Topics Grid
   ========================================= */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.topic-item {
    background: #fff;
    padding: 35px 25px;
    text-align: center;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.topic-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: #3498db;
}

.topic-item i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 20px;
    background: #eaf6fc;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
}

.topic-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

/* =========================================
   7. Speakers Section (Cards)
   ========================================= */
.speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.speaker-card {
    background: white;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border-top: 4px solid #3498db;
}

.speaker-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.speaker-img {
    width: 90px;
    height: 90px;
    background: #f0f4f8;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #7f8c8d;
    border: 3px solid #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.speaker-info h4 {
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 1.15rem;
}

.speaker-info .affiliation {
    color: #7f8c8d;
    font-size: 0.9rem;
    font-weight: 500;
}

/* =========================================
   8. Registration & Fees
   ========================================= */
.fee-table-wrapper {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 40px;
}

.fee-table {
    width: 100%;
    border-collapse: collapse;
    color: #333;
}

.fee-table th, .fee-table td {
    padding: 18px 25px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.fee-table th {
    background-color: #34495e;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.fee-table tbody tr:last-child td {
    border-bottom: none;
}

.fee-table tbody tr:hover {
    background-color: #f9f9f9;
}

.note {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 10px;
    font-style: italic;
}

.payment-info {
    text-align: center;
    color: #fff;
    max-width: 800px;
    margin: 0 auto;
}

.bank-details {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 10px;
    margin: 30px auto;
    text-align: left;
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.2);
    width: 100%;
    max-width: 600px;
}

.bank-details p {
    margin-bottom: 10px;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 5px;
}

.bank-details p:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* =========================================
   9. Footer
   ========================================= */
footer {
    background: #1a252f;
    color: #bdc3c7;
    padding: 60px 0 30px;
    text-align: center;
}

.footer-content h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.contact-details p {
    margin-bottom: 10px;
}

.contact-details a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-details a:hover {
    color: #e74c3c;
}

.branding {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    font-size: 0.9rem;
}

/* =========================================
   10. Responsive Design
   ========================================= */
@media(max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        height: auto;
        padding: 15px;
    }
    
    .nav-links {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .nav-links li {
        margin: 0;
    }

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

    .hero-info-grid {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .countdown {
        gap: 10px;
    }
    
    .time-unit {
        min-width: 70px;
        padding: 10px;
    }
    
    .time-unit span {
        font-size: 1.5rem;
    }

    .cta-group {
        flex-direction: column;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .fee-table {
        display: block;
        overflow-x: auto;
    }
}

/* =========================================
   Schedule Section
   ========================================= */
.schedule-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 10px 20px;
    background: #f1f1f1;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    color: #555;
}

.tab-btn:hover {
    background: #ddd;
}

.tab-btn.active {
    background: #e74c3c; /* Matches your primary color */
    color: white;
}

.tab-content {
    display: none; /* Hidden by default */
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    max-width: 900px;
    margin: 0 auto;
    animation: fadeIn 0.5s;
}

.timeline-item {
    display: flex;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

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

.timeline-item .time {
    flex: 0 0 120px;
    font-weight: 700;
    color: #e74c3c;
    display: flex;
    align-items: center;
}

.timeline-item .details h4 {
    margin: 0 0 5px;
    color: #2c3e50;
    font-size: 1.1rem;
}

.timeline-item .details .speaker {
    margin: 0;
    font-size: 0.9rem;
    color: #7f8c8d;
    font-style: italic;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media(max-width: 600px) {
    .timeline-item {
        flex-direction: column;
    }
    .timeline-item .time {
        margin-bottom: 5px;
    }
}

/* =========================================
   11. Gallery Slideshow
   ========================================= */
.carousel-container {
    max-width: 800px;
    position: relative;
    margin: auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    background: #000;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 500px; /* Fixed height for slideshow */
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
}

/* Navigation Buttons */
.carousel-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.3);
    border: none;
    z-index: 10;
}

.next-btn {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev-btn {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.carousel-btn:hover {
    background-color: rgba(0,0,0,0.8);
}

/* Dots/Indicators */
.carousel-dots {
    text-align: center;
    position: absolute;
    bottom: 15px;
    width: 100%;
    z-index: 10;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active, .dot:hover {
    background-color: #fff;
}

/* Caption Text */
.slide-caption {
    color: #f2f2f2;
    font-size: 15px;
    padding: 8px 12px;
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
}

@media only screen and (max-width: 768px) {
    .carousel-track {
        height: 300px;
    }
}

