/* ========================  Get Involved Page Styles ======================================= */

/* Get Involved Page Sections */
.involved-become-a-member-section,
.involved-why-join-section,
.involved-member-perks-section,
.involved-how-to-join-section,
.involved-volunteer-section,
.involved-whats-volunteer-section,
.involved-why-volunteer-section,
.involved-how-to-volunteer-section,
.involved-donate-section,
.involved-why-donation-matters-section,
.involved-ways-to-give-section,
.involved-secure-donation-form-section,
.involved-fundraise-section {
    padding: 40px 20px;
    margin-top: 20px;
}

.involved-become-a-member-section .container,
.involved-why-join-section .container,
.involved-member-perks-section .container,
.involved-how-to-join-section .container,
.involved-volunteer-section .container,
.involved-whats-volunteer-section .container,
.involved-why-volunteer-section .container,
.involved-how-to-volunteer-section .container,
.involved-donate-section .container,
.involved-why-donation-matters-section .container,
.involved-ways-to-give-section .container,
.involved-secure-donation-form-section .container,
.involved-fundraise-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.involved-how-to-join-section{
    height: auto;}

.involved-how-to-join-section .card-image {
    width: 100%;
    height: auto;
    overflow: hidden;
}



involved-ways-to-give-section .card-template {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    width: 90%;
}

/* Become a member section */
.involved-become-a-member-section .card-template {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

li {
text-align: left;
padding-left: 1em;
line-height: 1.5;
}

.involved-card-footer {
    width: 100%;
    padding: 20px;
    text-align: center;
}
.card-image-container {
    width: 100%;
    height: auto;
    overflow: hidden;
}

.involved-ways-to-give-section .card-image {
    width: 100%;
    height: auto;
    overflow: hidden;
}

.become-a-member-section .card-template:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.involved-become-a-member-section .card-content {
    padding: 40px;
}

.involved-become-a-member-section h2 {
    color: var(--primary);
    font-size: 2.8em;
    margin-bottom: 25px;
    text-align: center;
}

.involved-become-a-member-section h3 {
    color: var(--secondary);
    font-size: 1.8em;
    margin-bottom: 20px;
}

.involved-become-a-member-section p {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1.1em;
    margin-bottom: 20px;
}

.involved-become-a-member-section .member-benefits {
    margin-top: 30px;
}

.involved-become-a-member-section .member-benefits h4 {
    color: var(--primary);
    font-size: 1.5em;
    margin-bottom: 15px;
}

.involved-become-a-member-section .member-benefits ul {
    color: var(--text-color);
    line-height: 1.8;
    padding-left: 20px;
}

.involved-become-a-member-section .member-benefits li {
     margin-bottom: 10px;
 }

.involved-become-a-member-section .membership-process h3 {
     color: var(--primary);
     font-size: 1.6em;
     margin-bottom: 20px;
     margin-top: 30px;
 }

.involved-become-a-member-section .membership-steps {
     margin: 25px 0;
     padding-left: 0;
 }

.involved-become-a-member-section .step {
     display: flex;
     align-items: flex-start;
     margin-bottom: 15px;
     padding: 12px 0;
     border-bottom: 1px solid var(--gray-extra-light-bg);
 }

.involved-become-a-member-section .step:last-child {
     border-bottom: none;
 }

.involved-become-a-member-section .step-number {
     background-color: var(--accent);
     color: var(--white);
     font-weight: bold;
     padding: 8px 12px;
     border-radius: 50%;
     margin-right: 15px;
     min-width: 60px;
     text-align: center;
     font-size: 0.9em;
     flex-shrink: 0;
 }

.involved-become-a-member-section .step-text {
     color: var(--text-color);
     line-height: 1.6;
     font-size: 1.05em;
     flex: 1;
     padding-top: 8px;
 }

.involved-become-a-member-section .membership-cta {
     background-color: var(--background-color);
     padding: 25px;
     border-radius: 10px;
     text-align: center;
     margin-top: 30px;
     border-left: 4px solid var(--accent);
 }

.involved-become-a-member-section .cta-text {
     color: var(--text-color);
     font-size: 1.1em;
     margin-bottom: 20px;
     line-height: 1.6;
 }

.involved-become-a-member-section .contact-email {
     color: var(--accent);
     text-decoration: none;
     font-weight: 600;
     border-bottom: 1px solid transparent;
     transition: border-color 0.3s ease;
 }

.involved-become-a-member-section .contact-email:hover {
     border-bottom-color: var(--accent);
 }

.involved-become-a-member-section .cta-button {
     display: inline-flex;
     align-items: center;
     background-color: var(--accent);
     color: var(--white);
     padding: 12px 25px;
     border-radius: 8px;
     text-decoration: none;
     font-weight: 600;
     font-size: 1.05em;
     transition: background-color 0.3s ease, transform 0.2s ease;
     border: 2px solid var(--accent);
 }

.involved-become-a-member-section .cta-button:hover {
     background-color: var(--secondary);
     border-color: var(--secondary);
     transform: translateY(-2px);
 }

/* Why join section */
.involved-why-join-section .card-header {
    background-color: var(--primary);
    color: var(--white);
    padding: 20px;
    border-bottom: 1px solid var(--secondary);
}

.involved-why-join-section .card-header h3 {
    margin: 0;
    font-size: 1.8em;
}

.involved-why-join-section .card-content {
    padding: 30px;
}

.involved-why-join-section h4 {
    color: var(--secondary);
    font-size: 1.4em;
    margin-bottom: 15px;
}

.involved-why-join-section p {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 20px;
}

.involved-why-join-section .benefits-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
}

.involved-why-join-section .benefit-item {
    flex: 0 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
    background-color: var(--background-color);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
}

.involved-why-join-section .benefit-item h5 {
    color: var(--primary);
    font-size: 1.2em;
    margin-bottom: 10px;
}

.involved-why-join-section .benefit-item p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Member perks section */
.involved-member-perks-section .card-template {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    overflow: hidden;
}

.involved-member-perks-section .card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.involved-member-perks-section .card-content {
    padding: 30px;
}

.involved-member-perks-section h3 {
    color: var(--primary);
    font-size: 1.8em;
    margin-bottom: 15px;
}

.involved-member-perks-section h4 {
    color: var(--secondary);
    font-size: 1.3em;
    margin-bottom: 15px;
}

.involved-member-perks-section p {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 20px;
}

.involved-member-perks-section .perks-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.involved-member-perks-section .perk-item {
    background-color: var(--background-color);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
}

.involved-member-perks-section .perk-item strong {
    color: var(--primary);
    display: block;
    margin-bottom: 5px;
}

.involved-member-perks-section .perk-item p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 0;
}

.involved-member-perks-section .card-footer {
    background-color: var(--background-color2);
    padding: 20px;
    text-align: center;
    border-top: 1px solid var(--primary);
}

.involved-member-perks-section .card-footer p {
    margin: 0;
    color: var(--text-color2);
    font-weight: 500;
}

/* How to join section */
.how-to-join-section .card-template {
    position: relative;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    overflow: hidden;
}

.how-to-join-section .card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.how-to-join-section .card-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(var(--secondary-rgb), 0.9), rgba(var(--secondary-rgb), 0.7));
    color: var(--white);
    padding: 30px;
}

.how-to-join-section h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.how-to-join-section h4 {
    font-size: 1.2em;
    margin-bottom: 15px;
    opacity: 0.9;
}

.how-to-join-section p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.involved-how-to-join-section .join-steps {
    margin-bottom: 15px;
    max-width: 100%;
    overflow: hidden;
}

.involved-how-to-join-section .step {
    margin-bottom: 8px;
    line-height: 1.5;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Ensure the card content overlay properly contains the join steps */
.involved-how-to-join-section .card-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(var(--secondary-rgb), 0.9), rgba(var(--secondary-rgb), 0.7));
    color: var(--white);
    padding: 30px;
    max-height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.involved-how-to-join-section .join-steps {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 15px;
    padding-right: 10px; /* Space for scrollbar if needed */
}

.involved-how-to-join-section .step {
    margin-bottom: 8px;
    line-height: 1.4;
    font-size: 0.95em;
}

/* Responsive adjustments for join steps */
@media (max-width: 768px) {
    .involved-how-to-join-section .card-content-overlay {
        padding: 20px;
    }
    
    .involved-how-to-join-section .step {
        font-size: 0.9em;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    .involved-how-to-join-section .card-content-overlay {
        padding: 15px;
    }
    
    .involved-how-to-join-section .step {
        font-size: 0.85em;
        line-height: 1.2;
        margin-bottom: 6px;
    }
    
    .involved-how-to-join-section .join-steps {
        margin-bottom: 10px;
    }
}

/* Volunteer sections */
.volunteer-section .card-template {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    text-align: center;
}

.volunteer-section .card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.volunteer-section .card-content {
    padding: 30px;
}

.volunteer-section h3 {
    color: var(--primary);
    font-size: 1.8em;
    margin-bottom: 15px;
}

.volunteer-section h4 {
    color: var(--secondary);
    font-size: 1.2em;
    margin-bottom: 20px;
}

.volunteer-section p {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 15px;
    text-align: left;
}

.volunteer-section .volunteer-roles {
    text-align: left;
    margin-top: 20px;
}

.volunteer-section .volunteer-roles h5 {
    color: var(--primary);
    font-size: 1.3em;
    margin-bottom: 10px;
}

.volunteer-section .volunteer-roles ul {
    color: var(--text-color);
    line-height: 1.8;
    padding-left: 20px;

}

.volunteer-section .volunteer-roles li {
    margin-bottom: 8px;
}

.volunteer-section .card-footer {
    background-color: var(--background-color);
    padding: 20px;
    text-align: center;
    border-top: 1px solid var(--secondary);
}

.volunteer-section .card-footer p {
    margin: 0;
    color: var(--text-color2);
    font-weight: 500;
}

/* Donation sections */
.donate-section .card-template {
    perspective: 1000px;
}

.donate-section .card-inner {
    position: relative;
    width: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.donate-section:hover .card-inner {
    transform: rotateY(180deg);
}

.donate-section .card-front, .donate-section .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 8px;
    overflow: hidden;
}

.donate-section .card-front {
    background-color: var(--gray-light);
    color: var(--black);
}

.donate-section .card-back {
    background-color: var(--accent);
    color: var(--white);
    transform: rotateY(180deg);
    padding: 20px;
}

.donate-section .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.donate-section .card-content {
    padding: 20px;
}

.donate-section h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.donate-section p {
    margin-bottom: 15px;
}

.donate-section .donation-impact {
    margin-bottom: 20px;
}

.donate-section .donation-impact p {
    margin-bottom: 8px;
    font-size: 0.9em;
}

.involved-donate-section .involved-donate-btn {
    background-color: var(--white);
    color: var(--accent);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.involved-donate-section .involved-donate-btn:hover {
    background-color: var(--background-color);
}

/* Secure donation form section */
.secure-donation-form-section .card-template {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.secure-donation-form-section .card-template:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.secure-donation-form-section .card-content {
    padding: 40px;
}

.secure-donation-form-section h2 {
    color: var(--primary);
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
}

.secure-donation-form-section h3 {
    color: var(--secondary);
    font-size: 1.8em;
    margin-bottom: 15px;
    text-align: center;
}

.secure-donation-form-section p {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 25px;
    text-align: center;
}

.secure-donation-form-section .donation-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.secure-donation-form-section .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.secure-donation-form-section .form-group {
    display: flex;
    flex-direction: column;
}

.secure-donation-form-section label {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 8px;
}

.secure-donation-form-section input,
.secure-donation-form-section select,
.secure-donation-form-section textarea {
    padding: 12px;
    border: 2px solid var(--background-color);
    border-radius: 8px;
    font-family: var(--font-family-sans-serif);
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.secure-donation-form-section input:focus,
.secure-donation-form-section select:focus,
.secure-donation-form-section textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.secure-donation-form-section .security-info {
    background-color: var(--background-color);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
}

.secure-donation-form-section .security-info p {
    margin: 0;
    color: var(--text-color2);
    font-size: 0.9em;
}

.secure-donation-form-section .donate-submit-btn {
    background-color: var(--accent);
    color: var(--white);
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.secure-donation-form-section .donate-submit-btn:hover {
    background-color: var(--secondary);
}

/* Fundraise section */
.fundraise-section .card-template {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    text-align: center;
}

.fundraise-section .card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.fundraise-section .card-content {
    padding: 30px;
}

.fundraise-section h3 {
    color: var(--primary);
    font-size: 1.8em;
    margin-bottom: 15px;
}

.fundraise-section h4 {
    color: var(--secondary);
    font-size: 1.2em;
    margin-bottom: 20px;
}

.fundraise-section p {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 20px;
}

.fundraise-section .fundraising-ideas,
.fundraise-section .fundraising-support {
    text-align: left;
    margin-bottom: 20px;
}

.fundraise-section .fundraising-ideas h5,
.fundraise-section .fundraising-support h5 {
    color: var(--primary);
    font-size: 1.3em;
    margin-bottom: 10px;
}

.fundraise-section .fundraising-ideas ul,
.fundraise-section .fundraising-support ul {
    color: var(--text-color);
    line-height: 1.8;
    padding-left: 20px;
}

.fundraise-section .fundraising-ideas li,
.fundraise-section .fundraising-support li {
    margin-bottom: 8px;
}

.fundraise-section .card-footer {
    background-color: var(--background-color2);
    padding: 20px;
    text-align: center;
    border-top: 1px solid var(--primary);
}

.fundraise-section .card-footer p {
    margin: 0;
    color: var(--text-color2);
    font-weight: 500;
}

/* Responsive design for get involved sections */
@media (max-width: 768px) {
    .involved-become-a-member-section h2 {
        font-size: 2.2em;
    }
    
    .involved-secure-donation-form-section .form-row {
        grid-template-columns: 1fr;
    }
    
    .involved-why-volunteer-section .card-profile-image {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .involved-become-a-member-section .card-content,
    .involved-secure-donation-form-section .card-content,
    .involved-why-donation-matters-section .card-content,
    .involved-ways-to-give-section .card-content {
        padding: 20px;
    }
    
    .involved-become-a-member-section h2 {
        font-size: 1.8em;
    }
    
    .involved-secure-donation-form-section .donate-submit-btn {
        width: 100%;
    }
    
    .involved-why-join-section .benefits-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .involved-why-join-section .benefit-item {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* Small screen text size adjustments */
@media (max-width: 480px) {
    /* Reduce heading sizes */
    .involved-become-a-member-section h2 {
        font-size: 1.6em;
    }
    
    .involved-become-a-member-section h3 {
        font-size: 1.4em;
    }
    
    .involved-why-join-section h2 {
        font-size: 1.6em;
    }
    
    .involved-why-join-section h3 {
        font-size: 1.3em;
    }
    
    .involved-member-perks-section h2 {
        font-size: 1.6em;
    }
    
    .involved-member-perks-section h3 {
        font-size: 1.3em;
    }
    
    .involved-how-to-join-section h2 {
        font-size: 1.6em;
    }
    
    .involved-how-to-join-section h3 {
        font-size: 1.3em;
    }
    
    .involved-volunteer-section h2 {
        font-size: 1.6em;
    }
    
    .involved-volunteer-section h3 {
        font-size: 1.3em;
    }
    
    .involved-donate-section h2 {
        font-size: 1.6em;
    }
    
    .involved-donate-section h3 {
        font-size: 1.3em;
    }
    
    /* Reduce paragraph text size */
    .involved-become-a-member-section p {
        font-size: 1em;
    }
    
    .involved-why-join-section p {
        font-size: 1em;
    }
    
    .involved-member-perks-section p {
        font-size: 1em;
    }
    
    .involved-how-to-join-section p {
        font-size: 1em;
    }
    
    .involved-volunteer-section p {
        font-size: 1em;
    }
    
    .involved-donate-section p {
        font-size: 1em;
    }
    
    /* Reduce list item text size */
    .involved-become-a-member-section .member-benefits li {
        font-size: 0.95em;
    }
    
    .involved-why-join-section .benefit-item p {
        font-size: 0.95em;
    }
    
    .involved-member-perks-section .perk-item p {
        font-size: 0.95em;
    }
    
    .involved-volunteer-section .volunteer-roles li {
        font-size: 0.95em;
    }
    
    /* Reduce button text size */
    .involved-donate-section .involved-donate-btn {
        font-size: 0.9em;
        padding: 8px 16px;
    }
    
    .involved-secure-donation-form-section .donate-submit-btn {
        font-size: 1em;
    }
    
    /* Reduce form label and input text size */
    .involved-secure-donation-form-section label {
        font-size: 0.9em;
    }
    
    .involved-secure-donation-form-section input,
    .involved-secure-donation-form-section select,
    .involved-secure-donation-form-section textarea {
        font-size: 0.9em;
        padding: 10px;
    }
    
    /* Reduce footer text size */
    .involved-member-perks-section .card-footer p {
        font-size: 0.9em;
    }
    
    .involved-fundraise-section .card-footer p {
        font-size: 0.9em;
        margin: 0 auto;
    }
}

/* Extra small screens (320px - 374px) */
@media (max-width: 374px) {
    .involved-become-a-member-section h2 {
        font-size: 1.4em;
    }
    
    .involved-become-a-member-section h3 {
        font-size: 1.2em;
    }
    
    .involved-why-join-section h2 {
        font-size: 1.4em;
    }
    
    .involved-why-join-section h3 {
        font-size: 1.2em;
    }
    
    .involved-member-perks-section h2 {
        font-size: 1.4em;
    }
    
    .involved-member-perks-section h3 {
        font-size: 1.2em;
    }
    
    .involved-how-to-join-section h2 {
        font-size: 1.4em;
    }
    
    .involved-how-to-join-section h3 {
        font-size: 1.2em;
    }
    
    .involved-volunteer-section h2 {
        font-size: 1.4em;
    }
    
    .involved-volunteer-section h3 {
        font-size: 1.2em;
    }
    
    .involved-donate-section h2 {
        font-size: 1.4em;
    }
    
    .involved-donate-section h3 {
        font-size: 1.2em;
    }
    
    /* Further reduce paragraph text */
    .involved-become-a-member-section p {
        font-size: 0.9em;
    }
    
    .involved-why-join-section p {
        font-size: 0.9em;
    }
    
    .involved-member-perks-section p {
        font-size: 0.9em;
    }
    
    .involved-how-to-join-section p {
        font-size: 0.9em;
    }
    
    .involved-volunteer-section p {
        font-size: 0.9em;
    }
    
    .involved-donate-section p {
        font-size: 0.9em;
    }
    
    /* Reduce section padding */
    .involved-become-a-member-section,
    .involved-why-join-section,
    .involved-member-perks-section,
    .involved-how-to-join-section,
    .involved-volunteer-section,
    .involved-donate-section,
    .involved-why-donation-matters-section,
    .involved-ways-to-give-section,
    .involved-secure-donation-form-section,
    .involved-fundraise-section {
        padding: 30px 15px;
    }
    
    .involved-become-a-member-section .card-content,
    .involved-why-join-section .card-content,
    .involved-member-perks-section .card-content,
    .involved-how-to-join-section .card-content,
    .involved-volunteer-section .card-content,
    .involved-donate-section .card-content,
    .involved-why-donation-matters-section .card-content,
    .involved-ways-to-give-section .card-content,
    .involved-secure-donation-form-section .card-content,
    .involved-fundraise-section .card-content {
        padding: 15px;
    }
}

/* ------------------------------- end of involved sections --------------------------- */
