/* Volunteer Page Styles */

:root {
    --primary-color: #0d9488;
    --primary-light: #0fb9a9;
    --primary-dark: #0a6b63;
    --secondary-color: #0ea5e9;
    --dark-color: #020617;
    --light-color: #f8fafc;
    --gray-color: #64748b;
    --light-gray: #e2e8f0;
    --white: #ffffff;
    --black: #000000;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Volunteer Hero Section */
.volunteer-hero {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.volunteer-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.volunteer-hero-text {
    padding-right: 40px;
}

.volunteer-hero-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--dark-color);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
}

.volunteer-hero-text p {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-bottom: 30px;
    line-height: 1.7;
}

.volunteer-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-item {
    display: flex;
    align-items: center;
    background: var(--light-color);
    padding: 15px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-right: 15px;
    width: 50px;
    height: 50px;
    background: rgba(13, 148, 136, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-item span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    display: block;
    line-height: 1.2;
}

.stat-item p {
    font-size: 0.85rem;
    color: var(--gray-color);
    margin: 0;
    line-height: 1.4;
}

.volunteer-hero-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    height: 100%;
    min-height: 400px;
}

.volunteer-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.volunteer-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(13, 148, 136, 0.3);
    z-index: 2;
}

.volunteer-badge i {
    margin-right: 8px;
    font-size: 1.1rem;
}

/* Volunteer Benefits Section */
.volunteer-benefits {
    background-color: var(--light-color);
    padding: 80px 0;
}

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

.benefit-card {
    background: var(--white);
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--white);
    font-size: 1.8rem;
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.2);
}

.benefit-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--dark-color);
    font-weight: 700;
}

.benefit-card p {
    color: var(--gray-color);
    line-height: 1.7;
    margin: 0;
}

/* Volunteer Opportunities */
.volunteer-opportunities {
    padding: 80px 0;
}

.opportunities-tabs {
    margin-top: 40px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.tabs-header {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--light-gray);
    padding: 0 20px;
}

.tab-btn {
    padding: 15px 25px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-color);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    opacity: 0;
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    opacity: 1;
}

.tabs-content {
    padding: 30px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

.opportunity-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    background: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
}

.opportunity-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.opportunity-image {
    height: 100%;
    min-height: 250px;
}

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

.opportunity-details {
    padding: 30px 30px 30px 0;
    display: flex;
    flex-direction: column;
}

.opportunity-details h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--dark-color);
    font-weight: 700;
}

.opportunity-details p {
    color: var(--gray-color);
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.opportunity-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-gray);
}

.opportunity-info li {
    display: flex;
    align-items: center;
    color: var(--gray-color);
    font-size: 0.9rem;
}

.opportunity-info i {
    color: var(--primary-color);
    margin-right: 8px;
    font-size: 1rem;
}

.opportunity-cta {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

/* Volunteer Form Section */
.volunteer-form-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.form-container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.form-header {
    padding: 40px 40px 20px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.form-header h2 {
    color: var(--white);
    margin-bottom: 10px;
}

.form-header p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.volunteer-form {
    padding: 40px;
}

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

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.form-col {
    flex: 1;
    min-width: 250px;
    padding: 0 15px;
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
}

.required {
    color: #e53e3e;
    margin-left: 3px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="url"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--light-color);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.2);
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--gray-color);
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: var(--light-color);
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    transition: var(--transition);
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--primary-color);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.availability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.availability-day {
    background: var(--light-color);
    padding: 15px;
    border-radius: 6px;
    border: 1px solid var(--light-gray);
}

.availability-day label {
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
    color: var(--dark-color);
}

.time-slots {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.time-slots .checkbox-container {
    padding-left: 25px;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.time-slots .checkmark {
    height: 16px;
    width: 16px;
    top: 2px;
}

.time-slots .checkmark:after {
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
}

.form-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.error-message {
    color: #e53e3e;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

input:invalid + .error-message,
select:invalid + .error-message,
textarea:invalid + .error-message,
.checkbox-group.invalid + .error-message {
    display: block;
}

/* Volunteer Testimonials */
.volunteer-testimonials {
    padding: 80px 0;
    background: linear-gradient(rgba(13, 148, 136, 0.05), rgba(13, 148, 136, 0.05)), url('../assets/images/testimonial-bg.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    position: relative;
    color: var(--white);
}

.volunteer-testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.8);
    z-index: 1;
}

.volunteer-testimonials .section-header,
.volunteer-testimonials .section-subtitle,
.volunteer-testimonials h2,
.volunteer-testimonials p {
    color: var(--white);
    position: relative;
    z-index: 2;
}

.testimonials-slider {
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 30px;
    margin: 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

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

.quote-icon {
    font-size: 2.5rem;
    color: var(--primary-light);
    opacity: 0.7;
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    position: relative;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 3px solid var(--primary-light);
}

.author-info h4 {
    font-size: 1.1rem;
    margin: 0 0 5px;
    color: var(--white);
}

.author-info span {
    font-size: 0.9rem;
    color: var(--primary-light);
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:not(:last-child) {
    margin-bottom: 15px;
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    text-align: left;
    background: var(--white);
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--light-color);
}

.faq-question i {
    transition: var(--transition);
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--light-color);
}

.faq-answer p {
    padding: 0 25px 20px;
    margin: 0;
    color: var(--gray-color);
    line-height: 1.7;
}

/* Responsive Styles */
@media (max-width: 1199.98px) {
    .volunteer-hero-content {
        grid-template-columns: 1fr;
    }
    
    .volunteer-hero-text {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .volunteer-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991.98px) {
    .opportunity-card {
        grid-template-columns: 1fr;
    }
    
    .opportunity-image {
        height: 250px;
    }
    
    .opportunity-details {
        padding: 20px;
    }
    
    .volunteer-form {
        padding: 30px;
    }
}

@media (max-width: 767.98px) {
    .volunteer-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-item {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .tabs-header {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-btn {
        white-space: nowrap;
        padding: 12px 20px;
    }
    
    .tabs-content {
        padding: 20px 15px;
    }
    
    .volunteer-form {
        padding: 20px 15px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .volunteer-hero-text h2 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .opportunity-cta {
        flex-direction: column;
    }
    
    .opportunity-cta .btn {
        width: 100%;
        text-align: center;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial-author img {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}
