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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
}

.main-content {
    background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.1) 20%, #ffffff 100%);
}

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

/* Header Styles */
.site-header {
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.header-top {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8c 100%);
    padding: 10px 0;
}

.search-link {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.search-link:hover {
    color: #fff;
}

.main-nav {
    padding: 15px 0;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 22px;
    font-weight: 700;
    color: #1e3a5f;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #2d5a8c;
    border-bottom-color: #2d5a8c;
}

/* Hero Production Section */
.hero-production {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: flex-start;
    /* Use the flyer as background behind the content */
    background: none;
    overflow: visible;
    padding: 60px 0;
    margin-bottom: 0;
}

/* Flyer as section background with soft overlay for readability */
.hero-production::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('https://walsallgands.pages.dev/images/iolanthe-flyer.png');
    background-size: cover;           /* fill area */
    background-position: center;      /* keep composition */
    background-repeat: no-repeat;
    filter: blur(12px);               /* blur background */
    transform: scale(1.05);           /* compensate blur crop */
    transform-origin: center;
    z-index: 0;
}


.hero-container {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    align-items: start;
    position: relative;
    z-index: 2; /* keep content above background + overlay */
}

.hero-image-column {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0;
}

.hero-flyer {
    width: 100%;
    max-width: 450px;
    height: auto;
    display: block;
}

.hero-content-column {
    color: white;
    padding-top: 0;
}

.production-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.hero-title {
    font-size: 72px;
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-dates {
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: 500;
    opacity: 0.95;
}

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: #fff;
    color: #667eea;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.1);
}

.hero-info {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 25px 30px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-info p {
    margin: 8px 0;
    font-size: 16px;
}

.hero-info strong {
    font-weight: 600;
}

/* Section Styles */
.section-title {
    font-size: 36px;
    font-weight: 800;
    margin: 60px 0 40px;
    color: #1a1a1a;
    text-align: center;
}

/* Featured Section */
.featured-section {
    margin-bottom: 80px;
    position: relative;
}

.featured-section::before {
    content: "";
    position: absolute;
    top: -40px;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, rgba(102, 126, 234, 0.1), transparent);
    z-index: 1;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.article-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;
}

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

.article-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 25px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

.article-meta .author {
    font-weight: 600;
    color: #2d5a8c;
}

.article-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    line-height: 1.4;
    color: #1a1a1a;
}

.article-content p {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more {
    color: #2d5a8c;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.read-more:hover {
    text-decoration: underline;
}

/* Productions Section */
.productions-section {
    margin-bottom: 80px;
}

.productions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.production-item {
    position: relative;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.production-item img {
    width:  Catholics;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.production-item:hover img {
    transform: scale(1.1);
}

.production-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 30px 25px;
    color: white;
}

.production-overlay h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.production-overlay p {
    font-size: 14px;
    opacity: 0.9;
}

/* Footer */
.site-footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 40px 0;
    margin-top: 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    margin-right: 20px;
    font-weight: 500;
}

.footer-links a:hover {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        padding: 30px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        transition: left 0.3s;
        gap: 20px;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-image-column {
        order: -1;
    }

    .hero-flyer {
        width: 100%;
        max-width: 100%;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-dates {
        font-size: 22px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .articles-grid,
    .productions-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 36px;
    }

    .section-title {
        font-size: 28px;
    }
}