/* ============================================================
   ORE Academy — About Page Stylesheet
   Companion to style.css (global). About-specific only.
   ============================================================ */

/* === HERO === */
.internal-hero-section-about {
    position: relative;
    background: linear-gradient(rgba(20, 22, 60, 0.82), rgba(20, 22, 60, 0.82)),
                url('images/Gallery/ORE Academy (7).webp') center/cover no-repeat;
    background-attachment: fixed;
    color: #fff;
    padding: 140px 0 120px;
    text-align: center;
    border-bottom: 5px solid #c58b43;
    overflow: hidden;
}

/* Blueprint grid overlay — subtle industrial texture */
.internal-hero-section-about::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(197, 139, 67, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(197, 139, 67, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.internal-hero-section-about h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0;
    position: relative;
}

/* Gold underline accent on hero heading */
.internal-hero-section-about h1::after {
    content: '';
    display: block;
    width: 70px;
    height: 5px;
    background: #c58b43;
    margin: 18px auto 0;
}

/* === GOLD TAG EYEBROW === */
.gold-tag {
    display: inline-block;
    background: #c58b43;
    color: #fff !important;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
    padding: 5px 14px;
    margin-bottom: 18px;
}

/* === OUR STORY SECTION === */
.page-content-section {
    padding: 100px 0;
}

.usp-intro {
    margin-bottom: 50px;
}

.usp-intro h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    text-align: left;
    margin-bottom: 0;
    line-height: 1.1;
}

/* === CONTENT SPLIT LAYOUT === */
.content-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.text-side {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.text-side p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

.text-side p b {
    color: #40439c;
}

/* === FADE SLIDER === */
.image-side {
    position: relative;
    overflow: hidden;
    line-height: 0; /* kills inline whitespace below slider */
    box-shadow: 0 20px 60px rgba(64, 67, 156, 0.18);

    /* Industrial frame effect */
    border: 3px solid #40439c;
    outline: 8px solid rgba(64, 67, 156, 0.08);
    outline-offset: 6px;
}

.fade-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    display: block;
    line-height: 0; /* kills inline whitespace gap */
}

.fade-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    display: block;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.fade-slider img.active {
    opacity: 1;
}

/* Slide counter badge */
.image-side::after {
    content: attr(data-slide);
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(64, 67, 156, 0.85);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 2px;
    padding: 5px 12px;
    font-family: 'Courier New', monospace;
}

/* === CORE VALUES SECTION === */
.usp-section {
    background-color: #f5f6ff;
    padding: 100px 0;
    position: relative;
}

/* Subtle diagonal stripe texture */
.usp-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -55deg,
        transparent,
        transparent 30px,
        rgba(64, 67, 156, 0.025) 30px,
        rgba(64, 67, 156, 0.025) 31px
    );
    pointer-events: none;
}

.usp-section .usp-intro {
    text-align: center;
    margin: 0 auto 60px;
}

.usp-section .usp-intro h2 {
    text-align: center;
}

/* === USP GRID === */
.usp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.usp-card {
    background: #fff;
    padding: 40px 35px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-bottom: 4px solid transparent;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: visible; /* was: hidden — was clipping text */
}

/* Corner bracket accent */
.usp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border-top: 3px solid #c58b43;
    border-left: 3px solid #c58b43;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.usp-card:hover {
    border-bottom-color: #c58b43;
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(64, 67, 156, 0.12);
}

.usp-card:hover::before {
    opacity: 1;
}

.usp-icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #40439c, #5557c4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.usp-icon-box i {
    color: #fff;
    font-size: 1.5rem;
}

.usp-content h3 {
    font-size: 1.2rem;
    font-weight: 900;
    text-align: left;
    margin-bottom: 10px;
    color: #40439c;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.usp-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    text-align: left;
}

/* === CTA BOX === */
.industrial-cta-box {
    background: linear-gradient(135deg, #40439c 0%, #2e3183 100%);
    padding: 70px 60px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Blueprint grid inside CTA */
.industrial-cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.cta-accent-line {
    width: 60px;
    height: 4px;
    background: #c58b43;
    margin: 0 auto 30px;
    position: relative;
    z-index: 1;
}

.industrial-cta-box h2 {
    color: #fff;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    text-align: center;
}

.industrial-cta-box p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 1;
}

/* CTA gold outlined button */
.secondary-cta-gold {
    display: inline-block;
    padding: 14px 40px;
    background: transparent;
    color: #c58b43;
    border: 2px solid #c58b43;
    font-weight: 900;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
    position: relative;
    z-index: 1;
}

.secondary-cta-gold:hover {
    background: #c58b43;
    color: #40439c;
}

/* === SCROLL REVEAL === */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }

/* === NAV ACTIVE UNDERLINE FIX === */
.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #c58b43;
    bottom: -2px;
    left: 0;
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* === MOBILE MENU HIDDEN STATE === */
#mobile-menu.hidden {
    display: flex; /* Keep as flex for layout, but off-screen */
}

/* === RESPONSIVE === */

/* Tablet */
@media (max-width: 960px) {
    .content-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .image-side {
        order: -1;
    }

    .fade-slider {
        aspect-ratio: 16 / 9;
    }

    .usp-grid {
        grid-template-columns: repeat(2, 1fr);
        aspect-ratio: unset; /* override style.css 768px rule that sets aspect-ratio: 1/1 */
    }

    .industrial-cta-box {
        padding: 60px 30px;
    }
}

/* style.css sets aspect-ratio: 1/1 on .usp-grid at 768px — undo it */
@media (max-width: 768px) {
    .usp-grid {
        aspect-ratio: unset;
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .internal-hero-section-about {
        padding: 100px 0 80px;
        background-attachment: scroll;
    }

    .page-content-section {
        padding: 60px 0;
    }

    .usp-section {
        padding: 60px 0;
    }

    .usp-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        aspect-ratio: unset;
    }

    /* Cards go horizontal: icon left, text right */
    .usp-card {
        flex-direction: row;
        align-items: flex-start;
        padding: 22px 18px;
        gap: 16px;
        overflow: visible;
    }

    .usp-icon-box {
        width: 46px;
        height: 46px;
        min-width: 46px; /* prevent shrinking */
        flex-shrink: 0;
    }

    .usp-icon-box i {
        font-size: 1.1rem;
    }

    .usp-content {
        flex: 1;
        min-width: 0; /* allow text to wrap inside flex child */
    }

    .usp-content h3 {
        font-size: 0.95rem;
        margin-bottom: 6px;
        text-align: left !important; /* override global h3 center */
    }

    .usp-content p {
        font-size: 0.8rem;
        line-height: 1.6;
        text-align: left !important;
    }

    .usp-intro h2 {
        text-align: center;
    }

    .brand-line {
        margin-left: auto;
        margin-right: auto;
    }

    .industrial-cta-box {
        padding: 50px 20px;
    }
}