/* About Page Specific Styles */

/* Hero Section */
.about-hero {
    background-color: #141414;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 120px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle background pattern */
.about-hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-content p {
    font-family: var(--font-body);
    font-size: 1.25rem;
    color: #cbd5e1;
    line-height: 1.6;
}

/* Mission Section */
.mission-section {
    margin: 70px auto 80px;
    position: relative;
    z-index: 10;
    padding: 0 20px;
}

.mission-layout {
    align-items: center;
    display: grid;
    gap: 48px;
    grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.25fr);
    margin: 0 auto;
    max-width: 1280px;
}

.mission-copy {
    text-align: left;
}

.mission-copy h2 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    color: var(--npt-black);
    margin-bottom: 18px;
    line-height: 1.05;
}

.mission-copy p {
    font-size: 1.12rem;
    color: #475569;
    line-height: 1.8;
    max-width: 680px;
    margin: 0;
}

.mission-photo-wrap {
    align-self: center;
    position: relative;
}

.mission-photo {
    display: block;
    height: auto;
    width: 100%;
}

.mission-photo-wrap::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 28%;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff);
}

/* Credibility stat strip */
.mission-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 38px;
    padding-top: 34px;
    border-top: 1px solid #dbe7df;
}

.mission-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--cfn-green);
    line-height: 1;
}

.stat-suffix {
    font-size: 1rem;
    font-weight: 700;
    margin-left: 2px;
}

.stat-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* History: past -> future */
.history-section {
    margin-bottom: 80px;
}

.history-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 44px;
}

.history-eyebrow {
    display: inline-block;
    color: var(--cfn-dark-green);
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.history-header h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--npt-black);
    line-height: 1.15;
    margin: 0;
}

.history-grid {
    display: flex;
    gap: 28px;
    align-items: stretch;
    position: relative;
}

.history-col {
    flex: 1;
    background: #ffffff;
    padding: 36px;
    border-radius: 20px;
    border: 1px solid #eef2f6;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.history-col:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.09);
    border-color: rgba(3, 166, 60, 0.25);
}

.history-col.is-future {
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 55%);
    border-color: rgba(3, 166, 60, 0.22);
}

/* Top row: logo + era badge */
.history-col-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.col-logo img {
    height: 52px;
    width: auto;
    object-fit: contain;
    display: block;
}

.col-logo a {
    display: inline-block;
    transition: transform 0.2s ease;
}

.col-logo a:hover {
    transform: scale(1.05);
}

.era-badge {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 6px 12px;
    border-radius: 50px;
    background: #f1f5f9;
    color: #64748b;
    white-space: nowrap;
}

.era-badge-green {
    background: #dcfce7;
    color: var(--cfn-dark-green);
}

/* Circular connector showing the progression between eras */
.history-connector {
    flex: 0 0 auto;
    align-self: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cfn-green);
    font-size: 1.15rem;
    z-index: 2;
}

.history-col h3 {
    font-size: 1.5rem;
    color: var(--npt-black);
    margin-bottom: 20px;
    font-weight: 700;
}

.history-content p {
    color: #475569;
    margin-bottom: 15px;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #334155;
    font-weight: 600;
}

.feature-list li .cfn-icon {
    color: var(--cfn-green);
}

.locations-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.locations-tags span {
    background: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--cfn-dark-green);
    border: 1px solid #e2e8f0;
    font-weight: 600;
}

/* Call to Action */
.cta-section {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(to right, #f0fdf4, #fff);
    border-radius: 16px;
    margin-bottom: 60px;
}

.cta-section h2 {
    font-size: 2.2rem;
    color: var(--npt-black);
    margin-bottom: 15px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}


/* Responsive */
@media (max-width: 800px) {
    .mission-section { margin: 48px auto 64px; }
    .mission-layout { grid-template-columns: 1fr; gap: 34px; }
    .mission-copy { text-align: center; }
    .mission-copy p { margin: 0 auto; }
    .mission-photo-wrap { order: -1; }
    .history-grid { flex-direction: column; }
    .history-connector { transform: rotate(90deg); }
    .mission-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .hero-content h1 { font-size: 2.2rem; }
}

@media (max-width: 560px) {
    .about-hero {
        padding: 82px 16px 56px;
    }

    .mission-section,
    .heritage-gallery-section,
    .team-section {
        padding-left: 0;
        padding-right: 0;
    }

    .mission-stats {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .history-col {
        padding: 24px;
    }

    .history-col-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .slideshow-container {
        border-radius: 10px;
    }

    .mySlides {
        height: 280px;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }
}


/* --- NEW: Heritage Gallery Slideshow Styles --- */
.heritage-gallery-section {
    padding: 60px 20px;
    background-color: #f8fafc; /* Subtle background difference */
    border-radius: 16px;
    margin-bottom: 80px;
}

.gallery-intro {
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-intro h2 {
    color: var(--npt-black);
    margin-bottom: 15px;
    font-size: 2rem;
    font-family: var(--font-heading);
}

.gallery-intro p {
    color: #475569;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Slideshow Container */
.slideshow-container {
    position: relative;
    max-width: 900px;
    margin: auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    background: #111; /* Dark background for photos */
}

/* Images */
.mySlides {
    display: none;
    text-align: center;
    height: 550px; /* Fixed height container */
    background-color: #000;
}

.mySlides img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures the whole photo is visible without cropping */
}

/* Caption Text */
.caption-text {
    color: #f2f2f2;
    font-size: 16px;
    padding: 15px;
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    font-family: var(--font-body);
    backdrop-filter: blur(5px);
}

/* Number Text (1/7) */
.numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0,0,0,0.6);
    border-bottom-right-radius: 8px;
    font-family: var(--font-body);
}

/* Navigation Buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.3s ease;
    border-radius: 0 4px 4px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.3);
    text-decoration: none;
}

.next {
    right: 0;
    border-radius: 4px 0 0 4px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
    color: var(--cfn-green);
}

/* Dots */
.dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #cbd5e1;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: var(--cfn-green);
    transform: scale(1.2);
}

/* Fade Animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

/* Slideshow Responsive */
@media (max-width: 768px) {
    .mySlides {
        height: 320px;
    }
    .prev, .next {
        padding: 12px;
        font-size: 16px;
    }
}

@media (max-width: 700px) {
    .about-hero {
        clip-path: none;
        padding: 56px 16px 48px;
    }

    .about-hero h1 {
        font-size: clamp(2rem, 10vw, 2.65rem);
    }

    .mission-section,
    .history-section,
    .heritage-gallery-section,
    .team-section,
    .cta-section {
        margin-left: 0;
        margin-right: 0;
        padding-left: 16px;
        padding-right: 16px;
    }

    .mission-section {
        margin-top: 38px;
        margin-bottom: 46px;
    }

    .mission-layout,
    .history-grid {
        gap: 24px;
    }

    .mission-photo-wrap {
        order: -1;
    }

    .mission-copy h2,
    .history-header h2,
    .gallery-intro h2 {
        font-size: clamp(1.65rem, 8vw, 2.15rem);
    }

    .mission-stats {
        gap: 14px;
        grid-template-columns: 1fr 1fr;
    }

    .mission-stat {
        padding: 16px 10px;
    }

    .history-col,
    .employee-card,
    .mirror-card {
        border-radius: 12px;
        padding: 22px;
    }

    .heritage-gallery-section {
        border-radius: 12px;
        margin-top: 38px !important;
        margin-bottom: 42px !important;
        padding-top: 38px;
        padding-bottom: 38px;
    }

    .mySlides {
        height: 260px;
    }

    .caption-text {
        font-size: 0.85rem;
        padding: 10px;
    }

    .team-grid {
        gap: 18px;
    }
}

@media (max-width: 420px) {
    .mission-stats {
        grid-template-columns: 1fr;
    }

    .mySlides {
        height: 220px;
    }
}
