﻿
.basma-story {
    position: relative;
    padding: 100px 20px;
    background:
        linear-gradient(
            rgba(248, 250, 248, 0.96),
            rgba(248, 250, 248, 0.96)
        ),
        url("images/story-bg.jpg") center/cover no-repeat;
    overflow: hidden;
}

.story-container {
    max-width: 1150px;
    margin: auto;
}

/* Header */

.story-header {
    max-width: 760px;
    margin: 0 auto 75px;
    text-align: center;
}

.story-label {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #b08a45;
}

.story-header h2 {
    margin: 0;
    color: #173f35;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.2;
    font-weight: 700;
}

.story-header h2 span {
    color: #b08a45;
}

.story-line {
    width: 65px;
    height: 3px;
    margin: 22px auto;
    background: #b08a45;
    border-radius: 10px;
}

.story-header p {
    margin: 0;
    color: #66736e;
    font-size: 16px;
    line-height: 1.8;
}


/* Timeline */

.story-timeline {
    position: relative;
    max-width: 950px;
    margin: auto;
}

.story-timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent,
        #c9a76a,
        #c9a76a,
        transparent
    );
    transform: translateX(-50%);
}


/* Timeline Item */

.story-item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    margin-bottom: 55px;
    align-items: center;
}

.story-item:nth-child(even) .story-content {
    grid-column: 2;
}

.story-item:nth-child(even) .story-year {
    grid-column: 1;
    grid-row: 1;
    text-align: right;
}

.story-item:nth-child(odd) .story-content {
    grid-column: 1;
}

.story-item:nth-child(odd) .story-year {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
}


/* Year */

.story-year {
    position: relative;
    font-size: 20px;
    font-weight: 700;
    color: #b08a45;
}

.story-year::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;
    background: #fff;
    border: 4px solid #b08a45;
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 3;
}

.story-item:nth-child(odd) .story-year::after {
    left: -78px;
}

.story-item:nth-child(even) .story-year::after {
    right: -78px;
}


/* Content Card */

.story-content {
    position: relative;
    padding: 30px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(176, 138, 69, 0.16);
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(20, 55, 45, 0.07);
    transition: all 0.3s ease;
}

.story-content:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(20, 55, 45, 0.12);
    border-color: rgba(176, 138, 69, 0.35);
}

.story-content h3 {
    margin: 0 0 12px;
    color: #173f35;
    font-size: 23px;
    font-weight: 700;
}

.story-content p {
    margin: 0;
    color: #66736e;
    font-size: 15px;
    line-height: 1.85;
}

.story-content strong {
    color: #294f44;
}

.story-tag {
    display: inline-block;
    margin-top: 18px;
    padding: 7px 13px;
    border-radius: 30px;
    background: #f5efe4;
    color: #9a7439;
    font-size: 12px;
    font-weight: 700;
}


/* Current Section */

.story-current .story-content {
    background: linear-gradient(
        135deg,
        #173f35,
        #24584b
    );
    border: none;
}

.story-current .story-content h3,
.story-current .story-content p,
.story-current .story-content strong {
    color: #fff;
}

.story-current .story-content p {
    color: rgba(255,255,255,0.84);
}

.story-current .story-tag {
    background: rgba(255,255,255,0.12);
    color: #e5c987;
}

.story-current .story-year {
    color: #173f35;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

    .basma-story {
        padding: 70px 18px;
    }

    .story-header {
        margin-bottom: 55px;
    }

    .story-timeline::before {
        left: 12px;
        transform: none;
    }

    .story-item,
    .story-item:nth-child(even),
    .story-item:nth-child(odd) {
        display: block;
        margin-bottom: 40px;
        padding-left: 40px;
    }

    .story-year,
    .story-item:nth-child(even) .story-year,
    .story-item:nth-child(odd) .story-year {
        margin-bottom: 12px;
        text-align: left;
    }

    .story-year::after,
    .story-item:nth-child(even) .story-year::after,
    .story-item:nth-child(odd) .story-year::after {
        left: -35px;
        right: auto;
        width: 12px;
        height: 12px;
    }

    .story-content,
    .story-item:nth-child(even) .story-content,
    .story-item:nth-child(odd) .story-content {
        display: block;
        padding: 24px;
    }

    .story-content h3 {
        font-size: 20px;
    }

    .story-content p {
        font-size: 14px;
        line-height: 1.75;
    }
}

@media (max-width: 480px) {

    .story-header h2 {
        font-size: 32px;
    }

    .story-header p {
        font-size: 14px;
    }

    .story-content {
        padding: 20px;
    }

    .story-year {
        font-size: 18px;
    }
}
