﻿/* =========================================================
   OUR JOURNEY SECTION
   Fully responsive: Desktop / Tablet / Mobile
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #111111;
}

/* =========================================================
   SECTION
   ========================================================= */

.our-journey-section {
    width: 100%;
    padding: -22px 20px 190px;
    background: #ffffff;
    overflow: visible;
}

.journey-container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
}

/* =========================================================
   HEADING
   ========================================================= */

.journey-header {
    text-align: center;
    margin-bottom: 70px;
}

    .journey-header h2 {
        position: relative;
        display: inline-block;
        margin: 0;
        padding: 0 55px;
        color: #063d2d;
        font-size: clamp(24px, 2.2vw, 32px);
        font-weight: 800;
        line-height: 1.2;
        letter-spacing: 0.4px;
    }

        .journey-header h2::before,
        .journey-header h2::after {
            content: "";
            position: absolute;
            top: 50%;
            width: 42px;
            height: 2px;
            background: #c88a25;
            transform: translateY(-50%);
        }

        .journey-header h2::before {
            left: 0;
        }

        .journey-header h2::after {
            right: 0;
        }

    .journey-header p {
        margin: 8px 0 0;
        color: #111111;
        font-size: clamp(12px, 1.1vw, 16px);
        font-weight: 500;
        line-height: 1.4;
    }

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

.journey-timeline {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: start;
    padding: 0 10px;
    padding-bottom: 165px;
}

    /* Main horizontal gold line */
    .journey-timeline::before {
        content: "";
        position: absolute;
        top: 28px;
        left: 0;
        right: 0;
        height: 3px;
        background: #c88a25;
        z-index: 1;
    }

    /* Small endpoint circles */
    .journey-timeline::after {
        content: "";
        position: absolute;
        top: 24px;
        left: 0;
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background: #c88a25;
        box-shadow: calc(100% - 9px) 0 0 #c88a25;
        pointer-events: none;
    }

/* =========================================================
   JOURNEY ITEM
   ========================================================= */

.journey-item {
    position: relative;
    z-index: 2;
    min-width: 0;
    text-align: center;
    padding: 0 10px;
}

/* =========================================================
   ICON CIRCLE
   ========================================================= */

.journey-icon {
    position: relative;
    z-index: 5;
    width: 58px;
    height: 58px;
    margin: 0 auto 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #063d2d;
    border: 2px solid #c88a25;
    box-shadow: 0 0 0 3px #ffffff, 0 0 0 5px #c88a25;
    color: #ffffff;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

    .journey-icon i {
        font-size: 21px;
        line-height: 1;
    }

.large-mosque-icon {
    font-size: 21px;
}

/* =========================================================
   YEAR
   ========================================================= */

.journey-content h3 {
    margin: 0 0 7px;
    color: #111111;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
}

/* =========================================================
   DESCRIPTION
   ========================================================= */

.journey-content p {
    margin: 0 auto;
    max-width: 190px;
    color: #555555;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.55;
    text-align: center;
}

    .journey-content p strong {
        color: #063d2d;
        font-weight: 800;
    }

.journey-founder {
    white-space: nowrap;
}

/* =========================================================
   2026 MILESTONE
   The vertical line is deliberately independent from the
   content so it cannot be hidden behind the 2000 text.
   ========================================================= */

.journey-award-anchor {
    z-index: 6;
}

/* Award wrapper */
.journey-award {
    position: absolute;
    top: 29px;
    left: 50%;
    width: 190px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 20;
    pointer-events: none;
}

/* LONG VERTICAL GOLD LINE
   Starts exactly at the horizontal timeline */
.award-connector {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 185px;
    transform: translateX(-50%);
    background: #c88a25;
    z-index: 1;
}

/* Trophy */
.award-icon {
    position: relative;
    z-index: 4;
    width: 58px;
    height: 58px;
    margin-top: 185px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #063d2d;
    border: 2px solid #c88a25;
    box-shadow: 0 0 0 3px #ffffff, 0 0 0 5px #c88a25;
    color: #c88a25;
}

    .award-icon i {
        font-size: 23px;
    }

/* Award card */
.award-card {
    position: relative;
    z-index: 4;
    width: 190px;
    margin-top: 12px;
    padding: 12px 10px 14px;
    text-align: center;
    background: #ffffff;
    border: 1px solid rgba(200, 138, 37, 0.45);
    border-radius: 11px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.award-year {
    display: block;
    margin-bottom: 3px;
    color: #063d2d;
    font-size: 13px;
    font-weight: 800;
}

.award-title {
    display: block;
    margin-bottom: 5px;
    color: #c88a25;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.award-card p {
    margin: 0;
    color: #222222;
    font-size: 10px;
    line-height: 1.45;
}

    .award-card p strong {
        color: #111111;
    }

/* =========================================================
   HOVER
   ========================================================= */

.journey-item:hover .journey-icon {
    background: #c88a25;
    color: #ffffff;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 0 0 3px #ffffff, 0 0 0 5px #063d2d;
}

.journey-item:hover .journey-content h3 {
    color: #c88a25;
}

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

@media (max-width: 1100px) {

    .our-journey-section {
        padding-left: 15px;
        padding-right: 15px;
        padding-bottom: 180px;
    }

    .journey-header {
        margin-bottom: 60px;
    }

    .journey-timeline {
        padding-left: 5px;
        padding-right: 5px;
    }

    .journey-icon {
        width: 54px;
        height: 54px;
    }

        .journey-icon i {
            font-size: 19px;
        }

    .journey-content h3 {
        font-size: 13px;
    }

    .journey-content p {
        max-width: 155px;
        font-size: 10px;
    }

    .award-connector {
        height: 165px;
    }

    .award-icon {
        margin-top: 165px;
        width: 54px;
        height: 54px;
    }

    .award-card {
        width: 175px;
    }
}

/* =========================================================
   TABLET / SMALL LAPTOP
   ========================================================= */

@media (max-width: 850px) {

    .our-journey-section {
        padding-bottom: 60px;
    }

    .journey-header {
        margin-bottom: 55px;
    }

    .journey-timeline {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 45px;
        padding-bottom: 0;
    }

        /* First-row horizontal line */
        .journey-timeline::before {
            top: 27px;
            left: 6%;
            right: 6%;
        }

        .journey-timeline::after {
            display: none;
        }

    /* Put award into normal grid flow on smaller screens */
    .journey-award {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        margin-top: 25px;
        pointer-events: none;
    }

    .award-connector {
        top: -25px;
        left: 50%;
        height: 25px;
        width: 2px;
        transform: translateX(-50%);
    }

    .award-icon {
        width: 52px;
        height: 52px;
        margin-top: 0;
    }

    .award-card {
        width: min(190px, 90%);
        margin-top: 10px;
    }
}

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

@media (max-width: 600px) {

    .our-journey-section {
        padding: 20px 14px 45px;
        overflow: hidden;
    }

    .journey-header {
        margin-bottom: 40px;
    }

        .journey-header h2 {
            padding: 0 34px;
            font-size: 22px;
        }

            .journey-header h2::before,
            .journey-header h2::after {
                width: 24px;
            }

        .journey-header p {
            font-size: 11px;
        }

    /* Vertical mobile timeline */
    .journey-timeline {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0 0 0 7px;
    }

        .journey-timeline::before {
            top: 24px;
            bottom: 24px;
            left: 32px;
            right: auto;
            width: 2px;
            height: auto;
        }

    .journey-item {
        display: grid;
        grid-template-columns: 64px 1fr;
        align-items: start;
        text-align: left;
        padding: 0;
        margin-bottom: 30px;
    }

        .journey-item:last-child {
            margin-bottom: 0;
        }

    .journey-icon {
        width: 48px;
        height: 48px;
        margin: 0;
        justify-self: center;
        box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #c88a25;
    }

        .journey-icon i {
            font-size: 17px;
        }

    .journey-content {
        padding: 1px 8px 0 12px;
        text-align: left;
    }

        .journey-content h3 {
            margin-bottom: 5px;
            font-size: 14px;
            text-align: left;
        }

        .journey-content p {
            max-width: none;
            margin: 0;
            font-size: 11px;
            line-height: 1.55;
            text-align: left;
        }

    /* Award follows the 2000 milestone on mobile */
    .journey-award-anchor {
        display: grid;
    }

    .journey-award {
        grid-column: 1 / -1;
        position: relative;
        width: 100%;
        margin-top: 28px;
        padding-left: 0;
        display: flex;
        align-items: center;
    }

    /* Connector from the mobile timeline to trophy */
    .award-connector {
        position: absolute;
        top: -28px;
        left: 32px;
        width: 2px;
        height: 28px;
        transform: none;
    }

    .award-icon {
        width: 50px;
        height: 50px;
        margin: 0 auto;
    }

        .award-icon i {
            font-size: 20px;
        }

    .award-card {
        width: min(260px, calc(100vw - 105px));
        margin-top: 10px;
        padding: 11px 9px 13px;
    }

    .award-year {
        font-size: 12px;
    }

    .award-title {
        font-size: 9px;
    }

    .award-card p {
        font-size: 9.5px;
    }
}

/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .our-journey-section {
        padding-left: 10px;
        padding-right: 10px;
    }

    .journey-header h2 {
        font-size: 19px;
        padding: 0 29px;
    }

    .journey-header p {
        font-size: 10px;
    }

    .journey-item {
        grid-template-columns: 58px 1fr;
    }

    .journey-timeline::before {
        left: 29px;
    }

    .journey-icon {
        width: 44px;
        height: 44px;
    }

    .journey-content {
        padding-left: 8px;
    }

        .journey-content h3 {
            font-size: 13px;
        }

        .journey-content p {
            font-size: 10px;
        }

    .award-connector {
        left: 29px;
    }

    .award-icon {
        width: 46px;
        height: 46px;
    }

    .award-card {
        width: min(245px, calc(100vw - 85px));
    }
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .journey-icon {
        transition: none !important;
    }
}
