/* About section slideshow background */
.about-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: visible;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.home-quick-links .card-container {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 0;
    min-height: 300px;
}

@media (max-width: 1024px) {
    .home-quick-links .card-container {
        min-height: auto;
    }
}

@media (max-width: 640px) {
    .home-quick-links .card-container {
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .home-quick-links .card-container {
        min-height: 180px;
    }
}


.about-section__slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.about-section__slide {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.9s ease-in-out;
}

.about-section__slide.is-active {
    opacity: 1;
}

.about-section__overlay {
    position: absolute;
    inset: 0;
    background: var(--readability);
    z-index: 1;
}

.about-section__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
    margin: 0 auto;
}

.section-header--on-media .section-header__eyebrow,
.section-header--on-media .section-header__subtitle {
    color: var(--fg);
    opacity: 0.95;
}

.section-meta--on-media {
    margin-bottom: 1.25rem;
}

.section-meta--on-media .section-meta__item {
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

@media (max-width: 900px) {
    .about-section {
        padding: 1rem;
        min-height: 100svh;
    }

    .about-section__content {
        padding: 1.25rem 1rem;
    }
}

@media (max-width: 640px) {
    .about-section {
        min-height: 100svh;
        padding: 0.75rem;
    }

    .about-section__content {
        padding: 1rem 0.75rem;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .about-section {
        min-height: 100svh;
        padding: 0.5rem;
        margin: 0;
    }

    .about-section__content {
        padding: 0.75rem 0.5rem;
        gap: 0.75rem;
    }
}

.featured-interests,
.about-section,
.cta-section {
    margin-top: 2.5rem;
}

/* Featured Interests Section */
.featured-interests {
    background: var(--bg2);
    padding: 3.25rem 1.5rem;
    width: 100%;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.interest-card {
    background: var(--card);
    border-radius: 1.5rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow:
        rgba(0, 0, 0, 0.4) 0px 2px 4px,
        rgba(0, 0, 0, 0.3) 0px 7px 13px -3px,
        rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
    transition: transform var(--hover-duration) var(--hover-ease), filter var(--hover-duration) var(--hover-ease);
}

.interest-card:hover {
    transform: translateY(var(--hover-lift-card));
    filter: brightness(1.03);
}

.interest-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.interest-card-icon {
    font-size: 2rem;
    color: var(--acc);
    flex-shrink: 0;
}

.interest-card h3 {
    margin: 0;
    color: var(--fg);
    font-family: var(--font-family);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.interest-card-body {
    flex-grow: 1;
    color: var(--fg);
    font-family: var(--font-family);
    font-size: 14px;
    line-height: 1.6;
    text-align: justify;
}

.interest-card-body p {
    margin: 0.5rem 0;
}

.interest-card-body p:first-child {
    margin-top: 0;
}

.interest-card-body p:last-child {
    margin-bottom: 0;
}

.interest-card a {
    text-decoration: none;
    align-self: center;
    margin: 0 !important;
}

/* About / Intro Section */
.about-section {
    color: var(--fg);
}

.about-section-body {
    width: 100%;
    color: var(--fg);
    font-family: var(--font-family);
    font-size: 15px;
    line-height: 1.8;
    text-align: justify;
}

.about-section-body p {
    margin: 0.75rem 0;
}

.about-section-body p:first-child {
    margin-top: 0;
}

.about-section-body p:last-child {
    margin-bottom: 0;
}

.about-section a {
    text-decoration: none;
    align-self: center;
    margin: 0 !important;
}

/* CTA Section */
.cta-section {
    background: var(--bg2);
    padding: 3.25rem 1.5rem;
    text-align: center;
    width: 100%;
}

.cta-section .section-header {
    margin-bottom: 1.75rem;
}

.cta-section .section-header__subtitle {
    color: var(--fg);
    font-family: var(--font-family);
    font-size: 15px;
    line-height: 1.6;
    max-width: 62ch;
    margin: 0 auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .redirect-button {
    margin: 0 !important;
}

/* Secondary button variant for CTA section */
.cta-buttons .redirect-button.secondary {
    background: transparent;
    color: var(--acc);
    border: 2px solid var(--acc);
}

.cta-buttons .redirect-button.secondary:hover {
    background: var(--acc);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {

    .featured-interests,
    .about-section,
    .cta-section {
        margin-top: 2rem;
    }


    .home-quick-links .card-container {
        padding-inline: 1.5rem;
    }

    .featured-interests {
        padding: 2.5rem 1rem;
    }

    .interests-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-section {
        padding: 1.5rem 1rem;
    }

    .cta-section {
        padding: 2.5rem 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .redirect-button {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 640px) {

    .featured-interests,
    .about-section,
    .cta-section {
        margin-top: 1.5rem;
        padding: 2rem 1rem;
    }

    .interests-grid {
        gap: 1.25rem;
    }

    .interest-card {
        padding: 1.25rem;
    }

    .interest-card h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {

    .featured-interests,
    .about-section,
    .cta-section {
        padding: 1.5rem 0.75rem;
        margin-top: 1.25rem;
    }

    .interests-grid {
        gap: 1rem;
    }

    .interest-card {
        padding: 1rem;
        gap: 0.75rem;
    }

    .interest-card-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .interest-card h3 {
        font-size: 16px;
    }

    .interest-card-body {
        font-size: 12px;
        text-align: left;
    }

    .about-section-body {
        font-size: 14px;
    }

    .section-header {
        margin-bottom: 1.5rem;
    }

    .section-header__title {
        font-size: clamp(1.2rem, 4vw, 1.6rem);
    }

    .cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .cta-buttons .redirect-button {
        width: 100%;
        padding: 0.75rem 1.25rem;
    }
}

/* Featured Projects Section */
.home-featured-projects {
    flex-direction: column;
    align-items: center;
    background: var(--bg2);
    padding: 3.25rem 1.5rem;
    width: 100%;
}

.featured-projects-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.featured-project-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    background: var(--card);
    border-radius: 1.5rem;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow:
        rgba(0, 0, 0, 0.4) 0px 2px 4px,
        rgba(0, 0, 0, 0.3) 0px 7px 13px -3px,
        rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
    transition: transform var(--hover-duration) var(--hover-ease), filter var(--hover-duration) var(--hover-ease);
}

.featured-project-card:hover {
    transform: translateY(var(--hover-lift-card));
    filter: brightness(1.03);
}

.featured-project-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    min-height: 350px;
}

.featured-project-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
}

.featured-project-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
    font-family: var(--font-family);
    color: var(--fg);
    line-height: 1.3;
}

.featured-project-description {
    margin: 0;
    font-size: 1rem;
    font-family: var(--font-family);
    color: var(--fg);
    opacity: 0.9;
    line-height: 1.6;
}

.featured-project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.project-meta-tag {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: var(--acc-card);
    color: var(--fg);
    font-family: var(--font-family);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--acc-card);
}

.featured-project-meta-section {
    margin-bottom: 2rem;
}

.featured-project-content .default-button {
    align-self: flex-start;
}

.more-projects-cta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    text-align: center;
    padding: 1.5rem 2rem;
}

.more-projects-cta h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    font-family: var(--font-family);
    color: var(--fg);
}

.more-projects-cta p {
    margin: 0;
    font-family: var(--font-family);
    color: var(--fg);
    opacity: 0.85;
    max-width: 400px;
}

@media (max-width: 1024px) {
    .featured-project-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .featured-project-image {
        min-height: 300px;
    }

    .featured-project-content {
        padding: 1.5rem;
    }

    .featured-project-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .featured-projects-content {
        gap: 2rem;
    }

    .featured-project-card {
        gap: 1rem;
        border-radius: 1rem;
    }

    .featured-project-image {
        min-height: 250px;
    }

    .featured-project-content {
        padding: 1.25rem;
        gap: 1.25rem;
    }

    .featured-project-title {
        font-size: 1.3rem;
    }

    .featured-project-description {
        font-size: 0.95rem;
    }

    .project-meta-tag {
        font-size: 0.8rem;
        padding: 0.35rem 0.7rem;
    }
}

@media (max-width: 480px) {
    .featured-projects-content {
        gap: 1.5rem;
    }

    .featured-project-card {
        border-radius: 0.75rem;
        gap: 0.75rem;
    }

    .featured-project-image {
        min-height: 200px;
    }

    .featured-project-content {
        padding: 1rem;
        gap: 1rem;
    }

    .featured-project-title {
        font-size: 1.1rem;
    }

    .featured-project-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .project-meta-tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .featured-project-content .default-button {
        align-self: center;
    }

    .more-projects-cta {
        padding: 1.5rem;
    }

    .more-projects-cta h3 {
        font-size: 1.2rem;
    }
}