﻿/*====================================================
            LEGACY PAGE CSS - PART 1
        Hero • Breadcrumb • Journey • Timeline
====================================================*/

:root {
    --primary: #0d47a1;
    --secondary: #1565c0;
    --accent: #ffc107;
    --success: #2e7d32;
    --white: #ffffff;
    --light: #f8fafc;
    --dark: #1f2937;
    --text: #555555;
    --border: #e8edf5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins',sans-serif;
    background: #fff;
    color: var(--text);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1300px;
    margin: auto;
}

/*====================================
        SECTION HEADING
====================================*/

.section-heading {
    text-align: center;
    margin-bottom: 70px;
}

    .section-heading span {
        color: var(--secondary);
        font-size: 15px;
        font-weight: 700;
        letter-spacing: 2px;
        text-transform: uppercase;
        display: block;
        margin-bottom: 15px;
    }

    .section-heading h2 {
        font-size: 48px;
        color: var(--dark);
        margin-bottom: 18px;
    }

    .section-heading p {
        width: 70%;
        margin: auto;
        line-height: 1.9;
        font-size: 17px;
    }

/*====================================
            HERO
====================================*/

.page-banner {
    position: relative;
    height: 420px;
    background: linear-gradient(rgba(8,35,82,.75), rgba(8,35,82,.75)), url('../images/page-banner.jpeg') center center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-overlay {
    position: absolute;
    inset: 0;
}

.page-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
}

    .page-content span {
        display: inline-block;
        background: rgba(255,255,255,.18);
        padding: 10px 24px;
        border-radius: 50px;
        margin-bottom: 20px;
        letter-spacing: 2px;
        text-transform: uppercase;
    }

    .page-content h1 {
        font-size: 60px;
        margin-bottom: 20px;
    }

    .page-content p {
        font-size: 20px;
    }

/*====================================
        BREADCRUMB
====================================*/

.breadcrumb-section {
    background: #fff;
    padding: 18px 0;
    border-bottom: 1px solid #eee;
}

    .breadcrumb-section a {
        color: var(--primary);
        text-decoration: none;
        font-weight: 600;
    }

    .breadcrumb-section span {
        margin: 0 10px;
    }

    .breadcrumb-section strong {
        color: #666;
    }

/*====================================
        LEGACY INTRO
====================================*/

.legacy-intro {
    padding: 100px 0;
}

.legacy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.legacy-image {
    position: relative;
}

    .legacy-image img {
        border-radius: 20px;
        box-shadow: 0 20px 45px rgba(0,0,0,.12);
    }

.year-box {
    position: absolute;
    bottom: 30px;
    right: -25px;
    width: 220px;
    background: #0d47a1;
    color: #fff;
    padding: 28px;
    text-align: center;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0,0,0,.15);
}

    .year-box h2 {
        font-size: 48px;
    }

    .year-box span {
        display: block;
        margin-top: 8px;
        line-height: 1.6;
    }

.section-tag {
    display: inline-block;
    color: var(--success);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.legacy-content h2 {
    font-size: 48px;
    color: #222;
    line-height: 1.3;
    margin-bottom: 25px;
}

.legacy-content p {
    font-size: 17px;
    line-height: 2;
    margin-bottom: 22px;
    text-align: justify;
}

.legacy-highlights {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 18px;
    margin-top: 35px;
}

    .legacy-highlights div {
        background: #fff;
        border: 1px solid var(--border);
        padding: 16px;
        border-radius: 10px;
        transition: .35s;
    }

        .legacy-highlights div:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 25px rgba(0,0,0,.08);
        }

    .legacy-highlights i {
        color: var(--success);
        margin-right: 10px;
    }

/*====================================
            TIMELINE
====================================*/

.timeline-section {
    background: #f8fafc;
    padding: 100px 0;
}

.timeline {
    position: relative;
    max-width: 950px;
    margin: auto;
}

    .timeline::before {
        content: "";
        position: absolute;
        left: 50px;
        top: 0;
        bottom: 0;
        width: 4px;
        background: linear-gradient(#1565c0,#2e7d32);
    }

.timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 60px;
}

.year {
    width: 100px;
    height: 100px;
    background: #0d47a1;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
}

.timeline-content {
    flex: 1;
    background: #fff;
    padding: 35px;
    border-radius: 16px;
    border-left: 6px solid #1565c0;
    box-shadow: 0 15px 35px rgba(0,0,0,.08);
    transition: .35s;
}

    .timeline-content:hover {
        transform: translateX(8px);
    }

    .timeline-content h3 {
        color: #0d47a1;
        font-size: 28px;
        margin-bottom: 15px;
    }

    .timeline-content p {
        line-height: 1.9;
    }

/*====================================
        ANIMATION
====================================*/

.timeline-content,
.year,
.year-box,
.legacy-highlights div {
    transition: all .35s ease;
}

.timeline-item:hover .year {
    transform: scale(1.08);
    background: #1565c0;
}

.timeline-item:hover .timeline-content {
    box-shadow: 0 20px 45px rgba(0,0,0,.12);
}
/*====================================
        VISIONARIES
====================================*/

.visionaries-section {
    padding: 100px 0;
    background: #ffffff;
}

.visionaries-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 35px;
}

.vision-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: .35s;
    overflow: hidden;
}

    .vision-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 18px 45px rgba(0,0,0,.10);
    }

    .vision-card img {
        width: 180px;
        height: 180px;
        margin: auto;
        object-fit: cover;
        border-radius: 50%;
        border: 6px solid #eef4ff;
        margin-bottom: 25px;
    }

    .vision-card h3 {
        color: #222;
        font-size: 28px;
        margin-bottom: 8px;
    }

    .vision-card span {
        color: var(--primary);
        font-weight: 600;
        display: block;
        margin-bottom: 20px;
    }

    .vision-card p {
        line-height: 1.9;
        color: #666;
    }

/*====================================
        LEGACY STATS
====================================*/

.legacy-stats {
    background: linear-gradient(135deg,#0d47a1,#1565c0);
    padding: 90px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 30px;
}

.stat-card {
    text-align: center;
    color: #fff;
}

    .stat-card h2 {
        font-size: 58px;
        color: #ffc107;
        margin-bottom: 12px;
    }

    .stat-card span {
        font-size: 18px;
    }

/*====================================
        MILESTONES
====================================*/

.milestone-section {
    padding: 100px 0;
    background: #f8fafc;
}

.milestone-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 35px;
}

.milestone-card {
    background: #fff;
    padding: 40px 30px;
    text-align: center;
    border-radius: 18px;
    border: 1px solid var(--border);
    transition: .35s;
}

    .milestone-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 45px rgba(0,0,0,.10);
    }

    .milestone-card i {
        width: 90px;
        height: 90px;
        border-radius: 50%;
        background: #e8f0ff;
        color: var(--primary);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 34px;
        margin: 0 auto 25px;
    }

    .milestone-card h3 {
        color: #222;
        margin-bottom: 15px;
        font-size: 26px;
    }

    .milestone-card p {
        color: #666;
        line-height: 1.9;
    }

/*====================================
        QUOTE
====================================*/

.legacy-quote {
    padding: 100px 0;
    background: url('../images/page-banner.jpeg') center/cover;
    position: relative;
}

    .legacy-quote::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(13,71,161,.88);
    }

.quote-box {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

    .quote-box i {
        font-size: 60px;
        color: #ffc107;
        margin-bottom: 30px;
    }

    .quote-box h2 {
        font-size: 40px;
        line-height: 1.6;
        width: 80%;
        margin: auto;
        margin-bottom: 25px;
        font-weight: 500;
    }

    .quote-box span {
        letter-spacing: 2px;
        text-transform: uppercase;
    }

/*====================================
        GALLERY
====================================*/

.legacy-gallery {
    padding: 100px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 25px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 18px;
    position: relative;
}

    .gallery-item img {
        width: 100%;
        height: 280px;
        object-fit: cover;
        transition: .5s;
    }

    .gallery-item:hover img {
        transform: scale(1.08);
    }

/*====================================
        CTA
====================================*/

.legacy-cta {
    padding: 100px 0;
    background: linear-gradient(135deg,#0d47a1,#1565c0);
}

.cta-content {
    text-align: center;
    color: #fff;
}

    .cta-content span {
        text-transform: uppercase;
        letter-spacing: 2px;
        display: block;
        margin-bottom: 15px;
        font-weight: 600;
    }

    .cta-content h2 {
        font-size: 48px;
        margin-bottom: 20px;
    }

    .cta-content p {
        width: 70%;
        margin: auto;
        line-height: 1.9;
        margin-bottom: 40px;
        font-size: 18px;
    }

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.theme-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: #ffc107;
    color: #222;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: .35s;
}

    .theme-btn:hover {
        transform: translateY(-4px);
        box-shadow: 0 15px 35px rgba(0,0,0,.20);
    }

.secondary-btn {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

    .secondary-btn:hover {
        background: #fff;
        color: #0d47a1;
    }

/*====================================
        RESPONSIVE
====================================*/

@media(max-width:1200px) {

    .legacy-grid {
        grid-template-columns: 1fr;
    }

    .year-box {
        right: 20px;
        bottom: 20px;
    }
}

@media(max-width:992px) {

    .visionaries-grid,
    .milestone-grid,
    .gallery-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .section-heading p,
    .cta-content p,
    .quote-box h2 {
        width: 90%;
    }

    .page-content h1,
    .legacy-content h2 {
        font-size: 40px;
    }
}

@media(max-width:768px) {

    .visionaries-grid,
    .milestone-grid,
    .gallery-grid,
    .stats-grid,
    .legacy-highlights {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 35px;
    }

    .timeline-item {
        gap: 20px;
    }

    .year {
        width: 70px;
        height: 70px;
        font-size: 18px;
    }

    .timeline-content {
        padding: 25px;
    }

    .page-banner {
        height: 320px;
    }

    .page-content h1 {
        font-size: 34px;
    }

    .page-content p {
        font-size: 17px;
    }

    .section-heading h2,
    .legacy-content h2 {
        font-size: 30px;
    }

    .quote-box h2 {
        font-size: 28px;
    }

    .cta-content h2 {
        font-size: 34px;
    }

    .year-box {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: 20px;
        width: 100%;
    }
}

@media(max-width:576px) {

    .container {
        width: 94%;
    }

    .theme-btn {
        width: 100%;
        justify-content: center;
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline::before {
        display: none;
    }

    .legacy-intro,
    .timeline-section,
    .visionaries-section,
    .milestone-section,
    .legacy-gallery,
    .legacy-quote,
    .legacy-cta {
        padding: 70px 0;
    }
}

/*====================================
            END
====================================*/