/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Nav brand styling */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #1f2937;
    font-weight: 700;
    font-size: 1.2rem;
}

.nav-brand i {
    font-size: 1.5rem;
    color: #a855f7;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo i {
    font-size: 2rem;
    color: #a855f7;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

/* Nav links styling */
.nav-links {
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #a855f7;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #a855f7;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-link {
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #a855f7;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #a855f7;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #1f2937;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    position: relative;
    min-height: 600px;
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 700px;
    z-index: 10;
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: #a855f7;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1f2937;
}

/* Find Community Section */
#find-community {
    padding: 5rem 0;
    background: white;
}

.search-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-top: 3rem;
}

.search-sidebar {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #e5e7eb;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.search-sidebar input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.3s ease;
}

.search-sidebar input:focus {
    outline: none;
    border-color: #a855f7;
}

#region-list {
    max-height: 500px;
    overflow-y: auto;
}

#region-list > div,
#region-list > button {
    margin-bottom: 0.75rem;
    width: 100%;
    text-align: left;
}

#region-list button {
    padding: 0.75rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    color: #333;
}

#region-list button:hover {
    background: #e9d5ff;
    border-color: #a855f7;
    color: #a855f7;
}

.map-container {
    background: #f8fafc;
    border-radius: 15px;
    border: 1px solid #e5e7eb;
    padding: 2rem;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-container img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Leaflet map container */
#map {
    width: 100%;
    height: 100%;
    min-height: 420px;
    border-radius: 10px;
}

.leaflet-container {
    border-radius: 10px;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: #f8fafc;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #a855f7;
}

.feature-card i {
    font-size: 2.5rem;
    color: #a855f7;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.feature-card p {
    color: #6b7280;
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: white;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid #f0e6ff;
    transition: all 0.3s ease;
}

.value-card:hover {
    border-color: #a855f7;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.1);
}

.value-card i {
    font-size: 2rem;
    color: #a855f7;
    margin-bottom: 1rem;
}

.value-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.value-card p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Community Cards */
.community-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: block;
}

.community-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #a855f7;
}

.community-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.community-card p {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.community-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #9ca3af;
}

.community-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #d1d5db;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: #a855f7;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 1rem;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 1px solid #f3f4f6;
}

.mobile-menu a:hover {
    color: #a855f7;
    background: #f9fafb;
}

/* Responsive Design */
@media (max-width: 768px) {
    
    .mobile-menu-btn {
        display: block;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .search-container {
        grid-template-columns: 1fr;
    }
    
    .search-sidebar {
        position: static;
    }
    
    .features-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}
/* Responsive adjustments for meets page */
@media (max-width: 768px) {
    .meets-grid {
        grid-template-columns: 1fr;
    }
    
    .types-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .meet-card {
        padding: 2rem;
    }
}

/* =============================================
   GROUP DETAIL PAGE STYLES (group.html)
   ============================================= */

.breadcrumb {
    background: #f8fafc;
    padding: 1rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    margin-top: 60px;
}

.breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.breadcrumb-item {
    color: #6b7280;
}

.breadcrumb-item a {
    color: #a855f7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #7c3aed;
}

.breadcrumb-item::after {
    content: '/';
    margin-left: 0.5rem;
    color: #d1d5db;
}

.breadcrumb-item:last-child::after {
    display: none;
}

.breadcrumb-item.active {
    color: #1f2937;
    font-weight: 600;
}

/* Group Hero Section */
.group-hero {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    padding: 3rem 2rem;
    color: white;
    text-align: center;
}

.group-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.group-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.group-hero h1 {
    font-size: 2.5rem;
    margin: 0;
    font-weight: 700;
}

.group-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    opacity: 0.95;
}

.group-location i {
    font-size: 1rem;
}

/* Group Main Container */
.group-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.group-main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.group-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* About Section */
.about-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.about-section h2 {
    color: #1f2937;
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.about-section h2 i {
    color: #a855f7;
    font-size: 1.3rem;
}

.about-section p {
    color: #4b5563;
    line-height: 1.8;
    margin: 0.75rem 0;
}

/* What to Expect Section */
.expect-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.expect-section h2 {
    color: #1f2937;
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.expect-section h2 i {
    color: #a855f7;
    font-size: 1.3rem;
}

.expect-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.expect-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.expect-card:hover {
    background: #f0f9ff;
    border-color: #a855f7;
    transform: translateY(-2px);
}

.expect-icon {
    font-size: 2rem;
    color: #a855f7;
    margin-bottom: 0.75rem;
}

.expect-card h3 {
    color: #1f2937;
    font-size: 1rem;
    margin: 0.5rem 0;
    font-weight: 600;
}

.expect-card p {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* Guidelines Section */
.guidelines-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.guidelines-section h2 {
    color: #1f2937;
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.guidelines-section h2 i {
    color: #a855f7;
    font-size: 1.3rem;
}

.guidelines-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.guidelines-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
}

.guidelines-item i {
    color: #10b981;
    font-size: 1.1rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.guidelines-item span {
    color: #4b5563;
    line-height: 1.6;
}

/* Sidebar Cards */
.sidebar-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.stats-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #a855f7;
}

.stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.stat-label {
    color: #6b7280;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-value {
    color: #1f2937;
    font-weight: 700;
    font-size: 1.25rem;
}

.stat-label i {
    color: #a855f7;
    font-size: 1rem;
}

/* Join Button */
.join-button-container {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.join-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.join-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
}

.join-button:active {
    transform: translateY(0);
}

.join-button i {
    font-size: 1.1rem;
}

/* QR Code Section */
.qr-section {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.qr-section h3 {
    color: #1f2937;
    font-size: 1rem;
    margin: 0 0 1rem 0;
    font-weight: 600;
}

.qr-code {
    width: 150px;
    height: 150px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-text {
    color: #6b7280;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Share Buttons / Socials Section */
.share-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    grid-column: 1 / -1;
}

.share-section h3 {
    color: #1f2937;
    font-size: 1.1rem;
    margin: 0 0 1.5rem 0;
    font-weight: 600;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.share-button {
    padding: 1rem 0.75rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 8px;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    cursor: pointer;
    border: none;
}

.share-button:hover {
    background: #eef2ff;
    border-color: #a855f7;
    color: #a855f7;
}

.share-button i {
    font-size: 1.5rem;
}

/* Related Groups Section */
.related-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    grid-column: 1 / -1;
}

.related-section h2 {
    color: #1f2937;
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.related-section h2 i {
    color: #a855f7;
    font-size: 1.3rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.related-card:hover {
    border-color: #a855f7;
    background: #faf5ff;
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.15);
}

.related-card-title {
    font-weight: 600;
    color: #1f2937;
    font-size: 1rem;
}

.related-card-location {
    color: #6b7280;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.related-card-members {
    color: #9ca3af;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Responsive Design for Group Pages */
@media (max-width: 768px) {
    .group-hero {
        padding: 2rem 1rem;
    }
    
    .group-hero h1 {
        font-size: 1.75rem;
    }
    
    .group-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .group-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .expect-grid {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .share-buttons {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .breadcrumb {
        padding: 1rem;
    }
    
    .breadcrumb-list {
        font-size: 0.85rem;
    }
    
    .about-section,
    .expect-section,
    .guidelines-section,
    .sidebar-card,
    .stats-card,
    .join-button-container,
    .qr-section,
    .share-section,
    .related-section {
        padding: 1rem;
    }
    
    .about-section h2,
    .expect-section h2,
    .guidelines-section h2,
    .related-section h2 {
        font-size: 1.25rem;
    }
}

