:root {
    --primary: #2d93d6;
    --secondary: #6db7e8;
    --card-bg: #c4f4f5;
    --navy: #273C67;
    --dark-blue: #0b0b42;
    --white: #ffffff;
    --light-bg: #f5f9ff;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--light-bg);
    color: var(--navy);
    overflow-x: hidden;
}

/* Custom Navigation Bar for Events Page */
.events-nav {
    background: white;
    padding: 15px 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo img {
    height: 55px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    gap: 48px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    color: #273C67;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: 0.3s;
    padding: 8px 0;
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #2d93d6;
    transition: width 0.3s ease;
}

.nav-menu li a:hover {
    color: #2d93d6;
}

.nav-menu li a:hover::after {
    width: 100%;
}

/* Hide default navigation */
body > nav:not(.events-nav) {
    display: none;
}

/* Hero Section */
.page-hero {
    background: linear-gradient(135deg, #273C67 0%, #2d93d6 100%);
    padding: 50px 20px 50px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(196, 244, 245, 0.05);
    z-index: 0;
}

.hero-content {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding-left: 40px;
}

.hero-label {
    color: #c4f4f5;
    letter-spacing: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    display: inline-block;
    background: transparent;
    padding: 0;
}

.page-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 0.75rem;
    color: white;
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
    max-width: 700px;
}

.page-hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 1.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.register-btn,
.sponsor-btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.register-btn {
    background: #2d93d6;
    color: white;
    border: none;
}

.register-btn:hover {
    background: #6db7e8;
    color: #273C67;
    transform: translateY(-2px);
}

.sponsor-btn {
    background: transparent;
    color: white;
    border: 2px solid #c4f4f5;
}

.sponsor-btn:hover {
    background: #c4f4f5;
    color: #273C67;
    transform: translateY(-2px);
}

/* Filter Bar */
.filter-bar {
    background: #273C67;
    padding: 18px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 8px 24px;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.filter-btn.active,
.filter-btn:hover {
    background: #c4f4f5;
    border-color: #c4f4f5;
    color: #273C67;
}

/* Main Container */
.main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 70px 24px;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 48px;
    color: #273C67;
    font-family: 'Playfair Display', serif;
    border-left: 4px solid #2d93d6;
    padding-left: 24px;
}

/* Featured Section */
.featured-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #2d93d6;
    margin-bottom: 1rem;
    font-weight: 500;
}

.featured-card {
    background: linear-gradient(135deg, #273C67 0%, #2d93d6 100%);
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 80px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
}

.featured-image {
    flex: 1.2;
    min-width: 250px;
    position: relative;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feat-date-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #2d93d6;
    border-radius: 16px;
    padding: 8px 14px;
    text-align: center;
    color: white;
    font-weight: bold;
}

.feat-date-badge .day {
    font-size: 1.6rem;
    line-height: 1;
    font-weight: 800;
    display: block;
}

.feat-date-badge .month {
    font-size: 0.75rem;
    text-transform: uppercase;
}

.featured-body {
    flex: 1;
    padding: 44px;
    background: linear-gradient(135deg, #273C67 0%, #2d93d6 100%);
    color: #f1f4faff;
}

.event-tag {
    display: inline-block;
    background: #2d93d6;
    color: white;
    padding: 5px 14px;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.featured-body h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: #f2f4f8ff;
    font-family: 'Playfair Display', serif;
}

.featured-body p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: #f1f4faff;
    line-height: 1.5;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 28px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #e5e7ebff;
}

.meta-item svg {
    stroke: #2d93d6;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #2d93d6;
    color: white;
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #6db7e8;
    color: #273C67;
    gap: 16px;
}

/* Events Grid - Clean 2x2 */
.events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 80px;
}

.event-card {
    background: #6db7e8;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(83, 81, 81, 0.03);
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.08);
}

.card-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    
}

.card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.event-card:hover .card-image img {
    transform: scale(1.05);
}

.card-date-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #2d93d6;
    border-radius: 14px;
    padding: 5px 12px;
    text-align: center;
    color: white;
    font-weight: bold;
}

.card-date-badge .day {
    font-size: 1.2rem;
    line-height: 1;
    font-weight: 800;
}

.card-date-badge .month {
    font-size: 0.65rem;
    text-transform: uppercase;
}

.card-body {
    padding: 28px;
    color: #f0f5ffff;
}

.card-body .event-tag {
    background: rgba(45, 147, 214, 0.1);
    color: white;
    border: 1px solid #2d93d6;
}

.card-body h3 {
    font-size: 1.35rem;
    margin-bottom: 10px;
    line-height: 1.3;
    color: #0b0b42;
    font-family: 'Playfair Display', serif;
}

.card-body p {
    font-size: 0.9rem;
    color: #0b0b42;
    margin-bottom: 16px;
    line-height: 1.5;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.75rem;
    color: #6db7e8;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 14px;
    margin-top: 8px;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-meta svg {
    stroke: #2d93d6;
    width: 12px;
    height: 12px;
}

/* Sponsor Section */
.sponsor-section {
    background: #f0fafa;
    border-radius: 28px;
    padding: 50px;
    margin-bottom: 80px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.sponsor-image {
    flex: 1;
    min-width: 280px;
    border-radius: 20px;
}

.sponsor-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.sponsor-description {
    flex: 1;
    text-align: left;
}

.sponsor-description h3 {
    font-size: 2rem;
    color: #273C67;
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
}

.sponsor-description p {
    color: #273C67;
    line-height: 1.6;
    margin-bottom: 30px;
}

.sponsor-tiers {
    display: flex;
    justify-content: flex-start;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.tier-card {
    background: white;
    padding: 24px 32px;
    border-radius: 20px;
    min-width: 140px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
}

.tier-card:hover {
    transform: translateY(-5px);
}

.tier-card h4 {
    color: #2d93d6;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.tier-card p {
    color: #6db7e8;
    font-size: 0.85rem;
    margin: 6px 0;
}

/* Contact Section */
.contact-section {
    background: #f0fafa;
    border-radius: 28px;
    padding: 50px;
    margin-bottom: 80px;
    text-align: left;
}

.contact-form-wrapper {
    max-width: 550px;
    margin: 0;
}

.contact-form-wrapper h3 {
    font-size: 2rem;
    color: #273C67;
    font-family: 'Playfair Display', serif;
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    font-size: 0.95rem;
    background: white;
    color: #273C67;
    font-family: inherit;
    transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #2d93d6;
    box-shadow: 0 0 0 3px rgba(45, 147, 214, 0.1);
}

.contact-submit-btn {
    background: #2d93d6;
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
}

.contact-submit-btn:hover {
    background: #6db7e8;
    color: #273C67;
    transform: translateY(-2px);
}

.contact-success {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    background: rgba(45, 147, 214, 0.1);
    border-radius: 16px;
}

.contact-success p {
    color: #2d93d6;
    margin: 0;
    font-weight: 500;
}

/* Newsletter Section */
.newsletter {
    background: #273C67;
    border-radius: 28px;
    padding: 50px;
    text-align: center;
    margin-bottom: 0;
}

.newsletter h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: white;
    font-family: 'Playfair Display', serif;
}

.newsletter p {
    margin-bottom: 25px;
    color: rgba(255,255,255,0.8);
}

.nl-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.nl-form input {
    flex: 2;
    min-width: 220px;
    padding: 14px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 0.95rem;
    background: rgba(255,255,255,0.1);
    color: white;
}

.nl-form input:focus {
    outline: none;
    border-color: #2d93d6;
}

.nl-form button {
    background: #2d93d6;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: 0.2s;
}

.nl-form button:hover {
    background: #6db7e8;
    color: #273C67;
    transform: translateY(-2px);
}

/* Footer */
.events-footer {
    background: #273C67;
    padding: 60px 40px 40px;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: left;
}

.footer-col-1 img {
    max-width: 150px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    display: block;
}

.footer-col-2 p {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    line-height: 1.5;
}

.footer-col-3 {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: 0.3s;
}

.footer-link:hover {
    color: #2d93d6;
    transform: translateX(5px);
}

.footer-copyright {
    max-width: 1280px;
    margin: 40px auto 0;
    text-align: center;
}

.footer-copyright p {
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
}

/* Responsive */
@media (max-width: 1024px) {
    .events-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    .footer-col-1,
    .footer-col-2,
    .footer-col-3 {
        text-align: center;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .events-nav {
        padding: 15px 20px;
    }
    .nav-container {
        flex-direction: column;
        align-items: center;
    }
    .nav-logo {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 10px;
    }
    .nav-logo img {
        height: 55px;
        width: auto;
        display: block;
    }
    .nav-menu {
        gap: 30px;
    }
    .hero-content {
        padding-left: 20px;
        padding-right: 20px;
    }
    .page-hero h1 {
        font-size: 2.5rem;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .featured-card {
        flex-direction: column;
    }
    .featured-body {
        padding: 28px;
    }
    .sponsor-section {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    .sponsor-description {
        text-align: center;
    }
    .sponsor-tiers {
        justify-content: center;
    }
    .contact-section {
        padding: 30px 20px;
        text-align: center;
    }
    .contact-form-wrapper {
        margin: 0 auto;
        text-align: center;
    }
    .newsletter {
        padding: 30px 20px;
    }
    .events-footer {
        padding: 40px 20px 30px;
    }
}