/* =============================================
   PROFESSIONAL ASSOCIATION WEBSITE STYLING
   Indian Plumbing Association - Lucknow Chapter
   ============================================= */

/* CSS Variables - Association Color Palette */
:root {
    /* Primary Colors - Professional Association */
    --primary-color: #e81d22;
    --primary-dark: #0490c7;
    --primary-light: #fcede8;
    --secondary-color: #e67e22;
    --accent-color: #e81d22;

    /* Neutral Colors */
    --dark-color: #000000;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --white: #ffffff;
    --border-color: #dee2e6;

    /* Typography */
    --font-primary: "Poppins", sans-serif;
    --font-secondary:"Poppins", sans-serif;

    /* Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --border-radius-lg: 12px;

    /* Container */
    --container-width: 1340px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
}
.text-danger{
    color:red;
    font-size:14px;
}
.d-none {
    display: none !important;
}
.mb-0 {
    margin-bottom: 0 !important;
}
.mb-10 {
    margin-bottom: 10px !important;
}
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.text-center {
    text-align: center;
}

.mt-40 {
    margin-top: 40px;
}
.mb-30 {
    margin-bottom: 30px;
}
.mt-20 {
    margin-top: 20px;
}

.mt-0 {
    margin-top: 0px !important;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    text-align: center;
    font-family: var(--font-primary);
}

.btn i {
    font-size: 14px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #d35400;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-text {
    background: transparent;
    color: var(--primary-color);
    padding: 10px 15px;
    border: none;
}

.btn-text:hover {
    color: var(--primary-dark);
}

.btn-large {
    padding: 10px 25px;
    font-size: 16px;
}

.btn-small {
    padding: 8px 20px;
    font-size: 14px;
}

.btn-block {
    width: 100%;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 20px;
}

.section-label {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto;
}

.highlight {
    color: var(--primary-color);
}

/* TOP HEADER */
.top-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.top-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    flex-wrap: wrap;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 300px;
}

.top-logo {
    display: flex;
    align-items: center;
}

.top-logo img {
    height: 120px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.logo-details {
    display: flex;
    flex-direction: column;
}

.organization-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1.2;
    margin-bottom: 4px;
}

.organization-tagline {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.contact-phone {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-color);
}

.contact-email {
    font-size: 13px;
    color: #666;
}

.btn-cta {
    padding: 10px 22px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    background: var(--accent-color);
    color: #fff;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-cta:hover {
    box-shadow: 0 6px 15px rgba(15, 76, 129, 0.3);
}

/* MAIN NAV BAR */
.main-nav {
    background: var(--accent-color);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.main-nav .container {
    position: relative;
}

.main-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-menu>li {
    position: relative;
}

.main-menu a {
    display: block;
    padding: 16px 0;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--white);
    position: relative;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

/* Active underline */
.main-menu a.active::after,
.main-menu a:hover::after {
    content: "";
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
}

.main-menu a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.dropdown-menu a::after {
    display: none !important;
}

/* DROPDOWN */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: .3s ease;
    padding: 0;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    padding: 6px 15px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-gray);
    text-transform: none;
    transition: all 0.2s ease;
}

.dropdown-menu li a:hover {
    background: var(--accent-color);
    color: white;
    padding-left: 25px;
}

.dropdown>a::after {
    margin-left: 6px;
    font-size: 12px;
    opacity: 0.8;
}

/* Banner Slider */
.hero-slider {
    height: 650px;
    position: relative;
    margin-top: 0;
}

.banner-swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    height: 100%;
}

.swiper-slide.slide-1 {
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)),
        url('https://indianplumbing.org/wp-content/uploads/2025/11/01_IPT_November_2025_web_pointer-1536x801.jpg');
    background-size: cover;
    background-position: center;
}

.swiper-slide.slide-2 {
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)),
        url('https://indianplumbing.org/wp-content/uploads/2024/12/31_IPC_web_banner-1536x801.jpg');
    background-size: cover;
    background-position: center;
}

.swiper-slide.slide-3 {
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)),
        url('https://indianplumbing.org/wp-content/uploads/2025/06/Plumbex_2026_web_banner_02-1536x801.jpg');
    background-size: cover;
    background-position: center;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    background: rgba(0, 86, 163, 0.3);
}

.slide-content {
    max-width: 700px;
    color: var(--white);
}

.slide-content h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.slide-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.2);
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--white);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--primary-color);
}

/* About Section */
.about-section {
    padding: 40px 0;
    background-color: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
}

.about-text .lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 20px;
    line-height: 1.7;
}

.about-text p {
    color: var(--gray-color);
    line-height: 1.7;
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
    padding: 30px;
    background-color: var(--primary-light);
    border-radius: var(--border-radius);
}

.mission h4,
.vision h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.mission h4 i,
.vision h4 i {
    color: var(--primary-color);
}

.about-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Sidebar Cards */
.about-sidebar {
    display: flex;
    gap: 20px;
}

.sidebar-card {
    width: 100%;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 25px;
    text-align: center;
    transition: var(--transition);
}

.sidebar-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.sidebar-card h4 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.sidebar-card h4 i {
    color: var(--primary-color);
}

.sidebar-card .highlight-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

/* Office Bearers Section */
.office-bearers {
    padding: 40px 0;
    background-color: var(--light-color);
}

.bearers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.bearer-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.bearer-image {
    height: 350px;
    overflow: hidden;
}

.bearer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.bearer-info {
    padding: 10px;
    text-align: center;
}

.bearer-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.designation {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.tenure {
    display: none;
    color: var(--gray-color);
    font-size: 14px;
    margin-bottom: 15px;
}

.bearer-social {
    display: none;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.bearer-social a {
    width: 35px;
    height: 35px;
    background-color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-color);
    transition: var(--transition);
}

.bearer-social a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}


/* Why Join Section - Showcase Design */
.why-join-section {
    padding: 40px 0;
    background: linear-gradient(135deg, var(--light-color) 0%, #ffffff 100%);
    position: relative;
}

.benefits-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 30px;
}

.benefits-feature.reverse {
    grid-template-columns: 1fr 1fr;
}

.benefits-feature.reverse .feature-content {
    order: 2;
}

.benefits-feature.reverse .feature-image {
    order: 1;
}

.feature-content {
    padding: 40px;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    position: relative;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--white);
    font-size: 1.8rem;
}

.feature-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-content p {
    color: var(--gray-color);
    line-height: 1.7;
    font-size: 1.1rem;
}

.feature-image {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition);
}

.feature-image:hover img {
    transform: scale(1.05);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.benefit-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid transparent;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.benefit-card:hover {
    transform: translateY(-1px);
    border-color: var(--primary-color);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.benefit-card h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.benefit-card p {
    color: var(--gray-color);
    line-height: 1.6;
    font-size: 14px;
}

/* Stats Section */
.stats-section {
    padding: 40px 0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    position: relative;
    z-index: 1;
}

/* Stat Card */
.stat-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
/*    transform: translateY(-5px);*/
/*    box-shadow: var(--shadow-lg);*/
    border-color: var(--primary-color);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* Stat Icon */
.stat-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 1.8rem;
    transition: var(--transition);
}

.stat-card:hover .stat-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(15deg) scale(1.1);
}

/* Stat Content */
.stat-content {
    text-align: center;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 10px;
    font-family: var(--font-secondary);
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
/*    margin-bottom: 15px;*/
}

/* Stat Bar */
.stat-bar {
    height: 6px;
    background: var(--light-gray);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto;
    max-width: 150px;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    transition: width 1.5s ease-in-out;
    width: 0;
}

/* Individual Stat Colors */
.stat-card:nth-child(1) .stat-icon {
    background: rgba(232, 29, 34, 0.1);
    color: var(--primary-color);
}

.stat-card:nth-child(1):hover .stat-icon {
    background: var(--primary-color);
}

.stat-card:nth-child(2) .stat-icon {
    background: rgba(230, 126, 34, 0.1);
    color: var(--secondary-color);
}

.stat-card:nth-child(2):hover .stat-icon {
    background: var(--secondary-color);
}

.stat-card:nth-child(3) .stat-icon {
    background: rgba(4, 144, 199, 0.1);
    color: var(--primary-dark);
}

.stat-card:nth-child(3):hover .stat-icon {
    background: var(--primary-dark);
}

.stat-card:nth-child(4) .stat-icon {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.stat-card:nth-child(4):hover .stat-icon {
    background: #2ecc71;
}

/* ===== GALLERY CAROUSEL SECTION ===== */
.gallery-carousel-section {
    padding: 40px 0;
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.gallery-carousel-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height:0px;
    background: linear-gradient(to bottom, var(--white), transparent);
    z-index: 0;
}

.gallery-carousel-container {
    position: relative;
    /* padding: 20px 0 60px; */
    /* max-width: 1200px; */
    margin: 0 auto;
}

/* Gallery Swiper */
.gallery-swiper {
    width: 100%;
    padding: 10px 0 40px;
}

.gallery-swiper .swiper-slide {
    width: 300px;
    height: 350px;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.gallery-swiper .swiper-slide:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.gallery-item {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 20px;
    color: var(--white);
    transform: translateY(100%);
    transition: var(--transition);
    z-index: 2;
    display: none;
}

.gallery-swiper .swiper-slide:hover .gallery-item-overlay {
    transform: translateY(0);
}

.gallery-item-category {
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 10px;
}

.gallery-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--white);
    line-height: 1.3;
}

.gallery-item-date {
    font-size: 0.85rem;
    opacity: 0.9;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 5px;
}

.gallery-item-date i {
    font-size: 0.8rem;
}

.gallery-item-enlarge {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1rem;
    opacity: 0;
    transform: scale(0.8);
    transition: var(--transition);
    z-index: 3;
}

.gallery-swiper .swiper-slide:hover .gallery-item-enlarge {
    opacity: 1;
    transform: scale(1);
}

.gallery-item-enlarge:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

/* Swiper Navigation */
.gallery-next,
.gallery-prev {
    background: var(--white);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    top: 50%;
    transform: translateY(-50%);
}

.gallery-next:after,
.gallery-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.gallery-next {
    right: -25px;
}

.gallery-prev {
    left: -25px;
}

.gallery-next:hover,
.gallery-prev:hover {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

/* Pagination */
.gallery-pagination {
    bottom: 0 !important;
}

/* ===== GALLERY LIGHTBOX ===== */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-lightbox.active {
    display: block;
    opacity: 1;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
}

.lightbox-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1000px;
    height: 90vh;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    color: var(--dark-color);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    color: var(--dark-color);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.lightbox-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--dark-color);
    padding: 20px;
}

.lightbox-caption {
    padding: 20px;
    background: var(--white);
    flex: 1;
    overflow-y: auto;
    display: none;
}

.lightbox-title {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 8px;
    line-height: 1.3;
}

.lightbox-description {
    color: var(--gray-color);
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 1rem;
}

.lightbox-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.lightbox-category {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lightbox-date {
    color: var(--gray-color);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.lightbox-date i {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr 0.9fr 1.3fr 1.5fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--white);
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-logo h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.footer-logo img {
    width: 100%;
    border-radius: 8px;
}

.footer-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 20px;
}

.footer-about {
    margin-bottom: 25px;
    opacity: 0.8;
    line-height: 1.7;
    font-size: 15px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    opacity: 0.8;
    font-size: 14px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    opacity: 0.8;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-col ul li a i {
    font-size: 10px;
}

/* Newsletter Form */
.newsletter-form {
    margin-bottom: 25px;
}

.input-group {
    display: flex;
    margin-bottom: 15px;
    margin-top: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-family: var(--font-primary);
    font-size: 15px;
}

.newsletter-form button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0 20px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--primary-dark);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    opacity: 0.7;
}

.footer-bottom-left p {
    margin-bottom: 5px;
}

.footer-bottom-right {
    display: flex;
    gap: 20px;
}

.footer-bottom-right a {
    color: var(--white);
    opacity: 0.7;
    transition: var(--transition);
}

.footer-bottom-right a:hover {
    opacity: 1;
    color: var(--primary-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 10px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

/* Plumbing History Page */

/* History Hero Section */
.history-hero-section {
    padding: 40px 0;
    background: linear-gradient(135deg, var(--light-color) 0%, #ffffff 100%);
    border-bottom: 1px solid var(--border-color);
}

.history-hero-section .section-title {
    margin-bottom: 10px;
}

.history-hero-section .section-subtitle {
    max-width: 800px;
}

/* Timeline Overview */
.timeline-overview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px auto;
    max-width: 900px;
    position: relative;
    padding: 0 20px;
}

.timeline-milestone {
    text-align: center;
    padding: 15px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    min-width: 180px;
    position: relative;
    z-index: 2;
}

.milestone-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.milestone-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.milestone-desc {
    font-size: 0.9rem;
    color: var(--gray-color);
}

.timeline-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--border-color));
    margin: 0 -10px;
    position: relative;
    z-index: 1;
}

/* History Content Grid */
.history-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 0 auto 40px;
    max-width: var(--container-width);
}

/* History Cards */
.history-card {
    background: var(--white);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.history-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.history-card.featured {
    border-color: var(--primary-color);
    border-width: 1px;
}

.history-card.full-width {
    grid-column: 1 / -1;
}

.history-card-header {
    background: var(--primary-light);
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.history-card-header h2 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.card-subtitle {
    color: var(--gray-color);
    font-size: 1rem;
    font-weight: 500;
}

.history-card-body {
    padding: 20px;
}

.lead-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--dark-color);
    margin-bottom: 25px;
}

/* Discovery Highlight */
.discovery-highlight {
    background: var(--primary-light);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-top: 25px;
    border-left: 4px solid var(--primary-color);
}

.discovery-content h3 {
    color: var(--dark-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* Innovation Grid */
.innovation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.innovation-item {
    background: var(--light-color);
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.innovation-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
}

.innovation-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    margin: 0 auto 15px;
}

.innovation-item h4 {
    color: var(--dark-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.innovation-item p {
    color: var(--gray-color);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Quote Section */
.quote-section {
    background: var(--light-color);
    padding: 30px;
    border-radius: var(--border-radius);
    margin: 10px 0;
    position: relative;
}

.quote-icon {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

.historical-quote {
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--dark-color);
    margin: 0;
}

/* Era Highlights */
.era-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.era-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    transition: var(--transition);
}

.era-item:hover {
    border-color: var(--primary-color);
}

.era-item h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.era-item p {
    color: var(--gray-color);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Breadcrumb - Minimal */
.breadcrumb-section {
    background: var(--light-color);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
}

.breadcrumb-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumb-home {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.breadcrumb-home:hover {
    color: var(--primary-dark);
}

.breadcrumb-separator {
    color: var(--gray-color);
    font-size: 12px;
}

.breadcrumb-current {
    color: var(--dark-color);
    font-size: 14px;
    font-weight: 500;
}

/* Main Content Section */
.ipa-content-section {
    padding: 40px 0;
    background-color: var(--white);
}

.ipa-content {
    margin: 0 auto;
}

/* Founding Era */
.founding-era {
    margin-bottom: 20px;
}

.founding-era h2 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 10px;
    line-height: 1.3;
}

.founding-era p {
    color: var(--gray-color);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.founding-highlight {
    background: var(--primary-light);
    border-radius: var(--border-radius);
    padding: 25px;
    border-left: 4px solid var(--primary-color);
    margin-top: 25px;
}

.highlight-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.highlight-content p {
    color: var(--dark-color);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Industry Impact */
.industry-impact {
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.impact-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 25px;
    transition: var(--transition);
}

.impact-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.impact-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.impact-card p {
    color: var(--gray-color);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Current Status */
.current-status {
    margin-top: 20px;
}

.status-content {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--border-radius);
    padding: 30px;
    color: var(--white);
}

.status-content h2 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.status-content p {
    color: var(--white);
    opacity: 0.95;
    line-height: 1.7;
    margin-bottom: 0;
    font-size: 1.1rem;
}

/* ===== REUSABLE UTILITY CLASSES ===== */
.text-highlight {
    color: var(--primary-color);
}

.page-title {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-subtitle {
    font-size: 1rem;
    color: var(--gray-color);
    max-width: 500px;
    margin: 0 auto;
}

.info-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.info-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.info-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    flex-shrink: 0;
}

.info-title {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.info-text {
    color: var(--gray-color);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 14px;
    color: var(--dark-color);
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(232, 29, 34, 0.1);
}

/* ===== CONTACT SECTION ===== */
.section-contact {
    padding: 40px 0;
    background-color: var(--white);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 0 auto;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form-wrapper {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
}

.form-title {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 15px;
}

.form-textarea {
    resize: vertical;
/*    min-height: 100px;*/
}

/* ===== MAP SECTION ===== */
.section-map {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

/* Map Container */
.map-container {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background: var(--light-gray);
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

/* Map Overlay Info */
.map-info-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 12px 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.map-info-overlay:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.map-info-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-info-icon {
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
}

.map-info-text h3 {
    font-size: 0.95rem;
    color: var(--dark-color);
    margin: 0 0 3px 0;
    font-weight: 600;
}

.map-info-text p {
    font-size: 0.8rem;
    color: var(--gray-color);
    margin: 0;
}

/* Map Directions Panel */
.map-directions {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    border: 1px solid var(--border-color);
    display: none;
}

.directions-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.directions-header h3 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin: 0;
    font-weight: 600;
}

.directions-header i {
    color: var(--primary-color);
}

.directions-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.directions-actions .btn {
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* Fallback for when iframe doesn't load */
.map-placeholder:empty {
    background: linear-gradient(135deg, var(--light-gray) 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder:empty::before {
    content: "Map loading...";
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* ===== GALLERY SPECIFIC STYLES ===== */
.section-hero-gallery {
    padding: 30px 0;
}

/* Gallery Filters */
.section-gallery-filters {
    padding: 20px 0;
    background-color: var(--light-color);
    border-bottom: 1px solid var(--border-color);
}

.gallery-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    padding: 8px 16px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--gray-color);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.gallery-search {
    flex-shrink: 0;
}

.search-box {
    position: relative;
    width: 250px;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-color);
    font-size: 0.9rem;
}

.search-input {
    width: 100%;
    padding: 8px 12px 8px 35px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    color: var(--dark-color);
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(232, 29, 34, 0.1);
}

/* Gallery Grid */
.section-gallery {
    padding: 40px 0;
    background-color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
    color: var(--white);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-category {
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 8px;
    align-self: flex-start;
}

.gallery-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--white);
}

.gallery-date {
    font-size: 0.8rem;
    opacity: 0.9;
    color: var(--white);
}

/* Load More Button */
.gallery-load-more {
    text-align: center;
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

/* PhotoSwipe Customization */
.pswp__button {
    background: rgba(0, 0, 0, 0.3);
    width: 44px;
    height: 44px;
}

.pswp__button:hover {
    background: rgba(0, 0, 0, 0.5);
}

.pswp__button--arrow--left,
.pswp__button--arrow--right {
    background-size: 20px;
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: 200px 0;
    }
}

.gallery-item.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

/* ===== EVENTS PAGE STYLES ===== */

/* Hero Section */
.section-hero-events {
    padding: 30px 0;
}

/* Upcoming Events Section */
.section-upcoming-events {
    padding: 40px 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.upcoming-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.upcoming-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    display: flex;
    gap: 15px;
    padding: 20px;
    transition: var(--transition);
}

.upcoming-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.event-date {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.event-content {
    flex: 1;
}

.event-category {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.event-title {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 12px;
    line-height: 1.3;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-color);
    font-size: 0.85rem;
}

.detail-item i {
    color: var(--primary-color);
    font-size: 0.9rem;
    width: 16px;
}

.event-desc {
    color: var(--gray-color);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Past Events Section */
.section-past-events {
    padding: 40px 0;
    background-color: var(--light-color);
}

/* Filter Section */
.filter-section {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    margin: 20px 0 20px;
    border: 1px solid var(--border-color);
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.filter-label i {
    color: var(--primary-color);
}

.filter-buttons,
.year-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.year-btn {
    padding: 6px 14px;
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--gray-color);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.year-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.year-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* Past Events Grid */
.past-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.past-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.past-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.past-card-header {
    background: var(--light-color);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.past-card-header .event-date {
    width: auto;
    height: auto;
    background: none;
    color: var(--dark-color);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
}

.past-card-header .date-day {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.past-card-header .date-month,
.past-card-header .date-year {
    font-size: 0.8rem;
    color: var(--gray-color);
    text-transform: uppercase;
}

.past-card-body {
    padding: 20px;
}

.event-stats {
    display: flex;
    gap: 15px;
    margin: 12px 0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--gray-color);
    font-size: 0.85rem;
}

.stat-item i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.event-actions {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 40px 20px;
    background: var(--white);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.no-results-content i {
    font-size: 3rem;
    color: var(--gray-color);
    margin-bottom: 15px;
}

.no-results-content h3 {
    color: var(--dark-color);
    margin-bottom: 10px;
}

.no-results-content p {
    color: var(--gray-color);
    font-size: 0.95rem;
}

/* Load More Section */
.load-more-section {
    text-align: center;
    margin-top: 20px;
}

/* ===== BLOG CAROUSEL SECTION ===== */
.blog-carousel-section {
    padding: 30px 0;
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.blog-carousel-container {
    position: relative;
    margin: 20px auto 0;
}

/* Blog Swiper */
.blog-swiper {
    width: 100%;
}

.blog-swiper .swiper-slide {
    height: auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    background: var(--white);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.blog-swiper .swiper-slide:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    margin: 0 !important;
}

.blog-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-swiper .swiper-slide:hover .blog-image img {
    transform: scale(1.05);
}

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.blog-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: var(--gray-color);
}

.blog-date,
.blog-author {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-meta i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.blog-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-excerpt {
    color: var(--gray-color);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.blog-read-time {
    font-size: 0.8rem;
    color: var(--gray-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-read-time i {
    color: var(--primary-color);
}

.blog-read-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.blog-swiper .swiper-slide:hover .blog-read-more {
    color: var(--primary-dark);
    gap: 8px;
}

/* Swiper Navigation */
.blog-next,
.blog-prev {
    background: var(--white);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    top: 50%;
    transform: translateY(-50%);
}

.blog-next:after,
.blog-prev:after {
    font-size: 16px;
    font-weight: bold;
}

.blog-next {
    right: -10px;
}

.blog-prev {
    left: -10px;
}

.blog-next:hover,
.blog-prev:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

/* Pagination dots (optional) */
.blog-swiper .swiper-pagination {
    bottom: 0;
    position: relative;
    margin-top: 20px;
}

.blog-swiper .swiper-pagination-bullet {
    background: var(--gray-color);
    opacity: 0.5;
    width: 8px;
    height: 8px;
}

.blog-swiper .swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
}


    /* Call to Action */
    .section-cta {
        padding: 40px 0;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    }
    
    .cta-card {
        background: var(--white);
        border-radius: var(--border-radius-lg);
        padding: 30px;
        text-align: center;
        margin: 0 auto;
/*        box-shadow: var(--shadow-lg);*/
    }
    
    .cta-content h2 {
        font-size: 2rem;
        color: var(--dark-color);
        margin-bottom: 15px;
    }
    
    .cta-content p {
        color: var(--gray-color);
        font-size: 1.1rem;
        line-height: 1.6;
        max-width: 800px;
        margin: 0 auto 20px;
    }
    
    .cta-actions {
        display: flex;
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }
    

    /* ===== RESPONSIVE ===== */

/* 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%);
}

/* Tablet View (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;
        gap: 40px;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Office Bearers */
    .bearers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Benefits Grid */
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 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;
        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;
        gap: 40px;
    }

    .benefits-feature.reverse .feature-content,
    .benefits-feature.reverse .feature-image {
        order: 0;
    }

    /* CTA Sections */
    .cta-section,
    .cta-stats {
        grid-template-columns: 1fr;
        text-align: center;
        flex-direction: column;
        gap: 30px;
    }

    .cta-image {
        display: none;
    }

    .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;
    }

    .timeline-milestone {
        width: 100%;
        max-width: 400px;
    }

    /* Innovation Grid */
    .innovation-grid,
    .era-highlights {
        grid-template-columns: 1fr;
    }

    /* 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;
    }
}

/* 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 for tablets and below */
    .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;
    }

    .main-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    /* Dropdown adjustments for mobile */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        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: "▸";
        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;
        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;
        padding: 20px;
    }

    /* Bearers Grid */
    .bearers-grid {
        grid-template-columns: 1fr;
    }
     .bearer-image {
    height: 500px;
    overflow: hidden;
}
    /* Benefits Grid */
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    /* Events Grid */
    .events-grid,
    .upcoming-grid,
    .past-grid {
        grid-template-columns: 1fr;
    }

    .upcoming-card {
        flex-direction: column;
    }

    .event-date {
        width: 60px;
        height: 60px;
        align-self: flex-start;
    }

    /* Footer */
    .footer-main {
        grid-template-columns: 1fr;
    }

    .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;
    }

    .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;
    }

    .blog-swiper .swiper-pagination {
        margin-top: 15px;
    }

    /* Event Actions */
    .event-actions {
        flex-direction: column;
    }

    .event-actions .btn-text {
        justify-content: center;
    }
}

/* 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;
    }

    /* 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;
    }
}

/* 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;
    }
}

/* Responsive Design for 1200px and below */
@media (max-width: 1200px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .cta-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cta-image {
        display: none;
    }
}

