/* Image Container */
.image-volunteer {
    text-align: center;
    margin-bottom: 20px;
}

.image-volunteer img {
    width: 100%;
    height: auto;
}

/* Main wrapper */
.main {
    padding: 1rem 3rem;
}

/* Intro section */
.intro {
    background-color: #ffffff;
    border-left: 5px solid #287CC5;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    color: #333;
}

.intro p {
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
}

.intro p::first-line {
    color: #287CC5;
}

/* Objectives section */
.objectives {
    background: linear-gradient(162.3deg, #f8f9fa 50%, #e9ecef 50%);
    padding: 50px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.objectives h3 {
    color: #287CC5;
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    position: relative;
    padding-left: 3px;
}

/* .objectives h3::before {
    position: absolute;
    left: 0;  
    top: 50%;
    width: 20px;
    height: 20px;
    background-color: #287CC5;
    border-radius: 50%;
    transform: translateY(-50%);
} */

.objectives ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.objectives li {
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    position: relative;
    font-size: 18px;
}

.objectives li::before {
    content: '✔';
    position: absolute;
    left: -30px;
    top: 50%;
    font-size: 1.3rem;
    color: #287CC5;
    transform: translateY(-50%);
}

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

/* Eligibility section */
.eligibility {
    background: transparent;
    border-radius: 50px;
    padding: 40px;
    margin: 20px 0;
}

.eligibility h3 {
    color: #287CC5;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
}

.eligibility h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 70px;
    height: 3px;
    background-color: #287CC5;
    border-radius: 5px;
}

.eligibility ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.eligibility li {
    padding: 15px 0;
    border-bottom: 1px solid #287CC5;
    font-size: 18px;
    position: relative;
}

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

.eligibility li::before {
    content: '•';
    position: absolute;
    left: -25px;
    top: 50%;
    font-size: 1.2rem;
    color: #61045f;
    transform: translateY(-50%);
}

/* Unified Volunteer Card Style */
.volunteer-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #dee2e6;
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    height: 380px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.volunteer-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.18);
}

.volunteer-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.volunteer-card:hover img {
    transform: scale(1.06);
}

.card-content {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1.25rem;
    text-align: center;
}

.card-content .overlay-text {
    font-weight: bold;
    font-size: 1.25rem;
    color: #2B0A3D;
    margin: 0;
    line-height: 1.4;
}

/* Mobile adjustments for cards */
@media (max-width: 768px) {
    .volunteer-card {
        height: 360px;
    }
    .volunteer-card img {
        height: 240px;
    }
    .card-content .overlay-text {
        font-size: 1.15rem;
    }
}

@media (max-width: 576px) {
    .volunteer-card {
        height: 340px;
    }
    .volunteer-card img {
        height: 220px;
    }
    .card-content .overlay-text {
        font-size: 1.1rem;
    }
}

/* Commitment text */
.commitment-text {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.3;
}

@media (max-width: 992px) {
    .commitment-text { font-size: 2.6rem; }
}

@media (max-width: 768px) {
    .commitment-text { font-size: 2.3rem; }
}

@media (max-width: 576px) {
    .commitment-text { font-size: 2rem; }
}

/* Volunteer Registration Form */
.volunteer-container {
    max-width: 1000px;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #287CC5;
}

.text-volunteer {
    color: #287CC5;
    font-size: 2rem;
    font-weight: bold;
}

.row-volunteer .col-md-6 {
    flex: 1 1 calc(50% - 15px);
    min-width: 300px;
}

.form-control, .form-select {
    height: 45px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
    padding: 10px;
    width: 100%;
}

.form-select {
    appearance: none;
    background: white url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="black"><path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd"/></svg>') no-repeat right 10px center;
    background-size: 15px;
    padding-right: 35px;
}

.form-control:focus, .form-select:focus {
    border-color: #287CC5;
    box-shadow: 0 0 5px rgba(40, 124, 197, 0.3);
}

.error-message {
    color: red;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.volunteer-btn-primary {
    background-color: #287CC5;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 18px;
    transition: 0.3s;
    cursor: pointer;
}

.volunteer-btn-primary:hover {
    background-color: #1b5b92;
}

/* reCAPTCHA error */
#volunteer_recaptcha_error {
    display: none;
    color: red;
    font-size: 14px;
    margin-top: 5px;
}

/* Required field asterisk animation */
.fas.fa-asterisk {
    color: red;
    font-size: 6px;
    margin-right: 5px;
    vertical-align: middle;
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}