/* ABOUT PAGE CSS */

:root {
    --primary-color: var(--primary-700, #0466c8);
    --secondary-color: var(--primary-500, #0096c7);
    --text-color: var(--text-primary, #212529);
}

[data-theme="dark"] {
    --primary-color: var(--primary-300, #48cae4);
    --secondary-color: var(--primary-400, #00b4d8);
    --text-color: var(--text-primary, #e0e6ed);
}

/* ========== Modern Editorial Bento Showcase (About Section 1) ========== */
.about-showcase-section {
    padding: 70px 0 80px 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-main) 100%);
}

.about-showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

.about-showcase-card {
    position: relative;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(4, 102, 200, 0.14);
    border-radius: 20px;
    padding: 34px 32px;
    box-shadow: 0 12px 32px rgba(2, 62, 138, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.about-showcase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-700), var(--primary-500), var(--primary-300));
}

.about-showcase-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(2, 62, 138, 0.14);
    border-color: rgba(0, 150, 199, 0.32);
}

[data-theme="dark"] .about-showcase-card {
    background: linear-gradient(145deg, rgba(17, 34, 64, 0.95) 0%, rgba(13, 27, 51, 0.92) 100%);
    border-color: rgba(72, 202, 228, 0.16);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .about-showcase-card:hover {
    border-color: rgba(72, 202, 228, 0.35);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}

.about-showcase-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(4, 102, 200, 0.1);
}

[data-theme="dark"] .about-showcase-card__header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.about-showcase-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    flex-shrink: 0;
    box-shadow: 0 8px 18px rgba(4, 102, 200, 0.28);
}

.about-showcase-card__icon--mission {
    background: linear-gradient(135deg, #0096c7, #023e8a);
}

.about-showcase-card__icon--thanks {
    background: linear-gradient(135deg, #0077b6, #00b4d8);
}

.about-showcase-card__title-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.about-showcase-card__badge {
    display: inline-block;
    width: fit-content;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary-600);
    background: rgba(0, 150, 199, 0.12);
    padding: 3px 11px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

[data-theme="dark"] .about-showcase-card__badge {
    color: var(--primary-300);
    background: rgba(72, 202, 228, 0.14);
}

.about-showcase-card__title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-800);
    margin: 0;
    line-height: 1.3;
}

[data-theme="dark"] .about-showcase-card__title {
    color: #ffffff;
}

.about-showcase-card__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.about-showcase-card__body p {
    font-size: 1.06rem;
    line-height: 1.9;
    color: var(--text-primary);
    margin: 0;
    text-align: justify;
}

/* Full-width bottom card (Word of Thanks + Contact CTA) */
.about-showcase-card--wide {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 32px;
    align-items: center;
}

.about-showcase-thanks .about-showcase-card__header {
    margin-bottom: 14px;
    padding-bottom: 14px;
}

.about-showcase-cta {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px 26px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%);
    color: #ffffff !important;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(2, 62, 138, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-showcase-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 119, 182, 0.4);
}

.about-showcase-cta__icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #ffffff;
    flex-shrink: 0;
}

.about-showcase-cta__info {
    flex: 1;
    min-width: 0;
}

.about-showcase-cta__info h4 {
    color: #ffffff;
    font-size: 1.28rem;
    font-weight: 800;
    margin: 0 0 4px 0;
}

.about-showcase-cta__info span {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
    line-height: 1.4;
    display: block;
}

.about-showcase-cta__arrow {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

html[dir="rtl"] .about-showcase-cta__arrow {
    transform: scaleX(-1);
}

@media (max-width: 960px) {
    .about-showcase-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .about-showcase-card--wide {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

/* Hero Section */
.about-hero {
    position: relative;
    height: 400px;
    background-color: var(--primary-900);
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 30px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 70px;
}

.about-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 56, 101, 0.85) 0%, rgba(0, 150, 215, 0.8) 100%);
}

.about-hero__content {
    position: relative;
    z-index: 1;
    color: var(--white);
    padding: 0 20px;
}

.about-hero__title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.about-hero__subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
}

/* Container */
.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sections */
.about-section, .mission-section {
    padding: 80px 0;
    background-color: var(--bg-main);
    transition: background-color 0.3s;
}

.mission-section {
    background-color: var(--bg-card);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

html[dir="rtl"] .about-grid.reverse {
    direction: ltr; /* Quick hack to keep image on right if needed, but flex order is better */
}

@media (min-width: 992px) {
    .about-grid.reverse {
        direction: rtl; /* Puts image on the left in LTR, and right in RTL naturally */
    }
    .about-grid.reverse > * {
        direction: ltr;
    }
    html[dir="rtl"] .about-grid.reverse > * {
        direction: rtl;
    }
}

.section-title {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

html[dir="rtl"] .section-title::after {
    left: auto;
    right: 0;
}

.text-center {
    text-align: center;
}
.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}
html[dir="rtl"] .text-center::after {
    right: 50%;
    transform: translateX(50%);
}

.about-text p {
    font-size: 1.05rem;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-image-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s;
}

.about-image-wrapper:hover {
    transform: translateY(-5px);
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Contact Box */
.contact-box {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding: 20px;
    background-color: var(--bg-main);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
}

html[dir="rtl"] .contact-box {
    border-left: none;
    border-right: 4px solid var(--primary-color);
}

.contact-icon {
    font-size: 2rem;
    color: var(--secondary-color);
}

.contact-box h4 {
    color: var(--text-color);
    margin-bottom: 5px;
}

.contact-box a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
}

.contact-box a:hover {
    text-decoration: underline;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    background-color: var(--bg-main);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.gallery-img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* Responsive */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-hero__title {
        font-size: 2.2rem;
    }
}
/* Capabilities Section */
.capabilities-section {
    padding: 80px 0;
    background-color: var(--bg-main);
}

.about-grid--margin {
    margin-top: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .about-grid--margin {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.about-grid--margin:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.capability-title {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

/* Certificates Stacking */
.certificates-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: none !important;
    background: transparent !important;
}

.certificates-wrapper img {
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

/* Override old Gallery styles if they interfere, but we removed gallery HTML */

/* ---------- Social Media Float Directions ---------- */.contact-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 119, 182, 0.3) !important;
}
html[dir="rtl"] .contact-btn .fa-arrow-right {
    transform: scaleX(-1); /* Flip arrow for Arabic */
}







@media (max-width: 768px) {
    
    
}


/* ========== Footer Modern Styles ========== */
.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}
.footer-link:hover {
    color: var(--primary-500);
    transform: translateX(-5px); /* Slide left in RTL */
}
html[dir="ltr"] .footer-link:hover {
    transform: translateX(5px); /* Slide right in LTR */
}

.footer-social:hover {
    background: var(--primary-500) !important;
    color: var(--white) !important;
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}
[data-theme="dark"] .footer__bottom {
    background: transparent !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.footer-email:hover { color: var(--primary-500) !important; text-decoration: underline !important; }

.footer-human-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--primary-600), var(--primary-800)) !important;
}
