/* ==============================
   CSS RESET & VARIABLES
============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

:root {
    --primary: #f43f5e;
    --primary-hover: #e11d48;
    --text-main: #0f172a;
    --text-light: #64748b;
    --bg-main: #f8fafc;
    --bg-white: #ffffff;
    --border: #e2e8f0;
    --divider: #f1f5f9;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --navbar-height: 68px;
    /* Hero Gradient */
    --hero-grad: linear-gradient(135deg, #ff6b35 0%, #f72585 40%, #7209b7 80%, #3a0ca3 100%);
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

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

/* ==============================
   NAVBAR
============================== */
.navbar {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.nav-container {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-img {
    height: 48px;
    width: auto;
    display: block;
    object-fit: contain;
    margin-left: 14px;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.admin-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 50px;
    transition: all 0.2s;
}

.admin-link:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(244, 63, 94, 0.05);
}

/* ==============================
   HERO SECTION
============================== */
.hero {
    position: relative;
    background: var(--hero-grad);
    padding: 80px 40px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    width: 100%;
}

.hero-main-logo {
    display: block;
    margin: 0 auto 24px;
    height: 160px;
    width: auto;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 40px;
    padding: 17px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 50px;
    margin-bottom: 28px;
}

.hero-badge i {
    font-size: 16px;
}

.hero-title {
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
    letter-spacing: 0px;
    margin-bottom: 24px;
}

.hero-highlight {
    background: linear-gradient(90deg, #ffe066, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin: 0 auto 36px;
    max-width: 700px;
}

/* Search Bar in Hero */
.search-bar {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.97);
    border: 2px solid transparent;
    border-radius: 50px;
    padding: 14px 24px;
    gap: 12px;
    max-width: 560px;
    margin: 0 auto 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: all 0.2s;
}

.search-bar:focus-within {
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 0 4px rgba(255, 255, 255, 0.15);
}

.search-bar i {
    color: var(--text-light);
    font-size: 20px;
    flex-shrink: 0;
}

.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 15px;
    color: var(--text-main);
}

.search-bar input::placeholder {
    color: var(--text-light);
}

/* CTA Button */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #7209b7;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 50px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    letter-spacing: -0.2px;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    color: #f72585;
}

.cta-btn i {
    font-size: 20px;
    transition: transform 0.2s;
}

.cta-btn:hover i {
    transform: translateX(4px);
}

/* Hero Decorative Orbs */
.hero-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: #ff6b35;
    top: -100px;
    left: -80px;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: #7209b7;
    bottom: -80px;
    right: -60px;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: #f72585;
    top: 30%;
    left: 60%;
}

/* ==============================
   FILTER / CATEGORY BAR
============================== */
.filter-bar-wrapper {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: var(--navbar-height);
    z-index: 90;
}

.filter-container {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

.categories {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.categories::-webkit-scrollbar {
    display: none;
}

.cat-btn {
    padding: 8px 22px;
    border-radius: 50px;
    border: 1.5px solid var(--border);
    background-color: var(--bg-white);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.cat-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(244, 63, 94, 0.04);
}

.cat-btn.active {
    background: var(--hero-grad);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(247, 37, 133, 0.3);
}

/* ==============================
   MAIN CONTENT
============================== */
.main-content {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 48px 40px 80px;
}

.section-header {
    margin-bottom: 36px;
}

.section-header h2 {
    font-size: 30px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.section-sub {
    font-size: 15px;
    color: var(--text-light);
}

/* ==============================
   EVENT GRID
============================== */
.event-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

/* ==============================
   EVENT CARD
============================== */
.event-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #0f172a;
}

.card-img-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    transform-origin: center;
}

.event-card:hover .card-img {
    transform: scale(1.05);
}

/* Horizontal scrollable image strip for multi-image cards */
.card-img-scroll {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE */
    width: 100%;
    height: 100%;
    scroll-behavior: smooth;
}

.card-img-scroll::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.card-img-scroll .scroll-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    position: relative;
}

.card-img-scroll .scroll-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background-color: #0f172a;
}

/* Scroll indicator dots on card */
.card-scroll-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 3;
}

.card-scroll-dots .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transition: all 0.2s;
}

.card-scroll-dots .dot.active {
    background: #fff;
    transform: scale(1.3);
}

.card-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 6px 14px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 2;
}

.card-more-images {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-views {
    position: absolute;
    bottom: 10px;
    left: 12px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(4px);
}

.card-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-category {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--primary);
    margin-bottom: 8px;
}

.card-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 10px;
    line-height: 1.35;
    letter-spacing: -0.3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-college {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-college i {
    color: var(--primary);
    font-size: 15px;
}

.card-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--divider);
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 13px;
    font-weight: 500;
}

.card-footer i {
    color: var(--primary);
    font-size: 15px;
}

/* ==============================
   ABOUT US SECTION
============================== */
.about-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f0f4ff 100%);
    padding: 80px 40px;
    border-top: 1px solid var(--border);
}

.about-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about-icon {
    width: 72px;
    height: 72px;
    background: var(--hero-grad);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 24px rgba(247, 37, 133, 0.3);
}

.about-icon i {
    font-size: 36px;
    color: #fff;
}

.about-container h2 {
    font-size: 34px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
    margin-bottom: 18px;
}

.about-container p {
    font-size: 17px;
    color: var(--text-light);
    line-height: 1.8;
}

/* ==============================
   FOOTER
============================== */
.footer {
    background-color: #0f172a;
    color: #cbd5e1;
    padding: 64px 40px 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    margin-bottom: 16px;
    display: block;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    color: #94a3b8;
    margin-bottom: 20px;
}

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

.social-links a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.07);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 18px;
    transition: all 0.2s;
}

.social-links a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 15px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 18px;
    letter-spacing: -0.2px;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a,
.footer-contact a {
    font-size: 14px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 2px;
    transition: color 0.2s;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #f43f5e;
}

.footer-links a i {
    font-size: 16px;
    color: #475569;
}

.footer-contact li {
    font-size: 14px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact li i {
    color: #475569;
    font-size: 16px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    font-size: 13px;
    color: #475569;
    text-align: center;
}

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 1200px) {
    .event-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .event-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .footer-brand {
        grid-column: 1 / -1;
    }

    .logo-img {
        height: 44px;
        margin-left: 12px;
    }
}

@media (max-width: 640px) {
    .nav-container {
        padding: 0 20px;
    }

    .logo-img {
        height: 36px;
        margin-left: 12px;
    }

    .hero {
        padding: 70px 20px 60px;
    }

    .hero-sub {
        font-size: 15px;
    }

    .event-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .main-content,
    .about-section {
        padding: 40px 20px;
    }

    .filter-container {
        padding: 0 20px;
    }

    .footer {
        padding: 48px 20px 0;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .search-bar {
        padding: 12px 18px;
    }
}

@media (max-width: 420px) {
    .event-grid {
        grid-template-columns: 1fr;
    }
}
