/* Page Base */
.events-page {
    min-height: 100vh;
    background: #f8fafc;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #059669 100%);
    height: 600px;
    /* Fixed height for consistency */
    padding: 150px 40px 0;
    /* Fixed top padding, bottom handled by flex/height */
    /* Optimized padding */
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* Align content to top */
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin-top: 20px;
    /* Reduced spacing */
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #fbbf24;
}

.stat-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-visual {
    position: relative;
    z-index: 2;
}

.floating-icon {
    font-size: 12rem;
    opacity: 0.2;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

/* Featured Card */
.featured-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    display: flex;
    gap: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.featured-left {
    flex: 1;
}

.featured-top {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.featured-label {
    display: inline-block;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #78350f;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.quota-badge {
    background: #fef2f2;
    color: #dc2626;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.featured-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.featured-card>.featured-left>p {
    color: #64748b;
    margin-bottom: 24px;
    line-height: 1.6;
}

.featured-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #475569;
}

.info-icon {
    font-size: 1.1rem;
}

.organizers {
    margin-bottom: 24px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
}

.org-label {
    font-size: 0.8rem;
    color: #64748b;
    display: block;
    margin-bottom: 8px;
}

.org-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1e293b;
}

.featured-buttons {
    display: flex;
    gap: 12px;
}

.btn-featured-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-featured-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.3);
}

.btn-featured-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #475569;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-featured-secondary:hover {
    border-color: #059669;
    color: #059669;
}

.featured-right {
    display: flex;
    align-items: center;
}

.countdown-box {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    padding: 32px 48px;
    border-radius: 20px;
    text-align: center;
}

.countdown-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.countdown-number {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
}

.countdown-unit {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 4px;
    opacity: 0.8;
}

/* Filters */
.filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.filter-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.chip {
    padding: 10px 20px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chip:hover {
    border-color: #059669;
    color: #059669;
}

.chip.active {
    background: #059669;
    border-color: #059669;
    color: white;
}

.add-event-btn {
    padding: 10px 20px;
    background: #f0fdf4;
    color: #059669;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.add-event-btn:hover {
    background: #059669;
    color: white;
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

/* Cards */
.card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    display: flex;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-date {
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    flex-shrink: 0;
}

.card.camp .card-date {
    background: linear-gradient(135deg, #059669, #10b981);
}

.card.training .card-date {
    background: linear-gradient(135deg, #0a2351, #1e4ba1);
}

.card.seminar .card-date {
    background: linear-gradient(135deg, #9333ea, #a855f7);
}

.card-date .day {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.card-date .month {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.type-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.card.camp .type-dot {
    background: #10b981;
}

.card.camp .card-type {
    color: #059669;
}

.card.training .type-dot {
    background: #1e4ba1;
}

.card.training .card-type {
    color: #0a2351;
}

.card.seminar .type-dot {
    background: #9333ea;
}

.card.seminar .card-type {
    color: #9333ea;
}

.card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.4;
    min-height: 2.8em;
    /* Ensure 2 lines */
}

.card-location {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 16px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    margin-top: auto;
}

.card-meta {
    font-size: 0.8rem;
    color: #94a3b8;
}

.card-price {
    font-size: 1rem;
    font-weight: 700;
    color: #059669;
}

.card-btn {
    display: block;
    text-align: center;
    background: #f1f5f9;
    color: #475569;
    padding: 10px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.card-btn:hover {
    background: #059669;
    color: white;
}

/* Calendar Section */
.calendar-section {
    background: white;
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 60px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.calendar-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    user-select: none;
}

.nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: white;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: #f8fafc;
    border-color: #059669;
    color: #059669;
}

.current-month {
    font-weight: 600;
    color: #1e293b;
    min-width: 120px;
    text-align: center;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cal-day-name {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    padding: 12px;
    text-transform: uppercase;
}

.cal-day {
    text-align: center;
    padding: 12px;
    font-size: 0.9rem;
    color: #475569;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cal-day:hover {
    background: #f0fdf4;
}

.cal-day.today {
    background: #059669;
    color: white;
    font-weight: 700;
}

.cal-day.has-event {
    background: #f0fdf4;
    color: #059669;
    font-weight: 600;
}

.calendar-legend {
    display: flex;
    gap: 24px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #64748b;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.camp {
    background: #10b981;
}

.dot.training {
    background: #1e4ba1;
}

.dot.seminar {
    background: #9333ea;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 24px 80px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-visual {
        display: none;
    }

    .featured-card {
        flex-direction: column;
        padding: 24px;
    }

    .featured-right {
        justify-content: center;
    }

    .filters-bar {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .card {
        flex-direction: column;
    }

    .card-date {
        width: 100%;
        flex-direction: row;
        gap: 8px;
        padding: 12px 20px;
    }

    .card-body {
        padding: 20px;
    }
}