/* =========================================
   About & Center Page Common Styles (Redesign)
   ========================================= */

/* --- Typography Helpers --- */
.text-brand-green {
    color: #003c34;
}

.font-weight-bold {
    font-weight: 700;
}

.font-weight-extrabold {
    font-weight: 800;
}

.text-uppercase {
    text-transform: uppercase;
}

.line-height-1-4 {
    line-height: 1.4;
}

.line-height-1-6 {
    line-height: 1.6;
}

/* --- Section Styling --- */
.section-margin-bottom-large {
    margin-bottom: 8rem;
}

.section-margin-bottom-medium {
    margin-bottom: 4rem;
}

@media (max-width: 991px) {
    .section-margin-bottom-large {
        margin-bottom: 4rem;
    }
    .section-margin-bottom-medium {
        margin-bottom: 2.5rem;
    }
}

.section-margin-bottom-small {
    margin-bottom: 1.5rem;
}

.bg-white {
    background-color: #ffffff;
}

.bg-light-gray {
    background-color: #f9f9f9;
}

/* --- Custom Grid System (Lightweight Bootstrap Replacement) --- */
/* To avoid conflicts with site's .container definition */

.ac-row {
    display: flex;
    flex-wrap: wrap;
    margin-inline-end: -20px;
    margin-inline-start: -20px;
}

.justify-content-between {
    justify-content: space-between;
}

.ac-row.align-items-center {
    align-items: center;
}

.ac-col-6, .ac-col-7, .ac-col-5 {
    position: relative;
    width: 100%;
    padding-inline-end: 20px;
    padding-inline-start: 20px;
}

/* Mobile First (Stack by default) */
.ac-col-6, .ac-col-7, .ac-col-5 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* LG Breakpoint (992px) */
@media (min-width: 992px) {
    .ac-col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .ac-col-7 {
        flex: 0 0 58.333333%;
        max-width: 58.333333%;
    }
    .ac-col-5 {
        flex: 0 0 41.666667%;
        max-width: 41.666667%;
    }
    
    /* Order classes for alternating layout */
    .ac-order-lg-1 { order: 1 !important; }
    .ac-order-lg-2 { order: 2 !important; }
    
    .ac-text-lg-end { text-align: end; }
    .ac-mb-lg-0 { margin-bottom: 0 !important; }
}

/* Mobile: Reset order to stack text first */
@media (max-width: 991px) {
    .ac-order-1 { order: 1; }
    .ac-order-2 { order: 2; }
}

.ac-order-1 { order: 1; }
.ac-order-2 { order: 2; }

.ac-mb-4 { margin-bottom: 1.5rem; }
.ac-text-center { text-align: center; }


/* --- Image Styling --- */
.img-standard-about {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 6px;
   
}

.img-standard-facility {
    border-radius: 6px;
   
    margin-bottom: 2rem;
}

.img-standard-facility:last-child {
    margin-bottom: 0;
}

.img-simulator {
    border-radius: 8px;
    
}

.img-manager-portrait {
    max-height: 400px;
    object-fit: contain;
}

/* --- Manager's Word Section (About Page) --- */
.manager-word-container {
    padding: 1rem 0;
    background-color: #ffffff;
   
}


.manager-quote-icon {
    margin-bottom: 1rem;
}

.manager-quote-img {
    width: 95px;
    height: 95px;
    display: block;
}

.manager-quote-text {
    color: #003c34;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.4;
    font-size: 1.8rem;
    margin-bottom: 2rem;
   
}

.manager-name {
    display: block;
    font-size: 1.4rem;
    color: #003c34;
    margin-bottom: 0.25rem;
    font-weight: bold;
}

.manager-title {
    color: #f6630c;
    font-size: 1.15rem;
    font-weight: bold;  
}

/* --- Feature List Styling --- */
.feature-list-classic {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.feature-list-classic li {
    font-size: 1.1rem;
    color: #003c34;
    margin-bottom: 0.85rem;
    padding-inline-start: 1.5rem;
    position: relative;
    line-height: 1.6;
    font-weight: 400;
}

.feature-list-classic li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 11px; /* Precise vertical alignment for 1.6 line-height */
    width: 6px;
    height: 6px;
    background-color: #f6630c;
    border-radius: 50%;
}

/* --- Shared Headers --- */
.about-center-h3 {
    font-size: 1.25rem;
    color: #003c34;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.sim-item-title {
    font-size: 2rem;
    color: #003c34;
    font-weight: 550;
    margin-bottom: 1rem;
}

.facility-item-title {
    font-size: 1.25rem;
    color: #003c34;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Align read-more links with description text */
.about-intro-section .service-read-more {
   
    padding-inline-start: 0;
}

/* =========================================
   Manager's Word Section (Redesigned)
   ========================================= */

/* =========================================
   Mini Manager Word (Modern Compact Separator)
   ========================================= */

.mini-manager-row {
    display: flex;
    justify-content: center;
    width: 100%;
}

.mini-manager-card {
    background: #ffffff;
    border: 1.9px solid #ebebeb;
    border-radius: 8px;
    padding: 2rem 4rem 2rem 300px; /* Base padding */
    padding-inline-start: 300px !important;
    padding-inline-end: 4rem !important;
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 1240px;
    transition: all 0.3s ease;
    min-height: 140px;
}

.mini-manager-card:hover {
    box-shadow: 0 0 15px rgba(2,10,20,0.1);
    border: 1.9px solid #e3e3e3;
}

.mini-manager-quote-icon {
    position: absolute;
    top: -10px;
    right: 1px;
    width: 89px;
    height: 107px;
    opacity: 1;
    pointer-events: none;
}

[dir="rtl"] .mini-manager-quote-icon {
    right: auto;
    left: 1px;
    transform: scaleX(-1);
}


.mini-manager-portrait {
    position: absolute;
    bottom: 0;
    inset-inline-start: 20px;
    width: 250px;
    height: 280px; /* Taller icon */
    z-index: 5;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
}

.mini-manager-portrait img {
    width: 100%;
    height: 105%;
    object-fit: contain;
    object-position: bottom;
}

.mini-manager-content {
    flex-grow: 1;
    padding: 0;
    padding-inline-end: 60px; /* Space for quote icon */
}

.mini-manager-quote {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #003c34;
    font-style: italic;
    margin-bottom: 1.25rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.mini-manager-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    z-index: 1;
}

.mini-manager-name {
    color: #003c34;
    font-weight: 700;
    font-size: 1.25rem;
}

.mini-manager-title {
    color: #f6630c;
    font-size: 1rem;
    font-weight: 500;
}

@media (max-width: 991px) {
    .mini-manager-card {
        border-radius: 8px;
        flex-direction: column;
        text-align: start;
        padding: 3rem 2rem;
        gap: 1.5rem;
        min-height: auto;
    }

    .mini-manager-portrait {
        position: relative;
        inset-inline-start: 0;
        width: 180px;
        height: 200px;
        margin: 0;
    }
    
    .mini-manager-content {
        padding-inline-end: 0;
        padding-bottom: 1rem;
    }

    .mini-manager-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .mini-manager-quote-icon {
        width: 80px;
        height: 96px;
        top: 10px;
        right: 10px;
    }
}

/* =========================================
   Vision & Mission Cards
   ========================================= */

.vision-mission-header {
    text-align: center;
    margin-bottom: 4rem;
}

.vision-mission-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.vision-mission-header p {
    max-width: 700px;
    margin: 0 auto;
}

.vm-card {
    padding: 3rem 2.5rem;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}



/* Background layer for zoom effect */
.vm-card::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 0;
}

.vm-card:hover::before {
    transform: scale(1.1);
}

.vm-card-vision::before {
    background-image: 
        linear-gradient(135deg, rgba(0, 60, 52, 0.5) 0%, rgba(0, 30, 26, 0.65) 100%),
        url('../images/hero/whoarwe.PNG');
}

.vm-card-mission::before {
    background-image: 
        linear-gradient(135deg, rgba(0, 60, 52, 0.5) 0%, rgba(0, 30, 26, 0.65) 100%),
        url('../images/hero/aboutsection.png');
}

.vm-card-decorative {
    display: none;
}

.vm-card-content {
    position: relative;
    z-index: 2;
}

.vm-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.vm-card-vision .vm-icon-wrapper {
    background: rgba(246,99,12,0.2);
}

.vm-card-mission .vm-icon-wrapper {
    background: rgba(255,255,255,0.2);
}

.vm-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.vm-card p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
    font-weight: 400;
}

.vm-card-vision p {
    color: rgba(255,255,255,0.9);
}

.vm-card-mission p {
    color: rgba(255,255,255,0.95);
}

/* --- Facilities Accordion (Center Page) --- */


.fac-accordion-section .news-events-header {
    margin-bottom: 1.5rem;
}



.fac-accordion-header {
    margin-bottom: 3rem;
}

.fac-accordion-container {
    width: 100%;
    border-top: 1px solid #ebebeb; 
}

.fac-accordion-item {
    border-bottom: 1px solid #ebebeb;
    margin-bottom: 0; /* Remove gap to ensure only one line between items */
    transition: all 0.3s ease;
    background: #fff;
}

.fac-accordion-trigger {
    width: 100%;
    padding: 1rem 0;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-align: start;
    transition: all 0.2s ease;
}

/* Specific styling to match the image: v-icon on the left */
.fac-accordion-title-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.fac-accordion-icon {
    width: 16px;
    height: 16px;
    transition: all 0.3s ease;
    opacity: 0.6;
    filter: none;
}

.fac-accordion-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #003c34;
    transition: color 0.2s ease;
}

.fac-accordion-item.active .fac-accordion-icon {
    transform: rotate(180deg);
}


.fac-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1rem;
}

.fac-accordion-item.active .fac-accordion-content {
    max-height: 1000px; /* Large enough for content */
}

.fac-accordion-inner {
    padding: 0.5rem 0 1.5rem 2rem; /* This 2rem matches the (16px icon + 1rem gap) offset of the title text */
    color: #003c34;
    line-height: 1.7;
    font-weight: 400;
}

.facility-sub-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.facility-sub-list li {
    position: relative;
    padding-inline-start: 1.25rem;
    margin-bottom: 0.6rem;
}

.facility-sub-list li::before {
    content: "•";
    position: absolute;
    inset-inline-start: 0;
    color: #f6630c; /* Brand orange for premium visibility */
    font-weight: bold;
    font-size: 0.85rem;
    line-height: 1;
    top: 50%;
    transform: translateY(-55%);
}

.facility-sub-list li:last-child {
    margin-bottom: 0;
}

.fac-sim-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.fac-sim-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.fac-sim-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.fac-sim-info h4 {
    font-size: 1rem;
    color: #003c34;
    margin-bottom: 0.25rem;
}

.fac-sim-info p {
    font-size: 1rem;
    margin: 0;
}

/* Hover effect: Only change text and icon colors */
.fac-accordion-item:hover .fac-accordion-title {
    color: #f6630c;
}

.fac-accordion-item:hover .fac-accordion-icon {
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(38%) sepia(87%) saturate(1478%) hue-rotate(354deg) brightness(101%) contrast(101%);
}


.fac-accordion-item.active .fac-accordion-icon {
    opacity: 1;
    transform: rotate(180deg);
}
