:root {
    /* Blue Theme */
    --primary: #0284c7; /* Sky 600 */
    --secondary: #3b82f6; /* Blue 500 */
    --accent: #0ea5e9; /* Sky 500 */
    --text: #0f172a; /* Slate 900 */
    --text-light: #475569; /* Slate 600 */
    --card-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.7);
    --radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@keyframes moveBackground {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: #f0f9ff;
    
    /* Lebendiger, animierter Mesh-Gradient */
    background: 
        radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.25), transparent 50%),
        radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.25), transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(186, 230, 253, 0.4), transparent 50%),
        linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    background-size: 300% 300%;
    animation: moveBackground 25s ease infinite;
    
    min-height: 100vh;
}

header {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 55px;
}

.team-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

nav.navbar ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

nav.navbar li {
    display: inline-block;
}

/* Burger Menu Button */
.burger-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.burger-menu-btn span {
    width: 30px;
    height: 3px;
    background: var(--text);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.burger-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg);
}
.burger-menu-btn.active span:nth-child(2) {
    opacity: 0;
}
.burger-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg);
}

nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

main {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

section {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3rem;
    margin-bottom: 3rem;
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

section h2 {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
}

.home-section > p {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Event Highlight with Blue Theme */
#event-highlight-wrapper {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(59, 130, 246, 0.08));
    border: 1px solid var(--primary);
    padding: 0.4rem;
    max-width: 400px;
    margin: 0 auto 4rem auto;
    border-radius: var(--radius);
    position: relative;
}

.event-highlight-heading {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    text-align: center;
}

.blog-section-heading {
    container-type: inline-size;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    margin: 4rem 0 2rem 0;
    text-align: center;
    white-space: nowrap;
    width: 100%;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.blog-card {
    container-type: inline-size;
    background-color: #eee;
    background-size: cover;
    background-position: center;
    border: none;
    border-left: 8px solid var(--primary);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    aspect-ratio: 4/5;
    position: relative;
}

/* Overlay for the entire card to darken image slightly */
.blog-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Push content to bottom */
    padding: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.1) 100%);
}

.blog-card:hover {
    transform: translateY(-5px); /* Subtle lift */
    box-shadow: 0 15px 30px rgba(14, 165, 233, 0.25);
}

/* Remove old image styles */
.blog-card-image {
    display: none;
}

.blog-card-content {
    background: #addaf086; /* Sehr helles Blau, transparenter */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    width: 100%;
    max-height: 40%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.read-more-link {
    margin-top: auto;
    text-align: right;
    font-size: 0.9rem;
    font-weight: 800;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.blog-card-points {
    list-style: none;
    margin: 0.5rem 0 1rem 0;
    padding: 0;
}

.blog-card-points li {
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    padding-left: 0;
    display: block;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blog-card-points li::before {
    display: none;
}

.blog-card-meta {
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 0.8rem;
}

/* Event Highlight Card Style */
.event-card {
    container-type: inline-size;
    background: white;
    border-radius: var(--radius);
    padding: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.15);
}

.event-card-content {
    padding: 0.3rem 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.event-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.3;
}

.event-date-row {
    font-size: 1rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
}

.event-card-meta {
    margin-top: 0.2rem;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.event-category {
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

footer {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-top: 1px solid white;
    text-align: center;
    padding: 3rem 1rem;
    margin-top: 4rem;
    color: var(--text);
}

.submit-btn, .back-button {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.submit-btn:hover, .back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.3);
}


/* Membership Form Layout - Restoring missing styles */
.membership-form {
    max-width: 800px;
    margin: 2rem auto;
}

.form-section {
    background: rgba(255, 255, 255, 0.4); /* Consistent with glass theme */
    padding: 2rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    border: 1px solid var(--glass-border);
}

.form-section h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.4rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.form-group label {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
    margin-left: 0.2rem;
}

.form-hint {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* Ensure inputs take full width */
.form-group input, 
.form-group select {
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.form-group input:focus {
    background: white;
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
    transform: translateY(-1px);
}

.family-member {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 2px solid #ecf0f1;
    position: relative;
}

.family-member h4 {
    color: #3498db;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.remove-member-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.3s ease;
}

.remove-member-btn:hover {
    background: #c0392b;
}

.add-member-btn {
    background: #2ecc71;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.add-member-btn:hover {
    background: #27ae60;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.form-checkbox input[type="checkbox"] {
    width: 24px;
    height: 24px;
    margin-top: 0.1rem;
    cursor: pointer;
    flex-shrink: 0;
}

.form-checkbox label {
    font-weight: 400;
    color: #444;
    font-size: 1rem;
    line-height: 1.6;
    cursor: pointer;
    margin-bottom: 0;
}

.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.download-section {
    margin-bottom: 2.5rem;
    text-align: center;
}

.download-pdf-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.download-pdf-btn:hover {
    background: #229954;
    transform: translateY(-2px);
}

.download-pdf-btn:active {
    transform: translateY(0);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    margin-bottom: 0;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .header-content {
        padding: 0 1rem;
    }
    
    .logo {
        height: 45px;
    }
    
    .team-name {
        font-size: 1.1rem;
    }
    
    .burger-menu-btn {
        display: flex;
    }
    
    nav.navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out, border 0s linear 0.4s;
        border-bottom: 0px solid transparent;
    }
    
    nav.navbar.active {
        max-height: 400px;
        border-bottom: 1px solid var(--glass-border);
        transition: max-height 0.4s ease-in-out;
    }
    
    nav.navbar ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 2rem 0;
        gap: 1.5rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-card-content {
        max-height: 50%; /* More text space on mobile */
        padding: 0.8rem;
    }
    
    .blog-card-title {
        font-size: 6cqi;
        margin-bottom: 0.4rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .blog-card-points li {
        font-size: 4.5cqi;
        margin-bottom: 0.2rem;
        white-space: nowrap; /* Prevent wrap */
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Mobile Scaling for Event Card */
    .event-card-title {
        font-size: 8cqi;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .event-date-row {
        font-size: 6cqi;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex-wrap: nowrap;
    }
    
    .event-card-meta {
        font-size: 5.5cqi;
        display: flex;
        justify-content: flex-start;
    }

    .blog-section-heading {
        font-size: min(4.5vw, 1.2rem); 
        width: 100%;
        margin: 2rem 0 1rem 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    section {
        padding: 1.5rem; /* Reduce padding on mobile */
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .membership-form {
        margin: 1.5rem auto;
    }
    
    .submit-btn {
        padding: 0.8rem 2rem;
    }
    
    .event-filters {
        flex-direction: column;
    }
    
    .filter-btn {
        width: 100%;
    }
    
    .event-meta {
        grid-template-columns: 1fr;
    }
}

/* Calendar/Events Styles */

.event-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #ecf0f1;
}

.filter-btn {
    background: #ecf0f1;
    color: #2c3e50;
    border: 2px solid #ecf0f1;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #d5dbdb;
    border-color: #d5dbdb;
}

.filter-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.calendar-event-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calendar-event-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.event-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.event-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.3rem;
}

.event-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    text-transform: uppercase;
}

.event-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
    font-size: 0.95rem;
    color: #666;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-description {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
}

.no-events {
    text-align: center;
    padding: 2rem;
    color: #7f8c8d;
    font-size: 1.05rem;
}

/* Hero Section Styles */
.hero-container {
    container-type: inline-size;
    position: relative;
    text-align: center;
    padding: 3rem 1rem 1rem 1rem; /* Reduced bottom padding from 5rem to 1rem */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem; /* Reduced margin from 2rem to 1rem */
}

/* Reduce spacing specifically when blog heading follows hero (Desktop) */
.hero-container + .blog-section-heading {
    margin-top: 1rem;
}

/* Subtle glow behind the logo */
.hero-container::before {
    content: '';
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    max-width: 400px;
    max-height: 400px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-logo {
    width: 220px; /* Increased base size */
    max-width: 50vw;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(14, 165, 233, 0.25));
    animation: floatLogo 6s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.hero-logo:hover {
    transform: scale(1.05) translateY(-5px);
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.hero-title {
    font-size: clamp(2rem, 10cqi, 4.5rem);
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    filter: drop-shadow(0 4px 12px rgba(14, 165, 233, 0.15));
    padding: 0.5rem 0; /* Reduced horizontal padding allows full width */
    letter-spacing: -0.02em;
    width: 100%; /* Ensure it can take space */
    max-width: 100%;
    word-wrap: break-word; /* Prevent overflow if somehow too large */
}

/* Mobile Adjustments for Hero */
@media (max-width: 768px) {
    .hero-container {
        padding: 2rem 1rem 0 1rem; /* Reduced bottom padding */
        gap: 1rem;
        margin-bottom: 1rem; /* Reduced margin */
    }

    /* Reduce spacing for the heading following the hero */
    .hero-container + .blog-section-heading {
        margin-top: 1rem;
    }

    .hero-container::before {
        width: 80vw;
        height: 80vw;
    }
    
    .hero-logo {
        width: 160px;
    }
}

/* Article Detail Page Styles */
#post-detail-container {
    max-width: 900px;
    margin: 2rem auto;
    /* Padding inherited from section styles, but ensuring vertical gap */
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.post-detail-header {
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 2rem;
    margin-bottom: 1rem;
}

.post-detail-title {
    font-size: clamp(2rem, 5vw, 3rem);
    background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 800;
}

.post-detail-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: var(--text-light);
    font-weight: 500;
    font-size: 1.1rem;
}

.post-detail-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.post-detail-content {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text);
    /* Enable handling of newlines if they exist in JSON content strings */
    white-space: pre-line; 
}

/* Ensure images inside content responsive */
.post-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.post-detail-content h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 2rem 0 1rem 0;
}

/* Back button positioning adjustment */
#post-detail-container .back-button {
    align-self: flex-start;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    padding: 0.6rem 1.5rem;
}

@media (max-width: 768px) {
    .post-detail-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .post-detail-title {
        font-size: 2rem;
    }
    
    .post-detail-content {
        font-size: 1.05rem;
    }
}

/* Image Caption Styles */
.post-image-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.2rem;
    font-size: 0.9rem;
    color: var(--text-light);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

.post-image-caption {
    font-style: italic;
    font-weight: 500;
}

.post-image-author {
    font-size: 0.8rem;
    opacity: 0.8;
}

@media (max-width: 600px) {
    .post-image-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
}

/* Image Wrapper for tighter caption spacing */
.post-main-image-wrapper {
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    /* No gap here, or very small */
}

/* Adjust image meta to remove bottom margin as parent gap handles it */
.post-image-meta {
    margin-bottom: 0;
    border-bottom: none; /* Optional: remove underline if not needed anymore */
    padding-top: 0.5rem; /* Space between image and text */
}

.post-detail-image {
    display: block; /* Removes inline gap */
}

/* Calendar Filter Mobile Styles */

.mobile-filter-toggle {
    display: none; /* Hidden on desktop */
}

/* Base style adjustment for wrapper on desktop */
.mobile-filter-wrapper {
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .mobile-filter-wrapper {
        position: relative;
        margin-bottom: 1.5rem;
    }

    .mobile-filter-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        background: white;
        border: 1px solid var(--glass-border);
        padding: 1rem 1.5rem;
        border-radius: var(--radius);
        font-weight: 600;
        color: var(--text);
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
        transition: all 0.3s ease;
    }

    .mobile-filter-toggle:hover {
        background: #f8fafc;
    }
    
    .mobile-filter-toggle.active {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        border-bottom: 1px solid #eee;
    }

    .event-filters {
        /* Mobile: Dropdown style */
        display: none; /* Hidden by default */
        flex-direction: column;
        gap: 0;
        background: white;
        border-radius: 0 0 var(--radius) var(--radius);
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        overflow: hidden;
        margin-top: 0; /* Attach to toggle */
        border: 1px solid var(--glass-border);
        border-top: none;
        padding: 0;
        animation: slideDown 0.3s ease forwards;
        z-index: 10;
        position: absolute;
        width: 100%;
    }

    .event-filters.show {
        display: flex;
    }

    .filter-btn {
        width: 100%;
        border-radius: 0; /* Rectangular items in dropdown */
        text-align: left;
        padding: 1rem 1.5rem;
        background: transparent;
        border: none;
        border-bottom: 1px solid #f1f5f9;
        color: var(--text);
        margin: 0;
    }

    .filter-btn:last-child {
        border-bottom: none;
    }

    .filter-btn:hover {
        background-color: #f8fafc;
        transform: none; /* Disable transform on hover for list items */
    }

    .filter-btn.active {
        background-color: #f0f9ff;
        color: var(--primary);
        font-weight: 700;
        border-color: #e0f2fe;
    }
    
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
}


/* Mobile Improvements for Membership Page */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: stretch; /* Make button full width */
        gap: 1rem;
        text-align: center;
    }

    .form-section {
        padding: 1.2rem; /* Reduced padding on mobile */
    }

    .download-pdf-btn {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }
}
/* About Page Styles */
.about-section {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

.about-text {
    max-width: 800px;
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text);
}

.lead-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.about-image-wrapper {
    width: 100%;
    margin: 0;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover {
    transform: scale(1.02);
}

.about-caption {
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    text-align: center;
    font-style: italic;
    color: var(--text-light);
    border-top: 1px solid rgba(0,0,0,0.05);
    font-weight: 500;
}

/* Mobile Adjustments for About Page */
@media (max-width: 768px) {
    .about-content {
        gap: 1.5rem;
    }
    
    .about-text {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .lead-text {
        font-size: 1.15rem;
        margin-bottom: 1rem;
    }
    
    .about-caption {
        font-size: 0.85rem;
        padding: 0.8rem;
    }
}

/* Gallery Styles */
.post-gallery-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.post-gallery-heading {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--text);
}

.post-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    break-inside: avoid;
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.gallery-item:hover {
    transform: translateY(-4px);
}

.gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    padding: 0.75rem;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.9);
}

.gallery-text {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.gallery-credit {
    font-size: 0.8rem;
    color: var(--text-light);
    font-style: italic;
}


/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1000px;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius);
}

.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1000px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Make gallery images hint that they are clickable */
.gallery-image {
    cursor: zoom-in;
}

@media only screen and (max-width: 700px){
    .lightbox-content {
        width: 100%;
    }
}


/* Hover Effect for Blog Cards */
.blog-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.blog-card:hover .blog-card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
}

.read-more-link {
    transition: transform 0.3s ease;
}

.blog-card:hover .read-more-link {
    transform: translateX(5px);
    color: var(--accent);
}

