/* Global Custom Styles to replace inline styles */

/* Flex utilities */
.flex-column-gap10 {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.flex-end-gap10 {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.flex-wrap-end-gap10 {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}
.flex-center-end-gap10 {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}
.flex-center-gap10 {
    display: flex;
    align-items: center;
    gap: 10px;
}
.flex-wrap-gap10 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.flex-between-center {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.flex-column-gap30 {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Margin & Padding utilities */
.mb-5 { margin-bottom: 5px; }
.mb-10 { margin-bottom: 10px; }
.mb-18 { margin-bottom: 18px; }
.mb-20 { margin-bottom: 20px; }
.mt-5 { margin-top: 5px; }
.mt-20 { margin-top: 20px; }
.mr-5 { margin-right: 5px; }
.mr-50 { margin-right: 50px; }

/* Text & Font utilities */
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fs-13 { font-size: 13px; }
.fs-16 { font-size: 1.6rem; }
.fs-22 { font-size: 2.2rem; }
.text-555 { color: #555; }
.text-333 { color: #333; }
.text-444 { color: #444; }
.text-666 { color: #666; }
.text-primary-brand { color: #1a4a75; }
.text-justify { text-align: justify; }
.line-height-15 { line-height: 1.5; }
.line-height-17 { line-height: 1.7; }
.d-block { display: block; }
.d-none { display: none; }
.no-underline { text-decoration: none; }

/* Specific Components */
.pm-section-wrapper {
    background: #fff;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 40px;
    padding-top: 20px;
}
.pm-photo-section {
    flex-shrink: 0;
}
.pm-quote-section {
    flex: 1;
}

/* CEO Desk */
.ceo-image-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    text-align: center;
}
.ceo-image-inner {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.ceo-image {
    width: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.ceo-image:hover {
    transform: scale(1.05);
}
.ceo-title-wrapper {
    margin-top: 20px;
    padding: 15px 0;
    border-top: 2px solid #e0e0e0;
    color: #333;
}
.ceo-content-wrapper {
    flex: 2;
    min-width: 300px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
}

/* Admin / Datatables */
.admin-search-input {
    width: 250px;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
}
.status-badge-active {
    background-color: #28a745;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
}
.status-badge-inactive {
    background-color: #6c757d;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
}
.text-center-span {
    text-align: center;
}
.login-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.error-msg {
    color: red;
    margin-bottom: 15px;
    text-align: center;
}

/* Ceo Desk */
.ceo-container-custom { display: flex; flex-direction: column; gap: 30px; }
.ceo-heading-custom { font-size: 2.2rem; color: #1a4a75; margin-bottom: 20px; }
.ceo-layout-custom { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.ceo-image-wrapper-custom { flex: 1; min-width: 300px; max-width: 400px; text-align: center; }
.ceo-image-box { position: relative; border-radius: 15px; overflow: hidden; box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
.ceo-img-custom { width: 100%; display: block; object-fit: cover; transition: transform 0.3s ease; }
.ceo-img-custom:hover { transform: scale(1.05); }
.ceo-title-box { margin-top: 20px; padding: 15px 0; border-top: 2px solid #e0e0e0; color: #333; }
.ceo-title-heading { margin: 0; font-size: 1.6rem; font-weight: 600; color: #1a4a75; }
.ceo-content-custom { flex: 2; min-width: 300px; font-size: 1.05rem; line-height: 1.7; color: #444; }
.ceo-paragraph { margin-bottom: 18px; text-align: justify; }
.ceo-more-content-custom { font-size: 1.05rem; line-height: 1.7; color: #444; }

/* Footer */
.footer-flex-custom { align-items: center; }
.footer-h3-custom { margin-bottom: 5px; }
.footer-info-custom { margin-top: 20px; line-height: 1.5; }
.footer-p-custom { margin-bottom: 10px; }
.footer-tel-custom { display: block; margin-top: 5px; }

/* Recruitment */
.recruitment-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}
.recruitment-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: stretch;
    border: none;
    overflow: hidden;
}
.recruitment-number {
    background: #e37a3e;
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    min-width: 80px;
    flex-shrink: 0;
}
.recruitment-content {
    padding: 25px;
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.recruitment-title {
    font-size: 16px;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    color: #000;
    flex: 1;
    line-height: 1.6;
}
.recruitment-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 45%;
}
.btn-download {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: #fff;
    border: 1px solid #777;
    border-radius: 4px;
    color: #000;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    font-family: "Poppins", sans-serif;
    transition: all 0.2s;
}
.btn-download:hover { background: #f1f1f1; }
.btn-download img { width: 18px; }
.recruit-actions-col { flex-direction: column; gap: 10px; }
.recruit-inner-col { display: flex; justify-content: flex-end; gap: 10px; }
.recruit-inner-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.recruit-pdf-box { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.extra-title-custom { font-weight:500; font-size:13px; color: #555; }
@media (max-width: 768px) {
    .recruitment-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .recruitment-actions { max-width: 100%; }
}


/* Orders / General */
.orders-flex-wrap { display: flex; gap: 10px; flex-wrap: wrap; }
.d-none { display: none !important; }

/* Index */
.mr-50 { margin-right: 50px; }
.news-link-custom { color: #004b87; font-weight: bold; text-decoration: underline; }
.pm-photo-custom { flex-shrink: 0; }
.pm-quote-custom { flex: 1; }
.pm-section-wrapper { background: #fff; border-bottom: 1px solid #eaeaea; margin-bottom: 40px; padding-top: 20px; }
#mainContentBox { min-height: 60vh; }

/* PM Section */
.pm-section-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: nowrap;
}
.pm-photo-section {
    flex: 0 1 45%;
    text-align: left;
}
.pm-photo-section img {
    height: 380px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    display: block;
    margin-bottom: -5px;
}
.pm-text-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right !important;
}
.pm-quote-text {
    font-size: clamp(1.4rem, 2.5vw, 2.2rem) !important;
    color: #222;
    line-height: 1.4 !important;
    margin: 0 0 20px 0;
    font-weight: 600;
    text-align: right !important;
    width: 100%;
}
.pm-name-text {
    margin: 0;
    font-size: 2rem !important;
    font-weight: 700;
    color: #1a4a75;
    text-align: right !important;
    width: 100%;
}
.pm-title-text {
    margin: 5px 0 0 0;
    font-size: 1.2rem !important;
    color: #777;
    text-align: right !important;
    width: 100%;
}
@media (max-width: 768px) {
    .pm-section-container {
        flex-direction: column;
        text-align: center;
    }
    .pm-photo-section {
        flex: 0 0 auto;
        width: 100%;
    }
    .pm-photo-section img {
        height: 280px;
        margin: 0 auto;
    }
    .pm-text-block {
        align-items: center;
        text-align: center !important;
        padding-bottom: 20px;
    }
    .pm-quote-text,
    .pm-name-text,
    .pm-title-text {
        text-align: center !important;
    }
    .pm-quote-text {
        font-size: 1.6rem !important;
    }
    .pm-name-text {
        font-size: 1.6rem !important;
    }
    .pm-title-text {
        font-size: 1.1rem !important;
    }
}

/* Index - hidden sections (replaced by tree/program view) */
.strategic_directions { display: none; }
.SitesCount { display: none; }

/* Program View */
.slider-container { background: #008bf5; }

/* CEO Desk */
.aboutForm { display: none; }
.ceoLink { text-decoration: none; }

/* Orders & Circulars */
.news_and_update table tr td { text-align: left !important; }
