/*
 * FIEM CMS – Public Extra Styles
 * ─────────────────────────────────────────────────────────────────
 * This file adds styles for CMS-specific public UI elements that
 * are not present in the original HTML design files.
 * Your original CSS files (custom.css, style.css, etc.) take
 * priority — do NOT delete them.
 */

/* ── Investor Table Pagination ─────────────────────────────── */
/* Bootstrap's default .page-link sizing is authored in rem assuming a 16px root,
   but this site sets html{font-size:10px} for its own type scale, so an untouched
   Bootstrap pagination renders ~40% smaller than intended. Size it to match the
   "entries per page"/"Search" labels next to it (fs-14). */
#tablePagination .page-link {
    font-size: 1.4rem;
    padding: 0.7rem 1.3rem;
}

.dynamic-table table {
    width: 100%;
}

.dynamic-table table tbody td {
        padding: 1.4rem;
        border: 1px solid #DDDDDD;
        background-color: var(--white);
        color: #333;
        font-size: 1.4rem;
        font-weight: 500;
    }


/* ── Investor Table: page-size dropdown + search box ──────── */
.investorTableSec1 .table-top .form-select,
.investorTableSec1 .table-top .form-control {
    height: 3.4rem;
    min-height: 0; /* form.css sets min-height: 40px */
    line-height: normal;
    font-size: 1.3rem;
    color: #333;
    border: 0.1rem solid #d5d5d5;
    border-radius: 0.6rem;
    box-shadow: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.investorTableSec1 .table-top .form-select {
    width: 7.2rem;
    padding: 0 2.6rem 0 1rem;
    background-position: right 0.8rem center;
    background-size: 1rem;
}
.investorTableSec1 .table-top .form-control {
    width: 22rem;
    padding: 0 1rem;
}
.investorTableSec1 .table-top .form-select:focus,
.investorTableSec1 .table-top .form-control:focus {
    /* !important: form.css forces grey border / no shadow on focus */
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(239, 103, 0, 0.15) !important;
    outline: none;
}
.investorTableSec1 .table-top .fs-14 {
    font-size: 1.3rem;
    color: #555;
    margin: 0;
    white-space: nowrap;
}
@media (max-width: 575.98px) {
    .investorTableSec1 .table-top .search { width: 100%; }
    .investorTableSec1 .table-top .form-control { width: 100%; }
}

/* ── Job Listing Cards ─────────────────────────────────────── */
.job-listing-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
    transition: box-shadow .2s, transform .2s;
}
.job-listing-card:hover {
    box-shadow: 0 8px 24px rgba(200,16,46,.1);
    transform: translateY(-3px);
}
.badge-job-type {
    background: #fee2e2;
    color: #c8102e;
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 1.2rem;
    font-weight: 600;
    white-space: nowrap;
}
.job-tag {
    background: #f3f4f6;
    color: #374151;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 1.2rem;
}
.btn-apply {
    background: #e35e0c;
    color: #fff !important;
    border-radius: 8px;
    padding: 8px 22px;
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s;
}
.btn-apply:hover { background: #a50d26; }

/* ── Job Detail Card ───────────────────────────────────────── */
.job-detail-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 32px;
}
.apply-form-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 28px;
}

/* ── Contact Page ──────────────────────────────────────────── */
.contact-icon-box {
    width: 44px;
    height: 44px;
    background: #fee2e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c8102e;
    flex-shrink: 0;
    font-size: 1.6rem;
}
.contact-form-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 36px;
}

/* ── Director Modal ────────────────────────────────────────── */
.director-modal .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
}

/* ── Admin Area Namespace ──────────────────────────────────── */
/* Admin styles are loaded separately via _AdminLayout.cshtml   */
.careerForm {
    position: relative;
    top: -21rem;
    z-index: 2;
}

.careerForm h5 {
    font-size: 2.2rem;
}

    .careerForm .form-label {
        font-size: 1.2rem;
        font-weight: 600;
        color: #333;
        margin-bottom: 6px;
        display: block;
        letter-spacing: -0.5px;
    }

    .careerForm .form-control {
        min-height: 45px;
        font-size: 1.4rem;
        font-weight: 400;
        line-height: 2.4rem;
        width: 100%;
        height: 45px;
        border-radius: 10px;
        border: 1px solid #ddd;
        padding: 0.8rem 1.5rem;
        outline: none;
        background: transparent;
    }

.careerForm button.btn-send {
    background: var(--black);
    color: var(--white);
}

@media (max-width: 991.98px) {
    .careerForm {
        top: 0px !important;
    }
}

/* ── Product Grid Image Boxes ──────────────────────────────── */
.productSec1 .product-img-box {
    background: #fff;
    border: 0.1rem solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
    padding: 10px;
    overflow: hidden;
}

.productSec1 .product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ── Investor Section – Board Member Cards (Template 7) ────── */
.committeeBlock .director-card {
    min-height: 400px;
/*    height: 300px;*/
}

.committeeBlock .director-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Committee groups: name + designation centred at the bottom of the photo */
.committeeGroupBlock .card-overlay {
    justify-content: center;
    text-align: center;
}

.committeeBlock .member-label {
    padding: 0.8rem 0 0;
    text-align: center;
}

.committeeBlock .member-label h6 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: var(--black);
}

.committeeBlock .member-label p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 0;
}