/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --primary-color: #60a5fa;
    --primary-dark: #3b82f6;
    --text-dark: #f3f4f6;
    --text-light: #9ca3af;
    --bg-light: #1f2937;
    --bg-white: #111827;
    --border-color: #374151;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
    min-height: 70px;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    max-width: 100%;
}

/* Images responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Prevent horizontal scroll */
html,
body {
    overflow-x: hidden;
    width: 100%;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Touch improvements for mobile */
@media (hover: none) and (pointer: coarse) {

    .btn,
    .nav-link,
    .nav-item {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn-icon {
        min-width: 44px;
        min-height: 44px;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-right: 1rem;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/hero-bg.jpg') no-repeat center center;
    background-size: cover;
}

/* Overlay to ensure text readability */
.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--bg-white);
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--bg-white);
    border: 2px solid var(--bg-white);
}

.btn-secondary:hover {
    background: var(--bg-white);
    color: var(--primary-color);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.about-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.card-icon i {
    display: block;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.about-card p {
    color: var(--text-light);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-icon i {
    display: block;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta .btn-primary {
    background: var(--bg-white);
    color: var(--primary-color);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* Contact Page */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info>p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: start;
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
    color: var(--primary-color);
    width: 50px;
    text-align: center;
}

.contact-icon i {
    display: block;
}

.contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--text-light);
}

.contact-form-wrapper {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.contact-form-wrapper h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* Contact Info Centered */
.contact-info-centered {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-info-centered h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contact-intro {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.contact-details-centered {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-details-centered .contact-item {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-details-centered .contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.contact-details-centered .contact-icon {
    width: auto;
    margin-bottom: 1rem;
}

.contact-details-centered .contact-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-details-centered .contact-item p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    display: block;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    display: block;
}

/* Sponsors Page */
.sponsors-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

/* No special grid columns needed with flex */


.sponsor-card {
    flex: 0 1 300px;
    /* Base width */
    min-width: 250px;
    /* remaining styles are kept in the original block below, I am only replacing the grid definition */
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sponsor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.sponsor-card.premium {
    border: 2px solid var(--accent-color);
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

[data-theme="dark"] .sponsor-card.premium {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

.sponsor-logo {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    width: 100%;
}

.sponsor-logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.sponsor-logo i {
    display: block;
    font-size: 3.5rem;
    color: var(--primary-color);
}

.sponsor-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.sponsor-category {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.sponsor-description {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Membership Page */
.membership-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-btn {
    padding: 1rem 2rem;
    border: 2px solid var(--border-color);
    background: var(--bg-white);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.membership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.membership-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.membership-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.membership-card.featured {
    border: 3px solid var(--primary-color);
    transform: scale(1.05);
}

.membership-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.membership-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.membership-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.membership-price span {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: normal;
}

.membership-features {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.membership-features li {
    padding: 0.75rem 0;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.membership-features li:last-child {
    border-bottom: none;
}

.membership-features li i {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.sponsor-info {
    text-align: center;
    margin-bottom: 3rem;
}

.sponsor-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.sponsor-info p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.sponsor-levels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.sponsor-level-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.sponsor-level-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.sponsor-level-card.featured {
    border: 3px solid var(--accent-color);
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

[data-theme="dark"] .sponsor-level-card.featured {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

.sponsor-level-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.sponsor-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.sponsor-price span {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: normal;
}

.sponsor-level-card ul {
    list-style: none;
    text-align: left;
}

.sponsor-level-card ul li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sponsor-level-card ul li i {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.sponsor-cta {
    text-align: center;
}

/* Events Page */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.event-card {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: row;
    min-height: 200px;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.event-date {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    flex-shrink: 0;
}

.event-day {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    display: block;
}

.event-month {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 0.5rem;
    display: block;
}

.event-year {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.25rem;
    display: block;
}

.event-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    width: fit-content;
}

.event-category i {
    font-size: 0.9rem;
}

.event-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.event-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex: 1;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.event-detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.event-detail-item i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.event-price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
}

.btn-small {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

.no-events {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.no-events i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: block;
}

.no-events p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.form-container h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.membership-form {
    width: 100%;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
}

[data-theme="dark"] .footer {
    background: #0f172a;
    color: #e5e7eb;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section p i {
    width: 20px;
    text-align: center;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

[data-theme="dark"] .footer-section ul li a {
    color: #9ca3af;
}

[data-theme="dark"] .footer-section ul li a:hover {
    color: #f3f4f6;
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    font-size: 1.5rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    transform: scale(1.2);
    color: white;
    background: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

/* 404 Page */
.error-404 {
    text-align: center;
    padding: 4rem 0;
    max-width: 600px;
    margin: 0 auto;
}

.error-icon {
    font-size: 6rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.error-icon i {
    display: block;
}

.error-404 h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.error-404 p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .hero-title {
        font-size: 4rem;
    }

    .section-title {
        font-size: 3rem;
    }
}

/* Desktop (1024px - 1399px) */
@media (min-width: 1024px) and (max-width: 1399px) {
    .container {
        max-width: 1200px;
    }
}

/* Tablet Landscape (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        padding: 0 30px;
    }

    .hero {
        min-height: 550px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .section {
        padding: 4rem 0;
    }

    .about-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .membership-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .membership-card.featured {
        transform: scale(1.02);
    }

    .sponsors-grid.premium {
        grid-template-columns: repeat(2, 1fr);
    }

    .sponsors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-details-centered {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .event-card {
        min-height: 180px;
    }

    .event-date {
        min-width: 90px;
        padding: 1.25rem;
    }

    .event-content {
        padding: 1.75rem;
    }
}

/* Tablet Portrait & Mobile Landscape (481px - 767px) */
@media (max-width: 767px) {
    .container {
        padding: 0 20px;
    }

    /* Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        z-index: 999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu .nav-link {
        display: block;
        padding: 1rem 2rem;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu .nav-link.active::after {
        display: none;
    }

    .nav-menu .nav-link.active {
        background: var(--bg-light);
        color: var(--primary-color);
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Hero */
    .hero {
        min-height: 500px;
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    /* Sections */
    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-description {
        font-size: 1rem;
    }

    /* Grids */
    .about-grid,
    .services-grid,
    .sponsors-grid,
    .sponsors-grid.premium,
    .events-grid,
    .membership-grid,
    .sponsor-levels {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-details-centered {
        grid-template-columns: 1fr;
    }

    /* Cards */
    .membership-card.featured {
        transform: scale(1);
        border-width: 2px;
    }

    .membership-tabs {
        flex-direction: column;
        width: 100%;
    }

    .tab-btn {
        width: 100%;
    }

    /* Page Header */
    .page-header {
        padding: 3rem 0;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1.1rem;
    }

    /* Forms */
    .form-row {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 2rem 1.5rem;
    }

    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }

    /* Events */
    .event-card {
        flex-direction: column;
        min-height: auto;
    }

    .event-date {
        min-width: 100%;
        padding: 1rem;
        flex-direction: row;
        justify-content: center;
    }

    .event-date .event-day {
        font-size: 2rem;
        margin-right: 0.5rem;
    }

    .event-date .event-month {
        margin: 0 0.25rem;
    }

    .event-date .event-year {
        margin-left: 0.5rem;
    }

    .event-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .event-footer .btn {
        width: 100%;
    }

    .event-details {
        gap: 0.5rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section {
        margin-bottom: 2rem;
    }

    .social-links {
        justify-content: center;
    }

    /* CTA */
    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1.1rem;
    }
}

/* Mobile (320px - 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    /* Logo */
    .logo {
        font-size: 1.25rem;
        gap: 0.4rem;
    }

    .logo-img {
        height: 40px;
        max-width: 40px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .navbar {
        padding: 0.75rem 0;
        min-height: 60px;
    }

    /* Hero */
    .hero {
        min-height: 450px;
        padding: 1.5rem 0;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    /* Sections */
    .section {
        padding: 2.5rem 0;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .section-description {
        font-size: 0.95rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    /* Cards */
    .about-card,
    .service-card,
    .sponsor-card,
    .membership-card,
    .sponsor-level-card {
        padding: 1.5rem;
    }

    .card-icon,
    .service-icon {
        font-size: 2.5rem;
    }

    .about-card h3,
    .service-card h3 {
        font-size: 1.25rem;
    }

    /* Page Header */
    .page-header {
        padding: 2.5rem 0;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    /* Contact */
    .contact-info-centered h2 {
        font-size: 2rem;
    }

    .contact-item {
        padding: 1.5rem;
    }

    .contact-icon {
        font-size: 1.5rem;
        width: 40px;
    }

    /* Events */
    .events-grid {
        gap: 1.5rem;
    }

    .event-card {
        border-radius: 8px;
        min-height: auto;
    }

    .event-content {
        padding: 1.5rem;
    }

    .event-content h3 {
        font-size: 1.25rem;
    }

    .event-date {
        padding: 1rem;
        flex-direction: row;
        min-width: 100%;
    }

    .event-day {
        font-size: 2rem;
        margin-right: 0.5rem;
    }

    .event-month {
        margin: 0 0.25rem;
    }

    .event-year {
        margin-left: 0.5rem;
    }

    .event-category {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    /* Forms */
    .form-container {
        padding: 1.5rem 1rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem 1rem;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.625rem;
        font-size: 0.95rem;
    }

    /* Buttons */
    .btn {
        width: 100%;
        text-align: center;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .btn-large {
        padding: 1rem 2rem;
        font-size: 1.05rem;
    }

    .btn-small {
        padding: 0.5rem 1.25rem;
        font-size: 0.85rem;
    }

    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        gap: 1.5rem;
    }

    .footer-section h3,
    .footer-section h4 {
        font-size: 1.1rem;
    }

    .footer-section p {
        font-size: 0.9rem;
    }

    /* CTA */
    .cta-content h2 {
        font-size: 1.75rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    /* Membership */
    .membership-price {
        font-size: 2rem;
    }

    .membership-features {
        font-size: 0.9rem;
    }

    .sponsor-price {
        font-size: 1.75rem;
    }

    /* Error 404 */
    .error-404 {
        padding: 3rem 1rem;
    }

    .error-icon {
        font-size: 4rem;
    }

    .error-404 h2 {
        font-size: 2rem;
    }

    .error-actions {
        flex-direction: column;
    }

    .error-actions .btn {
        width: 100%;
    }
}

/* Very Small Mobile (max-width: 360px) */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .about-card,
    .service-card,
    .sponsor-card,
    .membership-card {
        padding: 1.25rem;
    }

    .event-content {
        padding: 1.25rem;
    }

    .form-container,
    .contact-form-wrapper {
        padding: 1.25rem 0.75rem;
    }
}

/* Landscape Orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 400px;
        padding: 1rem 0;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .section {
        padding: 2rem 0;
    }
}

@media (max-width: 768px) {
    .sponsors-grid {
        gap: 1rem;
    }

    .sponsor-card {
        padding: 1.5rem;
    }

    .sponsor-logo {
        font-size: 3rem;
    }

    .sponsor-card h3 {
        font-size: 1.25rem;
    }
}

/* User Dashboard Styles */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 2.5fr;
    /* Adjusted ratio for better look */
    gap: 2rem;
    margin-top: 2rem;
}

.dashboard-sidebar {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    align-self: start;
    position: sticky;
    top: 100px;
}

.dashboard-content {
    min-width: 0;
}

.content-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.user-profile {
    text-align: center;
    margin-bottom: 2rem;
}

.avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dashboard-nav li {
    margin-bottom: 0.5rem;
}

.dashboard-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    color: var(--primary-color);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.dashboard-nav-link:hover {
    background: var(--primary-color);
    color: white;
}

.dashboard-nav-link.logout {
    color: #ef4444;
    background: transparent;
    border: 1px solid #ef4444;
}

.dashboard-nav-link.logout:hover {
    background: #ef4444;
    color: white;
}

.events-list {
    display: grid;
    gap: 1rem;
}

.event-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    background: var(--bg-white);
    transition: box-shadow 0.3s;
}

.event-item:hover {
    box-shadow: var(--shadow-sm);
}

.event-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.event-info p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Dashboard Responsive */
@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .dashboard-sidebar {
        position: static;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .user-profile {
        margin-bottom: 1.5rem;
    }

    .dashboard-nav {
        width: 100%;
    }

    .dashboard-nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }

    .dashboard-nav li {
        width: auto;
        flex: 1;
        min-width: 140px;
        margin: 0;
    }

    .dashboard-nav-link {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .event-item {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 1rem;
    }

    .event-info {
        margin-bottom: 1rem;
    }

    .event-item form,
    .event-item button {
        width: 100%;
    }

    .dashboard-nav ul {
        flex-direction: column;
    }

    .dashboard-nav li {
        width: 100%;
    }
}