/* =========================================================
   SHANDIZ HISTORY PAGE
   Completely isolated
   Prefix: sh-history-
   ========================================================= */

.sh-history-page {

    --sh-green: #12635e;
    --sh-green-dark: #0b4945;
    --sh-gold: #d49a32;
    --sh-bg: #f4f6f7;
    --sh-text: #303838;
    --sh-muted: #737b7b;

    width: 100%;

    font-family: "Vazirmatn", Tahoma, sans-serif;

    color: var(--sh-text);

    overflow: hidden;

    box-sizing: border-box;
}


.sh-history-page *,
.sh-history-page *::before,
.sh-history-page *::after {

    box-sizing: border-box;

}


/* =========================================================
   CONTAINER
   ========================================================= */

.sh-history-container {

    width: min(1180px, 92%);

    margin: 0 auto;

}


/* =========================================================
   HERO
   ========================================================= */

.sh-history-hero {

    position: relative;

    min-height: 570px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:

        url("/images/history/hero.jpg")

        center center / cover no-repeat;

}


.sh-history-hero-overlay {

    position: absolute;

    inset: 0;

    background:

        linear-gradient(
            135deg,
            rgba(5,49,46,.94),
            rgba(18,99,94,.58),
            rgba(0,0,0,.28)
        );

}


.sh-history-hero-content {

    position: relative;

    z-index: 2;

    width: min(850px, 90%);

    text-align: center;

    color: white;

}


.sh-history-badge {

    display: inline-block;

    padding: 8px 25px;

    border: 1px solid rgba(255,255,255,.5);

    border-radius: 50px;

    font-size: 13px;

    margin-bottom: 25px;

}


.sh-history-hero-content h1 {

    margin: 0 0 20px;

    font-size: clamp(35px, 6vw, 62px);

    font-weight: 900;

    line-height: 1.3;

}


.sh-history-hero-content p {

    margin: 0;

    font-size: 18px;

    line-height: 2;

    color: rgba(255,255,255,.88);

}


.sh-history-scroll-btn {

    margin-top: 45px;

    padding: 12px 25px;

    display: inline-flex;

    align-items: center;

    gap: 15px;

    background: rgba(255,255,255,.1);

    border: 1px solid rgba(255,255,255,.3);

    color: white;

    border-radius: 50px;

    cursor: pointer;

    font-family: inherit;

    transition: .3s;

}


.sh-history-scroll-btn:hover {

    background: var(--sh-gold);

    border-color: var(--sh-gold);

}


.sh-history-scroll-btn b {

    font-size: 20px;

}


/* =========================================================
   HEADINGS
   ========================================================= */

.sh-history-heading {

    text-align: center;

    margin-bottom: 55px;

}


.sh-history-heading > span {

    display: block;

    color: var(--sh-gold);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 3px;

    margin-bottom: 10px;

}


.sh-history-heading h2 {

    margin: 0;

    color: var(--sh-green);

    font-size: clamp(25px, 4vw, 36px);

    font-weight: 900;

}


.sh-history-heading p {

    margin: 18px 0 0;

    color: var(--sh-muted);

}


.sh-history-line {

    width: 65px;

    height: 3px;

    background: var(--sh-gold);

    border-radius: 10px;

    margin: 17px auto 0;

}


/* =========================================================
   INTRO
   ========================================================= */

.sh-history-intro {

    padding: 100px 0;

    background: white;

}


.sh-history-intro-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 65px;

    align-items: center;

}


.sh-history-intro-text p {

    margin: 0 0 25px;

    color: var(--sh-muted);

    font-size: 16px;

    line-height: 2.35;

}


.sh-history-intro-image {

    position: relative;

    height: 390px;

    overflow: hidden;

    border-radius: 25px;

    box-shadow:
        0 20px 50px rgba(0,0,0,.12);

}


.sh-history-intro-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

}


.sh-history-image-caption {

    position: absolute;

    right: 20px;

    left: 20px;

    bottom: 20px;

    padding: 18px 22px;

    border-radius: 15px;

    background: rgba(0,0,0,.65);

    backdrop-filter: blur(8px);

    color: white;

}


.sh-history-image-caption strong {

    display: block;

    font-size: 19px;

}


.sh-history-image-caption span {

    display: block;

    margin-top: 5px;

    font-size: 12px;

    opacity: .8;

}


/* =========================================================
   FACTS
   ========================================================= */

.sh-history-facts {

    padding: 55px 0;

    background: var(--sh-green);

}


.sh-history-facts-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;

}


.sh-history-fact {

    padding: 25px;

    text-align: center;

    color: white;

    border-left:
        1px solid rgba(255,255,255,.15);

}


.sh-history-fact:last-child {

    border-left: none;

}


.sh-history-fact-icon {

    width: 58px;

    height: 58px;

    margin: 0 auto 15px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: rgba(255,255,255,.12);

    font-size: 25px;

}


.sh-history-fact strong {

    display: block;

    font-size: 17px;

    margin-bottom: 8px;

}


.sh-history-fact span {

    font-size: 12px;

    color: rgba(255,255,255,.7);

    line-height: 1.8;

}


/* =========================================================
   TIMELINE
   ========================================================= */

.sh-history-timeline-section {

    padding: 100px 0;

    background: var(--sh-bg);

}


.sh-history-timeline {

    position: relative;

    max-width: 900px;

    margin: auto;

}


.sh-history-timeline::before {

    content: "";

    position: absolute;

    top: 0;

    bottom: 0;

    right: 34px;

    width: 2px;

    background: #d5dddd;

}


.sh-history-timeline-item {

    position: relative;

    display: flex;

    gap: 30px;

    margin-bottom: 45px;

}


.sh-history-timeline-number {

    position: relative;

    z-index: 2;

    flex: 0 0 70px;

    height: 70px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: var(--sh-green);

    border: 6px solid var(--sh-bg);

    color: white;

    font-weight: 900;

    box-shadow:
        0 5px 20px rgba(18,99,94,.25);

}


.sh-history-timeline-content {

    flex: 1;

    padding: 28px 32px;

    background: white;

    border-radius: 18px;

    border-right: 4px solid var(--sh-gold);

    box-shadow:
        0 10px 30px rgba(0,0,0,.05);

    transition: .3s;

}


.sh-history-timeline-content:hover {

    transform: translateX(-7px);

    box-shadow:
        0 18px 40px rgba(0,0,0,.09);

}


.sh-history-timeline-content > span {

    color: var(--sh-gold);

    font-size: 12px;

    font-weight: bold;

}


.sh-history-timeline-content h3 {

    margin: 9px 0 12px;

    color: var(--sh-green);

    font-size: 21px;

}


.sh-history-timeline-content p {

    margin: 0;

    color: var(--sh-muted);

    font-size: 14px;

    line-height: 2.15;

}


/* =========================================================
   HERITAGE
   ========================================================= */

.sh-history-heritage {

    padding: 100px 0;

    background: white;

}


.sh-history-heritage-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;

}


.sh-history-heritage-card {

    overflow: hidden;

    background: white;

    border-radius: 20px;

    box-shadow:
        0 8px 30px rgba(0,0,0,.07);

    transition: .35s;

}


.sh-history-heritage-card:hover {

    transform: translateY(-8px);

    box-shadow:
        0 18px 45px rgba(0,0,0,.12);

}


.sh-history-heritage-image {

    position: relative;

    height: 240px;

    overflow: hidden;

}


.sh-history-heritage-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    transition: .5s;

}


.sh-history-heritage-card:hover
.sh-history-heritage-image img {

    transform: scale(1.07);

}


.sh-history-heritage-image span {

    position: absolute;

    top: 15px;

    right: 15px;

    width: 38px;

    height: 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: var(--sh-gold);

    color: white;

    font-size: 12px;

    font-weight: bold;

}


.sh-history-heritage-body {

    padding: 25px;

}


.sh-history-heritage-body small {

    color: var(--sh-gold);

    font-weight: bold;

}


.sh-history-heritage-body h3 {

    margin: 8px 0;

    color: var(--sh-green);

    font-size: 20px;

}


.sh-history-heritage-body p {

    margin: 0;

    color: var(--sh-muted);

    line-height: 2;

    font-size: 13px;

}


/* =========================================================
   GALLERY
   ========================================================= */

.sh-history-gallery {

    padding: 100px 0;

    background: var(--sh-bg);

}


.sh-history-gallery-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;

}


.sh-history-gallery-item {

    position: relative;

    height: 260px;

    overflow: hidden;

    border-radius: 16px;

    cursor: pointer;

}


.sh-history-gallery-item img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    transition: .5s;

}


.sh-history-gallery-overlay {

    position: absolute;

    inset: 0;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 10px;

    background: rgba(18,99,94,.78);

    color: white;

    opacity: 0;

    transition: .3s;

}


.sh-history-gallery-item:hover
.sh-history-gallery-overlay {

    opacity: 1;

}


.sh-history-gallery-item:hover img {

    transform: scale(1.08);

}


.sh-history-gallery-overlay span {

    font-size: 13px;

}


.sh-history-gallery-overlay b {

    width: 42px;

    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 1px solid rgba(255,255,255,.6);

    border-radius: 50%;

    font-size: 25px;

    font-weight: normal;

}


/* =========================================================
   QUOTE
   ========================================================= */

.sh-history-quote {

    position: relative;

    min-height: 350px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        url("/images/history/nature.jpg")
        center / cover no-repeat;

}


.sh-history-quote-overlay {

    position: absolute;

    inset: 0;

    background: rgba(6,55,52,.86);

}


.sh-history-quote-content {

    position: relative;

    z-index: 2;

    width: min(800px, 90%);

    text-align: center;

    color: white;

}


.sh-history-quote-mark {

    display: block;

    height: 65px;

    color: var(--sh-gold);

    font-family: Georgia, serif;

    font-size: 75px;

}


.sh-history-quote-content p {

    margin: 10px 0 20px;

    font-size: clamp(20px, 3vw, 30px);

    line-height: 1.9;

    font-weight: bold;

}


.sh-history-quote-content small {

    color: rgba(255,255,255,.7);

}


/* =========================================================
   LIGHTBOX
   ========================================================= */

.sh-history-lightbox {

    position: fixed;

    z-index: 10000;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 40px;

    background: rgba(0,0,0,.92);

    opacity: 0;

    visibility: hidden;

    transition: .3s;

}


.sh-history-lightbox.sh-history-lightbox-active {

    opacity: 1;

    visibility: visible;

}


.sh-history-lightbox-content {

    max-width: 900px;

    max-height: 90vh;

    text-align: center;

}


.sh-history-lightbox-content img {

    max-width: 100%;

    max-height: 75vh;

    object-fit: contain;

    border-radius: 8px;

    display: block;

}


.sh-history-lightbox-content div {

    margin-top: 15px;

    color: white;

    font-size: 14px;

}


.sh-history-lightbox-close,
.sh-history-lightbox-prev,
.sh-history-lightbox-next {

    position: absolute;

    border: none;

    background: rgba(255,255,255,.12);

    color: white;

    cursor: pointer;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    transition: .3s;

}


.sh-history-lightbox-close {

    top: 25px;

    left: 25px;

    width: 48px;

    height: 48px;

    font-size: 30px;

}


.sh-history-lightbox-prev,
.sh-history-lightbox-next {

    top: 50%;

    width: 55px;

    height: 55px;

    font-size: 40px;

    transform: translateY(-50%);

}


.sh-history-lightbox-prev {

    right: 25px;

}


.sh-history-lightbox-next {

    left: 25px;

}


.sh-history-lightbox-close:hover,
.sh-history-lightbox-prev:hover,
.sh-history-lightbox-next:hover {

    background: var(--sh-gold);

}


/* =========================================================
   TOP BUTTON
   ========================================================= */

.sh-history-top {

    position: fixed;

    left: 25px;

    bottom: 25px;

    z-index: 9000;

    width: 48px;

    height: 48px;

    border: none;

    border-radius: 50%;

    background: var(--sh-green);

    color: white;

    font-size: 22px;

    cursor: pointer;

    opacity: 0;

    visibility: hidden;

    transform: translateY(15px);

    transition: .3s;

    box-shadow:
        0 5px 20px rgba(0,0,0,.2);

}


.sh-history-top.sh-history-show {

    opacity: 1;

    visibility: visible;

    transform: translateY(0);

}


.sh-history-top:hover {

    background: var(--sh-green-dark);

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .sh-history-intro-grid {

        grid-template-columns: 1fr;

    }


    .sh-history-facts-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .sh-history-heritage-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .sh-history-gallery-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .sh-history-hero {

        min-height: 450px;

    }


    .sh-history-hero-content h1 {

        font-size: 32px;

    }


    .sh-history-hero-content p {

        font-size: 14px;

    }


    .sh-history-intro,
    .sh-history-timeline-section,
    .sh-history-heritage,
    .sh-history-gallery {

        padding: 65px 0;

    }


    .sh-history-facts-grid {

        grid-template-columns: 1fr;

    }


    .sh-history-fact {

        border-left: none;

        border-bottom:
            1px solid rgba(255,255,255,.12);

    }


    .sh-history-fact:last-child {

        border-bottom: none;

    }


    .sh-history-timeline::before {

        right: 24px;

    }


    .sh-history-timeline-item {

        gap: 15px;

    }


    .sh-history-timeline-number {

        flex: 0 0 50px;

        height: 50px;

        border-width: 4px;

        font-size: 11px;

    }


    .sh-history-timeline-content {

        padding: 20px;

    }


    .sh-history-timeline-content h3 {

        font-size: 17px;

    }


    .sh-history-timeline-content p {

        font-size: 13px;

    }


    .sh-history-heritage-grid {

        grid-template-columns: 1fr;

    }


    .sh-history-gallery-grid {

        grid-template-columns: 1fr 1fr;

        gap: 10px;

    }


    .sh-history-gallery-item {

        height: 180px;

    }


    .sh-history-lightbox {

        padding: 15px;

    }


    .sh-history-lightbox-prev {

        right: 10px;

    }


    .sh-history-lightbox-next {

        left: 10px;

    }

}