/* =============================================
   RESPONSIVE STYLES
   Indian Plumbing Association - Lucknow Chapter
   ============================================= */

/* Mobile menu toggle (hidden by default) */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-110%);
}

/* Large Desktop (1200px and below) */
@media (max-width: 1200px) {
    .footer-main {
        grid-template-columns: 1fr 1fr !important;
        gap: 40px;
    }

    .cta-section {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    .cta-image {
        display: none !important;
    }

    .sitemap-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Tablet Landscape (992px and below) */
@media (max-width: 992px) {
    .container {
        padding: 0 15px;
    }

    .top-header-inner {
        padding: 15px 0;
    }

    .logo-section {
        min-width: auto;
        flex: 0 0 60%;
    }

    .top-logo img {
        height: 80px;
    }

    .organization-name {
        font-size: 18px;
    }

    .organization-tagline {
        font-size: 12px;
    }

    .main-menu {
        gap: 15px;
    }

        .main-menu a {
            font-size: 11px;
            padding: 14px 0;
        }

    /* About Section */
    .about-content {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Office Bearers */
    .bearers-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Benefits Grid */
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Hero Section */
    .hero-slider {
        height: 500px;
    }

    .slide-content h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Footer */
    .footer-main {
        grid-template-columns: 1fr 1fr !important;
        gap: 40px;
    }

    /* Events Timeline */
    .events-timeline::before {
        left: 30px;
    }

    .timeline-item {
        flex-direction: row !important;
        margin-left: 60px;
    }

    .timeline-date {
        position: absolute;
        left: -90px;
        margin: 0;
        width: 120px;
    }

    .timeline-icon {
        left: -60px;
        transform: translateX(0);
    }

    /* Benefits Features */
    .benefits-feature,
    .benefits-feature.reverse {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }

        .benefits-feature.reverse .feature-content,
        .benefits-feature.reverse .feature-image {
            order: 0 !important;
        }

    /* CTA Sections */
    .cta-section,
    .cta-stats {
        grid-template-columns: 1fr !important;
        text-align: center;
        flex-direction: column;
        gap: 30px;
    }

    .cta-image {
        display: none !important;
    }

    .cta-buttons {
        flex-direction: column;
    }

        .cta-buttons .btn {
            width: 100%;
        }

    /* History Timeline */
    .timeline-overview {
        flex-direction: column;
        gap: 20px;
        padding: 0;
    }

    .timeline-line {
        display: none !important;
    }

    .timeline-milestone {
        width: 100%;
        max-width: 400px;
    }

    /* Innovation Grid */
    .innovation-grid,
    .era-highlights {
        grid-template-columns: 1fr !important;
    }

    /* Legacy CTA */
    .legacy-cta {
        padding: 40px 20px;
    }

    /* Gallery Carousel */
    .gallery-swiper .swiper-slide {
        width: 280px;
        height: 330px;
    }

    .lightbox-container {
        width: 95%;
        height: 95vh;
    }

    /* Blog Carousel */
    .blog-carousel-container {
        padding: 0 15px;
        max-width: 800px;
    }

    .blog-image {
        height: 160px;
    }

    .blog-content {
        padding: 15px;
    }

    .blog-title {
        font-size: 1rem;
    }

    .blog-next,
    .blog-prev {
        width: 35px;
        height: 35px;
    }

        .blog-next:after,
        .blog-prev:after {
            font-size: 14px;
        }

    /* Terms & Privacy Pages */
    .terms-section-title {
        font-size: 1.6rem;
    }

    .terms-card {
        padding: 25px;
    }

    .definitions-grid {
        grid-template-columns: 1fr !important;
    }

    /* Sitemap */
    .sitemap-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }

    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .intro-card {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }

        .intro-card i {
            margin-bottom: 10px;
        }

    .summary-stats {
        gap: 25px;
        flex-wrap: wrap;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
        gap: 20px;
    }

    .testimonial-card {
        padding: 25px;
    }

    .cta-card {
        padding: 40px 30px;
    }

    /* Video Gallery */
    .video-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }

    /* Membership Benefits */
    .benefit-feature-card {
        grid-template-columns: 1fr !important;
        text-align: center;
        padding: 20px;
    }

        .benefit-feature-card.reverse {
            grid-template-columns: 1fr !important;
        }

    .benefit-icon-large {
        margin: 0 auto;
    }

    .benefit-points li {
        justify-content: center;
    }

    .benefit-image {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .benefit-feature-card.reverse .benefit-image {
        order: 0 !important;
    }

    .benefit-feature-card.reverse .benefit-content {
        order: 1 !important;
    }

    .benefit-feature-card.reverse .benefit-icon-large {
        order: 2 !important;
    }
}

/* Small Tablet & Large Mobile (768px and below) */
@media (max-width: 768px) {
    .top-header-inner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .logo-section {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .top-logo img {
        height: 70px;
    }

    .logo-details {
        text-align: center;
    }

    .organization-name {
        font-size: 16px;
    }

    .organization-tagline {
        font-size: 11px;
    }

    .header-right {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .contact-info {
        align-items: center;
        gap: 5px;
    }

    .contact-phone {
        font-size: 14px;
    }

    .contact-email {
        font-size: 12px;
    }

    .btn-cta {
        padding: 8px 20px;
        font-size: 13px;
    }

    /* Navigation */
    .mobile-toggle {
        display: block;
    }

    .main-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--accent-color);
        padding: 10px 0;
        gap: 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

        .main-menu.active {
            display: flex;
        }

        .main-menu > li {
            width: 100%;
        }

        .main-menu a {
            padding: 12px 20px;
            font-size: 14px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

            .main-menu a.active::after,
            .main-menu a:hover::after {
                display: none !important;
            }

            .main-menu a:hover {
                background: rgba(255, 255, 255, 0.1);
            }

    /* Dropdown adjustments for mobile */
    .dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        display: none;
        background: rgba(0, 0, 0, 0.1);
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        width: 100%;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu li a {
        padding-left: 40px;
        color: rgba(255, 255, 255, 0.9);
        font-size: 13px;
    }

    .dropdown > a::after {
        content: "▸" !important;
        position: absolute;
        right: 20px;
        transform: rotate(90deg);
        transition: transform 0.3s ease;
    }

    .dropdown.active > a::after {
        transform: rotate(-90deg);
    }

    /* Contact Layout */
    .contact-layout {
        grid-template-columns: 1fr !important;
        gap: 25px;
        max-width: 500px;
    }

    .contact-form-wrapper {
        padding: 20px;
    }

    /* Hero Sections */
    .ipa-hero-section {
        padding: 25px 0;
    }

    .ipa-content-section {
        padding: 30px 0;
    }

    .hero-slider {
        height: 450px;
    }

    .slide-content h1 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .slide-buttons {
        flex-direction: column;
    }

        .slide-buttons .btn {
            width: 100%;
        }

    /* About Stats */
    .about-stats {
        grid-template-columns: 1fr !important;
        padding: 20px;
    }

    /* Bearers Grid */
    .bearers-grid {
        grid-template-columns: 1fr !important;
    }

    .bearer-image {
        height: 500px !important;
    }

    /* Benefits Grid */
    .benefits-grid {
        grid-template-columns: 1fr !important;
    }

    /* Events Grid */
    .events-grid,
    .upcoming-grid,
    .past-grid {
        grid-template-columns: 1fr !important;
    }

    .upcoming-card {
        flex-direction: column;
    }

    .event-date {
        width: 60px;
        height: 60px;
        align-self: flex-start;
    }

    /* Footer */
    .footer-main {
        grid-template-columns: 1fr !important;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-bottom-right {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* CTA Sections */
    .cta-section,
    .membership-cta {
        padding: 30px;
    }

    /* Feature Content */
    .feature-content {
        padding: 30px 20px;
    }

        .feature-content h3 {
            font-size: 1.5rem;
        }

    /* Benefit Cards */
    .benefit-card h4 {
        font-size: 1.1rem;
    }

    /* Timeline Content */
    .timeline-content {
        padding: 20px;
    }

    .timeline-details h3 {
        font-size: 1.3rem;
    }

    /* History Sections */
    .breadcrumb-section {
        padding: 12px 0;
    }

    .history-hero-section {
        padding: 30px 0;
    }

    .history-card-header {
        padding: 25px 20px;
    }

    .history-card-body {
        padding: 25px 20px;
    }

    .legacy-cta h2 {
        font-size: 1.8rem;
    }

    .legacy-text {
        font-size: 1.1rem;
    }

    .legacy-actions {
        flex-direction: column;
    }

        .legacy-actions .btn {
            width: 100%;
        }

    /* Map Section */
    .section-map {
        padding: 30px 0;
    }

    .map-container {
        margin-bottom: 15px;
    }

    .map-placeholder,
    .map-placeholder iframe {
        height: 300px;
    }

    .map-info-overlay {
        top: 15px;
        left: 15px;
        padding: 10px 12px;
    }

    .map-info-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .map-info-text h3 {
        font-size: 0.9rem;
    }

    .map-info-text p {
        font-size: 0.75rem;
    }

    /* Show directions panel on mobile */
    .map-directions {
        display: block;
    }

    /* Gallery Controls */
    .gallery-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .filter-buttons,
    .year-buttons {
        justify-content: center;
    }

    .search-box {
        width: 100%;
    }

    /* Gallery Grid */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 12px;
    }

    .section-gallery {
        padding: 30px 0;
    }

    /* Gallery Carousel */
    .gallery-carousel-section {
        padding: 30px 0;
    }

    .gallery-carousel-container {
        padding: 10px 0 50px;
    }

    .gallery-swiper .swiper-slide {
        width: 250px;
        height: 300px;
    }

    .gallery-next,
    .gallery-prev {
        display: none !important;
    }

    .lightbox-container {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }

    .lightbox-image {
        height: 60%;
        padding: 10px;
    }

    .lightbox-caption {
        padding: 20px;
    }

    .lightbox-title {
        font-size: 1.5rem;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 50px;
        height: 50px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }

    /* Blog Carousel */
    .blog-carousel-section {
        padding: 25px 0;
    }

    .blog-carousel-container {
        padding: 0 10px;
    }

    .blog-swiper {
        padding: 10px 5px 25px;
    }

    .blog-image {
        height: 140px;
    }

    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        margin-bottom: 10px;
    }

    .blog-excerpt {
        -webkit-line-clamp: 2;
        margin-bottom: 10px;
    }

    .blog-footer {
        padding-top: 10px;
    }

    .blog-next,
    .blog-prev {
        display: none !important;
    }

    .blog-swiper .swiper-pagination {
        margin-top: 15px;
    }

    /* Event Actions */
    .event-actions {
        flex-direction: column;
    }

        .event-actions .btn-text {
            justify-content: center;
        }

    /* Terms & Privacy */
    .policy-section-title,
    .terms-section-title {
        font-size: 1.4rem;
    }

    .policy-card,
    .terms-card {
        padding: 20px;
    }

    .info-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .usage-grid {
        grid-template-columns: 1fr !important;
    }

    .security-features {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }

    .rights-grid {
        grid-template-columns: 1fr !important;
    }

    .contact-grid {
        grid-template-columns: 1fr !important;
    }

    .sharing-item {
        flex-direction: column;
        text-align: center;
    }

    .cookies-table {
        font-size: 14px;
    }

        .cookies-table th,
        .cookies-table td {
            padding: 8px;
        }

    .prohibited-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .membership-terms-grid {
        grid-template-columns: 1fr !important;
    }

    .contact-info-grid {
        grid-template-columns: 1fr !important;
    }

    .ip-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .rule-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .link-notice {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .jurisdiction-card {
        flex-direction: column;
        text-align: center;
    }

    /* Sitemap */
    .sitemap-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }

    .quick-links-grid {
        grid-template-columns: 1fr !important;
    }

    .sitemap-section-header h3 {
        font-size: 1.1rem;
    }

    .quick-links-title {
        font-size: 1.4rem;
    }

    .note-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .intro-text h3 {
        font-size: 1.3rem;
    }

    .intro-text p {
        font-size: 1rem;
    }

    .summary-stat .stat-number {
        font-size: 1.8rem;
    }

    /* Testimonials */
    .testimonials-section,
    .testimonial-stats,
    .testimonial-cta {
        padding: 40px 0;
    }

    .testimonials-grid {
        grid-template-columns: 1fr !important;
        max-width: 500px;
        margin: 0 auto;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }

    .filter-group {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .filter-btn {
        padding: 6px 15px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

        .cta-actions .btn {
            width: 100%;
            max-width: 250px;
            justify-content: center;
        }

    /* Video Gallery */
    .video-gallery-section {
        padding: 40px 0;
    }

    .video-filter {
        margin: 20px 0 30px;
    }

    .filter-btn {
        padding: 6px 15px;
        font-size: 0.85rem;
    }

    /* Membership */
    .page-header {
        padding: 40px 0;
    }

    .page-title {
        font-size: 2rem;
    }

    .benefit-title {
        font-size: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    .categories-grid {
        grid-template-columns: 1fr !important;
    }

    .contact-cta-grid {
        grid-template-columns: 1fr !important;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .bearers-detail-grid {
        grid-template-columns: 1fr !important;
    }

    .stats-grid-simple {
        grid-template-columns: 1fr !important;
    }

    .stat-box {
        padding: 15px;
    }

    .bearer-name {
        font-size: 1.2rem;
    }

    /* FAQ */
    .faq-category-title {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .faq-question {
        padding: 15px;
        font-size: 0.95rem;
    }

    .faq-answer {
        padding: 0 15px 15px;
    }

    .membership-types-grid {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }

        .membership-types-grid .info-card {
            flex-direction: column;
            text-align: center;
            align-items: center;
        }

    .events-grid-small {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }

    .office-hours {
        flex-direction: column;
        gap: 15px;
    }

    .contact-grid-small {
        grid-template-columns: 1fr !important;
    }

    .faq-cta {
        padding: 20px;
    }

        .faq-cta h2 {
            font-size: 1.5rem;
        }

    .fee-table th,
    .fee-table td {
        padding: 8px;
        font-size: 0.9rem;
    }

    /* Blog Detail */
    .article-meta {
        flex-direction: column;
        gap: 15px;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    .grid-2col {
        grid-template-columns: 1fr !important;
    }

    .cta-box {
        flex-direction: column;
        text-align: center;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .author-header {
        flex-direction: column;
        gap: 15px;
    }

    .article-navigation {
        grid-template-columns: 1fr !important;
    }

    .comment-item.comment-reply {
        margin-left: 30px;
    }

    .form-row {
        grid-template-columns: 1fr !important;
    }

    .form-submit {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Directory */
    .directory-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-wrapper {
        max-width: 100%;
    }

    .search-input {
        padding: 12px 40px 12px 40px;
        font-size: 0.95rem;
    }

    .table-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .table-actions {
        width: 100%;
    }

        .table-actions .btn {
            flex: 1;
        }
}

/* Mobile View (576px and below) */
@media (max-width: 576px) {
    .events-timeline {
        padding: 30px 0;
    }

    .timeline-item {
        margin-left: 40px;
    }

    .timeline-date {
        width: 100px;
        left: -70px;
        padding: 10px;
        display: none;
    }

    .date-day {
        font-size: 1.5rem;
    }

    .hero-slider {
        height: 150px;
    }

    .slide-content h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .about-actions {
        flex-direction: column;
    }

        .about-actions .btn {
            width: 100%;
        }

    .about-sidebar {
        flex-direction: column;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .cta-section {
        padding: 20px;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr !important;
    }

    /* Blog Carousel */
    .blog-carousel-section .section-title {
        font-size: 1.8rem;
    }

    .blog-swiper .swiper-slide {
        max-width: 300px;
        margin: 0 auto;
    }

    .blog-image {
        height: 120px;
    }

    .blog-content {
        padding: 12px;
    }

    .blog-title {
        font-size: 0.95rem;
        -webkit-line-clamp: 2;
    }

    .blog-excerpt {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }

    .blog-read-more {
        font-size: 0.8rem;
    }

    /* Video Gallery */
    .video-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .video-item {
        max-width: 400px;
        margin: 0 auto;
    }

    .video-info {
        padding: 15px;
    }

        .video-info h3 {
            font-size: 1.1rem;
        }

        .video-info p {
            font-size: 0.9rem;
        }

    /* FAQ */
    .faq-category-title {
        font-size: 1.3rem;
    }

    .faq-question {
        padding: 12px;
        font-size: 0.9rem;
    }

    .faq-answer {
        padding: 0 12px 12px;
    }

    .events-grid-small {
        grid-template-columns: 1fr !important;
    }

    .event-type-card {
        padding: 15px;
    }

    .faq-cta h2 {
        font-size: 1.3rem;
    }

    .faq-cta .cta-actions {
        flex-direction: column;
    }

    .faq-cta .btn {
        width: 100%;
    }

    .cert-item h4 {
        font-size: 1rem;
    }

    .cert-item p {
        font-size: 0.85rem;
    }

    /* Blog Detail */
    .article-title {
        font-size: 1.6rem;
    }

    .article-featured-image img {
        height: 250px;
    }

    .article-tags {
        flex-direction: column;
        gap: 10px;
    }

    .share-buttons {
        flex-wrap: wrap;
    }

    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .comment-item {
        flex-direction: column;
        gap: 15px;
    }

        .comment-item.comment-reply {
            margin-left: 15px;
        }

    /* Blog Grid */
    .blog-grid {
        grid-template-columns: 1fr !important;
    }

    .blog-image {
        height: 180px;
    }
}

/* Mobile View (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .top-logo img {
        height: 60px;
    }

    .organization-name {
        font-size: 14px;
    }

    .organization-tagline {
        font-size: 10px;
    }

    .contact-phone {
        font-size: 12px;
    }

    .contact-email {
        font-size: 11px;
    }

    .btn-cta {
        padding: 6px 16px;
        font-size: 12px;
    }

    .main-menu a {
        font-size: 13px;
        padding: 10px 15px;
    }

    .dropdown-menu li a {
        padding-left: 30px;
        font-size: 12px;
    }

    /* Page Titles */
    .page-title,
    .map-header .section-title {
        font-size: 1.8rem;
    }

    /* Info Cards */
    .info-card {
        padding: 12px;
        gap: 12px;
    }

    .info-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .info-title {
        font-size: 1rem;
    }

    .info-text {
        font-size: 0.85rem;
    }

    /* Form Elements */
    .form-title {
        font-size: 1.3rem;
    }

    .form-input {
        padding: 8px 10px;
        font-size: 13px;
    }

    /* History Sections */
    .founding-era h2 {
        font-size: 1.6rem;
    }

    .founding-highlight {
        padding: 15px;
    }

    .impact-card {
        padding: 15px;
    }

    .status-content {
        padding: 20px;
    }

        .status-content h2 {
            font-size: 1.4rem;
        }

    .breadcrumb {
        font-size: 12px;
    }

    .section-title {
        font-size: 2rem;
    }

    .milestone-year {
        font-size: 1.3rem;
    }

    .milestone-title {
        font-size: 1rem;
    }

    .history-card-header h2 {
        font-size: 1.5rem;
    }

    /* Map Section */
    .map-placeholder,
    .map-placeholder iframe {
        height: 250px;
    }

    .directions-actions {
        flex-direction: column;
    }

        .directions-actions .btn {
            width: 100%;
            justify-content: center;
        }

    /* Gallery Grid */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .filter-buttons {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .filter-btn,
    .year-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .gallery-overlay {
        padding: 10px;
    }

    .gallery-title {
        font-size: 0.85rem;
    }

    .gallery-date {
        font-size: 0.75rem;
    }

    /* Filter Section */
    .filter-section {
        padding: 15px;
    }

    .filter-buttons,
    .year-buttons {
        gap: 5px;
    }

    .filter-btn,
    .year-btn {
        padding: 5px 10px;
        font-size: 0.8rem;
    }

    .past-card-body {
        padding: 15px;
    }

    .event-stats {
        flex-direction: column;
        gap: 8px;
    }

    /* Gallery Carousel */
    .gallery-swiper .swiper-slide {
        width: 220px;
        height: 280px;
    }

    .gallery-item-overlay {
        padding: 15px;
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 50%);
    }

    .gallery-item-title {
        font-size: 1rem;
    }

    .lightbox-image {
        height: 50%;
    }

    .lightbox-caption {
        padding: 15px;
    }

    .lightbox-title {
        font-size: 1.3rem;
    }

    .lightbox-description {
        font-size: 1rem;
    }

    /* Blog Carousel Compact Layout */
    .blog-carousel-section {
        padding: 20px 0;
    }

    .blog-swiper .swiper-slide {
        max-width: 280px;
    }

    .blog-image {
        height: 100px;
    }

    .blog-category {
        top: 10px;
        left: 10px;
        padding: 3px 8px;
        font-size: 0.65rem;
    }

    .blog-meta {
        font-size: 0.75rem;
    }

    .blog-footer {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    /* Terms & Privacy */
    .policy-section-title,
    .terms-section-title {
        font-size: 1.3rem;
    }

    .policy-card,
    .terms-card {
        padding: 15px;
    }

    .info-item-content h4 {
        font-size: 1rem;
    }

    .info-item-content p {
        font-size: 0.9rem;
    }

    .security-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .contact-card {
        padding: 15px;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .definition-item h4 {
        font-size: 1rem;
    }

    .definition-item p {
        font-size: 0.9rem;
    }

    .change-notice {
        flex-direction: column;
        text-align: center;
    }

    .terms-acknowledgment {
        padding: 20px;
    }

        .terms-acknowledgment p {
            font-size: 1rem;
        }

    .prohibited-grid {
        grid-template-columns: 1fr !important;
    }

    /* Sitemap */
    .sitemap-section {
        padding: 15px;
    }

    .sitemap-section-header i {
        width: 25px;
        height: 25px;
        font-size: 1rem;
    }

    .sitemap-section-header h3 {
        font-size: 1rem;
    }

    .sitemap-links a {
        font-size: 0.9rem;
    }

    .quick-links-section {
        padding: 20px;
    }

    .quick-link-card {
        padding: 15px;
    }

    .quick-link-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .quick-link-content h4 {
        font-size: 1rem;
    }

    .quick-link-content p {
        font-size: 0.8rem;
    }

    .summary-stats {
        flex-direction: column;
        gap: 15px;
    }

    .intro-card {
        padding: 20px;
    }

        .intro-card i {
            font-size: 2.5rem;
        }

    /* Testimonials */
    .testimonial-card {
        padding: 20px;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .author-image {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .author-info h4 {
        font-size: 1rem;
    }

    .stat-content h3 {
        font-size: 1.8rem;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    /* Membership */
    .benefit-points li {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .stats-grid-large {
        grid-template-columns: 1fr !important;
    }

    .info-card {
        flex-direction: column;
        text-align: center;
    }

    .info-icon {
        margin: 0 auto;
    }

    .cta-buttons-simple {
        flex-direction: column;
    }

    .card-body {
        padding: 60px 15px 15px;
    }

    .profile-item {
        flex-direction: column;
        gap: 5px;
    }

    /* Membership Form */
    .form-row {
        grid-template-columns: 1fr !important;
    }

    .form-group.full-width {
        grid-column: span 1 !important;
    }

    .form-actions {
        flex-direction: column;
    }

    .membership-form {
        padding: 20px;
    }

    .member-info-card {
        padding: 20px;
    }

    /* Directory */
    .membership-table {
        font-size: 0.85rem;
    }

        .membership-table th,
        .membership-table td {
            padding: 10px 8px;
        }

    .info-badge {
        width: 100%;
        justify-content: center;
    }

    .search-container {
        margin-bottom: 20px;
    }
}
