/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --kofc-blue: #003A70;
    --kofc-gold: #FFD700;
    --kofc-dark-blue: #002850;
    --kofc-light-gray: #f4f4f4;
    --text-color: #333;
    --white: #ffffff;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header and Navigation */
header {
    background-color: var(--kofc-blue);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    height: 60px;
    margin-right: 1.5rem;
}

.council-info {
    flex: 1;
    min-width: 250px;
}

.council-info h1 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--white);
}

.tagline {
    font-size: 0.875rem;
    color: var(--kofc-gold);
    margin: 0;
    font-style: italic;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: color 0.3s;
    padding: 0.5rem 0;
}

.nav-menu a:hover {
    color: var(--kofc-gold);
}

/* Main Content Sections */
.content-section {
    padding: 4rem 0;
}

.gray-bg {
    background-color: var(--kofc-light-gray);
}

.carousel-section {
    margin: 0;
    padding: 0;
}

#carousel {
    height: 500px;
    background-color: var(--kofc-light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Typography */
h2 {
    color: var(--kofc-blue);
    margin-bottom: 2rem;
    font-size: 2rem;
    border-bottom: 3px solid var(--kofc-gold);
    padding-bottom: 0.5rem;
    text-align: center;
}

h3 {
    color: var(--kofc-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--kofc-dark-blue);
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.about-content p {
    margin-bottom: 1rem;
}

/* Principles Grid */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.principle-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.principle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.principle-card h3 {
    color: var(--kofc-gold);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Stand For Grid */
.stand-for-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.stand-for-item {
    background: var(--white);
    padding: 1.5rem;
    border-left: 4px solid var(--kofc-gold);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-weight: 500;
    transition: border-color 0.3s;
}

.stand-for-item:hover {
    border-left-color: var(--kofc-blue);
}

/* Activities Grid */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.activity-category {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.activity-category h3 {
    color: var(--kofc-gold);
    border-bottom: 2px solid var(--kofc-blue);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.activity-category ul {
    list-style-position: inside;
    padding-left: 0;
}

.activity-category li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.activity-category li:last-child {
    border-bottom: none;
}

/* Announcements and Events */
#announcements-container,
#events-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.announcement-card,
.event-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.announcement-card:hover,
.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.announcement-card h3,
.event-card h3 {
    color: var(--kofc-blue);
    margin-bottom: 0.5rem;
}

.announcement-card .date,
.event-card .date {
    color: var(--kofc-gold);
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.event-card .location {
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
}

/* Membership Section */
.membership-info {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    max-width: 600px;
    margin: 2rem auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.membership-info h3 {
    color: var(--kofc-gold);
    text-align: center;
    margin-bottom: 1.5rem;
}

.membership-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.cta-text {
    text-align: center;
    font-weight: bold;
    color: var(--kofc-blue);
    margin-top: 2rem;
    font-size: 1.2rem;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-card h3 {
    color: var(--kofc-gold);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--kofc-blue);
    padding-bottom: 0.5rem;
}

.contact-card a {
    color: var(--kofc-blue);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-card a:hover {
    color: var(--kofc-gold);
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--kofc-dark-blue);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer p {
    margin: 0.5rem 0;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: var(--kofc-gold);
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-maintainer {
    margin-top: 1rem;
    font-size: 0.85rem;
    opacity: 0.7;
}

.footer-maintainer a {
    color: var(--kofc-gold);
    text-decoration: none;
}

.footer-maintainer a:hover {
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        margin: 0 auto 1rem;
    }

    .council-info {
        text-align: center;
        margin-bottom: 1rem;
    }

    .nav-menu {
        justify-content: center;
        width: 100%;
    }

    .nav-menu li {
        margin: 0.5rem 0;
    }

    #carousel {
        height: 300px;
    }

    .content-section {
        padding: 2rem 0;
    }

    h2 {
        font-size: 1.5rem;
    }

    .principles-grid,
    .activities-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow-y: auto;
    animation: fadeIn 0.3s ease-in-out;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease-in-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.modal-close:hover {
    color: var(--kofc-blue);
    background-color: var(--kofc-light-gray);
}

.modal-header {
    margin-bottom: 1.5rem;
    padding-right: 3rem;
}

.modal-header h2 {
    color: var(--kofc-blue);
    margin-bottom: 0.5rem;
}

.modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.modal-date {
    color: var(--kofc-gold);
    font-weight: bold;
}

.modal-location {
    color: #666;
    font-style: italic;
}

.modal-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.modal-body {
    line-height: 1.8;
    color: var(--text-color);
}

.announcement-card,
.event-card {
    cursor: pointer;
}

.announcement-card:hover,
.event-card:hover {
    cursor: pointer;
}

/* Show More Button */
.show-more-btn {
    display: block;
    margin: 2rem auto 0;
    padding: 1rem 2rem;
    background-color: var(--kofc-blue);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.show-more-btn:hover {
    background-color: var(--kofc-gold);
    color: var(--kofc-dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.show-more-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Calendar View Container */
#events-calendar-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* FullCalendar Custom Styles */
.fc {
    font-family: 'Arial', 'Helvetica', sans-serif;
}

.fc .fc-button-primary {
    background-color: var(--kofc-blue);
    border-color: var(--kofc-blue);
}

.fc .fc-button-primary:hover {
    background-color: var(--kofc-dark-blue);
    border-color: var(--kofc-dark-blue);
}

.fc .fc-button-primary:disabled {
    background-color: #cccccc;
    border-color: #cccccc;
}

.fc-event {
    background-color: var(--kofc-blue);
    border-color: var(--kofc-blue);
    cursor: pointer;
    color: var(--white) !important;
}

.fc-event:hover {
    background-color: var(--kofc-dark-blue);
}

/* Force white text on calendar events */
.fc-event-title,
.fc-event-time,
.fc-daygrid-event-dot,
.fc-list-event-title,
.fc-list-event-time {
    color: var(--white) !important;
}

.fc-list-event:hover td {
    background-color: var(--kofc-light-gray);
}

.fc-daygrid-event {
    white-space: normal;
}

.fc .fc-daygrid-day.fc-day-today {
    background-color: rgba(255, 215, 0, 0.1);
}

.fc-theme-standard .fc-scrollgrid {
    border-color: #ddd;
}

.fc .fc-col-header-cell-cushion {
    color: var(--kofc-blue);
    font-weight: bold;
}

/* Print Styles */
@media print {
    header,
    footer,
    #carousel,
    .modal {
        display: none;
    }

    .content-section {
        page-break-inside: avoid;
    }
}

@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }

    .modal-close {
        top: 0.5rem;
        right: 0.5rem;
    }
}
