/* Scoped Styles for About Us Page */
:root {
    --text-primary: #003366;
    --text-secondary: #4a5568;
    --bg-light: #f7f9fc;
    --accent: #00a8ff;
    --dark-bg: #001428;
}

.site-content .ast-container {
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100vw !important;
    display: block;
}

.ast-mobile-header-wrap .ast-primary-header-bar,
.ast-primary-header-bar .site-primary-header-wrap {
    padding: 0 !important;
    margin: 0 !important;
    width: 100vw;
    max-width: 100vw;
}

.about-page-wrapper {
    font-family: 'Roboto', sans-serif;
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Common Section Styles */
.about-section {
    padding: 80px 20px;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    font-size: 1.1rem;
    color: #718096;
}

/* 1. Hero Section */
.about-hero {
    position: relative;
    height: 40vh;
    min-height: 300px;
    max-height: 320px;
    display: flex;
    align-items: center;
    background-color: var(--dark-bg);
    overflow: hidden;
    margin: 0;
    padding: 0;
    width: 100vw;
}

.about-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.about-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 20, 40, 0.9) 0%, rgba(0, 20, 40, 0.4) 100%);
    z-index: 1;
}

.about-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 5%;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.about-padding-left {
    padding-left: 175px;
}

.about-hero-title {
    color: #ffffff;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    margin: 0 0 15px 0;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease-out forwards;
}

.about-hero-subtitle-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 600px;
    margin: 0;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease-out 0.3s forwards;
}

/* 2. Introduction Section */
.about-intro {
    background: #ffffff;
    position: relative;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.intro-heading {
    font-size: 2.2rem;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.3;
}

.intro-text p {
    margin-bottom: 20px;
    text-align: justify;
}

.intro-image {
    text-align: center;
}

.intro-image img {
    width: auto;
    max-width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* 3. Vision & Mission */
.about-vision {
    background: var(--bg-light);
}

.vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Vision/Mission Card Styles */
.vision-card {
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border-top: 5px solid var(--accent);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
    /* Center text as requested */
    padding-top: 0px;
}

/* Background Image with Lazy Loading */
.card-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

/* Dark Overlay */
.vision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 20, 40, 0.8) 0%, rgba(0, 51, 102, 0.7) 100%);
    z-index: -1;
}

.vision-header {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center the icon+title group */
    gap: 15px;
    margin-bottom: 70px;
    margin-top: 20px;
}

.vision-card:hover {
    transform: translateY(-10px);
}

.vision-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.vision-card h3 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.vision-card p {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.9);
}

/* 4. Core Values */
.about-values {
    background: var(--dark-bg);
    color: #ffffff;
    position: relative;
}

.about-values .section-title {
    color: #ffffff;
}

.about-values .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-align: left;
}

.value-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.value-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.value-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 0;
}

.value-item h4 {
    font-size: 1.3rem;
    margin-bottom: 0;
    color: #ffffff;
}

.value-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin: 0;
}

/* 5. Why Choose Us */
.about-why {
    background: #ffffff;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.why-item {
    text-align: center;
    padding: 20px;
}

.why-icon-circle {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--text-primary);
    font-size: 2rem;
}

.why-item h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 15px;
}

/* 6. Global Reach - Simple Map Placeholder */
.about-global {
    background: var(--bg-light);
    text-align: center;
    overflow: hidden;
    /* Prevent horizontal scroll if image is wider */
}

.global-map-placeholder {
    margin-top: 40px;
    position: relative;
    width: 100%;
    max-width: 100%;
    /* Ensure full width */
    margin: 0 auto;
}

.global-map-placeholder img {
    width: 100%;
    height: auto;
    opacity: 0.9;
    object-fit: cover;
}

/* 7. Stats Bar */
.about-stats-bar {
    background: var(--text-primary);
    color: #ffffff;
    padding: 60px 0;
}


.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 5px;
}

.stat-label {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 8. Call to Action */
.about-cta {
    background: linear-gradient(135deg, #001428 0%, #004080 100%);
    padding: 80px 20px;
    text-align: center;
    color: #ffffff;
}

.cta-btn {
    display: inline-block;
    background: var(--accent);
    color: #ffffff;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 30px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-btn:hover {
    background: #ffffff;
    color: var(--text-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {

    .intro-grid,
    .vision-grid,
    .why-grid,
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-padding-left {
        padding-left: 20px;
    }

    .about-hero-title {
        font-size: 3rem;
    }

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

@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
}

/* Certification Section Styles */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.cert-item {
    background: #ffffff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.cert-item:hover {
    transform: translateY(-5px);
}

.cert-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
    aspect-ratio: 3/4;
    /* Adjust based on actual image ratio if needed */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cert-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cert-item:hover .cert-image-wrapper img {
    transform: scale(1.05);
}

.cert-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 102, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cert-item:hover .cert-overlay {
    opacity: 1;
}

.view-cert-btn {
    background: #ffffff;
    color: var(--text-primary);
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transform: translateY(20px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cert-item:hover .view-cert-btn {
    transform: translateY(0);
}

.view-cert-btn:hover {
    background: var(--accent);
    color: #ffffff;
}

.cert-item h4 {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.2rem;
}

/* Lightbox Styles */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    animation: zoomIn 0.3s;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoomIn {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

@media (max-width: 992px) {
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .cert-grid {
        grid-template-columns: 1fr;
    }
}