/* ============================
   HERO
   ============================ */
.upcoming-hero {
    position: relative;
    height: 65vh;
    background-image: url("images/ole-satima-1.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 80px;
}
.upcoming-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}
.upcoming-hero-content {
    position: relative;
    z-index: 1;
    color: white;
}
.upcoming-hero-content h1 {
    font-size: 5rem;
    line-height: 0.95;
    letter-spacing: -3px;
    margin-bottom: 0;
}

/* ============================
   CALENDAR SECTION
   ============================ */
.calendar-section {
    background: #fafaf7;
}
.calendar-inner {
    max-width: 1100px;
    margin: 0 auto;
}

/* ============================
   MONTH PAGES
   ============================ */
.month-pages {
    position: relative;
}
.month-page {
    display: none;
}
.month-page.active {
    display: block;
}
.month-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2a3a38;
    margin-bottom: 1.25rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid #648381;
}

/* ============================
   CALENDAR GRID
   ============================ */
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}
.cal-day-header {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #648381;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.5rem 0;
}
.cal-cell {
    background: #fff;
    border-radius: 8px;
    min-height: 90px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    position: relative;
}
.cal-cell.empty {
    background: transparent;
    box-shadow: none;
}
.cal-cell.has-event {
    cursor: pointer;
    border: 2px solid #648381;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cal-cell.has-event:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(100,131,129,0.2);
}
.cal-cell.event-span {
    border-color: #a0bab8;
    background: #f0f5f5;
}
.cal-date {
    font-size: 0.82rem;
    font-weight: 700;
    color: #2a3a38;
}
.cal-cell.has-event .cal-date {
    color: #648381;
}
.event-dot {
    width: 7px;
    height: 7px;
    background: #f5a623;
    border-radius: 50%;
    display: block;
}
.event-preview {
    font-size: 0.68rem;
    color: #2a3a38;
    line-height: 1.3;
    font-weight: 600;
    margin-top: 2px;
}

/* ============================
   PAGINATION
   ============================ */
.cal-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.cal-arrow {
    background: #648381;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
.cal-arrow:hover {
    background: #4f6b69;
}
.cal-arrow:disabled {
    background: #ccc;
    cursor: default;
}
.cal-dots {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}
.cal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cdd9d8;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.cal-dot.active {
    background: #648381;
    transform: scale(1.3);
}

/* ============================
   EVENT MODAL
   ============================ */
.event-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 40, 38, 0.55);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.event-modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}
.event-modal {
    background: #fff;
    border-radius: 14px;
    padding: 2.5rem 2rem;
    max-width: 420px;
    width: 90%;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.25s ease;
    border-top: 5px solid #648381;
}
.event-modal-overlay.open .event-modal {
    transform: translateY(0);
}
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
}
.modal-close:hover {
    color: #2a3a38;
}
.modal-date-badge {
    display: inline-block;
    background: #f0f5f5;
    color: #648381;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}
.modal-title {
    font-size: 1.5rem;
    color: #2a3a38;
    margin-bottom: 0.75rem;
    line-height: 1.25;
}
.modal-difficulty {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 1.75rem;
}
.modal-difficulty.moderate {
    background: #fff3cd;
    color: #856404;
}
.modal-difficulty.hard {
    background: #f8d7da;
    color: #842029;
}
.modal-difficulty.easy {
    background: #d4edda;
    color: #1a6630;
}
.modal-join-btn {
    display: block;
    background: #648381;
    color: #fff;
    text-decoration: none;
    padding: 0.85rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    transition: background 0.2s ease;
}
.modal-join-btn:hover {
    background: #4f6b69;
}

/* ============================
   CTA
   ============================ */
.upcoming-cta {
    background: transparent;
    padding: 5rem 80px;
    text-align: center;
    color: #222;
}

.upcoming-cta-inner h2 {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    color: #222;
}

.upcoming-cta-inner p {
    color: #555;
    margin-bottom: 2rem;
    font-size: 1rem;
}
.contact-details {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}
.contact-details span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: #fff;
    font-weight: 600;
}
.contact-details i { color: #f5a623; }

/* ============================
   NAV ACTIVE
   ============================ */
.navbar a.nav-active {
    color: #648381;
    font-weight: bold;
}

/* ============================
   SCROLL REVEAL
   ============================ */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================
   TABLET
   ============================ */
@media (max-width: 1024px) {
    .upcoming-hero { padding: 0 40px; }
    .upcoming-hero-content h1 { font-size: 3.5rem; }
    .upcoming-cta { padding: 4rem 40px; }
}

/* ============================
   MOBILE
   ============================ */
@media (max-width: 767px) {
    .upcoming-hero {
        padding: 0 20px;
        height: 35vh;
        align-items: flex-end;
        padding-bottom: 28px;
    }
    .upcoming-hero-content h1 {
        font-size: 2.4rem;
        letter-spacing: -1.5px;
    }
    .cal-cell { min-height: 60px; }
    .event-preview { display: none; }
    .upcoming-cta { padding: 3rem 20px; }
    .upcoming-cta-inner h2 { font-size: 1.6rem; }
    .contact-details { flex-direction: column; gap: 1rem; align-items: center; }
}
.navbar {
    background-color: transparent;
    border-top: none;
    border-bottom: none;
}
.navbar {
    background-color: transparent !important;
    border-top: none !important;
    border-bottom: none !important;
}
.upcoming-hero-label {
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    color: rgba(255,255,255,0.85);
    margin-top: 12px;
}