*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #333;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -9999px;
    left: -9999px;
    background: #000;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
}
.skip-link:focus {
    top: 10px;
    left: 10px;
    z-index: 1000;
}

/* Navigation */
nav {
    background-color: rgb(70, 22, 33);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav img {
    max-height: 4rem;
}

nav > ul {
    list-style-type: none;
    padding-left: 0;
    display: flex;
    gap: 20px;
}

nav li a {
    text-decoration: none;
    color: rgb(235, 235, 225);
    padding: 10px 15px;
    font-size: 1.1rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

nav li a:hover,
nav li a:focus {
    background-color: rgba(235, 235, 225, 0.1);
}

/* Main Content */
main {
    background-color: rgb(235, 235, 225);
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    min-height: 500px;
    padding: 60px 40px;
    gap: 40px;
    background: linear-gradient(135deg, rgba(70, 22, 33, 0.05) 0%, rgba(88, 101, 242, 0.05) 100%);
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: rgb(70, 22, 33);
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 20px;
    font-weight: 300;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 32px;
    color: #555;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: rgb(70, 22, 33);
    color: white;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: rgb(90, 30, 45);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(70, 22, 33, 0.3);
}

.btn-secondary {
    background-color: #5865F2;
    color: white;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: rgb(70, 22, 33);
    border: 2px solid rgb(70, 22, 33);
}

.btn-outline:hover,
.btn-outline:focus {
    background-color: rgb(70, 22, 33);
    color: white;
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 60px 40px;
}

section h2 {
    font-size: 2.5rem;
    color: rgb(70, 22, 33);
    margin-bottom: 40px;
    text-align: center;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #555;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.stat {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.stat h3 {
    font-size: 2.5rem;
    color: rgb(70, 22, 33);
    margin-bottom: 8px;
}

.stat p {
    color: #666;
    font-weight: 500;
}

/* Activities Grid */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.activity-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.activity-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.activity-card h3 {
    font-size: 1.5rem;
    color: rgb(70, 22, 33);
    margin: 20px 20px 12px;
}

.activity-card p {
    padding: 0 20px 20px;
    color: #666;
}

/* Featured Projects */
.project-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.project-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.project-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.project-info {
    padding: 24px;
}

.project-info h3 {
    font-size: 1.4rem;
    color: rgb(70, 22, 33);
    margin-bottom: 12px;
}

.project-info p {
    color: #666;
    margin-bottom: 16px;
}

.project-tech {
    display: inline-block;
    padding: 6px 12px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
}

/* CTA Section */
.cta {
    background: rgb(70, 22, 33);
    color: white;
    text-align: center;
}

.cta h2 {
    color: white;
    margin-bottom: 16px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 32px;
    opacity: 0.9;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 80px 40px 40px;
    background: linear-gradient(135deg, rgba(70, 22, 33, 0.05) 0%, rgba(88, 101, 242, 0.05) 100%);
}

.page-header h1 {
    font-size: 3rem;
    color: rgb(70, 22, 33);
    margin-bottom: 16px;
}

.page-header p {
    font-size: 1.3rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Events Grid */
.events-grid {
    display: grid;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.event-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    display: flex;
    transition: transform 0.2s ease;
}

.event-card:hover {
    transform: translateY(-3px);
}

.event-card.featured {
    border: 3px solid #5865F2;
}

.event-image {
    position: relative;
    min-width: 250px;
}

.event-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #5865F2;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.event-details {
    display: flex;
    padding: 20px;
    gap: 20px;
    flex: 1;
}

.event-date {
    text-align: center;
    min-width: 60px;
}

.event-date .day {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: rgb(70, 22, 33);
}

.event-date .month {
    display: block;
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
}

.event-info {
    flex: 1;
}

.event-info h3 {
    font-size: 1.4rem;
    color: rgb(70, 22, 33);
    margin-bottom: 8px;
}

.event-description {
    color: #666;
    margin-bottom: 16px;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: #777;
}

/* Workshop Series */
.workshop-series {
    background: white;
    border-radius: 12px;
    margin: 0 auto;
    max-width: 1000px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.series-info {
    text-align: center;
    margin-bottom: 40px;
}

.series-info p {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

.workshop-track {
    margin-bottom: 40px;
}

.workshop-track h3 {
    font-size: 1.8rem;
    color: rgb(70, 22, 33);
    margin-bottom: 20px;
    text-align: center;
}

.track-workshops {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.workshop-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.workshop-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgb(70, 22, 33);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
}

.workshop-content h4 {
    color: rgb(70, 22, 33);
    margin-bottom: 4px;
}

.workshop-content p {
    color: #666;
    font-size: 0.9rem;
}

/* Past Events */
.past-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.past-event {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.past-event img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.past-event-info {
    padding: 16px;
}

.past-event-info h4 {
    color: rgb(70, 22, 33);
    margin-bottom: 8px;
}

.past-event-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.past-date {
    font-size: 0.8rem;
    color: #999;
    font-weight: 500;
}

/* Newsletter */
.newsletter-signup {
    background: rgb(70, 22, 33);
    color: white;
    text-align: center;
}

.newsletter-content h2 {
    color: white;
    margin-bottom: 16px;
}

.newsletter-content p {
    margin-bottom: 24px;
    opacity: 0.9;
}

.signup-form {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.email-input {
    padding: 14px 20px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    min-width: 300px;
    flex: 1;
    max-width: 400px;
}

.newsletter-note {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Membership Benefits */
.membership-benefits {
    background: white;
    border-radius: 12px;
    margin: 0 auto;
    max-width: 1200px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-card {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.benefit-card h3 {
    font-size: 1.4rem;
    color: rgb(70, 22, 33);
    margin-bottom: 12px;
}

.benefit-card p {
    color: #666;
    line-height: 1.6;
}

/* Membership Tiers */
.membership-tiers {
    background: #f8f9fa;
}

.tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.tier-card {
    background: white;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.2s ease;
}

.tier-card:hover {
    transform: translateY(-5px);
}

.tier-card.featured-tier {
    border: 3px solid #5865F2;
    transform: scale(1.05);
}

.tier-card.featured-tier::before {
    content: "Most Popular";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #5865F2;
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.tier-card h3 {
    font-size: 1.8rem;
    color: rgb(70, 22, 33);
    margin-bottom: 16px;
}

.tier-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: rgb(70, 22, 33);
    margin-bottom: 24px;
}

.tier-price span {
    font-size: 1rem;
    font-weight: 400;
    color: #666;
}

.tier-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.tier-features li {
    padding: 8px 0;
    color: #555;
    border-bottom: 1px solid #eee;
}

.tier-features li:last-child {
    border-bottom: none;
}

.tier-features li::before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    margin-right: 8px;
}

/* FAQ Section */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.faq-item h3 {
    color: rgb(70, 22, 33);
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
}

/* Signup Form Enhancements */
.signup-form {
    background: white;
    border-radius: 12px;
    padding: 40px;
    margin: 40px auto;
    max-width: 1000px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.signup-form h2 {
    color: rgb(70, 22, 33);
    margin-bottom: 16px;
}

.signup-form p {
    color: #666;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

/* Join Box (existing styles) */
.joinbox {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    margin-block: 40px;
}

.joinbtn {
    flex: 1;
    justify-content: space-evenly;
    border: 1px rgb(240, 240, 240);
    border-radius: 20px;
    padding: 50px;
    font-size: 2rem;
    text-align: center;
}

.joinbtn a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 15px;
    text-decoration: none;
    color: rgb(235, 235, 225);
}

.discord {
    background-color: #5865F2;
}

.discord a {
    flex-direction: column;
}

.discord img {
    width: 100%;
}

.instagram {
    background: radial-gradient(circle farthest-corner at 35% 90%, #fec564, transparent 50%), radial-gradient(circle farthest-corner at 0 140%, #fec564, transparent 50%), radial-gradient(ellipse farthest-corner at 0 -25%, #5258cf, transparent 50%), radial-gradient(ellipse farthest-corner at 20% -50%, #5258cf, transparent 50%), radial-gradient(ellipse farthest-corner at 100% 0, #893dc2, transparent 50%), radial-gradient(ellipse farthest-corner at 60% -20%, #893dc2, transparent 50%), radial-gradient(ellipse farthest-corner at 100% 100%, #d9317a, transparent), linear-gradient(#6559ca, #bc318f 30%, #e33f5f 50%, #f77638 70%, #fec66d 100%);
}

.instagram a {
    flex-direction: row;
}

.instagram img {
    width: 40%;
    max-width: 40%;
    min-width: 30%;
}

/* Footer */
footer {
    display: flex;
    justify-content: center;
    padding: 20px;
    background: rgb(70, 22, 33);
    color: rgb(235, 235, 225);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    section {
        padding: 40px 20px;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-stats {
        flex-direction: row;
        justify-content: center;
    }
    
    .event-card {
        flex-direction: column;
    }
    
    .event-image {
        min-width: auto;
    }
    
    .event-details {
        flex-direction: column;
        gap: 12px;
    }
    
    .event-date {
        align-self: flex-start;
    }
    
    .signup-form {
        flex-direction: column;
        align-items: center;
    }
    
    .email-input {
        min-width: auto;
        width: 100%;
    }
    
    nav {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    nav > ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media screen and (max-width: 400px) {
    .instagram a {
        flex-direction: column;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

iframe {
    border-radius: 20px;
}