/* Lions Club District 322C4 Styles */

/* CSS Variables for Lions Club Color Scheme */
:root {
    --primary-blue: #1e3a8a;
    --secondary-blue: #1a365d;
    --lions-gold: #fbbf24;
    --accent-gold: #f59e0b;
    --white: #ffffff;
    --light-gray: #f8fafc;
    --medium-gray: #e2e8f0;
    --dark-gray: #4a5568;
    --text-dark: #2d3748;
    --text-light: #718096;
    --success: #38a169;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Image Styles */
.page-image {
    width: 250px;
    max-width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow);
}
.service-image {
    width: 500px;
    max-width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.763); ;
}

.section-bg-image {
    background: linear-gradient(rgba(248, 250, 252, 0.9), rgba(248, 250, 252, 0.9)), 
                url('https://images.unsplash.com/photo-1491438590914-bc09fcaaf77a?w=800') center/cover;
}

.activity-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.project-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.club-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--lions-gold);
}

/* Table Styles for Member Lists */
.members-content table {
    border-collapse: collapse;
    margin-top: 10px;
}

.members-content table th,
.members-content table td {
    border: 1px solid var(--medium-gray);
    text-align: left;
}

.members-content table tbody tr:nth-child(even) {
    background: var(--light-gray);
}

.members-content table tbody tr:hover {
    background: var(--lions-gold);
    color: var(--primary-blue);
}

/* Compact Design Updates */
.hero {
    padding: 100px 20px 40px;
    min-height: 70vh;
}

.section-header {
    margin-bottom: 40px;
}

.featured-clubs,
.mission,
.news-events,
.global-causes,
.projects-showcase,
.about-intro,
.history-section,
.regions-section,
.cabinet-section,
.committees-section,
.upcoming-events {
    padding: 60px 20px;
}

.cta,
.volunteer-section,
.newsletter-signup,
.achievements-section {
    padding: 60px 20px;
}

/* Reduce gaps and margins */
.hero-content {
    gap: 40px;
}

.clubs-grid,
.news-grid,
.projects-grid,
.causes-grid {
    gap: 25px;
}

.stat-item {
    padding: 20px;
}

.club-card,
.news-card,
.project-card {
    margin-bottom: 20px;
}

/* Font Size Updates */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    font-size: 14px;
}

/* Responsive image safety net — prevents horizontal overflow/zoom on mobile */
img {
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-top: 30px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.navbar {
    padding: 0rem 0;
}

.nav-container {
    max-width: 1461px;
    padding: 0 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    
}


.logo-text h3 {
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 600;
}

.logo-text p {
    color: var(--lions-gold);
    font-size: 0.9rem;
    font-weight: 400;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0rem;
    font-weight: bold;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background: var(--lions-gold);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero{
   padding: 0px;
   margin: 0px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-bg-image {
  height: 100vh;
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-top:100px;

}
.hero-bg-image::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 3;
}

.img1, .img2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.img1 {
  z-index: 1;
  animation: fadeImg1 10s infinite;
}

.img2 {
  z-index: 1;
  animation: fadeImg2 10s infinite;
}

@keyframes fadeImg1 {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@keyframes fadeImg2 {
  0%, 100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

.hero-bg-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.5); 
    z-index: 1;
}


.hero-content,
.hero-stats {
    position: relative;
    color: white;
}


.hero-content {
    max-width: 1200px;
    margin: 0px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-bg-image .hero-content {
    position: relative;
    z-index: 3; 
    color: white;
    text-align: center;
    padding-top: 100px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-top: -1rem;
    color: var(--text-white);
}

.highlight {
    color: var(--lions-gold);
    position: relative;
    line-height: 7rem;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gold);
    border-radius: 2px;
}

.hero-description {
    font-size: 1rem;
    color: var(--text-white);
    margin-bottom: 1.8rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-left: 100px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary-blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--lions-gold);
    color: var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--accent-gold);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px);
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;

}

.hero-badge {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--lions-gold) 100%);
    color: var(--white);
    padding: 40px;
    border-radius: 50%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
}

.hero-badge i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero-badge span {
    font-size: 1.2rem;
    font-weight: 600;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-stats {
    max-width: 1200px;
    margin: 60px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    z-index: 3;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.stat-item p {
    color: var(--text-light);
    font-weight: 500;
}

/* Featured Clubs Section */
.featured-clubs {
    padding: 80px 20px;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.section-header p {
    font-size: 0.95rem;
    color: var(--text-light);
}

.clubs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.club-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.club-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--lions-gold);
}

.club-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.club-header h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    font-weight: 600;
    flex: 1;
}

.club-number {
    background: var(--lions-gold);
    color: var(--primary-blue);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.club-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.club-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.club-detail i {
    color: var(--lions-gold);
}

.club-officers {
    border-top: 1px solid var(--medium-gray);
    padding-top: 15px;
}

.officer {
    color: var(--text-dark);
    font-size: 0.95rem;
}

.view-all {
    text-align: center;
}

/* Mission Section */
.mission {
    padding: 80px 20px;
    background: var(--light-gray);
}

.mission-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.mission-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.mission-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 40px;
}

.mission-values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.value-item {
    text-align: center;
    padding: 20px;
    background: var(--white);
    border-radius: 10px;
    transition: var(--transition);
}

.value-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.value-item i {
    font-size: 2rem;
    color: var(--lions-gold);
    margin-bottom: 10px;
}

.value-item h4 {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 5px;
}

.value-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.mission-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mission-badge {
    background: linear-gradient(135deg, var(--lions-gold) 0%, var(--accent-gold) 100%);
    color: var(--primary-blue);
    padding: 60px;
    border-radius: 50%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: pulse 2s ease-in-out infinite;
}

.mission-badge i {
    font-size: 4rem;
    margin-bottom: 15px;
}

.mission-badge h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* News & Events Section */
.news-events {
    padding: 80px 20px;
    background: var(--white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 5px solid var(--lions-gold);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--primary-blue);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.news-date .day {
    font-size: 1.5rem;
    font-weight: 700;
}

.news-date .month {
    font-size: 0.8rem;
    text-transform: uppercase;
}

.news-content h3 {
    color: var(--primary-blue);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.news-content p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more {
    color: var(--lions-gold);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--accent-gold);
    gap: 10px;
}

/* Call to Action Section */
.cta {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta .btn-primary {
    background: var(--lions-gold);
    color: var(--primary-blue);
}

.cta .btn-outline {
    color: var(--white);
    border-color: var(--white);
}

.cta .btn-outline:hover {
    background: var(--white);
    color: var(--primary-blue);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 40px;
    height: 40px;
}

.footer-logo h3 {
    color: var(--white);
    font-size: 1.1rem;
}

.footer-logo p {
    color: var(--lions-gold);
    font-size: 0.9rem;
}

.footer-section h4 {
    color: var(--lions-gold);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--medium-gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--lions-gold);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--medium-gray);
}

.contact-info i {
    color: var(--lions-gold);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--lions-gold);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid var(--dark-gray);
    padding-top: 20px;
    text-align: center;
    color: var(--medium-gray);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Disable backdrop-filter on mobile: it makes .header the containing block
       for the fixed nav-menu and clips it to the header box, hiding the menu. */
    .header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .logo {
        width: 60px;
        height: 60px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background: var(--primary-blue);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow);
        padding: 20px 0;
        z-index: 1050;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 12px 0;
    }

    .hamburger {
        display: flex;
        padding: 8px;
        z-index: 1100;
    }

    .service-image {
        width: 100%;
        height: 320px;
    }

    .page-image {
        width: 100%;
        height: auto;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .mission-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .clubs-grid {
        grid-template-columns: 1fr;
    }

    .club-card {
        min-width: auto;
    }

    .hero-buttons,
    .cta-buttons {
        justify-content: center;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .mission-values {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .club-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .club-info {
        flex-direction: column;
        gap: 10px;
    }
}

/* Gallery dropdown nav */
.nav-item.has-dropdown { position: relative; }
.gallery-dropdown {
    display: none; position: absolute; top: calc(100% + 8px); left: 0;
    background: var(--primary-blue); min-width: 230px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35); border-radius: 0 0 14px 14px;
    padding: 8px 0; z-index: 1100; list-style: none;
    border-top: 3px solid var(--lions-gold);
}
.nav-item.has-dropdown:hover .gallery-dropdown { display: block; }
.gallery-dropdown li a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 18px; color: var(--white); font-size: 0.86rem;
    font-weight: 500; text-decoration: none; transition: var(--transition);
}
.gallery-dropdown li a:hover { background: rgba(255,255,255,0.14); color: var(--lions-gold); padding-left: 24px; }
.gallery-dropdown li a i { width: 16px; text-align: center; font-size: 0.8rem; opacity: 0.85; }
.gallery-dropdown li:first-child a { border-bottom: 1px solid rgba(255,255,255,0.15); font-weight: 700; }
.dropdown-icon { font-size: 0.65em; margin-left: 4px; transition: transform 0.3s; vertical-align: middle; }
.nav-item.has-dropdown:hover .dropdown-icon { transform: rotate(180deg); }
@media (max-width: 768px) {
    .gallery-dropdown {
        position: static; display: none; background: rgba(255,255,255,0.1);
        border-radius: 10px; margin: 6px 20px; border-top: none; box-shadow: none; padding: 6px 0;
    }
    .gallery-dropdown.open { display: block; }
    .gallery-dropdown li a { padding: 8px 16px; font-size: 0.84rem; }
}

/* Footer list icons */
.footer-section ul { list-style: none; padding: 0; }
.footer-section ul li { margin-bottom: 10px; }
.footer-section ul li a {
    display: flex; align-items: center; gap: 9px;
    color: #ccc; text-decoration: none; font-size: 0.9rem;
    transition: var(--transition);
}
.footer-section ul li a:hover { color: var(--lions-gold); padding-left: 4px; }
.footer-section ul li a i {
    width: 17px; text-align: center; font-size: 0.82rem;
    color: var(--lions-gold); flex-shrink: 0;
}

/* ── Additional mobile responsive fixes ── */
@media (max-width: 768px) {
    /* Org chart scroll instead of overflow */
    .org-chart { overflow-x: auto; -webkit-overflow-scrolling: touch; }

    /* Gallery filter tabs — smaller text on mobile */
    .filter-tab { padding: 7px 13px; font-size: 0.82rem; }

    /* Officer section headings */
    .cabinet-section h3, .sections-header h3 { font-size: 1.2rem; }

    /* DG message photo column center on mobile */
    .dg-photo-col { display: flex; flex-direction: column; align-items: center; }

    /* Footer — single column on small screens */
    .footer-content { grid-template-columns: 1fr; gap: 25px; }

    /* Breadcrumb wrapping */
    .gallery-header .breadcrumb { word-break: break-word; }

    /* Back button full-width */
    .cat-back-btn { display: flex; justify-content: center; width: fit-content; margin: 0 auto 30px; }
}

@media (max-width: 480px) {
    /* Gallery grid single column */
    .gallery-grid { grid-template-columns: 1fr; }

    /* Filter tabs full row */
    .filter-tabs { gap: 8px; }
    .filter-tab { padding: 6px 11px; font-size: 0.78rem; }

    /* Officer cards single column */
    .officer-card { min-width: unset; }

    /* Nav logo text smaller */
    .logo-text h3 { font-size: 1.1rem; }
    .logo-text p  { font-size: 0.78rem; }

    /* Hero stats single column */
    .hero-stats { grid-template-columns: 1fr; }
}
