/* =========================================
   Shandiz History Page
   Scoped CSS
========================================= */

.shandiz-history-page {
    --shp-green: #12635e;
    --shp-green-dark: #0b4945;
    --shp-gold: #d49a32;
    --shp-gold-light: #edc16b;
    --shp-bg: #f5f7f7;
    --shp-text: #273535;
    --shp-muted: #6c7a79;
    --shp-white: #ffffff;

    direction: rtl;
    font-family: Vazirmatn, Tahoma, Arial, sans-serif;
    color: var(--shp-text);
    background: var(--shp-bg);
    line-height: 2;
    overflow: hidden;
}

.shandiz-history-page *,
.shandiz-history-page *::before,
.shandiz-history-page *::after {
    box-sizing: border-box;
}

.shandiz-history-page a {
    text-decoration: none;
}

.shp-container {
    width: min(1180px, calc(100% - 40px));
    margin: auto;
}


/* HERO */

.shp-hero {
    position: relative;
    min-height: 470px;
    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #0b4945,
            #12635e 55%,
            #1c7770
        );

    overflow: hidden;
}

.shp-hero::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    top: -300px;
    right: -180px;
}

.shp-hero::after {
    content: "";
    position: absolute;
    width: 450px;
    height: 450px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 50%;
    bottom: -260px;
    left: -150px;
}

.shp-hero-content {
    position: relative;
    z-index: 2;
    width: min(850px, calc(100% - 40px));
    text-align: center;
    color: white;
}

.shp-eyebrow {
    display: inline-block;
    color: var(--shp-gold-light);
    font-size: 15px;
    margin-bottom: 8px;
}

.shp-hero h1 {
    margin: 0 0 15px;
    font-size: clamp(30px, 5vw, 52px);
    font-weight: 800;
}

.shp-hero p {
    margin: auto;
    max-width: 720px;
    font-size: 18px;
    color: rgba(255,255,255,.9);
}

.shp-scroll-btn {
    margin-top: 30px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 22px;
    color: white;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50px;
    transition: .3s;
}

.shp-scroll-btn:hover {
    background: white;
    color: var(--shp-green);
}


/* TITLES */

.shp-section-title {
    text-align: center;
    margin-bottom: 55px;
}

.shp-section-title > span {
    display: block;
    color: var(--shp-gold);
    font-size: 14px;
    font-weight: bold;
}

.shp-section-title h2 {
    margin: 5px 0 10px;
    font-size: 30px;
    color: var(--shp-green-dark);
}

.shp-title-line {
    width: 65px;
    height: 3px;
    background: var(--shp-gold);
    margin: auto;
    border-radius: 5px;
}

.shp-section-title.light h2 {
    color: white;
}


/* INTRO */

.shp-intro {
    padding: 90px 0;
    background: white;
}

.shp-intro-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: center;
}

.shp-intro-text p {
    margin: 0 0 18px;
    text-align: justify;
    color: #596665;
}

.shp-fact-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.shp-fact {
    background: var(--shp-bg);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    border-bottom: 3px solid var(--shp-gold);
}

.shp-fact strong {
    display: block;
    color: var(--shp-green);
    font-size: 25px;
}

.shp-fact span {
    display: block;
    font-size: 12px;
    color: var(--shp-muted);
}


/* GEOGRAPHY */

.shp-geography {
    padding: 90px 0;
    background: var(--shp-bg);
}

.shp-geography-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    align-items: stretch;
}

.shp-geography-content {
    background: white;
    padding: 35px;
    border-radius: 20px;
}

.shp-geography-content h3 {
    color: var(--shp-green);
    margin-top: 0;
}

.shp-geography-content p {
    color: #596665;
    text-align: justify;
}

.shp-location-list {
    margin-top: 25px;
    display: grid;
    gap: 12px;
}

.shp-location-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f4f7f6;
    padding: 12px 16px;
    border-radius: 12px;
}

.shp-location-item i {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: var(--shp-green);
    color: white;
    border-radius: 50%;
}

.shp-location-item strong,
.shp-location-item span {
    display: block;
}

.shp-location-item strong {
    font-size: 13px;
}

.shp-location-item span {
    color: var(--shp-muted);
    font-size: 13px;
}


/* MAP */

.shp-map-card {
    min-height: 450px;
    border-radius: 20px;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            #dfe9e6,
            #edf2f1
        );
    position: relative;
}

.shp-map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 450px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    background-image:
        linear-gradient(
            30deg,
            rgba(18,99,94,.05) 12%,
            transparent 12.5%,
            transparent 87%,
            rgba(18,99,94,.05) 87.5%
        );
    background-size: 45px 45px;
}

.shp-map-icon {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    display: grid;
    place-items: center;

    background: var(--shp-green);
    color: white;
    font-size: 30px;

    box-shadow: 0 15px 30px rgba(18,99,94,.2);
}

.shp-map-placeholder h3 {
    margin: 15px 0 0;
    color: var(--shp-green-dark);
    font-size: 28px;
}

.shp-map-placeholder p {
    margin: 0;
    color: var(--shp-muted);
}

.shp-map-placeholder span {
    margin-top: 8px;
    font-size: 12px;
    color: #778381;
}


/* NEIGHBORS */

.shp-neighbors {
    margin-top: 45px;
}

.shp-neighbors h3 {
    text-align: center;
    color: var(--shp-green-dark);
}

.shp-neighbor-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.shp-neighbor {
    padding: 20px;
    background: white;
    border-radius: 15px;
    text-align: center;
}

.shp-neighbor i {
    display: block;
    color: var(--shp-gold);
    font-size: 20px;
}

.shp-neighbor strong,
.shp-neighbor span {
    display: block;
}

.shp-neighbor strong {
    margin-top: 5px;
}

.shp-neighbor span {
    font-size: 13px;
    color: var(--shp-muted);
}


/* NATURE */

.shp-nature {
    padding: 90px 0;
    background: var(--shp-green-dark);
}

.shp-nature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.shp-nature-card {
    padding: 35px 25px;
    text-align: center;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 18px;
    color: white;
    transition: .3s;
}

.shp-nature-card:hover {
    transform: translateY(-7px);
    background: rgba(255,255,255,.06);
}

.shp-nature-icon {
    width: 65px;
    height: 65px;
    margin: auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--shp-gold);
    color: white;
    font-size: 25px;
}

.shp-nature-card h3 {
    margin: 15px 0 8px;
}

.shp-nature-card p {
    margin: 0;
    color: rgba(255,255,255,.75);
    font-size: 14px;
}


/* HISTORY */

.shp-history {
    padding: 90px 0;
    background: white;
}

.shp-history-intro {
    max-width: 850px;
    margin: 0 auto 60px;
    text-align: center;
    color: var(--shp-muted);
}


/* TIMELINE */

.shp-timeline {
    position: relative;
    max-width: 900px;
    margin: auto;
}

.shp-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 25px;
    width: 2px;
    background: #dce5e3;
}

.shp-timeline-item {
    position: relative;
    padding-right: 75px;
    margin-bottom: 45px;
}

.shp-timeline-dot {
    position: absolute;
    right: 0;
    top: 0;

    width: 52px;
    height: 52px;

    border-radius: 50%;

    background: var(--shp-green);
    color: white;

    display: grid;
    place-items: center;

    font-weight: bold;

    border: 5px solid white;
    box-shadow: 0 0 0 2px var(--shp-green);
}

.shp-timeline-content {
    padding: 25px;
    background: #f5f7f7;
    border-radius: 16px;
    border-right: 4px solid var(--shp-gold);
}

.shp-timeline-content span {
    color: var(--shp-gold);
    font-size: 13px;
    font-weight: bold;
}

.shp-timeline-content h3 {
    margin: 3px 0 8px;
    color: var(--shp-green-dark);
}

.shp-timeline-content p {
    margin: 0;
    color: #657170;
    font-size: 14px;
    text-align: justify;
}


/* NAME */

.shp-name {
    padding: 70px 0;
    background: #f1f5f4;
}

.shp-name-box {
    display: flex;
    align-items: center;
    gap: 30px;

    background: white;
    padding: 40px;

    border-radius: 22px;
    border-right: 5px solid var(--shp-gold);
}

.shp-name-icon {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;

    display: grid;
    place-items: center;

    border-radius: 20px;
    background: var(--shp-green);
    color: white;
    font-size: 30px;
}

.shp-name-content span {
    color: var(--shp-gold);
    font-size: 13px;
}

.shp-name-content h2 {
    margin: 0 0 5px;
    color: var(--shp-green-dark);
}

.shp-name-content p {
    margin: 0;
    color: var(--shp-muted);
}


/* IDENTITY */

.shp-identity {
    padding: 90px 0;
    background: white;
}

.shp-identity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.shp-identity-grid > div {
    padding: 30px;
    text-align: center;
    border: 1px solid #e5ebea;
    border-radius: 18px;
    transition: .3s;
}

.shp-identity-grid > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,.07);
}

.shp-identity-grid i {
    font-size: 30px;
    color: var(--shp-gold);
}

.shp-identity-grid h3 {
    color: var(--shp-green-dark);
}

.shp-identity-grid p {
    color: var(--shp-muted);
    font-size: 14px;
}


/* BACK TOP */

.shp-back-top {
    position: fixed;
    bottom: 25px;
    left: 25px;

    width: 45px;
    height: 45px;

    border: none;
    border-radius: 50%;

    background: var(--shp-green);
    color: white;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transition: .3s;
    z-index: 9999;
}

.shp-back-top.show {
    opacity: 1;
    visibility: visible;
}

.shp-back-top:hover {
    background: var(--shp-gold);
}


/* RESPONSIVE */

@media (max-width: 900px) {

    .shp-intro-grid,
    .shp-geography-grid {
        grid-template-columns: 1fr;
    }

    .shp-neighbor-grid {
        grid-template-columns: 1fr 1fr;
    }

    .shp-nature-grid,
    .shp-identity-grid {
        grid-template-columns: 1fr;
    }

    .shp-map-card {
        min-height: 350px;
    }

    .shp-map-placeholder {
        min-height: 350px;
    }
}


@media (max-width: 600px) {

    .shp-container {
        width: min(100% - 25px, 1180px);
    }

    .shp-hero {
        min-height: 430px;
    }

    .shp-hero h1 {
        font-size: 30px;
    }

    .shp-hero p {
        font-size: 15px;
    }

    .shp-intro,
    .shp-geography,
    .shp-history,
    .shp-identity,
    .shp-nature {
        padding: 60px 0;
    }

    .shp-section-title {
        margin-bottom: 35px;
    }

    .shp-section-title h2 {
        font-size: 24px;
    }

    .shp-fact-box {
        grid-template-columns: 1fr 1fr;
    }

    .shp-neighbor-grid {
        grid-template-columns: 1fr;
    }

    .shp-name-box {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }

    .shp-timeline-item {
        padding-right: 65px;
    }

    .shp-timeline::before {
        right: 20px;
    }

    .shp-timeline-dot {
        width: 42px;
        height: 42px;
    }

}