/* General Styling & Color Palette */

/* Responsive */
@media (max-width: 500px) {
    .auth-container {
        padding: 2rem;
    }

    .otp-input {
        width: 40px;
        height: 50px;
        font-size: 1.5rem;
    }
}

:root {
    --color-bg-dark: #0f172a;
    /* Slate 900 */
    --color-bg-medium: #1e293b;
    /* Slate 800 */
    --color-border: #334155;
    /* Slate 700 */
    --color-text-light: #e2e8f0;
    /* Slate 200 */
    --color-text-medium: #94a3b8;
    /* Slate 400 */
    --color-primary: #818cf8;
    /* Indigo 400 */
    --color-primary-dark: #4f46e5;
    /* Indigo 600 */
    --color-accent: #f59e0b;
    /* Amber 500 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    line-height: 1.7;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Header --- */
.site-header {
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
}

.logo .fa-star {
    color: var(--color-accent);
    margin-right: 0.5rem;
}

.back-link {
    background-color: var(--color-primary-dark);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-link:hover {
    background-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(129, 140, 248, 0.5);
    transform: translateY(-2px);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    text-align: center;
    padding: 6rem 0;
    background: url('https://placehold.co/1920x800/0f172a/e2e8f0?text=Campus+View') no-repeat center center/cover;
    color: white;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.95));
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    color: var(--color-text-medium);
}

/* --- Contact Details Section --- */
.contact-grid {
    padding: 5rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-card {
    background-color: var(--color-bg-medium);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-card .icon {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

.contact-card p {
    color: var(--color-text-medium);
    line-height: 1.8;
}

.contact-card a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* --- Form & Map Section --- */
.form-map-section {
    padding-bottom: 5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

.contact-form-wrapper h2,
.map-wrapper h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text-medium);
}

.form-input,
.form-textarea,
.form-select {
    background-color: var(--color-bg-medium);
    border: 1px solid var(--color-border);
    color: var(--color-text-light);
    padding: 0.9rem 1rem;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.25);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    box-shadow: 0 5px 20px rgba(129, 140, 248, 0.4);
    transform: scale(1.05);
}

.map-wrapper iframe {
    width: 100%;
    height: 500px;
    border: 0;
    border-radius: 12px;
    filter: grayscale(1) invert(0.9);
}

/* --- Footer --- */
.site-footer {
    background-color: var(--color-bg-medium);
    color: var(--color-text-medium);
    padding-top: 4rem;
    border-top: 5px solid var(--color-primary-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding-bottom: 3rem;
}

.footer-column h4 {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-logo-column .logo {
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul a {
    color: var(--color-text-medium);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul a:hover {
    color: var(--color-primary);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icons a {
    color: var(--color-text-medium);
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: var(--color-primary);
    transform: scale(1.2);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .form-map-section {
        grid-template-columns: 1fr;
    }

    .map-wrapper iframe {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0f172a;
    /* Slate 900 */
    color: #e2e8f0;
    /* Slate 200 */
}

.hero-gradient {
    background: radial-gradient(circle, rgba(29, 78, 216, 0.3) 0%, rgba(15, 23, 42, 0) 60%);
}

.btn-glow {
    box-shadow: 0 0 5px #6366f1, 0 0 10px #6366f1, 0 0 15px #6366f1;
    transition: all 0.3s ease-in-out;
}

.btn-glow:hover {
    box-shadow: 0 0 10px #818cf8, 0 0 20px #818cf8, 0 0 30px #818cf8;
}

.card-bg {
    background-color: #1e293b;
    /* Slate 800 */
    border: 1px solid #334155;
    /* Slate 700 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-bg:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

.filter-btn {
    transition: all 0.3s ease;
}

.filter-btn.active {
    background-color: #4f46e5;
    /* Indigo 600 */
    color: #fff;
    box-shadow: 0 0 10px #4f46e5;
}

/* Animation for event cards */
.event-card {
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hide class for filtering */
.hidden-event {
    display: none !important;
}

.section-header-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    /* To contain the pseudo-element */
}

.section-header-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(30, 41, 59, 0.75);
    /* Slate 800 with 75% opacity for a nice blend */
    z-index: 1;
}

.section-header-bg>* {
    position: relative;
    z-index: 2;
    /* To ensure content is above the overlay */
}/*
====================================
--- PROFILE DROPDOWN STYLES ---
====================================
*/

.profile-dropdown {
    position: relative;
    display: inline-block;
}

.profile-btn {
    background-color: #334155; /* Slate 700 */
    color: white;
    padding: 10px 16px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.profile-btn:hover {
    background-color: #4f46e5; /* Indigo 600 */
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.7);
}

.profile-btn .fa-user-circle {
    font-size: 1.2rem;
}

.profile-btn .fa-chevron-down {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.profile-dropdown:hover .profile-btn .fa-chevron-down {
    transform: rotate(180deg);
}

.profile-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #fff;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #1e293b; /* Slate 800 */
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    z-index: 100;
    border-radius: 10px;
    border: 1px solid #334155;
    padding: 8px 0;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.profile-dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-item {
    color: #cbd5e1; /* Slate 300 */
    padding: 12px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-item i {
    width: 20px;
    color: #94a3b8; /* Slate 400 */
    transition: color 0.2s ease;
}

.dropdown-item:hover {
    background-color: #4f46e5; /* Indigo 600 */
    color: white;
}

.dropdown-item:hover i {
    color: white;
}

.dropdown-item.logout:hover {
    background-color: #dc2626; /* Red 600 */
}