/* =========================================
   Church of the Great Shepherd - Main Styles
   ========================================= */

/* CSS Variables */
:root {
    --primary-color: #1b5e20;
    --secondary-color: #388e3c;
    --accent-color: #d4af37;
    --text-dark: #1a1a2e;
    --text-light: #f5f5f5;
    --bg-light: #fafaf9;
    --bg-white: #ffffff;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* =========================================
   Header & Navigation
   ========================================= */
.site-header, .main-nav {
    background-color: var(--primary-color);
    padding: 1rem 2rem;
    position: relative;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-logo {
    width: 120px;
    height: auto;
    object-fit: contain;
    margin-right: 0.5rem;
}

.church-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.church-name a {
    color: inherit;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    color: var(--text-light);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links li a:hover, .nav-links li a.active {
    color: var(--accent-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 2rem;
    cursor: pointer;
}

/* =========================================
   Header Slider
   ========================================= */
.header-slider {
    position: relative;
    width: 100%;
    height: 35vh;
    min-height: 200px;
    max-height: 450px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.header-slider .nav-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 5;
    background: linear-gradient(to bottom, rgba(44, 95, 77, 0.9) 0%, rgba(44, 95, 77, 0.5) 100%);
    padding: 1rem 2rem;
}

.header-slider .church-name {
    color: var(--text-light);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.header-slider .nav-links li a {
    color: var(--text-light);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.header-slider .menu-toggle {
    color: var(--text-light);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--text-light);
    border: none;
    width: 50px;
    height: 50px;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.slider-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--text-light);
    transform: scale(1.2);
}

/* =========================================
   Hero Section
   ========================================= */
.hero-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.subpage-links {
    text-align: center;
    margin-bottom: 3rem;
}

.subpage-links-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    gap: 2rem;
}

.subpage-arch-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    flex-shrink: 0;
}

.page-arch-img {
    display: block;
    width: 200px;
    height: 200px;
    object-fit: cover;
    margin: 0 auto 3rem;
}

.subpage-links h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.links-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.link-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    flex: 1 1 250px;
    max-width: 350px;
}

.placeholder-icon {
    width: 100%;
    height: auto;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.link-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.link-card-img {
    display: block;
    width: 120px !important;
    height: auto !important;
    object-fit: contain !important;
    margin-left: auto;
    margin-right: auto;
}

.link-card-icon {
    width: 120px;
    height: 120px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.link-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.link-card p {
    color: #666;
}

.welcome-section {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    margin-top: 3rem;
    color: var(--text-light);
}

.welcome-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.welcome-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-button {
    background-color: var(--primary-color);
    color: whitesmoke;
    padding: 0.75rem 1.875rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    display: block;
    margin-bottom: 1rem;
}

.cta-button:hover {
    background-color: #c49363;
    transform: translateY(-2px);
}

/* =========================================
   Page Content Section
   ========================================= */
.page-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.content-section h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
}

.vision-section, .beliefs-section, .community-section {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.vision-section h2, .beliefs-section h2, .community-section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

.vision-section p, .beliefs-section p, .community-section p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #444;
}

/* =========================================
   Leadership Section
   ========================================= */
.leader-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.leader-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.leader-card:hover {
    transform: translateY(-5px);
}

.leader-silhouette svg {
    width: 100%;
    height: 100%;
}

.leader-silhouette img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.leader-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.leader-card p:first-of-type {
    color: var(--secondary-color);
    font-weight: bold;
    margin-bottom: 1rem;
}

.leader-card p:last-child {
    color: #666;
}

/* =========================================
   FAQ/Accordions
   ========================================= */
.faq-container {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.faq-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid #eee;
    border-radius: 8px;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item h2 {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.question-icon {
    font-size: 2rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-color);
    color: var(--bg-white);
    border-radius: 50%;
}

.faq-item p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.dietary-notes {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border-left: 4px solid var(--accent-color);
}

.dietary-notes h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.dietary-notes p {
    font-size: 1rem;
    margin-bottom: 0;
}

.visit-info {
    margin-top: 2rem;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.visit-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.visit-info ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.visit-info ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.action-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.secondary-button {
    background-color: #6c757d;
    color: var(--bg-white);
    padding: 0.75rem 1.875rem;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.1rem;
}

.secondary-button:hover {
    background-color: #5a6268;
}

/* =========================================
   Events Page Styles
   ========================================= */
.events-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-button {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-button:hover {
    background-color: #244d3e;
}

.category-filters {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.filter-label {
    font-weight: bold;
    color: var(--primary-color);
}

.category-btn {
    padding: 0.5rem 1rem;
    background-color: #e8f5e9;
    border: 1px solid var(--secondary-color);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.category-btn.active, .category-btn:hover {
    background-color: var(--secondary-color);
    color: var(--bg-white);
}

.event-search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-size: 1.25rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-white);
    margin-bottom: 1rem;
}

.event-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.15);
}

.event-search-input::placeholder {
    color: #999;
}

.events-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.no-events-msg {
    text-align: center;
    padding: 3rem;
    background: var(--bg-white);
    border-radius: 8px;
    color: #666;
}

.event-item.hidden {
    display: none !important;
}

.event-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.event-date {
    text-align: center;
    min-width: 80px;
}

.month {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    text-transform: uppercase;
}

.day {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
    margin: 0.25rem 0;
}

.year {
    display: block;
    font-size: 1rem;
    color: #666;
}

.event-details h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.event-time, .event-location {
    color: var(--secondary-color);
    font-weight: 500;
}

.event-location::before {
    content: "📍 ";
}

.visit-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.visit-section {
    margin-bottom: 3rem;
}

.visit-section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

.restaurant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.restaurant-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.restaurant-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.restaurant-type {
    color: var(--secondary-color);
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.restaurant-distance {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.activity-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.activity-card:hover {
    transform: translateY(-3px);
}

.activity-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.activity-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.directions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.direction-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.direction-card p {
    margin-bottom: 1.5rem;
}

.direction-card .cta-button,
.direction-card .secondary-button {
    width: auto;
    max-width: 200px;
    text-align: center;
    display: inline-block;
}

.direction-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.direction-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.visit-tips ul {
    list-style: none;
    padding: 0;
}

.visit-tips ul li {
    padding: 0.75rem 1rem;
    background: var(--bg-white);
    border-radius: 6px;
    margin-bottom: 0.5rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--secondary-color);
}

.transport-section {
    margin-bottom: 3rem;
}

.transport-section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

.info-block {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.info-block h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.transport-list {
    list-style: none;
    padding: 0;
}

.transport-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.transport-list li:last-child {
    border-bottom: none;
}

.event-calendar-link {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}

/* =========================================
   Diocese Section
   ========================================= */
.diocese-section {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    color: var(--text-light);
}

.diocese-section h2 {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.diocese-section p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.diocese-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.diocese-info h3 {
    color: var(--accent-color);
    margin-bottom: 0.75rem;
}

.diocese-link {
    margin-top: 1.5rem;
    text-align: center;
}

.diocese-section a {
    color: var(--accent-color);
    font-weight: bold;
}

.diocese-section a:hover {
    text-decoration: underline;
}

.event-calendar-link h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.event-calendar-link p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.event-calendar-link .secondary-button {
    display: inline-block;
}

.tip-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}

.tip-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* =========================================
   Contact & Map Section
   ========================================= */
.contact-map-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.map-wrapper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin: 0 auto;
    max-width: 800px;
}

.contact-details h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.info-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.info-card span.icon {
    font-size: 2rem;
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.info-card p {
    line-height: 1.6;
}

.map-link, a {
    color: var(--secondary-color);
}

a:hover {
    text-decoration: underline;
}

.phone-info a, .email-info a {
    font-size: 1.2rem;
}

.note {
    font-size: 0.9rem;
    color: #666;
}

.service-hours-info {
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--bg-light);
    border-radius: 8px;
}

.service-hours-info h3 {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-hours-info ul li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #ddd;
}

.service-hours-info ul li:last-child {
    border-bottom: none;
}

/* =========================================
   Footer
   ========================================= */
.main-footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-info h3, .service-times h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-content p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 2rem;
    opacity: 0.8;
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 968px) {
    .nav-container {
        flex-wrap: wrap;
    }

    .church-name {
        font-size: 1.2rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
    padding: 0.75rem 1.5rem;
        gap: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: relative;
    }
}

@media (max-width: 768px) {
    .header-slider {
        max-height: 40vh;
    }

    .hero-section {
        padding: 0 1rem;
    }

    .subpage-links-wrapper {
        flex-direction: column;
    }

    .links-grid {
        flex-direction: column;
        align-items: center;
    }

    .link-card {
        max-width: 100%;
    }

    .links-grid .link-card img {
        width: 80px;
        height: 80px;
    }

    .page-arch-img {
        width: 150px;
        height: 150px;
    }

    .faq-container, .content-section h1 {
        padding: 1.5rem;
    }

    .contact-map-container {
        grid-template-columns: 1fr;
    }

    .info-card {
        grid-template-columns: auto;
        text-align: center;
    }
}

    .hero-section {
        padding: 0 1rem;
    }

    .subpage-links-wrapper {
        flex-direction: column;
    }

    .subpage-arch-img {
        width: 100px;
        height: 100px;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }

    .links-grid .link-card img {
        width: 80px;
        height: 80px;
    }

    .page-arch-img {
        width: 150px;
        height: 150px;
    }

    .faq-container, .content-section h1 {
        padding: 1.5rem;
    }

    .contact-map-container {
        grid-template-columns: 1fr;
    }

    .info-card {
        grid-template-columns: auto;
        text-align: center;
    }

@media (max-width: 480px) {
    .church-name {
        font-size: 1.2rem;
    }

    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }

    .visit-tips {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Print Styles
   ========================================= */
@media print {
    .header-slider, .main-nav, .footer-bottom, .filter-button, .cta-button {
        display: none !important;
    }

    body {
        background-color: #fff;
        color: #000;
    }
}
