/* Join Page Styles */

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom right, #0f172a, #365314, #0f172a);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 1024px) {
    .hero-content {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.hero-container {
    margin-left: auto;
    margin-right: auto;
    max-width: 56rem;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

@media (min-width: 640px) {
    .hero-container {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}

.hero-text-center {
    text-align: center;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: white;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-subtitle {
    margin-top: 1.5rem;
    font-size: 1.25rem;
    line-height: 2rem;
    color: white;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 12px 26px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
}

.btn-primary {
    background: white;
    color: #556B2F;
    box-shadow: 0 10px 24px rgba(255,255,255,.25);
}

.btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(255,255,255,.35);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #556B2F;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Events Section */
.events-section {
    padding: 80px 0;
    background: white;
    min-height: 100vh;
    border-bottom: 1px solid #e9ecef;
}

.events-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2C3E50;
    margin-bottom: 1rem;
    text-shadow: none;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #556B2F, #6B8E23);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 20px auto 0;
    line-height: 1.6;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.event-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: #556B2F;
}

.event-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.1);
}

.event-content {
    padding: 25px;
}

.event-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #2C3E50;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.event-date, .event-location {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-register-btn {
    width: 100%;
    padding: 12px;
    background: #556B2F;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-register-btn:hover {
    background: #4A5D29;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(85, 107, 47, 0.4);
}

/* Smaller variant for compact action buttons (e.g., child View) */
.event-register-btn.event-register-btn-sm {
    width: auto;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
    display: inline-block;
}

/* Previous Events Section */
.previous-events-section {
    padding: 80px 0;
    background: white;
    border-bottom: 1px solid #e9ecef;
}

.previous-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.previous-event-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.previous-event-card:hover {
    transform: translateY(-5px);
    border-color: #556B2F;
}

.previous-event-image {
    height: 150px;
    overflow: hidden;
}

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

.previous-event-content {
    padding: 20px;
}

.previous-event-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #2C3E50;
    margin-bottom: 10px;
}

.previous-event-description {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.previous-event-date {
    color: #556B2F;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Impact Section */
.impact-section {
    padding: 80px 0;
    background: white;
    border-bottom: 1px solid #e9ecef;
}

.impact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.stat-card {
    text-align: center;
    background: #f8f9fa;
    padding: 40px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: #556B2F;
    box-shadow: 0 10px 25px rgba(85, 107, 47, 0.15);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #556B2F;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background: white;
    border-bottom: 1px solid #e9ecef;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: #556B2F;
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
}

.testimonial-author strong {
    color: #2C3E50;
    font-size: 1.1rem;
}

.testimonial-author span {
    display: block;
    color: #556B2F;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #556B2F;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: #4A5D29;
    color: white;
    padding: 20px 25px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #6B8E23;
}

.registration-form {
    padding: 30px 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #556B2F;
    background: white;
    box-shadow: 0 0 10px rgba(85, 107, 47, 0.2);
}

.payment-info {
    background: rgba(255, 255, 255, 0.9);
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: bold;
    color: #2C3E50;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: white;
    color: #556B2F;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .impact-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .impact-stats {
        grid-template-columns: 1fr;
    }
    
    .events-section {
        padding: 60px 0;
    }
    
    .impact-section {
        padding: 60px 0;
    }
    
    .testimonials-section {
        padding: 60px 0;
    }
}