/**
 * Author: Shiva Sharan Shrestha
 * License: Friends On The Cloud
 */

/* About section: 50/50 text and image responsive layout */
.about-section .about-content {
    display: flex;
    gap: 2rem;
    align-items: stretch;
}
.about-section .about-text,
.about-section .about-image {
    flex: 1 1 50%;
    min-width: 0;
}
.about-section .about-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem;
}
.about-section .about-image {
    display: block;
    width: 100%;
    height: auto;
    overflow: hidden;
}
.about-section .about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}
/* Ensure the image fills the right half vertically on larger screens */
@media (min-width: 900px) {
    .about-section { padding: 2rem 0; }
    .about-section .about-content { min-height: 320px; }
    .about-section .about-image img { height: 100%; }
}
/* Stack on mobile */
@media (max-width: 899px) {
    .about-section .about-content {
        flex-direction: column;
        gap: 1rem;
    }
    .about-section .about-image img { height: auto; }
}
/* Homepage Styles - Friends On The Cloud */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 2rem 2rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,184,107,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,184,107,0.1)"/><circle cx="60" cy="80" r="1" fill="rgba(255,184,107,0.1)"/></svg>');
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-section h1 {
    font-size: 3.5rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-section p {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(102, 126, 234, 0.2);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    background: white;
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Responsive hero styles */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 1.5rem 1rem 3rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-section p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

/* Hero fallback when no slider images */
.hero-fallback {
    margin: 2rem auto 0;
    max-width: 1200px;
    padding: 4rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.hero-fallback--gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hero-fallback__title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.hero-fallback__subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-fallback__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn--ghost-light {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn--ghost-light:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.hero-action-secondary {
    opacity: 0.9;
}

.hero-action-secondary:hover {
    opacity: 1;
}

/* Modern Gallery Slider - Fully Responsive */
.gallery-showcase {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.gallery-showcase .container {
    max-width: 100%; /* Use full container width */
    padding: 0 2rem; /* Add padding instead of max-width restriction */
}

.gallery-slider {
    position: relative;
    width: 100%;
    max-width: 100%; /* Use full width available */
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.12);
    background: #ffffff;
    height: 600px; /* Increased height for better image display */
    min-height: 500px; /* Ensure minimum height */
    /* Ensure consistent aspect ratio across different screen sizes */
    aspect-ratio: 16/9;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1;
}

.gallery-slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Show whole image without cropping */
    object-position: center; /* Center the image */
    display: block;
    transition: transform 0.6s ease;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); /* subtle background instead of white */
    /* Ensure image quality is maintained */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.slider-slide:hover .slide-image {
    transform: scale(1.05);
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.slider-slide:hover .slide-overlay,
.slider-slide.active .slide-overlay {
    transform: translateY(0);
}

.slide-content {
    max-width: 600px;
}

.slide-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: white;
}

.slide-description {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
}

/* Navigation Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1.5rem;
    pointer-events: none;
    z-index: 10;
}

.slider-btn {
    background: rgba(255,255,255,0.9);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
}

.slider-btn:hover {
    background: rgba(255,255,255,1);
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.slider-btn:active {
    transform: scale(0.95);
}

.slider-btn svg {
    width: 24px;
    height: 24px;
}

/* Dot Indicators */
.slider-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    background: rgba(255,255,255,0.9);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot:hover {
    background: rgba(0,0,0,0.6);
    transform: scale(1.2);
}

.slider-dot.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    transform: scale(1.3);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .gallery-showcase {
        padding: 2rem 0;
    }
    
    .gallery-slider {
        margin: 0 1rem;
        border-radius: 16px;
        height: 400px; /* Good height for tablet */
        min-height: 250px; /* Ensure minimum height */
        max-height: 100vh; /* Don't exceed viewport height */
        transition: height 360ms ease; /* Smooth height changes when images vary */
    }
    
    .slide-image img {
        object-fit: contain; /* Show whole image without cropping */
        object-position: center; /* Keep content centered */
    }
    
    .slide-content h3 {
        font-size: 1.3rem;
    }
    
    .slide-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .gallery-showcase {
        padding: 1.5rem 0;
    }
    
    .gallery-showcase .container {
        padding: 0 1rem; /* Smaller padding on mobile */
    }
    
    .gallery-slider {
        margin: 0; /* Remove margin on mobile */
        border-radius: 12px;
        height: 50vh; /* Use a viewport-relative height on mobile */
        max-width: 100%; /* Use full width */
        min-height: 300px; /* Ensure consistent minimum height */
    }
    
    .slide-image img {
        object-fit: contain; /* Show whole image without cropping */
        object-position: center; /* Center important content */
    }
    
    .slider-prev, .slider-next {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .slider-prev { left: 0.75rem; }
    .slider-next { right: 0.75rem; }
}
    
    .slider-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .slide-overlay {
        padding: 1rem;
    }
    
    .slide-title {
        font-size: 1.2rem;
    }
    
    .slide-description {
        font-size: 0.85rem;
    }
    
    .slider-dots {
        bottom: 1rem;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
    }
    
    .slider-dot {
        width: 10px;
        height: 10px;
    }


@media (max-width: 480px) {
    .gallery-showcase {
        padding: 1rem 0;
    }
    
    .gallery-slider {
        margin: 0 0.5rem;
        border-radius: 10px;
        height: 45vh; /* Adjusted height for small mobile */
        min-height: 260px; /* Ensure minimum height */
    }
    
    .slide-image img {
        object-fit: contain; /* Show whole image without cropping */
        object-position: center; /* Keep important content centered */
    }
    
    .slider-prev, .slider-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .slider-prev { left: 0.5rem; }
    .slider-next { right: 0.5rem; }
    
    .slide-content h3 {
        font-size: 1.1rem;
    }
    
    .slide-content p {
        font-size: 0.8rem;
    }
    
    .slider-dots {
        bottom: 0.75rem;
        gap: 0.4rem;
        padding: 0.4rem 0.8rem;
    }
    
    .slider-dot {
        width: 8px;
        height: 8px;
    }
}

/* Touch and gesture support */
.slider-track {
    touch-action: pan-y;
}

@media (hover: none) and (pointer: coarse) {
    /* Touch devices */
    .slider-btn {
        opacity: 0.8;
    }
    
    .slide-overlay {
        transform: translateY(0);
        background: linear-gradient(transparent, rgba(0,0,0,0.8));
    }
}

/* Ensure images fill container completely on all devices */
.gallery-slide .slide-image {
    background: #f8f9fa; /* Subtle background color instead of white */
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-slide .slide-image img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Show whole image without cropping */
    object-position: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Responsive image handling for different orientations */
@media (max-width: 1024px) {
    .gallery-slide .slide-image img {
        object-fit: contain;
        object-position: center;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    }
}

@media (max-width: 768px) {
    .gallery-slide .slide-image img {
        object-fit: contain;
        object-position: center;
        /* Ensure full visibility on mobile */
        min-height: 100%;
        min-width: 100%;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    }
}

@media (max-width: 480px) {
    .gallery-slide .slide-image img {
        object-fit: contain;
        object-position: center;
        /* Ensure full visibility on small mobile */
        min-height: 100%;
        min-width: 100%;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    }
}

/* Features Section */
.features-section {
    padding: 5rem 2rem;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ffb86b, #ff7e5f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* About Section */
.about-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.about-section .about-content {
    max-width: 1200px;
    margin: 0 auto;
    /* Use flex to make a reliable 50/50 split that is easy to override responsively */
    display: flex;
    gap: 4rem;
    align-items: center;
}
.about-section .about-text {
    flex: 1 1 50%;
    min-width: 0;
}
.about-section .about-image {
    flex: 1 1 50%;
    min-width: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    position: relative;
}

.about-text h2 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #ffb86b, #ff7e5f);
    border-radius: 2px;
}

.about-text p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.06) 0%, rgba(118, 75, 162, 0.06) 100%);
    z-index: 1;
}

.about-image img {
    width: 100%;
    height: 100%; /* fill the column */
    object-fit: cover; /* cover the right column while maintaining aspect */
    object-position: center;
    display: block;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

/* Categories Section */
.categories-section {
    padding: 5rem 2rem;
    background: white;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    background: linear-gradient(135deg, #ffb86b, #ff7e5f);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(255,184,107,0.3);
}

.category-card h3 {
    margin: 0;
    font-size: 1.3rem;
}

/* Posts Section */
.posts-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.post-image {
    height: 300px;
    overflow: hidden;
}

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

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

.post-content {
    padding: 1.5rem;
}

.post-content h3 {
    color: #333;
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    line-height: 1.3;
}

.post-content p {
    color: #666;
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #999;
}

.read-more {
    color: #ffb86b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.read-more:hover {
    color: #ff7e5f;
}

/* Call to Action Section */
.cta-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #ffb86b, #ff7e5f);
    text-align: center;
    color: white;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: white;
    color: #ffb86b;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

/* Newsletter Section */
.newsletter-section {
    padding: 5rem 2rem;
    background: white;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-content h2 {
    color: #333;
    margin-bottom: 1rem;
}

.newsletter-content p {
    color: #666;
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #ffb86b;
}

.newsletter-form button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ffb86b, #ff7e5f);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: linear-gradient(135deg, #ff7e5f, #ffb86b);
}

/* Success/Error Messages */
.message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 1.5rem 1rem 3rem;
    }

    .hero-section h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero-section p {
        font-size: 1rem;
        line-height: 1.5;
    }

    .features-section {
        padding: 3rem 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-card {
        padding: 2rem;
    }

    .feature-card h3 {
        font-size: 1.3rem;
    }

    .about-section {
        padding: 3rem 1rem;
    }

    .about-section .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text h2 {
        font-size: 2rem;
    }

    .about-image img {
    height: auto;
    max-height: 40vh;
    }

    .about-text h2 {
        font-size: 2rem;
    }

    .categories-section {
        padding: 3rem 1rem;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .category-card h3 {
        font-size: 1.1rem;
    }

    .posts-section {
        padding: 3rem 1rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .post-content h3 {
        font-size: 1.1rem;
    }

    .cta-section {
        padding: 3rem 1rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .newsletter-section {
        padding: 3rem 1rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }

    .gallery-section {
        padding: 3rem 1rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.5rem;
    }

    .gallery-item {
        height: 250px;
        min-height: 240px;
        border-radius: 12px;
    }

    .gallery-overlay {
        padding: 1.5rem 1rem 1rem;
    }

    .gallery-overlay h4 {
        font-size: 1.1rem;
    }

    .gallery-overlay p {
        font-size: 0.85rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }

    .hero-section p {
        font-size: 0.9rem;
    }

    .hero-fallback {
        padding: 2rem 1rem;
        margin: 1rem auto 0;
    }

    .hero-fallback__title {
        font-size: 1.5rem;
    }

    .hero-fallback__subtitle {
        font-size: 0.9rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Rich section styles used across About / Category / Gallery / Blog Details / Contact */
:root{--rich-bg:#f7f9fc;--card-bg:#ffffff;--muted:#6b7280;--accent1:#667eea;--accent2:#764ba2}

.rich-section{padding:3.5rem 0;background:var(--rich-bg);}
.rich-section .container{max-width:1200px;margin:0 auto;padding:0 1rem}
.section-hero{background:linear-gradient(135deg,var(--accent1),var(--accent2));color:white;padding:3rem;border-radius:16px;margin-bottom:2rem;box-shadow:0 20px 60px rgba(21,33,72,0.06)}
.section-hero h1{font-size:2.6rem;margin:0 0 0.5rem;line-height:1.07}
.section-hero p{opacity:0.95;margin-bottom:1rem;font-size:1.05rem}
.section-grid{display:grid;grid-template-columns:1fr 1fr;gap:2rem;align-items:start}
.card{background:var(--card-bg);padding:1.25rem;border-radius:12px;box-shadow:0 10px 30px rgba(16,24,40,0.06)}
.card h3{margin:0 0 0.5rem;font-size:1.25rem}
.card p{color:var(--muted);line-height:1.7}
.lead{font-size:1.05rem;color:#374151}
.feature-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem}
.feature-item{background:var(--card-bg);padding:1rem;border-radius:10px;text-align:center}
.feature-item h4{margin:0.5rem 0;color:#111827}
.btn-ghost{display:inline-block;padding:0.6rem 1rem;border-radius:8px;border:1px solid rgba(0,0,0,0.06);background:white;color:#111827;text-decoration:none}
.section-footer-cta{display:flex;gap:1rem;align-items:center;justify-content:center;margin-top:1.25rem}

/* Blog post specific */
.post-article{background:var(--card-bg);padding:2rem;border-radius:12px;box-shadow:0 10px 30px rgba(16,24,40,0.06);margin-bottom:2rem}
.post-header-hero{padding:2rem;border-radius:10px;background:linear-gradient(180deg,rgba(102,126,234,0.08),rgba(118,75,162,0.03));margin-bottom:2rem}
.post-header-hero h1{margin:0;font-size:2.2rem;line-height:1.3}
.post-meta{display:flex;gap:1rem;align-items:center;color:var(--muted);font-size:0.95rem;margin-top:1rem}
.category-badge{background:linear-gradient(135deg,var(--accent1),var(--accent2));color:white;padding:0.4rem 0.8rem;border-radius:20px;font-size:0.85rem;font-weight:500;text-decoration:none;display:inline-block}
.category-badge:hover{transform:translateY(-1px);box-shadow:0 4px 12px rgba(102,126,234,0.3)}
.post-date{color:var(--muted);font-weight:500}
.post-image-large{width:100%;max-height:600px;overflow:hidden;border-radius:12px;margin-bottom:2rem;box-shadow:0 8px 24px rgba(0,0,0,0.1)}
.post-image-large img{width:100%;height:auto;display:block;border-radius:12px;transition:transform 0.3s ease}
.post-image-large:hover img{transform:scale(1.02)}

/* Rich Blog Details layout */
.post-layout{display:grid;grid-template-columns:2fr 360px;gap:2rem;align-items:start}
.post-content{background:var(--card-bg);padding:1.5rem;border-radius:12px;box-shadow:0 10px 30px rgba(16,24,40,0.06)}
.post-sidebar{position:relative}
.post-sidebar .widget{background:var(--card-bg);padding:1rem;border-radius:12px;box-shadow:0 8px 24px rgba(16,24,40,0.06);margin-bottom:1rem}
.post-sidebar .widget h4{margin:0 0 0.75rem;font-size:1.05rem}

/* Recent posts list (used in sidebar or standalone Recent Posts section) */
.recent-posts{display:grid;gap:0.75rem}
.recent-post{display:flex;gap:0.75rem;align-items:center;padding:0.75rem;border-radius:8px;transition:all 0.18s ease;border:1px solid rgba(0,0,0,0.05)}
.recent-post:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,0.1);border-color:rgba(102,126,234,0.2)}
.recent-post-thumb{width:72px;height:56px;flex:0 0 72px;border-radius:8px;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,0.1)}
.recent-post-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.recent-post-meta{flex:1}
.recent-post-meta a{display:block;color:#111827;font-weight:600;text-decoration:none;margin-bottom:0.25rem}
.recent-post-meta a:hover{color:var(--accent1)}
.recent-post-meta small{display:block;color:var(--muted);font-size:0.85rem}

/* Standalone Recent Posts section (rich cards) */
.recent-posts-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem}
.recent-card{background:var(--card-bg);border-radius:12px;padding:1rem;box-shadow:0 10px 30px rgba(16,24,40,0.06);transition:transform .2s ease}
.recent-card:hover{transform:translateY(-6px)}
.recent-card .thumb{height:160px;border-radius:10px;overflow:hidden;margin-bottom:0.75rem}
.recent-card .thumb img{width:100%;height:100%;object-fit:cover;display:block}
.recent-card h3{margin:0 0 0.5rem;font-size:1.05rem}
.recent-card p{color:var(--muted);font-size:0.95rem}

/* Improve article typography inside post-content */
.post-content h2{font-size:1.4rem;margin-top:1.25rem}
.post-content p{color:var(--muted);line-height:1.8;font-size:1rem;margin-bottom:1rem}
.post-content blockquote{border-left:4px solid var(--accent1);padding:1rem 1.25rem;background:linear-gradient(180deg,rgba(102,126,234,0.03),rgba(118,75,162,0.02));border-radius:8px;margin:1rem 0;font-style:italic}
.post-content ul, .post-content ol{margin:1rem 0;padding-left:1.5rem}
.post-content li{margin-bottom:0.5rem}
.post-content a{color:var(--accent1);text-decoration:none}
.post-content a:hover{text-decoration:underline}
.post-content img{max-width:100%;height:auto;border-radius:8px;margin:1rem 0}
.post-content code{background:#f4f4f4;padding:0.2rem 0.4rem;border-radius:4px;font-family:monospace;font-size:0.9em}
.post-content pre{background:#f4f4f4;padding:1rem;border-radius:8px;overflow-x:auto;margin:1rem 0}
.post-content pre code{background:none;padding:0}

/* Responsive adjustments */
@media(max-width:1024px){.post-layout{grid-template-columns:1fr}.post-sidebar{order:2}.post-content{order:1}}
@media(max-width:768px){
    .post-header-hero h1{font-size:1.6rem}
    .post-meta{flex-direction:column;gap:0.5rem;align-items:flex-start}
    .post-navigation{flex-direction:column;gap:0.75rem}
    .post-sharing{justify-content:center}
    .share-btn{flex:1;min-width:120px;justify-content:center}
}
@media(max-width:480px){
    .rich-section{padding:1.5rem 0}
    .post-header-hero{padding:1.5rem}
    .post-content{padding:1rem}
    .post-actions{margin-top:1.5rem;padding:1.5rem 0}
    .share-btn{font-size:0.9rem;padding:0.6rem 1rem}
}
.comments-section .comment{background:linear-gradient(180deg,#fff,#fbfbfe);padding:1rem;border-radius:8px;border:1px solid #eef2ff}
.comment-form .form-group input,.comment-form .form-group textarea{border:1px solid #e6e9ef;padding:0.75rem;border-radius:8px}

/* Responsive */
@media(max-width:1024px){.section-grid{grid-template-columns:1fr}.section-hero h1{font-size:2rem}.post-header-hero h1{font-size:1.6rem}}
@media(max-width:480px){.section-hero{padding:1.5rem}.rich-section{padding:2rem 0}}

/* Gallery grid: ensure uniform tiles */
.gallery-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:0.5rem}
.gallery-grid .gallery-item{overflow:hidden;border-radius:8px}
.gallery-grid .gallery-item img{width:100%;height:100%;object-fit:cover;display:block}

/* Small utility: center images in constrained thumbnails */
.thumb-center{display:flex;align-items:center;justify-content:center;overflow:hidden}
.thumb-center img{max-width:100%;height:auto;display:block}

/* Fine-tuned aspect ratios and UX improvements */
.img-wrap{width:100%;overflow:hidden;border-radius:8px;display:block}
.img-wrap img{width:100%;height:100%;display:block;opacity:1;transform:scale(1);transition:opacity 420ms ease, transform 520ms ease}

/* Gallery images specifically use cover for thumbnails */
.gallery-grid .img-wrap img, .gallery-item .img-wrap img { object-fit: cover; }

/* Dots navigation */
.slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dots .dot.active {
    background: rgba(255,255,255,0.9);
    transform: scale(1.2);
}

/* Component-specific aspect ratios */
/* Gallery images keep their aspect ratio for consistency, but slider images don't */
.gallery-grid .gallery-item, .gallery-grid .gallery-item img, .gallery-grid .gallery-item .img-wrap { aspect-ratio: 4 / 3; }
.post-image, .post-image .img-wrap, .post-image img { aspect-ratio: 4 / 3; }

/* No-JS fallback: if .img-wrap not present, enforce ratio on direct images */
@supports (aspect-ratio: 1/1) {
	.gallery-item img:not(.wrapped), .post-image img:not(.wrapped) { width:100%; height:auto; }
}

/* Admin styles */
.create-first-post-link { color: #ffb86b; }
.about-page{max-width:1400px;margin:0 auto}
.about-hero{display:grid;grid-template-columns:1fr 1fr;gap:4rem;align-items:center;padding:4rem 2rem;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);border-radius:20px;margin-bottom:4rem;position:relative;overflow:hidden}
.hero-content h1{color:#fff;font-size:3.5rem;margin-bottom:1rem;line-height:1.2}
.hero-subtitle{color:rgba(255,255,255,0.9);font-size:1.4rem;font-style:italic;margin-bottom:2rem}
.hero-stats{display:flex;gap:2rem;margin-top:2rem}
.stat-item{text-align:center}
.stat-number{display:block;color:#fff;font-size:2.5rem;font-weight:bold;line-height:1}
.stat-label{color:rgba(255,255,255,0.8);font-size:0.9rem;text-transform:uppercase;letter-spacing:1px}
.hero-image{position:relative;height:300px}
.floating-elements{position:relative;width:100%;height:100%}
.floating-icon{position:absolute;font-size:3rem;animation:float 6s ease-in-out infinite}
.floating-icon:nth-child(1){top:20%;left:20%;animation-delay:0s}
.floating-icon:nth-child(2){top:60%;left:70%;animation-delay:2s}
.floating-icon:nth-child(3){top:40%;left:50%;animation-delay:4s;}
.floating-icon:nth-child(4){top:80%;left:30%;animation-delay:1s;}
@keyframes float{0%,100%{transform:translateY(0px)}50%{transform:translateY(-20px)}}

.about-page .about-content{display:flex;flex-direction:column;gap:5rem}
.about-section{display:grid;grid-template-columns:1fr 1fr;gap:4rem;align-items:start}
.about-section.reverse{direction:rtl}
.about-section.reverse .about-text{direction:ltr}
.about-text h2{color:#333;font-size:2.5rem;margin-bottom:1.5rem;position:relative}
.about-text h2::after{content:'';position:absolute;bottom:-10px;left:0;width:60px;height:4px;background:linear-gradient(90deg,#ffb86b,#ff7e5f);border-radius:2px}
.about-text p{color:#666;line-height:1.8;margin-bottom:1.5rem;font-size:1.1rem}
.story-quote{background:linear-gradient(135deg,#f8f9fa 0%,#e9ecef 100%);padding:2rem;border-radius:12px;border-left:4px solid #ffb86b;font-style:italic;font-size:1.2rem;margin:2rem 0;position:relative}
.story-quote::before{content:'"';font-size:4rem;color:#ffb86b;position:absolute;top:-10px;left:10px;opacity:0.3}
.story-quote cite{display:block;margin-top:1rem;color:#ffb86b;font-weight:600;font-style:normal}

.timeline{background:#fff;padding:2rem;border-radius:16px;box-shadow:0 8px 32px rgba(0,0,0,0.1)}
.timeline-item{display:flex;justify-content:space-between;align-items:center;padding:1rem 0;border-bottom:1px solid #eee}
.timeline-item:last-child{border-bottom:none}
.year{font-weight:bold;color:#ffb86b;font-size:1.2rem}
.event{color:#333;text-align:right}

.mission-vision-section{display:grid;grid-template-columns:1fr 1fr;gap:3rem;margin:4rem 0}
.mission-card,.vision-card{background:#fff;padding:3rem 2rem;border-radius:16px;box-shadow:0 10px 40px rgba(0,0,0,0.1);text-align:center;position:relative;overflow:hidden}
.mission-card::before,.vision-card::before{content:'';position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,#ffb86b,#ff7e5f)}
.card-icon{font-size:3rem;margin-bottom:1rem}
.mission-card h3,.vision-card h3{color:#333;margin-bottom:1rem;font-size:1.5rem}
.mission-card p,.vision-card p{color:#666;line-height:1.7}

.special-section{text-align:center;margin:4rem 0}
.special-section h2{color:#333;font-size:2.5rem;margin-bottom:3rem}
.special-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:2rem}
.special-item{background:#fff;padding:2rem;border-radius:16px;box-shadow:0 8px 32px rgba(0,0,0,0.1);text-align:center;transition:transform 0.3s}
.special-item:hover{transform:translateY(-5px)}
.special-icon{font-size:3rem;margin-bottom:1rem}
.special-item h4{color:#333;margin-bottom:1rem;font-size:1.3rem}
.special-item p{color:#666;line-height:1.6}

.features-showcase{text-align:center;margin:4rem 0}
.features-showcase h2{color:#333;font-size:2.5rem;margin-bottom:3rem}
.features-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:2rem}
.feature-item{background:#fff;padding:2.5rem;border-radius:16px;box-shadow:0 8px 32px rgba(0,0,0,0.1);text-align:center;transition:transform 0.3s,box-shadow 0.3s}
.feature-item:hover{transform:translateY(-5px);box-shadow:0 15px 50px rgba(0,0,0,0.15)}
.feature-icon{font-size:3rem;margin-bottom:1rem}
.feature-item h4{color:#333;margin-bottom:1rem;font-size:1.3rem}
.feature-item p{color:#666;line-height:1.6}

.values-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:2rem;margin-top:2rem}
.value-item{background:#fff;padding:2rem;border-radius:12px;box-shadow:0 4px 16px rgba(0,0,0,0.1);display:flex;align-items:flex-start;gap:1rem}
.value-icon{font-size:2rem;flex-shrink:0}
.value-item h4{color:#333;margin-bottom:0.5rem;font-size:1.2rem}
.value-item p{color:#666;font-size:0.95rem;line-height:1.6;margin:0}

.values-showcase{background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);padding:3rem;border-radius:16px;color:white;text-align:center}
.value-highlight{margin-bottom:2rem}
.value-highlight:last-child{margin-bottom:0}
.highlight-number{display:block;font-size:3rem;font-weight:bold;line-height:1;margin-bottom:0.5rem}
.highlight-text{font-size:1.1rem;opacity:0.9}

.impact-section{background:linear-gradient(135deg,#f5f7fa 0%,#c3cfe2 100%);padding:4rem 2rem;border-radius:20px;margin:4rem 0}
.impact-section h2{text-align:center;color:#333;font-size:2.5rem;margin-bottom:3rem}
.impact-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:2rem;margin-bottom:4rem}
.impact-stat{text-align:center;background:#fff;padding:2rem;border-radius:16px;box-shadow:0 4px 16px rgba(0,0,0,0.1)}
.impact-number{display:block;color:#ffb86b;font-size:2.5rem;font-weight:bold;margin-bottom:0.5rem}
.impact-label{color:#333;font-size:1.2rem;font-weight:600;margin-bottom:0.5rem}
.impact-stat p{color:#666;font-size:0.95rem}
.impact-stories h3{text-align:center;color:#333;font-size:2rem;margin-bottom:2rem}
.story-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:2rem}
.story-card{background:#fff;padding:2rem;border-radius:16px;box-shadow:0 4px 16px rgba(0,0,0,0.1);text-align:center}
.story-icon{font-size:3rem;margin-bottom:1rem}
.story-card h4{color:#333;margin-bottom:1rem;font-size:1.3rem}
.story-card p{color:#666;line-height:1.6;margin-bottom:1rem}
.story-card cite{color:#ffb86b;font-style:italic;font-size:0.9rem}

.team-section{text-align:center;margin:5rem 0}
.team-section h2{color:#333;font-size:2.5rem;margin-bottom:1rem}
.team-section>p{color:#666;font-size:1.2rem;margin-bottom:3rem}
.team-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:2rem}
.team-member{background:#fff;padding:2rem;border-radius:16px;box-shadow:0 8px 32px rgba(0,0,0,0.1);text-align:center;transition:transform 0.3s}
.team-member:hover{transform:translateY(-5px)}
.member-avatar{font-size:4rem;margin-bottom:1rem}
.team-member h4{color:#333;margin-bottom:1rem;font-size:1.3rem}
.team-member p{color:#666;line-height:1.6}

.future-section{background:#fff;padding:4rem 2rem;border-radius:20px;margin:4rem 0;box-shadow:0 8px 32px rgba(0,0,0,0.1)}
.future-section h2{text-align:center;color:#333;font-size:2.5rem;margin-bottom:2rem}
.future-content{display:grid;grid-template-columns:1fr 1fr;gap:4rem;align-items:center}
.future-list{list-style:none;padding:0}
.future-list li{margin-bottom:1rem;padding:1rem;background:#f8f9fa;border-radius:8px;border-left:4px solid #ffb86b}
.future-list strong{color:#333;display:block;margin-bottom:0.5rem}
.future-icons{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem}
.future-icon{font-size:3rem;text-align:center;padding:1rem;background:linear-gradient(135deg,#f8f9fa 0%,#e9ecef 100%);border-radius:12px}

.cta-section{background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);border-radius:20px;padding:4rem 2rem;text-align:center;margin-top:4rem}
.cta-content h2{color:#fff;font-size:2.5rem;margin-bottom:1rem}
.cta-content p{color:rgba(255,255,255,0.9);font-size:1.2rem;margin-bottom:2rem}
.cta-buttons{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap}
.cta-button{display:inline-block;padding:1rem 2rem;border-radius:8px;font-weight:600;font-size:1.1rem;text-decoration:none;transition:transform 0.3s}
.cta-button.primary{background:#fff;color:#667eea}
.cta-button.secondary{background:rgba(255,255,255,0.2);color:#fff;border:2px solid #fff}
.cta-button:hover{transform:translateY(-2px)}

/* Responsive slider improvements */
@media (max-width: 1024px){
	.about-hero{grid-template-columns:1fr;gap:2rem;text-align:center}
	.hero-stats{justify-content:center}
	.about-section{grid-template-columns:1fr;gap:2rem}
	.about-section.reverse{direction:ltr}
	.mission-vision-section{grid-template-columns:1fr}
	.features-grid{grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}
	.future-content{grid-template-columns:1fr;gap:2rem}
}

@media (max-width: 768px){
	.about-hero{padding:3rem 1rem}
	.hero-content h1{font-size:2.5rem}
	.hero-stats{flex-direction:column;gap:1rem}
	.about-text h2{font-size:2rem}
	.features-showcase h2,.team-section h2,.impact-section h2,.cta-content h2,.future-section h2{font-size:2rem}
	.features-grid,.values-list,.team-grid,.impact-stats,.story-cards,.special-grid{grid-template-columns:1fr}
	.story-quote{padding:1.5rem;font-size:1.1rem}
	.cta-buttons{flex-direction:column;align-items:center}
	.cta-button{width:200px}
	.timeline-item{flex-direction:column;text-align:center;gap:0.5rem}
	.year{order:1}
	.event{order:2;text-align:center}
}

@media (max-width: 480px){
	.about-hero{padding:2rem 1rem}
	.hero-content h1{font-size:2rem}
	.hero-subtitle{font-size:1.2rem}
	.about-text h2{font-size:1.8rem}
	.feature-item,.team-member,.impact-stat,.story-card,.special-item{padding:1.5rem}
	.mission-card,.vision-card{padding:2rem 1.5rem}
	.future-list li{padding:0.75rem}
	.future-icons{grid-template-columns:repeat(3,1fr)}
}

/* Print styles for blog posts */
@media print {
    .post-article { box-shadow: none; padding: 0; }
    .post-header-hero { background: white; padding: 1rem 0; margin-bottom: 1rem; }
    .post-meta { color: #666; }
    .post-image-large { max-height: none; page-break-inside: avoid; }
    .post-sidebar, .post-actions, .site-header, .site-nav { display: none; }
    .post-content { font-size: 12pt; line-height: 1.5; }
    .post-content h2 { page-break-after: avoid; }
    .post-content p { orphans: 3; widows: 3; }
}

/* Final responsive safety layer for all core pages */
img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 1024px) {
    .posts-grid,
    .categories-grid,
    .images-grid,
    .albums-grid,
    .post-gallery-grid,
    .special-grid,
    .types-grid,
    .features-grid,
    .community-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .section-hero h1,
    .gallery-hero h1,
    .about-hero h1 {
        font-size: clamp(1.7rem, 5vw, 2.4rem);
    }
}

@media (max-width: 768px) {
    .rich-section {
        padding: 1.5rem 0;
    }

    .page-main,
    .container.page-main {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .posts-grid,
    .categories-grid,
    .images-grid,
    .albums-grid,
    .post-gallery-grid,
    .special-grid,
    .types-grid,
    .features-grid,
    .community-grid,
    .benefits-grid,
    .impact-stats,
    .story-cards,
    .team-grid,
    .values-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-layout,
    .about-section,
    .mission-vision-section,
    .future-content,
    .post-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .post-card .post-image img,
    .image-container,
    .album-cover-container {
        height: auto;
        min-height: 220px;
    }

    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .card,
    .post-card,
    .album-card,
    .feature-card,
    .special-item,
    .benefit-card {
        border-radius: 12px;
    }

    .section-hero,
    .gallery-hero,
    .about-hero {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .section-hero .lead,
    .gallery-hero .lead,
    .hero-subtitle {
        font-size: 0.98rem;
    }
}
/* Gallery thumbnails use a tighter aspect ratio */
.gallery-grid .thumb .img-wrap { aspect-ratio: 4/3; overflow: hidden; }
.gallery-grid .thumb .img-wrap img { object-fit: cover; width: 100%; height: 100%; }

/* New gallery thumbnail helper classes */
.gallery-image-thumb { height: 260px; overflow: hidden; border-radius: 10px; }
.gallery-image-thumb img.gallery-thumb-img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; display: block; }

/* Hero fallback gradient and helpers moved from inline styles */
.hero-fallback--gradient { background: linear-gradient(135deg,#667eea,#764ba2); color: white; padding: 4rem; border-radius: 12px; text-align:center; }
.hero-fallback__title { font-size:2.25rem; margin-bottom:1rem; }
.hero-fallback__subtitle { max-width:800px; margin:0 auto 1.25rem; }
.hero-fallback__actions { margin-top:1rem; }
.btn--ghost-light { background: rgba(255,255,255,0.12); border:1px solid rgba(255,255,255,0.18); color: white; }

/* Make sliders and gallery fully responsive */
.container{max-width:1200px;margin:0 auto;padding:0 1rem}

/* Gallery responsive grid */
.gallery-grid{
	display:grid;
	grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
	gap:1rem;
	margin: 0 auto;
	max-width: 1200px;
}

.gallery-item{
	display:flex;
	flex-direction:column;
	border-radius:12px;
	overflow:hidden;
	box-shadow:0 4px 16px rgba(0,0,0,0.1);
	transition:transform 0.3s ease, box-shadow 0.3s ease;
	cursor:pointer;
	aspect-ratio:4/3;
	min-height: 220px;
}

.gallery-image-container{
	width:100%;
	flex:1;
	position:relative;
}

.gallery-image-container.gallery-image-thumb{
	aspect-ratio:4/3;
	height:auto;
}

.gallery-thumb-img{
	width:100%;
	height:100%;
	object-fit:cover;
	cursor:pointer;
	display:block;
	transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-thumb-img {
	transform: scale(1.05);
}

.gallery-item-content{
	padding:0.75rem;
	background: white;
}

.gallery-item-title{
	margin:0 0 0.5rem;
	font-size: 1.1rem;
	font-weight: 600;
	line-height: 1.3;
}

.gallery-item-description{
	color:var(--muted);
	margin:0 0 0.5rem;
	font-size: 0.9rem;
	line-height: 1.4;
}

.category-tag{
	display:inline-block;
	background:linear-gradient(135deg,#ffb86b,#ff7e5f);
	color:white;
	padding:0.25rem 0.6rem;
	border-radius:12px;
	font-size:0.8rem;
	font-weight:600;
	margin-top: 0.25rem;
}

/* Small screens: taller hero for better cropping */
@media (max-width: 600px) {
  /* aspect-ratio removed for mobile */
}

/* Larger screens: maintain wide hero */
@media (min-width: 900px) {
  /* aspect-ratio removed for larger screens */
}

/* Inline style replacements - Homepage */
.hero-action-secondary { margin-left: 0.5rem; }
.section-heading { text-align: center; color: #333; margin-bottom: 3rem; font-size: 2.5rem; }
.section-cta { text-align: center; margin-top: 2rem; }
.empty-state { text-align: center; padding: 3rem; }
.empty-state-message { color: #666; font-size: 1.2rem; }
.empty-state-action { margin-top: 1rem; }
.pagination-nav { text-align: center; margin-top: 2rem; }
.pagination-prev { margin-right: 0.5rem; }
.pagination-item { margin: 0 0.25rem; }
.pagination-next { margin-left: 0.5rem; }
/* gallery modal styles removed */

/* Post actions styling */
.post-actions{margin-top:2rem;padding:2rem 0;border-top:1px solid rgba(0,0,0,0.1)}
.post-navigation{display:flex;gap:1rem;justify-content:center;margin-bottom:1.5rem}
.post-nav-back,.post-nav-category{background:var(--card-bg);color:#111827;padding:0.75rem 1.5rem;border-radius:8px;text-decoration:none;font-weight:500;transition:all 0.2s ease;border:1px solid rgba(0,0,0,0.1)}
.post-nav-back:hover,.post-nav-category:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,0.1);background:#f8f9fc}
.post-sharing{display:flex;gap:0.5rem;justify-content:center;flex-wrap:wrap}
.share-btn{background:linear-gradient(135deg,var(--accent1),var(--accent2));color:white;padding:0.75rem 1.5rem;border-radius:8px;text-decoration:none;font-weight:500;transition:all 0.2s ease;display:flex;align-items:center;gap:0.5rem}
.share-btn:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgba(102,126,234,0.4)}

/* Contact page styles */
.contact-container { padding: 2rem 0; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1.5rem; }
.contact-form-card { padding: 1.5rem; }
.contact-map-card { padding: 1rem; }
.map-container { margin: 1rem 0; }
.contact-map-iframe { border: 0; border-radius: 8px; }
.contact-info { background: #f8f9fa; padding: 1rem; border-radius: 8px; }
.contact-gallery-section { padding: 2rem 0; margin-top: 1.5rem; }
.contact-gallery-card { padding: 1rem; }
.contact-gallery-heading { text-align: center; margin-bottom: 1rem; }

/* Gallery page styles */
.gallery-filters { margin: 1rem 0 2rem; }

/* Final overrides: ensure about section stays 50/50 on wide screens and stacks on small screens */
.about-section .about-content {
    /* ensure this rule wins over earlier grid rules */
    display: flex !important;
    flex-direction: row !important;
}
.about-section .about-text { flex: 1 1 50% !important; }
.about-section .about-image { flex: 1 1 50% !important; }
.about-section .about-image img { width:100% !important; height:100% !important; object-fit:cover !important; }

@media (max-width: 900px) {
    .about-section .about-content { flex-direction: column !important; }
    .about-section .about-image img { height: auto !important; max-height: none !important; }
}
.filter-buttons { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.gallery-empty-state { text-align: center; padding: 2.5rem; }
.gallery-item-content { padding: 0.75rem; }
.gallery-item-title { margin: 0 0 0.5rem; }
.gallery-item-description { color: var(--muted); margin: 0 0 0.5rem; }

/* Responsive contact layout */
@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; }
  .post-navigation { display: flex; flex-direction: column; gap: 0.5rem; }
  .post-sharing { display: flex; flex-direction: column; gap: 0.5rem; align-items: center; }
  .share-btn { margin-left: 0; }
}

/* Enhanced responsive gallery styles */
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
  }
  .gallery-item {
    min-height: 200px;
  }
  .gallery-item-title {
    font-size: 1rem;
  }
  .gallery-item-description {
    font-size: 0.85rem;
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.6rem;
  }
  .gallery-item {
    min-height: 160px;
    border-radius: 8px;
  }
  .gallery-item-content {
    padding: 0.5rem;
  }
  .gallery-item-title {
    font-size: 0.95rem;
  }
  .gallery-item-description {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
  }
  .category-tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
  }
}

/* Ultra-mobile gallery improvements */
@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.5rem;
  }
  .gallery-item {
    min-height: 140px;
    border-radius: 6px;
  }
  .gallery-item-content {
    padding: 0.4rem;
  }
  .gallery-item-title {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
  }
  .gallery-item-description {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    display: none; /* Hide descriptions on very small screens */
  }
  .category-tag {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
  }
}

/* Gallery filter buttons mobile improvements */
@media (max-width: 768px) {
  .filter-buttons {
    justify-content: center;
    gap: 0.4rem;
  }
  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 20px;
  }
}

@media (max-width: 480px) {
  .filter-buttons {
    flex-wrap: wrap;
    gap: 0.3rem;
  }
  .filter-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    min-width: auto;
  }
}

/* Gallery section hero mobile improvements */
@media (max-width: 768px) {
  .section-hero {
    padding: 2rem 1rem;
  }
  
  .section-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
  }
  
  .section-hero p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .section-hero {
    padding: 1.5rem 1rem;
  }
  
  .section-hero h1 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
  }
  
  .section-hero p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }
}

/* Album-specific styles */
.album-item {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    aspect-ratio: 4/3;
    min-height: 220px;
}

.album-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.album-cover {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.album-cover-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    padding: 1rem;
}

.album-info {
    padding: 1rem;
    background: white;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.album-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    color: #2c3e50;
}

.album-info p {
    margin: 0 0 0.75rem 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    flex: 1;
}

.album-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 1rem;
}

.album-actions {
    display: flex;
    gap: 0.5rem;
}

.image-count {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

/* Responsive album styles */
@media (max-width: 900px) {
  .album-item {
    min-height: 200px;
  }
  .album-cover, .album-cover-placeholder {
    height: 160px;
  }
  .album-info h4 {
    font-size: 1rem;
  }
  .album-info p {
    font-size: 0.85rem;
  }
}

@media (max-width: 600px) {
  .album-item {
    min-height: 160px;
    border-radius: 8px;
  }
  .album-cover, .album-cover-placeholder {
    height: 140px;
  }
  .album-info {
    padding: 0.75rem;
  }
  .album-info h4 {
    font-size: 0.95rem;
  }
  .album-info p {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }
  .image-count {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
  }
}

@media (max-width: 480px) {
  .album-item {
    min-height: 140px;
    border-radius: 6px;
  }
  .album-cover, .album-cover-placeholder {
    height: 120px;
  }
  .album-info {
    padding: 0.5rem;
  }
  .album-info h4 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
  }
  .album-info p {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
  }
  .image-count {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
  }
}

/* Contact Page Styles - Enhanced Design */

/* Contact Page Container */
.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Hero Section */
.section-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 2rem;
    border-radius: 20px;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.15);
}

.section-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    50% { transform: translate(-50%, -50%) rotate(180deg); }
}

.section-hero h1 {
    font-size: 3.2rem;
    margin: 0 0 1rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.section-hero .lead {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Contact Layout */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Contact Form Section */
.contact-form-section {
    background: transparent;
}

.contact-form-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.8);
    position: relative;
    overflow: hidden;
}

.contact-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Form Groups */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
    color: #111827;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}

/* Submit Button */
.contact-form .btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.contact-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.contact-form .btn:active {
    transform: translateY(0);
}

/* Messages */
.message {
    padding: 1.25rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid;
    position: relative;
    overflow: hidden;
}

.message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.success-message {
    background: linear-gradient(135deg, #d1fae5 0%, #fecaca 100%);
    color: #065f46;
    border-color: #34d399;
}

.success-message::before {
    background: #34d399;
}

.error-message {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border-color: #f87171;
}

.error-message::before {
    background: #f87171;
}

/* Contact Map Section */
.contact-map-section {
    background: transparent;
}

.contact-map-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.8);
}

.contact-map-card h3 {
    font-size: 1.8rem;
    margin: 0 0 1.5rem;
    color: #111827;
    font-weight: 700;
}

/* Map Container */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.contact-map-iframe {
    width: 100%;
    height: 350px;
    border: none;
    filter: grayscale(10%) contrast(1.1);
    transition: filter 0.3s ease;
}

.contact-map-iframe:hover {
    filter: grayscale(0%) contrast(1.1);
}

/* Contact Info */
.contact-info {
    display: grid;
    gap: 1.25rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: #f1f5f9;
    transform: translateX(4px);
}

.info-item strong {
    color: #667eea;
    font-weight: 700;
    min-width: 80px;
}

/* Gallery Section */
.contact-gallery-section {
    margin-top: 3rem;
}

.contact-gallery-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.8);
}

.contact-gallery-heading {
    font-size: 2rem;
    margin: 0 0 2rem;
    text-align: center;
    color: #111827;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-hero h1 {
        font-size: 2.5rem;
    }

    .section-hero .lead {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .contact-container {
        padding: 0 0.5rem;
    }

    .section-hero {
        padding: 3rem 1.5rem;
        margin-bottom: 2rem;
    }

    .section-hero h1 {
        font-size: 2.2rem;
    }

    .section-hero .lead {
        font-size: 1rem;
    }

    .contact-form-card,
    .contact-map-card,
    .contact-gallery-card {
        padding: 2rem 1.5rem;
    }

    .contact-map-iframe {
        height: 280px;
    }

    .info-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .info-item strong {
        min-width: auto;
    }

    .slider-prev, .slider-next {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .slider-prev { left: 0.5rem; }
    .slider-next { right: 0.5rem; }
}

@media (max-width: 480px) {
    .section-hero {
        padding: 2.5rem 1rem;
        border-radius: 16px;
    }

    .section-hero h1 {
        font-size: 1.8rem;
    }

    .section-hero .lead {
        font-size: 0.95rem;
    }

    .contact-form-card,
    .contact-map-card,
    .contact-gallery-card {
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.875rem;
        font-size: 0.95rem;
    }

    .contact-form .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .contact-map-iframe {
        height: 240px;
    }

    .contact-gallery-heading {
        font-size: 1.6rem;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .section-hero::before,
    .contact-form .btn,
    .slider-prev, .slider-next,
    .info-item {
        animation: none;
        transition: none;
    }
}

/* Focus States */
.form-group input:focus,
.form-group textarea:focus,
.contact-form .btn:focus,
.slider-prev:focus,
.slider-next:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .contact-form,
    .contact-map-section,
    .contact-gallery-section {
        display: none;
    }

    .section-hero {
        background: white !important;
        color: black !important;
        box-shadow: none;
    }
}

/* Floating Social Icons (sticky, auto-hide after inactivity) */
.floating-social {
  position: fixed;
  right: 1.25rem;
  bottom: 4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 9999;
  transition: transform 0.35s ease, opacity 0.35s ease;
  will-change: transform, opacity;
}

.floating-social.hidden {
  transform: translateY(20px) scale(0.98);
  opacity: 0; 
  pointer-events: none;
}

.floating-social .fs-item {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.95);
  color: #111;
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  padding: 6px;
}

.floating-social .fs-item svg { width: 22px; height: 22px; display: block; fill: currentColor; }

.floating-social .fs-item:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 28px rgba(0,0,0,0.16);
}

/* Brand backgrounds but softened (not too dark) */
.floating-social .fs-item.email { background: linear-gradient(135deg,#6d5df6,#9b6ef5); color: white; }
.floating-social .fs-item.facebook { background: linear-gradient(135deg,#2d8af8,#1877f2); color: white; }
.floating-social .fs-item.instagram { background: radial-gradient(circle at 30% 30%, #fed373 0%, #fc6c7c 35%, #9b5fd8 70%); color: white; }
.floating-social .fs-item.whatsapp { background: linear-gradient(135deg,#41d77a,#25D366); color: white; }

@media (max-width: 768px) {
  .floating-social { right: 0.75rem; bottom: 3.25rem; }
  .floating-social .fs-item { width: 44px; height: 44px; font-size: 18px; }
}

/* Contact Page Styles - Enhanced Design */

/* Contact Page Container */
.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Hero Section */
.section-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 2rem;
    border-radius: 20px;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.15);
}

.section-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    50% { transform: translate(-50%, -50%) rotate(180deg); }
}

.section-hero h1 {
    font-size: 3.2rem;
    margin: 0 0 1rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.section-hero .lead {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Contact Layout */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Contact Form Section */
.contact-form-section {
    background: transparent;
}

.contact-form-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.8);
    position: relative;
    overflow: hidden;
}

.contact-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Form Groups */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
    color: #111827;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}

/* Submit Button */
.contact-form .btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.contact-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.contact-form .btn:active {
    transform: translateY(0);
}

/* Messages */
.message {
    padding: 1.25rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid;
    position: relative;
    overflow: hidden;
}

.message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.success-message {
    background: linear-gradient(135deg, #d1fae5 0%, #fecaca 100%);
    color: #065f46;
    border-color: #34d399;
}

.success-message::before {
    background: #34d399;
}

.error-message {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border-color: #f87171;
}

.error-message::before {
    background: #f87171;
}

/* Contact Map Section */
.contact-map-section {
    background: transparent;
}

.contact-map-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.8);
}

.contact-map-card h3 {
    font-size: 1.8rem;
    margin: 0 0 1.5rem;
    color: #111827;
    font-weight: 700;
}

/* Map Container */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.contact-map-iframe {
    width: 100%;
    height: 350px;
    border: none;
    filter: grayscale(10%) contrast(1.1);
    transition: filter 0.3s ease;
}

.contact-map-iframe:hover {
    filter: grayscale(0%) contrast(1.1);
}

/* Contact Info */
.contact-info {
    display: grid;
    gap: 1.25rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: #f1f5f9;
    transform: translateX(4px);
}

.info-item strong {
    color: #667eea;
    font-weight: 700;
    min-width: 80px;
}

/* Gallery Section */
.contact-gallery-section {
    margin-top: 3rem;
}

.contact-gallery-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.8);
}

.contact-gallery-heading {
    font-size: 2rem;
    margin: 0 0 2rem;
    text-align: center;
    color: #111827;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-hero h1 {
        font-size: 2.5rem;
    }

    .section-hero .lead {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .contact-container {
        padding: 0 0.5rem;
    }

    .section-hero {
        padding: 3rem 1.5rem;
        margin-bottom: 2rem;
    }

    .section-hero h1 {
        font-size: 2.2rem;
    }

    .section-hero .lead {
        font-size: 1rem;
    }

    .contact-form-card,
    .contact-map-card,
    .contact-gallery-card {
        padding: 2rem 1.5rem;
    }

    .contact-map-iframe {
        height: 280px;
    }

    .info-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .info-item strong {
        min-width: auto;
    }

    .slider-prev, .slider-next {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .slider-prev { left: 0.5rem; }
    .slider-next { right: 0.5rem; }
}

@media (max-width: 480px) {
    .section-hero {
        padding: 2.5rem 1rem;
        border-radius: 16px;
    }

    .section-hero h1 {
        font-size: 1.8rem;
    }

    .section-hero .lead {
        font-size: 0.95rem;
    }

    .contact-form-card,
    .contact-map-card,
    .contact-gallery-card {
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.875rem;
        font-size: 0.95rem;
    }

    .contact-form .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .contact-map-iframe {
        height: 240px;
    }

    .contact-gallery-heading {
        font-size: 1.6rem;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .section-hero::before,
    .contact-form .btn,
    .slider-prev, .slider-next,
    .info-item {
        animation: none;
        transition: none;
    }
}

/* Focus States */
.form-group input:focus,
.form-group textarea:focus,
.contact-form .btn:focus,
.slider-prev:focus,
.slider-next:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .contact-form,
    .contact-map-section,
    .contact-gallery-section {
        display: none;
    }

    .section-hero {
        background: white !important;
        color: black !important;
        box-shadow: none;
    }
}
