/* about.css - Styles specific to about.html */

/* Reset main styles for this page */
main {
    text-align: left;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* Top hero image with content width restriction and rounded corners */
main > img {
    width: 75%;
    min-width: 300px;
    margin: 20px auto;
    box-sizing: border-box;
    height: auto;
    display: block;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Detailed About Section */
.detailed-about-section {
    padding: 40px 0px;
    background-color: white;
}

.detailed-about-content {
    width: 75%;
    min-width: 300px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
}

.detailed-about-content > h2 {
    width: 100%;
    margin-bottom: 30px;
}

.detailed-about-content h2 {

    font-weight: 700;
    color: #364f66;
    margin: 0 0 30px 0;
    text-align: left;
    line-height: 1.1;
}

.detailed-about-content h3 {

    font-weight: 500;
    color: #364f66;
    line-height: 1.4;
    margin-bottom: 20px;
    text-align: left;
}

/* Story Background Section */
.story-background-section {
    padding: 0px 0;
    background-color: white;
}

.story-background-content {
    width: 75%;
    min-width: 300px;
    margin: 0 auto;
    padding: 0 40px;
}

.story-background-content p {

    color: #364f66;
    line-height: 1.7;
    margin: 0;
    text-align: left;
}

/* Video Section */
.video-section {
    padding: 40px 0;
    background-color: white;
}

.video-content {
    width: 75%;
    min-width: 300px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 60px;
}

.video-container {
    flex: 2;
}

.video-placeholder {
    width: 100%;
    height: 300px;
    background-color: #e9ecef;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #364f66;

}

.about-video {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-text {
    flex: 1;
    padding-left: 30px;
}

.video-text p {
    color: #364f66;
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

/* Add space between text and pledge button in video section */
.video-text .pledge-btn {
    margin-top: 20px;
}

/* Mission Section */
.mission-section {
    padding: 40px 0 0 0;
    background-color: #f8f9fa;
}

.mission-content {
    width: 75%;
    min-width: 300px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.mission-text {
    flex: 1;
    padding-right: 30px;
}

.mission-text h2 {

    font-weight: 600;
    color: #364f66;
    margin: 0 0 30px 0;
    text-align: left;
}

.mission-text p {

    color: #364f66;
    line-height: 1.7;
    margin: 0;
    text-align: left;
}

.mission-image {
    flex: 1;
    padding-left: 30px;
}

.mission-placeholder {
    width: 100%;
    height: 250px;
    background-color: #e9ecef;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #364f66;

}

.mission-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Vision Section */
.vision-section {
    padding: 40px 0;
    background-color: #f8f9fa;
}

.vision-content {
    width: 75%;
    min-width: 300px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0 40px;
    gap: 60px;
}

.vision-image {
    flex: 1;
    padding-right: 30px;
}

.vision-text {
    flex: 1;
    padding-left: 30px;
    text-align: left;
}

.vision-text h2 {

    font-weight: 600;
    color: #364f66;
    margin: 0 0 30px 0;
}

.vision-text p {

    color: #364f66;
    line-height: 1.7;
    margin-bottom: 20px;
}

.vision-placeholder {
    width: 100%;
    height: 250px;
    background-color: #e9ecef;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #364f66;
}

.vision-placeholder::before {
    content: "Vision Image Placeholder";

}

.vision-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Mascot Section */
.mascot-section {
    padding: 0px 0px 40px 0px;
    background-color: #f8f9fa;
}

.mascot-content {
    width: 75%;	
    min-width: 300px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: left;
}

.mascot-content h2 {
    font-weight: 600;
    color: #364f66;
    margin: 0 0 30px 0;
    text-align: left;
}

/* Mascot image styling - follows content width pattern */
.mascot {
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.mascot img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    main > img {
        width: 90%;
        margin: 40px auto 20px auto;
    }
    
    .detailed-about-content {
        width: 90%;
        padding: 0 20px;
    }
    
    .story-background-content {
        width: 90%;
        padding: 0 20px;
    }
    
    .video-content {
        flex-direction: column;
        padding: 0 20px;
        gap: 40px;
    }
    
    .video-container {
        flex: none;
        width: 100%;
    }
    
    .video-text {
        flex: none;
        padding-left: 0;
        text-align: left;
    }
    
    .mission-content {
        width: 90%;
        flex-direction: column;
        padding: 0 20px;
        gap: 40px;
    }
    
    .mission-text {
        padding-right: 0;
        text-align: left;
        order: 1; /* Put text after image on mobile */
    }
    
    .mission-image {
        flex: none;
        align-self: center;
        padding-left: 0;
        order: 0; /* Put image before text on mobile */
    }
    
    .vision-content {
        width: 90%;
        flex-direction: column;
        padding: 0 20px;
        gap: 40px;
    }
    
    .vision-image {
        flex: none;
        align-self: center;
        padding-right: 0;
        order: -1; /* Move image above text on mobile */
    }
    
    .vision-text {
        text-align: left;
        padding-left: 0;
    }
    
    .mascot-content {
        width: 90%;
        padding: 0 20px;
    }
    
    .mascot {
        width: 100%;
        margin: 0 auto;
    }
    
    .mascot img {
        border-radius: 10px;
    }
    
    /* Ambassadors responsive styles */
    .ambassadors-content {
        width: 90%;
        padding: 0 20px;
    }
    
    .ambassadors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Ambassadors Section */
.ambassadors-section {
    padding: 40px 0;
    background-color: white;
}

.ambassadors-content {
    width: 75%;
    min-width: 300px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: left;
}

.ambassadors-content h2 {
    font-weight: 600;
    color: #364f66;
    margin: 0 0 20px 0;
}

.ambassadors-content p {
    color: #364f66;
    line-height: 1.7;
    margin-bottom: 40px;
}

/* First row - 2 ambassadors centered */
.ambassadors-first-row {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 30px;
    flex-wrap: nowrap;
    width: 100%;
}

/* Horizontal separator line */
.ambassadors-separator {
    width: 100px;
    height: 2px;
    background-color: #f2a45b;
    margin: 40px auto;
    border-radius: 1px;
}

/* Main grid for remaining 8 ambassadors */
.ambassadors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 30px;
    width: 100%;
    justify-items: center;
}

.ambassador-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ambassador-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.ambassador-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.ambassador-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #364f66;
    margin: 0 0 15px 0;
}

.ambassador-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
    text-align: center;
}

/* Responsive layout for ambassadors */
@media (max-width: 768px) {
    .ambassadors-content {
        width: 90%;
        padding: 0 20px;
    }
    
    /* First row becomes single column on mobile */
    .ambassadors-first-row {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    /* Main grid becomes 2 columns on narrow screens */
    .ambassadors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* Reset centering for 2-column layout */
    .ambassadors-grid .ambassador-card:nth-child(7),
    .ambassadors-grid .ambassador-card:nth-child(8) {
        grid-column: auto;
    }
    
    .ambassador-card {
        padding: 20px;
    }
    
    .ambassador-image {
        width: 100px;
        height: 100px;
    }
    
    .ambassador-name {
        font-size: 1.2rem;
    }
    
    .ambassador-description {
        font-size: 0.9rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    /* Reduce gap on medium screens and limit to 3 columns */
    .ambassadors-first-row {
        gap: 40px;
    }
    
    .ambassadors-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
        grid-template-rows: auto auto auto;
    }
    
    /* Center last 2 items in 3-column layout (8 items = 3+3+2) */
    .ambassadors-grid .ambassador-card:nth-child(7) {
        grid-column: 2 / 3;
        grid-row: 3;
    }
    
    .ambassadors-grid .ambassador-card:nth-child(8) {
        grid-column: 3 / 4;
        grid-row: 3;
    }
}

@media (max-width: 480px) {
    /* On very small screens, first row still stacks but with smaller gaps */
    .ambassadors-first-row {
        gap: 15px;
    }
    
    /* Single column on very small screens */
    .ambassadors-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}
