.redline {
    border: 1px solid #ff0000 !important;
}

/* ================================================
   PAGE HEADER SECTION
   ================================================ */

.page-content {
    padding: 0 0 150px 0 !important;
    background-color: #f8f9fa;
    display: block !important;
}

    .page-content .container {
        max-width: 1320px;
        margin: 0 auto;
        padding: 0 20px;
    }

/* Page Header Title */
.pageHead {
    margin-bottom: 30px;
}

    .pageHead h1,
    .pageHead h2 {
        font-size: 32px;
        font-weight: 700;
        color: #231f20;
        margin: 0;
        padding: 0;
        line-height: 1.3;
        letter-spacing: -0.5px;
        margin-top: 0;
        padding-bottom: 20px;
        border-bottom: 3px solid #e8e1d8;
    }

/* Page Content Text */
.pageContent {
    font-size: 16px;
    line-height: 1.8;
    color: #000000;
    font-weight: 400;
    padding-bottom:40px;
}

    .pageContent p {
        margin-bottom: 20px;
        text-align: justify;
    }

        .pageContent p:last-child {
            margin-bottom: 0;
        }

/* Responsive Typography */
@media (max-width: 768px) {
    .pageHead h1,
    .pageHead h2 {
        font-size: 26px;
    }

    .pageContent {
        font-size: 15px;
        line-height: 1.7;
    }

    .page-content {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .pageHead h1,
    .pageHead h2 {
        font-size: 22px;
    }

    .pageContent {
        font-size: 14px;
    }

    .page-content {
        padding: 30px 0;
    }
}
/* ================================================
   ARABIC PAGE HEADER SECTION
   ================================================ */

/* RTL Support for Arabic */
html[lang="ar"] .page-content,
html[dir="rtl"] .page-content {
    direction: rtl;
    text-align: right;
}

html[lang="ar"] .pageHead h1,
html[lang="ar"] .pageHead h2,
html[dir="rtl"] .pageHead h1,
html[dir="rtl"] .pageHead h2 {
    font-size: 34px;
    font-weight: 700;
    color: #231f20;
    font-family: 'JF Flat Regular';
    letter-spacing: 0;
    text-align: right;
}

html[lang="ar"] .pageContent,
html[dir="rtl"] .pageContent {
    font-size: 17px;
    line-height: 2;
    color: #606060;
    font-family: 'JF Flat Regular';
    text-align: right;
}

    html[lang="ar"] .pageContent p,
    html[dir="rtl"] .pageContent p {
        text-align: justify;
        direction: rtl;
    }

/* Arabic Responsive */
@media (max-width: 768px) {
    html[lang="ar"] .pageHead h1,
    html[lang="ar"] .pageHead h2,
    html[dir="rtl"] .pageHead h1,
    html[dir="rtl"] .pageHead h2 {
        font-size: 28px;
    }

    html[lang="ar"] .pageContent,
    html[dir="rtl"] .pageContent {
        font-size: 16px;
        line-height: 1.9;
    }
}

@media (max-width: 480px) {
    html[lang="ar"] .pageHead h1,
    html[lang="ar"] .pageHead h2,
    html[dir="rtl"] .pageHead h1,
    html[dir="rtl"] .pageHead h2 {
        font-size: 24px;
    }

    html[lang="ar"] .pageContent,
    html[dir="rtl"] .pageContent {
        font-size: 15px;
    }
}
/* ========================================
   VISION & MISSION SECTION
======================================== */

.innerservices {
    padding: 60px 0;
    background: #ffffff;
    min-height: auto;
}

.innertraining-text {
    width: 100%;
}

/* ========================================
   INNERHIGHLIGHTS GRID
======================================== */

.innerhighlights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    width: 100%;
    max-width: none;
    min-height: 250px;
}

.highlight-card {
    background: transparent;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    padding: 0;
    height: 100%;
}

    .highlight-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    } 

/* ========================================
   ANIMATIONS
======================================== */

.animate-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.highlight-card[style*="--animation-delay: 0s"] {
    animation-delay: 0s;
}

.highlight-card[style*="--animation-delay: 0.1s"] {
    animation-delay: 0.1s;
}
/* ========================================
   CORE VALUES SECTION
======================================== */

.core-values {
    padding: 50px 40px;
    background: #e8e1d8;
    border-radius: 15px;
    margin-top: 40px;
}

    .core-values .section-header {
        text-align: center;
        margin-bottom: 50px;
    }

        .core-values .section-header h2 {
            font-size: 2.5rem;
            font-weight: 700;
            color: #231f20;
            margin: 0;
            text-align: center;
        }

#core-values .section-header {
    text-align: center !important;
}

    #core-values .section-header h2 {
        text-align: center !important;
        margin: 0 auto;
        display: block;
    }

.core-values-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    max-width: 1320px;
    margin: 0 auto;
}

.core-value-item {
    text-align: center;
    padding: 20px;
    position: relative;
}

    .core-value-item:not(:last-child)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        height: 80px;
        width: 1px;
        background-color: #bbb;
        opacity: 0.5;
    }

.core-value-icon {
    width: 80px;
    height: 80px;
    background: #c41e3a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px rgba(196, 30, 58, 0.3);
    transition: all 0.3s ease;
}

    .core-value-icon:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(196, 30, 58, 0.4);
    }

    .core-value-icon i {
        font-size: 2rem;
        color: white;
    }

.core-value-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #231f20;
    margin: 0;
    line-height: 1.4;
}

/* ========================================
   ARABIC STYLES (RTL) - CORE VALUES
======================================== */

html[lang="ar"] .core-values .section-header h2,
html[dir="rtl"] .core-values .section-header h2 {
    font-family: 'JF Flat Regular';
    font-size: 2.5rem;
    text-align: center;
}

html[lang="ar"] .core-value-item h3,
html[dir="rtl"] .core-value-item h3 {
    font-family: 'JF Flat Regular';
    font-size: 1.1rem;
    text-align: center;
}

html[lang="ar"] .core-value-item:not(:last-child)::after,
html[dir="rtl"] .core-value-item:not(:last-child)::after {
    right: auto;
    left: 0;
}

/* ========================================
   CORE VALUES RESPONSIVE DESIGN
======================================== */

@media (max-width: 1024px) {
    .core-values {
        padding: 40px 30px;
    }

    .core-values-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .core-value-item:nth-child(3n)::after {
        display: none;
    }

    .core-values .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .core-values {
        padding: 35px 20px;
        margin-top: 30px;
    }

        .core-values .section-header {
            margin-bottom: 35px;
        }

            .core-values .section-header h2 {
                font-size: 1.8rem;
            }

    .core-values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .core-value-item:nth-child(2n)::after {
        display: none;
    }

    .core-value-item:nth-child(3n)::after {
        display: block;
    }

    .core-value-icon {
        width: 70px;
        height: 70px;
    }

        .core-value-icon i {
            font-size: 1.5rem;
        }

    .core-value-item h3 {
        font-size: 0.9rem;
    }

    .core-value-item:not(:last-child)::after {
        height: 70px;
    }
}

@media (max-width: 480px) {
    .core-values {
        padding: 30px 15px;
        border-radius: 10px;
    }

        .core-values .section-header {
            margin-bottom: 30px;
        }

            .core-values .section-header h2 {
                font-size: 1.5rem;
            }

    .core-values-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .core-value-item::after {
        display: none;
    }

    .core-value-item {
        padding: 15px;
    }

    .core-value-icon {
        width: 65px;
        height: 65px;
    }

        .core-value-icon i {
            font-size: 1.3rem;
        }

    .core-value-item h3 {
        font-size: 0.95rem;
    }
}

/* ========================================
   ANIMATION SUPPORT
======================================== */

.animate-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.core-values .section-header[style*="--animation-delay: 0.2s"] {
    animation-delay: 0.2s;
}

/* ========================================
   INNERHIGHLIGHTS GRID
======================================== */

.innerhighlights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    width: 100%;
    max-width: none;
    min-height: 250px;
}

.highlight-card {
    background: transparent;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    padding: 0;
    height: 100%;
}

    .highlight-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    }

    /* Remove padding from parent highlight-card */
    .highlight-card:has(.highlight-contentVision),
    .highlight-card:has(.highlight-contentMission) {
        padding: 0 !important;
    }

/* ========================================
   VISION CARD
======================================== */

.highlight-contentVision {
    padding: 40px 30px;
    background-color: #e8e1d8;
    background-image: url('/images/AboutUs/vision.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    min-height: 280px;
    border-radius: 15px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

    .highlight-contentVision::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(232, 225, 216, 0.85);
        border-radius: 15px;
        z-index: 1;
    }

    .highlight-contentVision h2,
    .highlight-contentVision p {
        position: relative;
        z-index: 2;
    }

   

    .highlight-contentVision p {
        font-size: 16px;
        line-height: 1.7;
        color: #231f20;
        margin: 0;
    }

/* ========================================
   MISSION CARD
======================================== */

.highlight-contentMission {
    padding: 40px 30px;
    background-color: #e8e1d8;
    background-image: url('/images/AboutUs/mission.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    min-height: 280px;
    border-radius: 15px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

    .highlight-contentMission::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(232, 225, 216, 0.85);
        border-radius: 15px;
        z-index: 1;
    }

    .highlight-contentMission h2,
    .highlight-contentMission p {
        position: relative;
        z-index: 2;
    }
 

    .highlight-contentMission p {
        font-size: 16px;
        line-height: 1.7;
        color: #231f20;
        margin: 0;
    }

    .highlight-contentVision h2,
    .highlight-contentMission h2 {
        font-size: 32px;
        font-weight: 700;
        color: #231f20;
        margin: 0 0 20px 0;
        line-height: 1.3;
        position: absolute; /* pin to corner */
        top: 30px; /* match card padding */
        left: 30px; /* top-left */
        z-index: 2;
        text-align: left;
    }

/* ========================================
   ARABIC STYLES (RTL)
======================================== */

 

html[lang="ar"] .highlight-contentVision p,
html[lang="ar"] .highlight-contentMission p,
html[dir="rtl"] .highlight-contentVision p,
html[dir="rtl"] .highlight-contentMission p {
    font-family: 'JF Flat Regular';
    font-size: 17px;
    line-height: 2;
    text-align: right;
    direction: rtl;
}
html[lang="ar"] .highlight-contentVision h2,
html[lang="ar"] .highlight-contentMission h2,
html[dir="rtl"] .highlight-contentVision h2,
html[dir="rtl"] .highlight-contentMission h2 {
    font-family: 'JF Flat Regular';
    font-size: 34px;
    text-align: right;
    left: auto; /* remove LTR pin */
    right: 30px; /* pin top-right */
}
/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 992px) {
    .innerhighlights-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .highlight-contentVision,
    .highlight-contentMission {
        min-height: 250px;
        padding: 35px 25px;
    }

        .highlight-contentVision h2,
        .highlight-contentMission h2 {
            font-size: 28px;
        }

        .highlight-contentVision p,
        .highlight-contentMission p {
            font-size: 15px;
        }
}

@media (max-width: 768px) {
    .highlight-contentVision,
    .highlight-contentMission {
        min-height: 220px;
        padding: 30px 20px;
    }

        .highlight-contentVision h2,
        .highlight-contentMission h2 {
            font-size: 24px;
            margin-bottom: 15px;
        }

        .highlight-contentVision p,
        .highlight-contentMission p {
            font-size: 14px;
            line-height: 1.6;
        }
}

@media (max-width: 480px) {
    .innerhighlights-grid {
        gap: 20px;
    }

    .highlight-contentVision,
    .highlight-contentMission {
        min-height: 200px;
        padding: 25px 15px;
    }

        .highlight-contentVision h2,
        .highlight-contentMission h2 {
            font-size: 22px;
        }

        .highlight-contentVision p,
        .highlight-contentMission p {
            font-size: 13px;
        }
}
