/* Intro Section */
.intro-section {
    background-color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.intro-section__inner {
    max-width: 1000px;
    margin: 0 auto;
}

.intro-section__title {
    font-size: 54px;
    font-weight: 900;
    line-height: 1.4;
    color: #1a1a1a;
    margin-bottom: 50px;
}

.intro-section__text {
    font-size: 18px;
    line-height: 2;
    color: #333;
    margin-bottom: 20px;
}

.intro-section__highlight {
    font-size: 18px;
    line-height: 2;
    color: #333;
    margin-top: 60px;
}

.intro-section__image-wrapper {
    margin-top: 80px;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.intro-section__image {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive Intro Section */
@media (max-width: 1024px) {
    .intro-section {
        padding: 80px 20px;
    }

    .intro-section__title {
        font-size: 38px;
        margin-bottom: 40px;
    }

    .intro-section__text {
        font-size: 16px;
    }

    .intro-section__highlight {
        font-size: 16px;
        margin-top: 50px;
    }

    .intro-section__image-wrapper {
        margin-top: 60px;
    }
}

@media (max-width: 768px) {

    .page-hero__image {
        object-position: 60% 50%;
    }

    .intro-section {
        padding: 60px 20px;
    }

    .intro-section__title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .intro-section__text {
        font-size: 15px;
        line-height: 1.9;
    }

    .intro-section__highlight {
        font-size: 15px;
        margin-top: 40px;
    }

    .intro-section__image-wrapper {
        margin-top: 50px;
    }
}

/* Challenge Section */
.challenge-section {
    background-color: #fff;
    padding: 0;
    margin-bottom: 100px;
}

.challenge-section__hero {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

.challenge-section__inner{
    position: relative;
    display: flex;
    max-width: 1250px;
    margin: 0 auto;
}

.challenge-section__sidebar {
    width: 280px;
    background-color: #8b9a3c;
    color: #fff;
    padding: 60px 40px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.challenge-section__sidebar-header{
    margin-bottom: 40px;
    padding: 20px;
    border: 1px solid #000;
    text-align: center;
}

.challenge-section__sidebar-label {
    font-size: 25px;
    letter-spacing: 0.1em;
}

.challenge-section__sidebar-number {
    position: relative;
    left: -10px;
    font-family: 'Oswald', sans-serif;
    font-size: 110px;
    font-weight: 700;
    line-height: 1;
    font-style: italic;
}

.challenge-section__sidebar-title {
    writing-mode: vertical-rl;
    font-weight: bold;
    letter-spacing: 0.15em;
    line-height: 1.2;
}

.challenge-section__sidebar-title-main{
    margin-bottom: 20px;
    font-size: 62px;
}

.challenge-section__sidebar-title-sub{
    position: relative;
    padding: 50px 0;
    font-size: 40px;
    font-weight: normal;
    &::before, &::after {
        content: '';
        position: absolute;
        left: 50%;
        width: 1px;
        height: 40px;
        transform: translateX(-50%);
        background-color: rgba(255,255,255,0.8);
    }
    &::before {
        top: 0;
    }
    &::after {
        bottom: 0;
    }
}

.challenge-section__main {
    flex: 1;
    background-color: #fff;
    padding: 80px 80px 80px;
}

.challenge-section__title {
    font-size: 45px;
    font-weight: bold;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #1a1a1a;
}

.challenge-section__description {
    font-size: 18px;
    line-height: 2;
    color: #333;
    margin-bottom: 50px;
}

.challenge-section__subtitle {
    font-size: 24px;
    font-weight: bold;
    color: #8b9a3c;
    text-align: center;
    padding: 15px 0;
    border-top: 2px solid #8b9a3c;
    border-bottom: 2px solid #8b9a3c;
    margin-bottom: 30px;
}

.challenge-section__items {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.challenge-item {
    display: flex;
    gap: 40px;
    align-items: center;
}

.challenge-item__image {
    width: 280px;
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
}

.challenge-item__content {
    flex: 1;
}

.challenge-item__title {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.challenge-item__text {
    font-size: 18px;
    line-height: 1.9;
    color: #333;
}

/* Color Modifiers */
.challenge-section--green .challenge-section__sidebar {
    background: linear-gradient(to bottom, #697E20 70%, #ffffff 100%);
}

.challenge-section--green .challenge-section__subtitle {
    color: #8b9a3c;
    border-color: #8b9a3c;
}

.challenge-section--green .challenge-section__sidebar-header{
    border-color: #E6FF8E;
    color: #E6FF8E;
}

.challenge-section--brown .challenge-section__sidebar {
    background: linear-gradient(to bottom, #825016 70%, #ffffff 100%);
}

.challenge-section--brown .challenge-section__subtitle {
    color: #8F5A1E;
    border-color: #8F5A1E;
}

.challenge-section--brown .challenge-section__sidebar-header{
    border-color: #FFDEB8;
    color: #FFDEB8;
}

.challenge-section--red .challenge-section__sidebar {
    background: linear-gradient(to bottom, #930909 70%, #ffffff 100%);
}

.challenge-section--red .challenge-section__subtitle {
    color: #AE2727;
    border-color: #AE2727;
}

.challenge-section--red .challenge-section__sidebar-header{
    border-color: #FFC4C4;
    color: #FFC4C4;
}


/* Responsive Challenge Section */
@media (max-width: 1024px) {
    .challenge-section {
        margin-bottom: 80px;
    }

    .challenge-section__hero {
        height: 300px;
    }

    .challenge-section__content {
        margin-top: -80px;
    }

    .challenge-section__sidebar {
        width: 200px;
        padding: 40px 30px;
    }

    .challenge-section__sidebar-label{
        font-size: 18px;
        line-height: 1.3;
        letter-spacing: 0;
    }

    .challenge-section__sidebar-header{
        min-width: 135px;
        padding: 10px 5px;
    }

    .challenge-section__sidebar-number {
        font-size: 70px;
    }

    .challenge-section__sidebar-title {
        font-size: 36px;
    }

    .challenge-section__main {
        padding: 50px 30px 60px 60px;
    }

    .challenge-section__title {
        font-size: 32px;
    }

    .challenge-item{
        align-items: flex-start;
    }

    .challenge-item__title{
        font-size: 24px;
    }

    .challenge-item__image {
        width: 200px;
        height: auto;
    }
}

@media (max-width: 768px) {
    .challenge-section {
        margin-bottom: 90px;
    }

    .challenge-section__hero {
        height: 250px;
    }

    .challenge-section__content {
        flex-direction: column;
        margin-top: 0;
    }

    .challenge-section__inner{
        display: block;
    }

    .challenge-section__sidebar-label{
        font-size: 16px;
    }

    .challenge-section__sidebar {
        width: 100%;
        padding: 30px 20px;
        flex-direction: row;
        justify-content: center;
        gap: 30px;
    }

    .challenge-section__sidebar-number {
        font-size: 60px;
        margin-bottom: 0;
    }

    .challenge-section__sidebar-title {
        writing-mode: horizontal-tb;
        font-size: 28px;
    }

    .challenge-section__sidebar-title > span{
        display: block;
    }

    .challenge-section__sidebar-title-sub{
        padding: 0 50px;
    }

    .challenge-section__sidebar-header{
        min-width: 100px;
        margin-bottom: 0;
    }

    .challenge-section__sidebar-title-sub {
        &::before, &::after {
            top: 50%;
            left: inherit;
            width: 40px;
            height: 1px;
            transform: translateY(-50%);
            background-color: rgba(255, 255, 255, 0.8);
        }
        &::before {
            left: 0;
        }
        &::after {
            right: 0;
        }
    }

    .challenge-section__sidebar-title-sub{
        font-size: 30px;
    }

    .challenge-section__sidebar-title-main{
        margin-bottom: 10px;
        font-size: 50px;
    }

    .challenge-section__main {
        padding: 40px 30px;
    }

    .challenge-section__title {
        font-size: 29px;
        margin-bottom: 20px;
        word-break: auto-phrase;
    }

    .challenge-section__description {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .challenge-section__subtitle {
        font-size: 18px;
        padding: 20px 0;
        margin-bottom: 30px;
    }

    .challenge-section__items {
        gap: 40px;
    }

    .challenge-item__text{
        font-size: 16px;
    }

    .challenge-item {
        flex-direction: column;
        gap: 20px;
    }

    .challenge-item__image {
        width: 100%;
        max-width: 400px;
        height: auto;
        margin: 0 auto;
    }

    .challenge-item__title {
        margin-bottom: 10px;
        font-size: 20px;
    }

    .challenge-section--green .challenge-section__sidebar {
        background: #697E20;
    }

    .challenge-section--brown .challenge-section__sidebar {
        background: #825016;
    }

    .challenge-section--red .challenge-section__sidebar {
        background: #930909;
    }
}

.closing-section {
    background-image: url('../img/work/bg_message.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 120px 20px;
    text-align: center;
    position: relative;
}

.closing-section__inner {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.closing-section__title {
    font-size: 60px;
    font-weight: 900;
    line-height: 1.4;
    color: #1a1a1a;
    margin-bottom: 60px;
    word-break: auto-phrase;
}

.closing-section__text {
    font-size: 20px;
    line-height: 2.2;
    color: #333;
    margin-bottom: 25px;
    word-break: auto-phrase;
}

.closing-section__cta {
    margin-top: 80px;
}

.closing-section__button {
    display: inline-block;
    padding: 25px 60px;
    border: 2px solid #e85d3c;
    color: #e85d3c;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.closing-section__button:hover {
    background-color: #e85d3c;
    color: #fff;
}

.closing-section__button::after {
    content: '→';
    margin-left: 15px;
}

/* Responsive Closing Section */
@media (max-width: 768px) {
    .closing-section {
        padding: 80px 20px;
        background-attachment: scroll;
    }

    .closing-section__title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .closing-section__text {
        font-size: 16px;
        line-height: 2;
    }

    .closing-section__cta {
        margin-top: 60px;
    }

    .closing-section__button {
        padding: 20px 40px;
        font-size: 18px;
    }
}
