/*------------------------------------------------------------------
Project: Lynnville Community Club Website
Version: 2.0
Author: BrianErvin.com
-------------------------------------------------------------------*/

/* ==========================================================================
   1. TYPOGRAPHY & RESET
   ========================================================================== */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 62.5%;
    overflow-x: hidden;
    background-color: #fff;
    scroll-behavior: smooth;
}

body {
    font-size: 1.6rem;
    line-height: 1.8;
}

h1, h2, h3 {
    font-family: 'Libre Baskerville', serif;
    color: #1a1a1a;
}

/* ==========================================================================
   2. NOTICE BAR
   ========================================================================== */
.town-hall-notice {
    background: #1a1a1a;
    color: #fff;
    padding: 12px 0;
    font-size: 1.2rem;
    text-align: center;
    position: relative;
    z-index: 1001;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

/* ==========================================================================
   3. NAVIGATION
   ========================================================================== */
.navbar {
    position: absolute;
    top: 45px;
    width: 100%;
    z-index: 1000;
    background: transparent !important;
    transition: 0.4s all ease;
}

.navbar.bg-black {
    position: fixed;
    top: 0;
    background: rgba(26,26,26,0.98) !important;
    padding: 15px 0;
}

.brand-text {
    font-family: 'Libre Baskerville', serif;
    font-size: 2rem;
    color: #fff !important;
    font-weight: 700;
}

.nav-link {
    color: #fff !important;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 20px;
}

/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */
#hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #222;
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__slider,
.owl-stage-outer,
.owl-stage,
.owl-item,
.slide {
    height: 100vh !important;
}

.img-into-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 2;
}

.hero__outer-wrapper {
    position: relative;
    z-index: 10;
    color: #fff;
    text-align: center;
}

.hero__outer-wrapper h1 {
    font-size: 4.2rem;
    color: #fff;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.text-carousel {
    color: #d4af37;
}

/* ==========================================================================
   5. BLOCKS & SECTIONS
   ========================================================================== */
.block {
    padding: 80px 0;
    position: relative;
    z-index: 20;
    background: #fff;
}

.bg-light {
    background-color: #f8f8f8 !important;
}

.block__title {
    margin-bottom: 50px;
}

.block__title h2 {
    position: relative;
    padding-bottom: 10px;
}

.block__title h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #8c6239;
}

/* ==========================================================================
   6. MISSION SECTION
   ========================================================================== */
.mission-text {
    font-size: 2.2rem;
    color: #333;
    line-height: 1.6;
}

.italic {
    font-style: italic;
}

/* ==========================================================================
   7. EVENTS SECTION
   ========================================================================== */
.event-card {
    background: #fff;
    padding: 30px;
    border: 1px solid #eee;
    height: 100%;
    margin-bottom: 30px;
    transition: 0.3s;
}

.event-card:hover {
    border-color: #8c6239;
    transform: translateY(-5px);
}

.event-card.highlight {
    background: #1a1a1a;
    color: #fff;
}

.event-card.highlight h4 {
    color: #d4af37;
}

.date {
    font-weight: 700;
    color: #8c6239;
    font-size: 1.3rem;
    text-transform: uppercase;
}

.link-btn {
    display: inline-block;
    margin-top: 15px;
    font-weight: 700;
    color: #8c6239;
    font-size: 1.2rem;
    text-decoration: underline !important;
}

.highlight .link-btn {
    color: #fff;
}

/* ==========================================================================
   8. BUSINESS DIRECTORY
   ========================================================================== */
.business-link {
    padding: 12px 0;
}

.business-link a {
    font-size: 1.6rem;
    color: #000;
    border-bottom: 1px dashed #ccc;
    text-decoration: none !important;
}

.business-link a:hover {
    color: #8c6239;
    border-bottom: 1px solid #8c6239;
}

.business-link a {
    font-size: 1.6rem;
    color: #000;
    border-bottom: 1px dashed #ccc;
    text-decoration: none !important;
}

.business-link a:hover {
    color: #8c6239;
    border-bottom: 1px solid #8c6239;
}

/* Modal Styles */
.modal-dialog {
    max-width: 700px;
    margin: 1.75rem auto;
}

.modal-header.img-into-bg {
    background-color: #000;
    background-size: cover !important;
    background-position: center !important;
    border-bottom: none;
    padding: 0;
    width: 100%;
    position: relative;
    overflow: hidden;
    height: 300px;
}

.modal-header.img-into-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: relative;
    z-index: 1;
    padding: 0;
}

.modal-header.img-into-bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.85) 100%) !important;
    z-index: 2;
}

.modal__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    z-index: 5;
}

.modal__caption h2 {
    color: #fff !important;
    font-size: 3.2rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8) !important;
    margin: 0;
}

.close-modal-btn {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 40px;
    height: 40px;
    background-color: #fff !important;
    color: #000 !important;
    border: none;
    border-radius: 50%;
    font-size: 2.5rem;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 10;
    opacity: 1 !important;
    padding: 0;
}

.close-modal-btn:hover {
    background-color: #f0f0f0 !important;
    transform: scale(1.1);
    transition: 0.2s;
}

/* ==========================================================================
   9. CONTACT SECTION
   ========================================================================== */
.section-contact {
    background: #f4f1ea;
}

.contact-card {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info-panel {
    background: #1a1a1a;
    color: #fff;
    padding: 60px 40px;
    width: 100%;
    text-align: center;
    border-radius: 8px;
}

.panel-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info-panel h2 {
    color: #fff;
    margin-bottom: 30px;
    font-size: 2.8rem;
    text-align: center;
}

.contact-info-panel p {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.6rem;
    line-height: 1.8;
}

.contact-detail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.6rem;
}

.contact-detail i {
    color: #8c6239;
    font-size: 2rem;
}

.contact-form-panel {
    padding: 60px 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #1a1a1a;
}

.form-control {
    border-radius: 0;
    border: none;
    border-bottom: 2px solid #eee;
    padding: 10px 0;
    width: 100%;
    font-size: 1.5rem;
}

.btn-submit {
    background: #8c6239;
    color: #fff;
    border: none;
    padding: 16px 32px;
    width: 100%;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 20px;
    font-size: 1.4rem;
}

.btn-submit:hover {
    background: #1a1a1a;
}

/* ==========================================================================
   10. ANIMATIONS
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.8s ease-out;
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   11. FOOTER
   ========================================================================== */
#footer {
    padding: 60px 0;
    border-top: 1px solid #eee;
}

/* ==========================================================================
   12. COMMUNITY CALENDAR
   ========================================================================== */
#calendar {
    background: #f8f8f8;
}

.calendar-wrapper {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    max-width: 900px;
    margin: 0 auto;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    background: #1a1a1a;
    color: #fff;
}

.calendar-header h3 {
    margin: 0;
    font-family: 'Libre Baskerville', serif;
    font-size: 2rem;
    color: #fff;
}

.cal-nav-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.4rem;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cal-nav-btn:hover {
    background: rgba(255,255,255,0.2);
}

.calendar-grid {
    padding: 20px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    font-size: 1.4rem;
    border-radius: 8px;
    cursor: default;
    position: relative;
    transition: all 0.2s;
    padding: 5px 4px;
    overflow: hidden;
}

.calendar-day .day-number {
    position: absolute;
    top: 4px;
    left: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1;
}

.calendar-day .event-text {
    font-size: 0.8rem;
    line-height: 1.15;
    color: #6b4a2a;
    margin-top: 18px;
    word-break: break-word;
    text-align: center;
    width: 100%;
    padding: 0 2px;
}

.calendar-day.other-month {
    color: #ccc;
}

.calendar-day.today {
    background: #8c6239;
    color: #fff;
    font-weight: 700;
}

.calendar-day.today .day-number {
    color: #fff;
}

.calendar-day.today .event-text {
    color: rgba(255,255,255,0.95);
}

.calendar-day.has-event {
    background: #f0e6dc;
    color: #8c6239;
    font-weight: 600;
    cursor: pointer;
}

.calendar-day.has-event:hover {
    background: #8c6239;
    color: #fff;
}

.calendar-day.has-event:hover .day-number,
.calendar-day.has-event:hover .event-text {
    color: #fff;
}

/* Upcoming Events */
.upcoming-events {
    padding: 25px 30px;
    border-top: 2px solid #f0f0f0;
    background: #fafafa;
}

.upcoming-events h4 {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.upcoming-events h4 i {
    color: #8c6239;
    margin-right: 10px;
}

.upcoming-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.upcoming-row:last-child {
    border-bottom: none;
}

.upcoming-date {
    font-weight: 700;
    color: #8c6239;
    min-width: 70px;
    font-size: 1.4rem;
    padding-right: 15px;
    border-right: 2px solid #8c6239;
    margin-right: 15px;
}

.upcoming-title {
    flex: 1;
    font-weight: 500;
    color: #333;
    font-size: 1.5rem;
}

.upcoming-time {
    color: #666;
    font-size: 1.3rem;
    white-space: nowrap;
    padding-left: 15px;
    border-left: 1px solid #ddd;
}

/* ==========================================================================
   13. RESPONSIVE
   ========================================================================== */
@media (max-width: 991px) {
    .navbar-brand {
        padding: 15px 0;
    }
    .contact-info-panel,
    .contact-form-panel {
        padding: 40px 20px;
        flex: 100%;
    }
}

@media (max-width: 767px) {
    .hero__outer-wrapper h1 {
        font-size: 3.2rem;
    }
    .block {
        padding: 60px 0;
    }
    .mission-text {
        font-size: 1.8rem;
    }
    .contact-info-panel h2 {
        font-size: 2.4rem;
    }
    .form-group {
        margin-bottom: 20px;
    }
}

@media (max-width: 600px) {
    .calendar-header {
        padding: 20px;
    }
    .calendar-header h3 {
        font-size: 1.6rem;
    }
    .calendar-grid {
        padding: 15px 10px;
    }
    .calendar-weekdays {
        font-size: 0.9rem;
    }
    .calendar-day {
        font-size: 1.2rem;
    }
    .upcoming-row {
        flex-wrap: wrap;
        gap: 5px;
    }
    .upcoming-date {
        min-width: auto;
        border-right: none;
        margin-right: 10px;
    }
    .upcoming-time {
        width: 100%;
        border-left: none;
        padding-left: 0;
        margin-top: 5px;
    }
}

/* ==========================================================================
   14. MEMBER CARDS
   ========================================================================== */
.member-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.member-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #8c6239;
    background: #e0e0e0;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-title {
    color: #8c6239;
    font-weight: 600;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.member-link {
    display: inline-block;
    color: #1a1a1a;
    font-size: 1.3rem;
    text-decoration: none;
    border-bottom: 1px dashed #8c6239;
    transition: color 0.3s;
}

.member-link:hover {
    color: #8c6239;
    text-decoration: none;
}

@media (max-width: 767px) {
    .member-photo {
        width: 100px;
        height: 100px;
    }
    
    .member-card {
        padding: 20px 15px;
    }
}

/* ==========================================================================
   14. MEMBER PHOTOS
   ========================================================================== */
.member-photo-placeholder {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #8c6239;
    background: #e8e8e8;
}

.member-photo-placeholder.no-photo {
    background: linear-gradient(135deg, #d4d4d4 0%, #e8e8e8 100%);
}

.member-photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-title {
    color: #8c6239;
    font-weight: 600;
    font-size: 1.3rem;
}

@media (max-width: 767px) {
    .member-photo-placeholder {
        width: 100px;
        height: 100px;
    }
}
/* ============================================
   NEWS SECTION
   ============================================ */
.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.news-image {
    height: 180px;
    background-size: cover;
    background-position: center;
}
.news-content {
    padding: 25px;
    position: relative;
}
.news-category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 12px;
}
.news-featured {
    color: #f4c430;
    margin-left: 8px;
}
.news-card h4 {
    font-family: 'Libre Baskerville', serif;
    font-size: 18px;
    margin-bottom: 10px;
    color: #1a1a1a;
}
.news-date {
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
}
.news-date i {
    margin-right: 5px;
}
.news-summary {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}
.news-link {
    color: #8c6239;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}
.news-link:hover {
    color: #6b4a2a;
}
.news-link i {
    margin-left: 5px;
    transition: transform 0.2s;
}
.news-link:hover i {
    transform: translateX(3px);
}