/* ==========================================================================
   Lab Assignment 2 - Question 2
   Responsive College Event Management Web Page (TechTantra 2026)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. GLOBAL RESET & BASE STYLES
   -------------------------------------------------------------------------- */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #f8fafc;
}

a {
    text-decoration: none;
    color: inherit;
}

h1, h2, h3 {
    color: #0f172a;
    margin-bottom: 10px;
}

p {
    margin-bottom: 10px;
}

section {
    padding: 50px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

h2 {
    text-align: center;
    font-size: 2.1rem;
    color: #1e3a8a;
    margin-bottom: 8px;
}

section > p {
    text-align: center;
    color: #64748b;
    margin-bottom: 35px;
    font-size: 1.05rem;
}

/* Base Buttons */
.btn {
    display: inline-block;
    background-color: #ef4444; /* Bright festival red */
    color: #ffffff;
    padding: 12px 24px;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s;
}

.btn:hover {
    background-color: #dc2626;
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   2. HEADER & NAVIGATION MENU (CSS FLEXBOX)
   -------------------------------------------------------------------------- */
.header {
    background-color: #1e3a8a; /* Indigo Navy */
    color: #ffffff;
    display: flex; /* Flexbox Navbar */
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo h2 {
    color: #ffffff;
    margin-bottom: 0;
    font-size: 1.5rem;
}

.nav-links {
    display: flex; /* Flexbox links */
    list-style: none;
    gap: 20px;
}

.nav-links a {
    color: #cbd5e1;
    font-weight: bold;
    padding: 6px 12px;
    transition: color 0.3s, background-color 0.3s;
    border-radius: 4px;
}

/* Nav Link Hover Effects */
.nav-links a:hover {
    color: #ffffff;
    background-color: #1d4ed8;
}

/* --------------------------------------------------------------------------
   3. EVENT BANNER (HERO BANNER)
   -------------------------------------------------------------------------- */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    color: #ffffff;
    padding: 60px 40px;
    border-radius: 8px;
    margin-top: 20px;
    gap: 40px;
}

.hero-content {
    flex: 1.2;
}

.hero-content h1 {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.15rem;
    color: #cbd5e1;
    margin-bottom: 25px;
}

.hero-image {
    flex: 0.8;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.1);
}

/* --------------------------------------------------------------------------
   4. ABOUT THE EVENT
   -------------------------------------------------------------------------- */
.about {
    background-color: #ffffff;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.about-highlights {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.highlight-item {
    background-color: #f1f5f9;
    padding: 20px 40px;
    border-radius: 8px;
    border-top: 4px solid #ef4444;
    min-width: 180px;
}

.highlight-item h3 {
    font-size: 2.2rem;
    color: #ef4444;
    margin-bottom: 5px;
}

.highlight-item p {
    color: #475569;
    font-weight: bold;
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   5. EVENT SCHEDULE (TABLE)
   -------------------------------------------------------------------------- */
.schedule {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-table th, 
.schedule-table td {
    border: 1px solid #cbd5e1;
    padding: 14px 16px;
    text-align: left;
}

.schedule-table th {
    background-color: #1e3a8a;
    color: #ffffff;
    font-weight: bold;
    font-size: 0.95rem;
}

.schedule-table tr:nth-child(even) {
    background-color: #f8fafc;
}

.schedule-table tr:hover {
    background-color: #eff6ff;
}

/* --------------------------------------------------------------------------
   6. TECHNICAL & CULTURAL EVENTS (CSS GRID)
   -------------------------------------------------------------------------- */
.events {
    background-color: #f8fafc;
}

.event-grid {
    display: grid; /* CSS Grid arranged layout */
    grid-template-columns: repeat(3, 1fr); /* 3 event columns */
    gap: 30px;
}

.event-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

/* Card Hover effect */
.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

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

.event-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.category-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    width: fit-content;
    margin-bottom: 12px;
}

.category-badge.tech {
    background-color: #dbeafe;
    color: #1e40af;
}

.category-badge.cultural {
    background-color: #fce7f3;
    color: #9d174d;
}

.event-info h3 {
    font-size: 1.25rem;
    color: #0f172a;
    margin-bottom: 8px;
}

.event-info p {
    font-size: 0.92rem;
    color: #475569;
    margin-bottom: 15px;
    flex-grow: 1;
}

.coordinator {
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 15px;
}

.card-btn {
    display: block;
    text-align: center;
    background-color: #1e3a8a;
    color: #ffffff;
    padding: 10px;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
    margin-top: auto;
}

.card-btn:hover {
    background-color: #2563eb;
}

/* --------------------------------------------------------------------------
   7. REGISTRATION FORM
   -------------------------------------------------------------------------- */
.registration {
    background-color: #f8fafc;
}

.form-container {
    max-width: 650px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.form-container h2 {
    margin-bottom: 10px;
}

.reg-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 6px;
    color: #1e3a8a;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.98rem;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: #ef4444;
    box-shadow: 0 0 5px rgba(239, 68, 68, 0.3);
}

.submit-btn {
    background-color: #ef4444;
    color: #ffffff;
    border: none;
    padding: 14px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #dc2626;
}

/* --------------------------------------------------------------------------
   8. ORGANIZING COMMITTEE (CSS FLEXBOX)
   -------------------------------------------------------------------------- */
.committee {
    background-color: #ffffff; /* Alternate section background cleanly */
}

.committee-flex {
    display: flex; /* Flexbox list */
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.member-card {
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-top: 4px solid #1e3a8a; /* Clean colored accent bar */
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    min-width: 240px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-top-color 0.3s ease;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-top-color: #ef4444; /* Swap color highlight on hover */
}

.member-card h3 {
    font-size: 1.25rem;
    color: #1e3a8a;
    margin-bottom: 6px;
    font-weight: bold;
}

.member-card .role {
    font-size: 0.95rem;
    font-weight: bold;
    color: #ef4444;
    margin-bottom: 4px;
}

.member-card .dept {
    font-size: 0.88rem;
    color: #475569;
}

/* --------------------------------------------------------------------------
   9. FOOTER (CSS FLEXBOX)
   -------------------------------------------------------------------------- */
.footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 50px 20px 25px;
}

.footer-content {
    display: flex; /* Flexbox footer columns */
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    gap: 30px;
    flex-wrap: wrap;
    padding-bottom: 30px;
    border-bottom: 1px solid #334155;
}

.footer-section {
    flex: 1;
    min-width: 220px;
}

.footer-section h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.footer-section p {
    font-size: 0.92rem;
    margin-bottom: 8px;
}

.footer-section p i {
    color: #ef4444;
    margin-right: 8px;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.social-icons a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #1e293b;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background-color 0.3s, transform 0.2s;
}

.social-icons a:hover {
    background-color: #ef4444;
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    font-size: 0.88rem;
}

/* --------------------------------------------------------------------------
   10. RESPONSIVE DESIGN (MEDIA QUERIES)
   -------------------------------------------------------------------------- */

/* TABLET VIEWPORT (max-width: 900px) */
@media screen and (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }

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

    .event-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
        gap: 20px;
    }
}

/* MOBILE VIEWPORT (max-width: 600px) */
@media screen and (max-width: 600px) {
    .header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 15px;
    }

    .nav-links {
        flex-direction: column;
        gap: 8px;
    }

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

    .about-highlights {
        gap: 20px;
    }

    .event-grid {
        grid-template-columns: 1fr; /* 1 column on mobile phones */
    }

    .form-container {
        padding: 10px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}
