﻿/* =========================================================
   About page - Premium Industrial Style (RTL)
   PLC_CNC_Site
========================================================= */
@font-face {
    font-family: 'Vazir';
    src: url('/assets/fonts/Vazir.woff2') format('woff2'), url('/assets/fonts/Vazir.woff') format('woff'), url('/assets/fonts/Vazir.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Vazir';
    src: url('/assets/fonts/Vazir-Bold.woff2') format('woff2'), url('/assets/fonts/Vazir-Bold.woff') format('woff'), url('/assets/fonts/Vazir-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Vazir';
    src: url('/assets/fonts/Vazir-Light.woff2') format('woff2'), url('/assets/fonts/Vazir-Light.woff') format('woff'), url('/assets/fonts/Vazir-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;
    --text: #1f2937;
    --muted: #6b7280;
    --bg: #f8fafc;
    --border: #e5e7eb;
    --shadow: 0 20px 50px rgba(15,23,42,.08);
}

body {
    font-family: "Vazir",sans-serif;
    font-feature-settings: 'ss01';
    color: var(--text);
    background: #fff;
}

/* =========================
   Hero
========================= */

/*.about-hero {
    position: relative;
    min-height: 85vh;
    background: url('/assets/images/HomePages/About/about-banner.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}

    .about-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(15,23,42,.94), rgba(30,64,175,.82));
    }

    .about-hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top left, rgba(255,255,255,.08), transparent 45%);
    }

.min-vh-75 {
    min-height: 75vh;
}

.hero-badge {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    color: #fff;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(2.8rem,5vw,4.8rem);
    font-weight: 900;
    line-height: 1.3;
    color: #fff;
}

.hero-text {
    font-size: 1.15rem;
    line-height: 2;
    color: rgba(255,255,255,.9);
    max-width: 620px;
}

.hero-buttons .btn {
    border-radius: 999px;
    padding: 14px 28px;
    font-weight: 700;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image {
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0,0,0,.35);
    transform: perspective(1200px) rotateY(-6deg);
}
*/
.hero-slider {
    position: relative;
    height: 90vh;
    overflow: hidden;
}

#aboutHero,
.carousel-inner,
.carousel-item {
    height: 100%;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08);
    transition: transform 8s ease;
}

.carousel-item.active .hero-bg {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15,23,42,.88) 0%, rgba(15,23,42,.55) 55%, rgba(15,23,42,.15) 100%);
}

.hero-content {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    max-width: 620px;
    z-index: 10;
    color: #fff;
}

.hero-badge {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2rem,3.2vw,3.3rem);
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 20px;
}

.hero-text {
    font-size: 1.08rem;
    line-height: 2;
    color: rgba(255,255,255,.88);
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

    .hero-buttons .btn {
        border-radius: 14px;
        padding: 14px 28px;
        font-weight: 700;
    }

.carousel-control-prev,
.carousel-control-next {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev {
    left: 25px;
}

.carousel-control-next {
    right: 25px;
}

.hero-counter {
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: #fff;
    font-weight: 700;
}

    .hero-counter span {
        font-size: 2rem;
    }

    .hero-counter small {
        opacity: .7;
        margin-right: 6px;
    }
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: .3s ease;
}

    .hero-nav i {
        font-size: 1.3rem;
    }

    .hero-nav:hover {
        background: #2563eb;
        transform: translateY(-50%) scale(1.08);
        box-shadow: 0 10px 25px rgba(37,99,235,.35);
    }

.hero-prev {
    right: 25px; /* در RTL دکمه قبلی سمت راست */
}

.hero-next {
    left: 25px; /* در RTL دکمه بعدی سمت چپ */
}

@media (max-width:991px) {
    .hero-nav {
        display: none;
    }
}
@media (max-width:991px) {
    .hero-slider {
        height: 80vh;
    }

    .hero-content {
        position: relative;
        top: auto;
        transform: none;
        padding-top: 120px;
        text-align: center;
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
}
/* =========================
   Sections
========================= */

.about-section {
    padding: 100px 0;
}

.section-subtitle {
    color: var(--primary);
    font-weight: 800;
    letter-spacing: .5px;
}

.section-title {
    font-size: 2.3rem;
    font-weight: 900;
    color: var(--secondary);
    margin: 15px 0 25px;
}

.section-text {
    color: var(--muted);
    line-height: 2.2;
    text-align: justify;
}

/* =========================
   Feature grid
========================= */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: .3s;
    font-weight: 600;
}

    .feature-item i {
        color: var(--primary);
        font-size: 1.2rem;
    }

    .feature-item:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow);
        border-color: #dbeafe;
    }

/* =========================
   Stats
========================= */

.stats-section {
    background: linear-gradient(135deg,#0f172a,#1e3a8a);
    color: #fff;
}

.stat-box {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 35px 25px;
    transition: .3s;
}

    .stat-box:hover {
        transform: translateY(-6px);
        background: rgba(255,255,255,.12);
    }

    .stat-box h2 {
        font-size: 3rem;
        font-weight: 900;
        margin-bottom: 10px;
        color: #fff;
    }

    .stat-box p {
        margin: 0;
        color: rgba(255,255,255,.85);
    }

/* =========================
   Service cards
========================= */

.service-card {
    background: #fff;
    border-radius: 24px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: .35s;
    height: 100%;
}

    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 30px 60px rgba(37,99,235,.12);
    }

    .service-card i {
        width: 80px;
        height: 80px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 22px;
        background: #eff6ff;
        color: var(--primary);
        font-size: 2rem;
        margin-bottom: 22px;
    }

    .service-card h5 {
        font-weight: 800;
        margin-bottom: 15px;
    }

    .service-card p {
        color: var(--muted);
        line-height: 1.9;
        margin: 0;
    }

/* =========================
   Timeline
========================= */

.timeline-section {
    background: #fff;
}

.timeline {
    position: relative;
    max-width: 850px;
    margin: 0 auto;
    padding-right: 35px;
}

    .timeline::before {
        content: "";
        position: absolute;
        right: 12px;
        top: 0;
        bottom: 0;
        width: 3px;
        background: linear-gradient(var(--primary),#60a5fa);
    }

.timeline-item {
    position: relative;
    padding: 0 30px 40px 0;
}

    .timeline-item:last-child {
        padding-bottom: 0;
    }

    .timeline-item::before {
        content: "";
        position: absolute;
        right: -1px;
        top: 6px;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: var(--primary);
        box-shadow: 0 0 0 8px rgba(37,99,235,.15);
    }

.timeline-year {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--primary);
    font-weight: 900;
    font-size: 1rem;
}

.timeline-item h5 {
    font-weight: 800;
    margin-bottom: 10px;
}

.timeline-item p {
    color: var(--muted);
    line-height: 1.9;
    margin: 0;
}

/* =========================
   Mission
========================= */

.mission-card {
    background: #fff;
    border-radius: 26px;
    padding: 35px;
    box-shadow: var(--shadow);
    height: 100%;
    transition: .3s;
}

    .mission-card:hover {
        transform: translateY(-6px);
    }

    .mission-card i {
        width: 72px;
        height: 72px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 20px;
        background: #eff6ff;
        color: var(--primary);
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .mission-card h3 {
        font-weight: 900;
        margin-bottom: 18px;
    }

    .mission-card p {
        color: var(--muted);
        line-height: 2;
        margin: 0;
    }

/* =========================
   CTA
========================= */

.cta-section {
    background: #fff;
    padding-bottom: 100px;
}

.cta-box {
    background: linear-gradient(135deg,var(--primary),var(--primary-dark));
    border-radius: 32px;
    padding: 70px 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

    .cta-box::before {
        content: "";
        position: absolute;
        width: 260px;
        height: 260px;
        background: rgba(255,255,255,.08);
        border-radius: 50%;
        top: -120px;
        left: -80px;
    }

    .cta-box::after {
        content: "";
        position: absolute;
        width: 180px;
        height: 180px;
        background: rgba(255,255,255,.06);
        border-radius: 50%;
        bottom: -80px;
        right: -40px;
    }

    .cta-box h2,
    .cta-box p,
    .cta-box .btn {
        position: relative;
        z-index: 2;
    }

    .cta-box .btn {
        border-radius: 999px;
        padding: 16px 40px;
        font-weight: 800;
        color: var(--primary);
    }

/* =========================
   Responsive
========================= */

@media (max-width:991.98px) {

    .about-hero {
        min-height: 100vh;
        text-align: center;
    }

    .hero-text {
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        transform: none;
        margin-top: 20px;
    }

    .section-title {
        font-size: 1.9rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-right: 28px;
    }
}

@media (max-width:575.98px) {

    .hero-title {
        font-size: 2.3rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .stat-box {
        padding: 25px 18px;
    }

        .stat-box h2 {
            font-size: 2.3rem;
        }

    .cta-box {
        padding: 50px 25px;
    }
}

.timeline-item.active::before {
    box-shadow: 0 0 0 10px rgba(37,99,235,.25);
}

.timeline-item.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* =========================
   About dynamic content
========================= */

.about-detail-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
}

.about-detail-image-wrapper img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

/* JS controlled entrance animation.
   The content remains visible if JavaScript is unavailable. */
.about-animate {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .7s ease, transform .7s ease;
}

.about-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item.active::before {
    box-shadow: 0 0 0 10px rgba(37,99,235,.25);
}

.timeline-item.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 991.98px) {
    .hero-slider {
        height: 78vh;
        min-height: 520px;
    }

    .hero-content {
        padding-top: 90px;
    }

    .hero-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .hero-text {
        max-width: 720px;
        margin-inline: auto;
    }
}

@media (max-width: 575.98px) {
    .hero-slider {
        height: 78vh;
        min-height: 560px;
    }

    .hero-content {
        padding: 80px 18px 30px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-text {
        font-size: .98rem;
        line-height: 1.9;
    }

    .hero-buttons {
        gap: 10px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .timeline {
        padding-right: 24px;
    }

    .timeline-item {
        padding-right: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-animate {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-bg,
    .carousel-item.active .hero-bg {
        transform: none;
        transition: none;
    }

    .service-card,
    .mission-card,
    .feature-item,
    .stat-box {
        transition: none;
    }
}

/* =========================================================
   About Front-end Final Dynamic / Responsive Fixes
   - Do not affect Admin About Hero Management
========================================================= */

.hero-slider,
#aboutHero,
#aboutHero .carousel-inner,
#aboutHero .carousel-item {
    position: relative;
}

.hero-slider {
    isolation: isolate;
}

.hero-container {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.hero-content {
    position: relative;
    top: auto;
    transform: none;
    width: min(100%, 720px);
    max-width: 720px;
    padding: 0 70px 0 0;
    pointer-events: auto;
}

.hero-title,
.hero-text {
    text-shadow: 0 3px 18px rgba(0, 0, 0, .45);
}

.hero-title {
    margin-bottom: 18px;
}

.hero-text {
    max-width: 680px;
    margin-bottom: 0;
}

.hero-carousel-control {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    opacity: 1;
    z-index: 30;
}

.hero-carousel-control:hover,
.hero-carousel-control:focus {
    opacity: 1;
}

.hero-control-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .25);
    backdrop-filter: blur(10px);
    transition: .25s ease;
}

.hero-carousel-control:hover .hero-control-icon,
.hero-carousel-control:focus .hero-control-icon {
    background: rgba(37, 99, 235, .9);
    transform: scale(1.05);
}

.hero-control-icon i {
    font-size: 1.2rem;
}

.carousel-control-prev.hero-carousel-control {
    right: 22px;
    left: auto;
}

.carousel-control-next.hero-carousel-control {
    left: 22px;
    right: auto;
}

.hero-counter {
    z-index: 30;
}

.feature-item {
    align-items: flex-start;
}

.feature-item > i {
    flex: 0 0 auto;
    margin-top: 4px;
    color: var(--primary);
}

.feature-item > div {
    min-width: 0;
}

.feature-item strong {
    display: block;
    line-height: 1.8;
}

.stat-box > i {
    display: block;
    color: var(--primary);
    font-size: 1.35rem;
}

@media (max-width: 991.98px) {
    .hero-slider {
        height: 72vh;
        min-height: 500px;
    }

    .hero-container {
        align-items: center;
        padding: 0 42px;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 0;
        text-align: center;
    }

    .hero-title {
        font-size: clamp(1.9rem, 5vw, 2.8rem);
        margin-bottom: 14px;
    }

    .hero-text {
        max-width: 760px;
        margin: 0 auto;
        font-size: 1rem;
        line-height: 2;
    }

    .hero-carousel-control {
        display: flex;
        width: 50px;
        height: 50px;
    }

    .hero-control-icon {
        width: 46px;
        height: 46px;
    }

    .carousel-control-prev.hero-carousel-control {
        right: 12px;
    }

    .carousel-control-next.hero-carousel-control {
        left: 12px;
    }

    .hero-counter {
        bottom: 18px;
        left: 18px;
    }
}

@media (max-width: 575.98px) {
    .hero-slider {
        height: 76vh;
        min-height: 500px;
    }

    .hero-container {
        padding: 0 58px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-title {
        font-size: clamp(1.7rem, 7vw, 2.2rem);
        line-height: 1.55;
        margin-bottom: 12px;
    }

    .hero-text {
        font-size: .92rem;
        line-height: 1.9;
    }

    .hero-carousel-control {
        width: 44px;
        height: 44px;
    }

    .hero-control-icon {
        width: 40px;
        height: 40px;
    }

    .carousel-control-prev.hero-carousel-control {
        right: 7px;
    }

    .carousel-control-next.hero-carousel-control {
        left: 7px;
    }

    .hero-counter {
        bottom: 12px;
        left: 12px;
    }

    .hero-counter span {
        font-size: 1.45rem;
    }

    .hero-counter small {
        font-size: .75rem;
    }
}
