:root {
    --primary: #e63946;
    --secondary: #1d3557;
    --accent: #f1faee;
    --text: #333;
    --light: #fff;
    --dark: #0a1128;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--accent);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: var(--secondary);
    color: var(--light);
    padding: 20px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--light);
    font-family: 'Playfair Display', serif;
}

.logo span {
    color: var(--primary);
}

.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: var(--light);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1530103862676-de8c9debad1d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
    opacity: 0.15;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
    font-family: 'Playfair Display', serif;
}

.hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-item {
    background-color: rgba(255,255,255,0.1);
    padding: 20px 30px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary);
    color: var(--light);
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
    border: 2px solid var(--primary);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.6);
    background-color: transparent;
    color: var(--light);
}

.secondary-button {
    background-color: transparent;
    border: 2px solid var(--light);
    margin-left: 15px;
}

.secondary-button:hover {
    background-color: var(--light);
    color: var(--secondary);
}

.features {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--secondary);
    font-size: 2.5rem;
    font-family: 'Playfair Display', serif;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.2rem;
    color: var(--text);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--light);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.testimonials {
    background-color: var(--secondary);
    color: var(--light);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1517502884422-41eaead166d4?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
    opacity: 0.1;
    z-index: 0;
}

.testimonial-content {
    position: relative;
    z-index: 1;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background-color: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
}

.testimonial-text::before {
    content: """;
    font-size: 4rem;
    position: absolute;
    top: -20px;
    left: -10px;
    opacity: 0.2;
    line-height: 1;
}

.testimonial-author {
    font-weight: 600;
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid var(--primary);
}

.forum-sections {
    padding: 100px 0;
    background-color: var(--light);
}

.section-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.section-tab {
    padding: 10px 20px;
    background-color: var(--accent);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.section-tab.active {
    background-color: var(--primary);
    color: var(--light);
}

.section-content {
    display: none;
}

.section-content.active {
    display: block;
}

.section-list {
    columns: 2;
    column-gap: 30px;
}

.section-list li {
    margin-bottom: 15px;
    break-inside: avoid;
    background-color: var(--accent);
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.section-list li:hover {
    background-color: var(--primary);
    color: var(--light);
    transform: translateX(5px);
}

.join-now {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--light);
}

.join-now h2 {
    margin-bottom: 30px;
}

.faq {
    padding: 100px 0;
    background-color: var(--light);
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.accordion-header {
    background-color: var(--accent);
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header:hover {
    background-color: #e1e8ed;
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: var(--light);
}

.accordion-content.active {
    padding: 20px;
    max-height: 500px;
}

footer {
    background-color: var(--dark);
    color: var(--light);
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .stats {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid, .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .section-list {
        columns: 1;
    }
    
    .button-group {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-button, .secondary-button {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
}
