/* General */
.content {
    display: flex;
    flex-direction: column;
    padding: 40px 0;
    gap: 40px;
}

.header,
.section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.subsection {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.subsection-icon {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    z-index: 1;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--color-bg-primary);
    color: var(--color-text-white);
}

.subsection-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.subsection-title {
    line-height: 1;
}

/* Overview */
.stakeholder-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    /* justify-items: stretch;
    align-items: stretch; */
}

.stakeholder-card {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    overflow: hidden; /* makes rounded corners apply to child img */
}

.stakeholder-img img {
    width: 100%;
    height: 250px;
    object-fit: cover; /* ensures image covers area */
    display: block;
}

.stakeholder-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    gap: 10px;
    flex: 1;
}

.stakeholder-link {
    display: inline-flex;   /* makes it shrink to its content */
    align-items: center;    /* vertically center text + icon */
    justify-content: center;/* center content inside */
    gap: 10px;
    color: var(--color-text-primary);
}

.stakeholder-chevrons i {
    margin-left: -6px;
}

.solo-testimonial-card {
    flex: 1;
    background-color: var(--color-bg-white);
    border-radius: 10px;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

.solo-testimonial-quotes {
    position: absolute;
    top: 5px;
    right: 40px;
    font-size: 26px;
    opacity: 0.1;
}

.solo-testimonial-quotes i.fa-quote-right {
    position: absolute;
    top: 26px;
    margin-left: 5px;
}

.solo-testimonial-header {
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: left;
    min-width: 0;
    padding: 20px;
    gap: 5px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background-color: var(--color-bg-secondary);
    color: var(--color-text-white);
}

.solo-testimonial-body {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

/* Educator Advisory Board  */
.leader-card,
.say-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.25);
}

.leader-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

.leader-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.commitment-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.commitment-check {
    color: var(--color-text-primary);
}

section ul {
    list-style-position: outside; 
    padding-left: 1.5em;
}

section ul li {
    text-indent: 0;
    padding-left: 0.2em;
}

/* Student Advisory Board */
.testimonials-slider-wrapper {
    overflow: hidden;
    width: 100%;
}

.testimonials-slider {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 26px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    min-width: 220px;
    max-width: 100%;
    flex: 0 0 calc((100% - 52px) / 3); /* For 3 cards at a time with 26px gaps */
    box-sizing: border-box;
    background-color: var(--color-bg-white);
    border-radius: 10px;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    scroll-snap-align: start;
}

.testimonial-quotes {
    position: absolute;
    top: 2px;
    right: 38px;
    font-size: 24px;
    opacity: 0.1;
}

.testimonial-quotes i.fa-quote-right {
    position: absolute;
    top: 20px;
    margin-left: 5px;
}

.testimonial-header {
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: left;
    min-width: 0;
    padding: 20px;
    gap: 5px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background-color: var(--color-bg-secondary);
    color: var(--color-text-white);
}

.testimonial-header.collapsed p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.testimonial-header.expanded p {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.testimonial-body {
    display: flex;
    flex-direction: column;
    padding: 20px;
    flex-grow: 1;
    gap: 30px;
}

.testimonial-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    height: auto;
}

.testimonial-text.collapsed {
    -webkit-line-clamp: 10;
}

.testimonial-text.expanded {
    -webkit-line-clamp: unset;
    overflow: visible;
    display: block;
}

.testimonial-btn {
    margin-top: auto;
    text-align: right;
}

.testimonial-control-btn {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.testimonial-control-btn i {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    z-index: 1;
    width: 40px;
    height: 40px;
    font-size: 14px;
    border-radius: 50%;
    background-color: var(--color-brand-secondary);
    color: var(--color-text-white);
    cursor: pointer;
}

.modal-content.testimonial-modal-content {
    padding: 0;
}

.modal-close.testimonial-modal-close {
    top: 5px;
    right: 10px;
    color: var(--color-text-white);
    z-index: 1;
}

.modal-close.testimonial-modal-close:hover {
    color: var(--color-border-default);
}

.cta {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 27px;
    padding: 20px;
    border-radius: 10px;
    background-color: #fff5e8;
}

/* Community */
.built-with-backed-by {
    align-items: center;
}

.logo-grid {
    display: flex;
    gap: 40px;
}

.logo-item {
    width: 200px;
    height: auto;
    border-radius: 50%;
}

.expert-logo-grid {
    display: flex;
    gap: 20px;
}

.expert-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.25);
}

.movement-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.movement-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.25);
}

.movement-content {
    display: flex;
    gap: 27px;
    align-items: center;
}

/* Responsive Styles */
/* Mobile-only: 320px – 767px */
@media (max-width: 767px) {
    .testimonials-slider {
        justify-content: flex-start; /* Align cards to the left */
    }
    .testimonial-card {
        flex: 0 0 100%;
    }
}

/* Mobile and Tablet: 1365px below */
@media (max-width: 1365px) {
    .stakeholder-grid  {
        grid-template-columns: repeat(2, 1fr);
    }
}