/* =========================================================
   WINDSOR SPORTSMEN'S CLUB — CALENDAR PAGE
   Forest Green / Cream / Antique Gold
========================================================= */

/* =========================================================
   1. GLOBAL RESET AND BASE STYLES
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #222;
    background-color: transparent;
}

/* =========================================================
   2. NAVIGATION — ORIGINAL STYLING PRESERVED
========================================================= */

header {
    position: relative;
    z-index: 9998;
}

.main-nav {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999 !important;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 10px 0;
    background-color: #1a1a1a;
    border-bottom: none;
}

.nav-spacer {
    display: none;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    display: block;
    width: auto;
    height: 110px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;

    padding-right: 20px;
    list-style: none;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    display: inline-block;
    padding: 10px 14px;

    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    white-space: nowrap;

    border-radius: 4px;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.nav-links > li > a:hover {
    background-color: #333 !important;
    color: #fff !important;
    box-shadow: none;
    transform: translateY(-2px);
}

/* =========================================================
   3. NAVIGATION DROPDOWN MENUS — ORIGINAL
========================================================= */

.dropdown {
    position: relative;
}

.dropdown-menu,
.submenu-right {
    position: absolute;
    z-index: 99999;

    display: none;
    min-width: 220px;
    padding: 8px 0;

    list-style: none;
    background: #1a1a1a !important;
    border: none !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

.dropdown-menu {
    top: 100%;
    left: 0;
}

.dropdown:hover > .dropdown-menu,
.dropdown-sub:hover > .submenu-right {
    display: block;
}

.dropdown-menu a,
.submenu-right a {
    display: block;
    padding: 10px 18px;

    color: #fff !important;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    white-space: normal;

    transition: background-color 0.2s ease;
}

.dropdown-menu a:hover,
.submenu-right a:hover {
    background-color: #333 !important;
    color: #fff !important;
}

.nav-links li.dropdown-sub {
    position: relative;
}

.dropdown-sub > a {
    padding-right: 18px;
}

.submenu-right {
    top: 0;
    left: 100%;
    min-width: 200px;
}

.dropdown-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.submenu-link,
.submenu-toggle {
    display: inline-block;
}

.submenu-toggle {
    color: #fff !important;
}

/* =========================================================
   4. CALENDAR PAGE BACKGROUND
========================================================= */

.calendar-bg {
    min-height: 100vh;

    background:
        linear-gradient(
            145deg,
            #f7f3eb 0%,
            #eee8dc 55%,
            #e6dfd1 100%
        );

    background-attachment: fixed;
}

/* =========================================================
   5. SPACE BELOW FIXED NAVIGATION
========================================================= */

.calendar-nav-spacer {
    height: 180px;
}

/* =========================================================
   6. MAIN PAGE CONTAINER
========================================================= */

.calendar-page {
    width: 100%;
    max-width: 1500px;

    margin: 0 auto;
    padding: 10px 45px 85px;
}

/* =========================================================
   7. CALENDAR PAGE HEADING
========================================================= */

.calendar-heading {
    margin: 0 auto 42px;
    text-align: center;
}

.calendar-eyebrow {
    margin-bottom: 8px;

    color: #8c7040;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 4px;
}

.calendar-title {
    color: #102719;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.4rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 2px;
}

.calendar-title span {
    color: #a8874e;
}

.calendar-subtitle {
    margin-top: 14px;

    color: #62665e;
    font-size: 1rem;
    letter-spacing: 0.3px;
}

.heading-divider {
    width: 85px;
    height: 3px;

    margin: 22px auto 0;

    background: #b99a60;
    border-radius: 5px;
}

/* =========================================================
   8. TWO-COLUMN CALENDAR LAYOUT
========================================================= */

.calendar-layout {
    display: grid;

    grid-template-columns: 270px minmax(0, 1fr);

    align-items: start;
    gap: 30px;

    width: 100%;
}

/* =========================================================
   9. ACTIVITY CALENDAR SIDEBAR
========================================================= */

.activity-sidebar {
    padding: 28px 22px;

    background: #102719;
    border: 1px solid rgba(185, 154, 96, 0.65);
    border-radius: 10px;

    box-shadow: 0 10px 28px rgba(16, 39, 25, 0.13);
}

.sidebar-heading {
    margin-bottom: 25px;
}

.sidebar-kicker {
    display: block;

    margin-bottom: 10px;

    color: #c4a15b;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.sidebar-heading h2 {
    color: #f7f0e4;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.85rem;
    line-height: 1.2;
}

.sidebar-heading p {
    margin-top: 12px;

    color: #d0d0c5;
    font-size: 0.85rem;
    line-height: 1.7;
}

/* =========================================================
   10. ACTIVITY CALENDAR BUTTONS
========================================================= */

.activity-calendar-button {
    display: flex;
    align-items: center;
    gap: 12px;

    width: 100%;
    min-height: 76px;

    margin-bottom: 12px;
    padding: 13px 12px;

    color: #f7f0e4;
    text-decoration: none;

    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(196, 161, 91, 0.35);
    border-radius: 7px;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.activity-calendar-button:hover {
    background: rgba(196, 161, 91, 0.15);
    border-color: #c4a15b;
    transform: translateX(4px);
}

.activity-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 38px;
    width: 38px;
    height: 38px;

    color: #102719;
    font-size: 0.75rem;
    font-weight: 800;

    background: #c4a15b;
    border-radius: 50%;
}

.activity-button-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.activity-button-text strong {
    color: #f7f0e4;
    font-size: 0.95rem;
    font-weight: 700;
}

.activity-button-text small {
    margin-top: 3px;

    color: #c7c6b9;
    font-size: 0.72rem;
    line-height: 1.4;
}

.activity-arrow {
    color: #c4a15b;
    font-size: 1.25rem;
    font-weight: 700;
}

/* =========================================================
   11. SIDEBAR NOTE
========================================================= */

.sidebar-note {
    display: flex;
    align-items: stretch;
    gap: 12px;

    margin-top: 25px;
    padding-top: 20px;

    border-top: 1px solid rgba(196, 161, 91, 0.3);
}

.note-line {
    flex: 0 0 3px;
    background: #c4a15b;
    border-radius: 3px;
}

.sidebar-note p {
    color: #c7c6b9;
    font-size: 0.76rem;
    line-height: 1.7;
}

/* =========================================================
   12. MAIN GOOGLE CALENDAR PANEL
========================================================= */

.main-calendar-panel {
    min-width: 0;
    overflow: hidden;

    background: #fffdf8;
    border: 1px solid #d9cdb8;
    border-radius: 10px;

    box-shadow: 0 10px 30px rgba(16, 39, 25, 0.10);
}

/* =========================================================
   13. MAIN CALENDAR HEADER
========================================================= */

.main-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    padding: 25px 28px;

    background: #102719;
    border-bottom: 3px solid #c4a15b;
}

.calendar-panel-kicker {
    display: block;

    margin-bottom: 5px;

    color: #c4a15b;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.main-calendar-header h2 {
    color: #f7f0e4;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.7rem;
    line-height: 1.3;
}

.main-calendar-header p {
    margin-top: 5px;

    color: #d0d0c5;
    font-size: 0.85rem;
}

/* =========================================================
   14. LIVE CALENDAR INDICATOR
========================================================= */

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;

    flex-shrink: 0;

    padding: 8px 12px;

    color: #e5d9c3;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;

    border: 1px solid rgba(196, 161, 91, 0.45);
    border-radius: 30px;
}

.live-dot {
    width: 8px;
    height: 8px;

    background: #79bb83;
    border-radius: 50%;

    box-shadow: 0 0 8px rgba(121, 187, 131, 0.7);
}

/* =========================================================
   15. GOOGLE CALENDAR FRAME
========================================================= */

.calendar-frame-wrapper {
    width: 100%;
    padding: 12px;

    background: #fffdf8;
}

.calendar-frame-wrapper iframe {
    display: block;

    width: 100%;
    height: 600px;

    border: 0;
    border-radius: 4px;
}

/* =========================================================
   16. CALENDAR PANEL FOOTER
========================================================= */

.calendar-panel-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;

    padding: 13px 20px;

    color: #75684f;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 1.2px;

    background: #f2eee5;
    border-top: 1px solid #e0d6c4;
}

/* =========================================================
   17. TABLET LAYOUT
========================================================= */

@media (max-width: 1100px) {

    .calendar-page {
        padding-left: 25px;
        padding-right: 25px;
    }

    .calendar-layout {
        grid-template-columns: 230px minmax(0, 1fr);
        gap: 20px;
    }

    .activity-sidebar {
        padding: 23px 16px;
    }

    .main-calendar-header {
        padding: 22px 20px;
    }

    .main-calendar-header h2 {
        font-size: 1.45rem;
    }
}

/* =========================================================
   18. TABLET NAVIGATION — ORIGINAL
========================================================= */

@media (max-width: 992px) {

    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        padding: 10px 16px;
    }

    .logo img {
        height: 70px;
        margin-bottom: 8px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        padding-right: 0;
    }
}

/* =========================================================
   19. MOBILE NAVIGATION — ORIGINAL
========================================================= */

@media (max-width: 768px) {

    .main-nav {
        flex-direction: column;
        align-items: center;
        justify-content: center !important;
        gap: 10px;

        padding: 12px 8px !important;
    }

    .logo {
        order: 1;
        width: 100%;
        text-align: center;
    }

    .logo img {
        width: auto;
        height: 76px;
        margin: 0 auto;
    }

    .nav-spacer {
        display: none;
    }

    .nav-links {
        order: 2;

        display: flex;
        flex-wrap: wrap;
        justify-content: center;

        gap: 4px;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .nav-links > li {
        flex: 0 0 calc(33.333% - 4px);
        min-width: 0;
        text-align: center;
    }

    .nav-links > li > a {
        display: inline-block;
        width: 100%;
        padding: 4px 2px;

        font-size: 1rem;
        line-height: 1.4;
        white-space: normal;
    }

    .dropdown:hover > .dropdown-menu,
    .dropdown-sub:hover > .submenu-right {
        display: none !important;
    }

    .dropdown-menu,
    .submenu-right {
        position: absolute !important;
        top: 100%;
        left: 0 !important;

        width: max-content !important;
        min-width: 180px;
        max-width: min(88vw, 320px);

        margin-top: 6px;
        padding: 8px 0;

        background: #1a1a1a !important;
        border: 1px solid #444 !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    }

    .dropdown-menu a,
    .submenu-right a {
        display: block;
        padding: 9px 14px;

        font-size: 1rem;
        line-height: 1.4;
        text-align: left;
        white-space: normal;
    }

    .dropdown.open > .dropdown-menu,
    .dropdown-sub.open > .submenu-right,
    .nav-links li.dropdown > .dropdown-menu.open {
        display: block !important;
    }

    .dropdown-sub {
        position: relative;
    }

    .dropdown-sub .submenu-right {
        top: 0 !important;
        left: 100% !important;

        width: auto !important;
        max-width: min(75vw, 240px);
        margin-top: 0;
    }
}

/* =========================================================
   20. CALENDAR MOBILE LAYOUT
========================================================= */

@media (max-width: 768px) {

    .calendar-nav-spacer {
        height: 180px;
    }

    .calendar-page {
        padding: 12px 16px 55px;
    }

    .calendar-heading {
        margin-bottom: 28px;
    }

    .calendar-title {
        font-size: 2.3rem;
    }

    .calendar-subtitle {
        max-width: 420px;
        margin: 12px auto 0;

        font-size: 0.9rem;
    }

    /* Stack sidebar above calendar */

    .calendar-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .activity-sidebar {
        padding: 23px 18px;
    }

    .sidebar-heading h2 {
        font-size: 1.65rem;
    }

    /* Two buttons side by side */

    .activity-calendar-button {
        min-height: 76px;
        margin-bottom: 10px;
    }

    .activity-calendar-button:hover {
        transform: translateY(-2px);
    }

    .sidebar-note {
        margin-top: 18px;
        padding-top: 15px;
    }

    .main-calendar-header {
        flex-wrap: wrap;
        padding: 20px 17px;
    }

    .main-calendar-header h2 {
        font-size: 1.4rem;
    }

    .live-indicator {
        padding: 7px 10px;
    }

    .calendar-frame-wrapper {
        padding: 6px;
        overflow: hidden;
    }

    .calendar-frame-wrapper iframe {
        width: 100%;
        height: 600px;
    }

    .calendar-panel-footer {
        flex-wrap: wrap;
        justify-content: center;

        padding: 12px 10px;

        font-size: 0.58rem;
        text-align: center;
    }
}

/* =========================================================
   21. SMALL MOBILE PHONES
========================================================= */

@media (max-width: 480px) {

    .calendar-nav-spacer {
        height: 180px;
    }

    .calendar-page {
        padding: 8px 12px 45px;
    }

    .calendar-eyebrow {
        font-size: 0.68rem;
        letter-spacing: 3px;
    }

    .calendar-title {
        font-size: 1.95rem;
    }

    .calendar-subtitle {
        font-size: 0.84rem;
    }

    .activity-sidebar {
        padding: 21px 14px;
    }

    .activity-calendar-button {
        gap: 9px;
        padding: 11px 9px;
    }

    .activity-icon {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
        font-size: 0.68rem;
    }

    .activity-button-text strong {
        font-size: 0.85rem;
    }

    .activity-button-text small {
        font-size: 0.66rem;
    }

    .activity-arrow {
        font-size: 1rem;
    }

    .main-calendar-header h2 {
        font-size: 1.25rem;
    }

    .main-calendar-header p {
        font-size: 0.78rem;
    }

    .calendar-frame-wrapper iframe {
        height: 600px;
    }
}

/* =========================================================
   22. FOOTER — ORIGINAL STYLING PRESERVED
========================================================= */

.footer {
    width: 100%;
    margin: 0;
    padding: 0;

    background: #102719;
    color: #f7f0e4;

    font-family: Arial, Helvetica, sans-serif;
}

.footer *,
.footer *::before,
.footer *::after {
    box-sizing: border-box;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.9fr 1fr;
    align-items: start;

    gap: 40px;
    max-width: 1250px;

    margin: 0 auto;
    padding: 55px 35px 45px;
}

.footer-column {
    min-width: 0;
}

.footer-column h3 {
    margin: 0 0 25px;
    padding-bottom: 12px;

    color: #c6a568;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1.5;

    border-bottom: 2px solid rgba(198, 165, 104, 0.55);
}

/* =========================================================
   23. FOOTER CONTACT DETAILS — ORIGINAL
========================================================= */

.footer-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;

    margin-bottom: 19px;

    color: #f7f0e4;
    font-size: 14px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.footer-item i {
    flex: 0 0 20px;
    width: 20px;
    min-width: 20px;

    margin-top: 4px;

    color: #c6a568;
    font-size: 17px;
    text-align: center;
}

/* =========================================================
   24. FOOTER TEXT AND LINKS — ORIGINAL
========================================================= */

.footer-column p {
    margin: 0 0 10px;

    color: #f7f0e4;
    font-size: 14px;
    line-height: 1.8;
}

.footer-column ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 13px;
}

.footer-column a {
    display: inline-block;

    color: #f7f0e4;
    font-size: 14px;
    line-height: 1.6;
    text-decoration: none;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.footer-column a:hover {
    color: #c6a568;
    transform: translateX(4px);
}

/* =========================================================
   25. FOOTER COPYRIGHT BAR — ORIGINAL
========================================================= */

.footer-bottom {
    width: 100%;
    padding: 20px 15px;

    background: #07180f;
    color: #cfc7b8;

    border-top: 1px solid rgba(198, 165, 104, 0.35);

    font-size: 13px;
    line-height: 1.7;
    text-align: center;
}

/* =========================================================
   26. FOOTER — TABLETS — ORIGINAL
========================================================= */

@media (max-width: 950px) {

    .footer-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 40px 35px;
        padding: 45px 30px 35px;
    }
}

/* =========================================================
   27. FOOTER — MOBILE PHONES — ORIGINAL
========================================================= */

@media (max-width: 550px) {

    .footer-container {
        grid-template-columns: minmax(0, 1fr);

        gap: 30px;
        padding: 35px 24px 30px;
    }

    .footer-column h3 {
        margin-bottom: 18px;
        font-size: 16px;
    }

    .footer-item {
        gap: 12px;
        margin-bottom: 15px;
        font-size: 14px;
    }

    .footer-column p,
    .footer-column a {
        font-size: 14px;
    }

    .footer-column ul li {
        margin-bottom: 10px;
    }

    .footer-bottom {
        padding: 18px 15px;
        font-size: 12px;
    }
}

/* ARCHERY SEASONAL NOTE */
.seasonal-note {
    margin: -5px 0 16px;
    color: #c4a15b;
    font-size: 0.76rem;
    font-style: italic;
    text-align: center;
}
