/* ===================================
   CSS Custom Properties (Variables)
   =================================== */
:root {
    --primary-color: #2c5282;
    --primary-dark: #1a365d;
    --secondary-color: #d4af37;
    --header-color: #c7bd9d;
    --text-color: #333333;
    --text-light: #666666;
    --background-color: #f8f9fa;
    --white: #ffffff;
    --border-color: #dddddd;
    --spacing-unit: 1rem;
    --border-radius: 0.25rem;
    --header-height: 80px;
    --transition-speed: 0.3s;
}

/* ===================================
   Reset and Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    padding-top: var(--header-height);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

/* ===================================
   Fixed Header (Navigation)
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    border-bottom: 2px solid var(--border-color);
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header__container {
    max-width: 1200px;
    background-color: var(--header-color);
    margin: 0 auto;
    padding: 0.75rem var(--spacing-unit);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.header__branding {
    text-align: left;
    flex: 1;
}

.header__title {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.header__subtitle {
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.3;
}

/* Hamburger Menu Toggle Button - Mobile Only */
.nav__toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1001;
    flex-shrink: 0;
}

.nav__toggle-bar {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px auto;
    transition: all var(--transition-speed) ease-in-out;
    border-radius: 2px;
}

.nav__toggle:hover .nav__toggle-bar,
.nav__toggle:focus-visible .nav__toggle-bar {
    background-color: var(--primary-dark);
}

.nav__toggle:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Hamburger animation when active */
.nav__toggle--active .nav__toggle-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav__toggle--active .nav__toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav__toggle--active .nav__toggle-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Navigation Menu - Mobile First */
.nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--header-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed) ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav--active {
    max-height: 400px;
}

.nav__menu {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 0;
}

.nav__link {
    display: block;
    padding: 1rem;
    color: var(--text-color);
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: background-color var(--transition-speed), color var(--transition-speed);
    border-bottom: 1px solid var(--border-color);
}

.nav__item:last-child .nav__link {
    border-bottom: none;
}

.nav__link:hover,
.nav__link:focus-visible {
    background-color: var(--primary-color);
    color: var(--white);
    outline: none;
}

/* Tablet and larger screens - horizontal header */
@media (min-width: 768px) {
    /* Hide hamburger menu on larger screens */
    .nav__toggle {
        display: none;
    }

    /* Show navigation horizontally */
    .nav {
        position: static;
        max-height: none;
        overflow: visible;
        box-shadow: none;
    }

    .nav__menu {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0;
        gap: calc(var(--spacing-unit) * 0.5);
    }

    .nav__link {
        padding: 0.5rem 1rem;
        border-bottom: none;
    }

    .header__container {
        padding: var(--spacing-unit);
    }

    .header__branding {
        text-align: left;
    }

    .header__title {
        font-size: 1.75rem;
    }

    .header__subtitle {
        font-size: 0.875rem;
    }
}

/* ===================================
   Image Banner Carousel
   =================================== */
.banner {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 2rem;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.banner__slider {
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 400; /* Maintain 1024x400 aspect ratio */
}

.banner__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.banner__image--active {
    opacity: 1;
}

/* Carousel Navigation Buttons */
.banner__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    z-index: 10;
    transition: background-color var(--transition-speed);
    border-radius: var(--border-radius);
}

.banner__btn:hover,
.banner__btn:focus-visible {
    background-color: rgba(0, 0, 0, 0.8);
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

.banner__btn--prev {
    left: 1rem;
}

.banner__btn--next {
    right: 1rem;
}

/* Carousel Indicators */
.banner__indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.banner__indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--white);
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.banner__indicator:hover,
.banner__indicator:focus-visible {
    background-color: rgba(255, 255, 255, 0.8);
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.banner__indicator--active {
    background-color: var(--white);
}

/* ===================================
   Main Content Grid
   =================================== */
.content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 var(--spacing-unit);
}

.content__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: calc(var(--spacing-unit) * 1.5);
}

/* Card Styles */
.card {
    background-color: var(--white);
    padding: calc(var(--spacing-unit) * 2);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    border-top: 4px solid var(--secondary-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card__header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    width: 100%;
}

.card__icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.card__title {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0;
    font-weight: 700;
    line-height: 1.2;
}

.card__text {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1; /* Pushes the button to the bottom */
}

.card__link {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.card__link:hover,
.card__link:focus-visible {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: scale(1.05);
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
    text-decoration: none;
}

/* Responsive Grid - Two Columns on Tablet */
@media (min-width: 768px) {
    .content__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive Grid - Three Columns on Desktop */
@media (min-width: 1024px) {
    .content__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===================================
   Footer
   =================================== */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    margin-top: 4rem;
}

.footer__content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem var(--spacing-unit) 2rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: calc(var(--spacing-unit) * 2);
}

.footer__column {
    padding: 0;
}

.footer__title {
    color: var(--secondary-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer__text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.footer__address {
    font-style: normal;
}

/* Footer Links */
.footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__links li {
    margin-bottom: 0.75rem;
}

.footer__link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color var(--transition-speed);
    display: inline-block;
}

.footer__link:hover,
.footer__link:focus-visible {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Copyright Bar */
.footer__bottom {
    background-color: var(--primary-dark);
    padding: 1.5rem var(--spacing-unit);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin: 0;
}

/* Footer Responsive Grid - Two Columns on Tablet */
@media (min-width: 768px) {
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Footer Responsive Grid - Three Columns on Desktop */
@media (min-width: 1024px) {
    .footer__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===================================
   Accessibility Improvements
   =================================== */
/* Skip to main content link (for screen readers) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Focus visible styles for better keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

/* ===================================
   Page Specific Styles
   =================================== */
.page-banner {
    width: 100%;
    max-width: 1024px;
    height: auto;
    display: block;
    margin: 0 auto 2rem;
}
.page-banner-glass {
    width: auto;
    max-height: 400px;
    display: block;
    margin: 0 auto 2rem;
    border-radius: 8px;
}
.flex-width-text {
    max-width: 600px;
    margin: 0 auto;
}
.flex-width-text p {
    margin-top: 1rem;
    margin-bottom: 1rem;
   
}
.flex-width-text a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
}
.content-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem var(--spacing-unit);
}

.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin-top: 1rem;
    border-radius: var(--border-radius);
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===================================
   Video List Styles
   =================================== */
.video-player-container {
    margin-bottom: 2rem;
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.video-player-container h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.video-list__items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.video-list__item {
    margin-bottom: 0;
    border-bottom: none;
}

.video-list__button {
    width: 100%;
    text-align: left;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all 0.2s ease-in-out;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

/* Add a decorative left border */
.video-list__button::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--primary-color);
    opacity: 0.5;
    transition: opacity 0.2s;
}

.video-list__button:hover,
.video-list__button:focus-visible {
    background-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
    outline: none;
}

.video-list__button:hover::before,
.video-list__button:focus-visible::before {
    opacity: 1;
}

.video-list__title {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Add a play icon using CSS pseudo-element on the title */
.video-list__title::before {
    content: '▶';
    font-size: 0.8em;
    color: var(--secondary-color);
    display: inline-block;
    transition: transform 0.2s;
}

.video-list__button:hover .video-list__title::before {
    transform: scale(1.2);
}

.video-list__meta {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* ===================================
   Events Timeline Styles
   =================================== */
.events-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 2rem auto 0;
}

.event-card {
    display: flex;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.event-date {
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    padding: 1rem;
    text-align: center;
}

.event-day {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.event-month {
    font-size: 1rem;
    text-transform: uppercase;
    margin-top: 0.25rem;
    opacity: 0.9;
}

.event-details {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-title {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.event-time {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-time::before {
    content: '🕒'; /* Simple clock icon */
    font-size: 1rem;
}

.event-desc {
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

/* Mobile responsiveness for events */
@media (max-width: 480px) {
    .event-card {
        flex-direction: column;
    }
    
    .event-date {
        flex-direction: row;
        gap: 0.5rem;
        min-width: auto;
        padding: 0.75rem;
    }

    .event-day {
        font-size: 1.25rem;
    }
    
    .event-month {
        font-size: 1.25rem;
        margin-top: 0;
    }
}

/* ===================================
   Giving Page Styles
   =================================== */
.giving-qr-container {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.giving-qr-code {
    max-width: 200px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.giving-qr-text {
    margin-top: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.giving-intro {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 800px;
}

.giving-details-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--secondary-color);
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto; /* Center the card */
}

.giving-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.giving-item:last-child {
    border-bottom: none;
}

.giving-label {
    font-weight: 700;
    color: var(--primary-color);
}

.giving-value {
    color: var(--text-color);
    text-align: right;
}

@media (max-width: 480px) {
    .giving-item {
        flex-direction: column;
        gap: 0.25rem;
    }
    .giving-value {
        text-align: left;
    }
}
