/* Alt background section */
.alt-section {
    background-color: #dffaf4;
    padding: 60px 30px;
    border-top: 3px solid #000;
    margin-top: 60px;
}

.alt-section-2 {
    background-color: #fff;
    padding: 60px 30px;
    border-top: 3px solid #000;
    margin-top: 60px;
}

@keyframes slide-in {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 60px;
        opacity: 1;
    }
}

/* Before and After */

.swiper {
    --swiper-theme-color: var(--main-color);
}

/* Container around both carousels */
.before-after {
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding: 60px 20px;
}

/* Before and After */

.carousel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gm-old-swiper {
    padding-bottom: 200px;
}

.gm-old-swiper,
.gm-new-swiper {
    width: 100%;
    max-width: 1200px;
    padding: 20px 0;
    position: relative;
    /*  background-color: #dffaf4; */

}

.gm-old-swiper .swiper-slide,
.gm-new-swiper .swiper-slide {
    display: flex;
    min-height: 400px;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

/* .gm-old-swiper .swiper-slide:hover,
.gm-new-swiper .swiper-slide:hover {
    transform: translate(3px, 3px);
} */

.gm-old-swiper img,
.gm-new-swiper img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    max-width: 700px;
    max-height: 400px;
}

/* Override Swiper navigation for spacing */
.swiper-button-prev,
.swiper-button-next {
    color: #000;
}

.swiper-pagination-bullet-active {
    background-color: var(--main-color);
}

/* Impact & Outcome */
.story-map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.story-card {
/*     background-color: #fff;*/
    transition: transform 0.3s ease;
}

.story-content {
    padding: 10px;
    border: 3px solid #000;
    background-color: #fff;
    box-shadow: -3px -3px 0px #000;
    min-height: 160px;
}

.story-content h3 {
    font-family: var(--header-font);
    color: #000;
    font-size: 1.2em;
    margin: 0 0 10px;
}

.story-content p {
    font-size: 1em;
    line-height: 1.6em;
    color: #333;
}

/* Problem Space */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.problem-item {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    gap: 20px;
    border: 3px solid #000;
    box-shadow: -3px -3px 0px #000;
    transition: transform 0.3s ease;
    background-color: #fefefe;
}

.problem-item:hover {
    transform: translate(3px, 3px);
}

.problem-icon img {
    min-width: 50px;
    height: 50px;
    border-radius: 0%;
    padding: 8px;
    object-fit: contain;
}

.problem-details h3 {
    margin: 0 0 10px 0;
    font-family: var(--header-font);
    font-size: 1.1em;
}

.problem-details ul {
    margin: 0;
    padding-left: 20px;
    margin-top: 10px;
    font-size: 1em;
    line-height: 1.5em;
    color: #333;
}

/* Sprint Timeline */
.sprint-timeline.clean-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.sprint-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.sprint-number {
    min-width: 36px;
    height: 36px;
    background-color: var(--main-color);
    color: #fff;
    font-weight: bold;
    /*  border-radius: 50%;   */
    text-align: center;
    line-height: 36px;
    font-family: var(--header-font);
    font-size: 1.2em;
    border: 3px solid #000;
    box-shadow: -3px -3px 0px #000;
    flex-shrink: 0;
}

.sprint-details h3 {
    margin: 0 0 8px 0;
    font-family: var(--header-font);
    font-size: 1.1em;
}

.sprint-details p {
    margin: 0;
    font-size: 1em;
    line-height: 1.6em;
    color: #333;
}

/* Research Highlights */
.challenge-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.challenge-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    border: 3px solid #000;
    background-color: #fff;
    box-shadow: -3px -3px 0px #000;
    transition: transform 0.3s ease;
}

.challenge-item:hover {
    transform: translate(3px, 3px);
}

.challenge-label {
    font-size: 1.5em;
    font-family: var(--header-font);
    color: var(--main-color);
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}

.challenge-body h3 {
    font-family: var(--header-font);
    margin: 0 0 10px;
    font-size: 1.2em;
    color: #000;
}

.challenge-body ul {
    font-size: 1em;
    color: #333;
    line-height: 1.5em;
}

.research-context {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 3px solid #000;
}

.research-context h3,
.research-context h4 {
    font-family: var(--header-font);
    margin-bottom: 10px;
}

.research-context ul {
    margin-top: 0;
    padding-left: 20px;
    color: #333;
}

.research-context p {
    margin-bottom: 20px;
    color: #333;
}

.artifact-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.artifact-item {
    /* background-color: #fff;
    border: 3px solid #000;
    box-shadow: -3px -3px 0 #000;
    transition: transform 0.3s ease; */
    padding: 20px;
    text-align: left;
}

/* .artifact-item:hover {
    transform: translate(3px, 3px);
}*/

.artifact-image {
    width: 100%;
    object-fit: fill;
    height: 250px;
    background-color: #fff;
    border: 3px solid #000;
    box-shadow: -3px -3px 0 #000;
    transition: transform 0.3s ease;
    margin-bottom: 15px;
}

.artifact-image:hover {
    transform: translate(3px, 3px);
}

.artifact-content {
    padding: 10px;
    background-color: #dffaf4;
}

.artifact-content h3 {
    font-family: var(--header-font);
    color: var(--main-color);
    font-size: 1.2em;
    margin: 0 0 10px;
}

.artifact-caption {
    margin: 0;
    font-size: 1em;
    color: #333;
    line-height: 1.4;
    min-height: 150px;
}

/* UX Design Solutions (Two Column Layout) */

.design {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.design-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 20px;
    background-color: #fff;
    border: 3px solid #000;
    box-shadow: -3px -3px 0px #000;
    transition: transform 0.3s ease;
}

.design-item:hover {
    transform: translate(3px, 3px);
}

.design-number {
    min-width: 36px;
    height: 36px;
    background-color: var(--main-color);
    color: #fff;
    font-weight: bold;
    text-align: center;
    line-height: 36px;
    font-family: var(--header-font);
    font-size: 1.2em;
    flex-shrink: 0;
}

.design-details h3 {
    margin: 0 0 10px 0;
    font-family: var(--header-font);
    font-size: 1.1em;
}

.design-details ul {
    margin: 0;
    padding-left: 20px;
    margin-top: 10px;
    font-size: 1em;
    line-height: 1.5em;
    color: #333;
}

/* Reflection */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.process-step {
    position: relative;
    border-left: 4px solid var(--main-color);
    padding-left: 20px;
    padding-bottom: 10px;
}

.step-content h3 {
    font-family: var(--header-font);
    font-size: 0.9em;
    text-transform: uppercase;
    background-color: var(--main-color);
    color: #fff;
    display: inline-block;
    padding: 4px 10px;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.step-content ul {
    padding-left: 20px;
    margin-top: 10px;
    line-height: 1.5em;
}

.step-content li {
    margin-bottom: 8px;
    color: #333;
}

.step-content p {
    margin-top: 10px;
    font-size: 1em;
    line-height: 1.5em;
    color: #333;
}

/* Lessons Learned Block 
.lessons-learned {
    padding: 60px 30px;
    background-color: #fefefe;
}

.lessons-learned-quote {
    max-width: 800px;
    margin: 0 auto 50px;
} */

/* Lessons Learned */
.learning-columns {
    display: grid;
    /* grid-template-columns: repeat(2, 1fr); */

    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.learning-point {
    background-color: #fff;
    border: 3px solid #000;
    box-shadow: -3px -3px 0px #000;
    padding: 25px;
    transition: transform 0.3s ease;
}

.learning-point:hover {
    transform: translate(3px, 3px);
}

.learning-point h3 {
    font-family: var(--header-font);
    color: #000;
    font-size: 1.2em;
    margin-top: 0;
    margin-bottom: 10px;
}

.learning-point p {
    font-size: 1em;
    line-height: 1.6em;
    color: #333;
}

/* Team */
.team-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.team-columns .artifact-image {
    object-fit: cover;
}

.team-point {
    background-color: #fff;
    border: 3px solid #000;
    height: 250px;
    padding: 0px 25px;
    box-shadow: -3px -3px 0px #000;
    transition: transform 0.3s ease;
}

.team-point li {
    line-height: 1.5em;
}

.team-point li a {
    text-decoration: underline;
    color: var(--main-color);
}

.team-point li a:hover {
    background-color: #d4f8ef;
    font-weight: 800;
}

.team-point:hover {
    transform: translate(3px, 3px);
}

@media (max-width: 768px) {
    .design {
        grid-template-columns: 1fr;
    }

    .design-item {
        flex-direction: column;
        align-items: left;
        text-align: left;
    }

    .design-number {
        margin-bottom: 15px;
    }

    .story-card {
        max-width: 90%;
    }

    .gm-old-swiper img,
    .gm-new-swiper img {
        max-width: 90%;
        max-height: 300px;
    }

    /* Problem Space */
    .problem-grid {
        grid-template-columns: 1fr;
    }

    /* Responsive spacing */
    .info-meta {
        font-size: 0.85em;
    }

    /* Development Process*/
    .step-content h3 {
        font-size: 1.2em;
    }

    /* Challenges */
    .challenge-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .challenge-label {
        margin-bottom: 10px;
        width: auto;
    }

    .learning-point h3 {
        font-size: 1.1em;
    }

    /* UX design */
    .design-details ul {
        text-align: left;
    }
}