/* ============================================================
   GENERIC PAGE STYLES  (loaded only on generic.php)
   ============================================================ */

/* ---------------- banner ---------------- */

.gp-banner {
    position: relative;
    min-height: 720px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(4, 32, 68, .82) 0%, rgba(4, 32, 68, .55) 55%, rgba(4, 32, 68, .35) 100%),
        url('../images/general_practise_banner.min.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.gp-banner .container {
    position: relative;
    z-index: 2;
}

.division-badge
 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, .25);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(12px);
    border-radius: 40px;
    padding: 8px 18px;
    color: #fff;
    font-size: 14px;
    font-family: var(--font-mono);
    font-weight: 400;
    letter-spacing: 1px;
    border: 1px solid #F0F0F04D;
    margin-bottom: 28px;
    margin-top: 100px;
}
.gp-banner .badge-dot {
    width: 8px;
    height: 8px;
    background: #00d47c;
    border-radius: 50%;
}

.banner-title {
    color: #fff;
    font-size: 50px;
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 28px;
}

.banner-text {
    max-width: 520px;
    color: #edf2fb;
    font-size: 16px;
    line-height: 1.9;
    font-weight: 300;
    margin-bottom: 45px;
}

.banner-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-explore {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 9px 16px;
    background: #f7941d;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 550;
    border-radius: 50px;
    transition: .35s;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.btn-explore:hover {
    transform: translateY(-4px);
    background: #e17d04;
    color: #fff;
}

.btn-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-icon img {
    width: 15px;
}

.btn-distributor {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    background: #fff;
    padding: 9px 12px;
    border-radius: 50px;
    text-decoration: none;
    color: #163f78;
    font-size: 14px;
    font-weight: 550;
    transition: .35s;
    text-transform: uppercase;
}

.btn-distributor:hover {
    transform: translateY(-4px);
    color: #163f78;
}

.hand {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    /* background: #edf3ff; */
    display: flex;
    justify-content: center;
    align-items: center;
}

.hand img {
    width: 16px;
}

/* ---------------- product table ---------------- */

.products-table-section {
    padding: 80px 0;
    background: #fff;
}

/* back link sitting above the "All Products" heading */
.products-table-section .section-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 9px 18px 9px 14px;
    border: 1px solid rgba(1, 40, 84, .18);
    border-radius: 999px;
    background: #fff;
    color: rgba(1, 40, 84, 1);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    transition: background .18s, border-color .18s, color .18s;
}

.products-table-section .section-back .ic {
    flex: none;
    transition: transform .18s;
}

.products-table-section .section-back:hover {
    background: rgba(1, 40, 84, 1);
    border-color: rgba(1, 40, 84, 1);
    color: #fff;
}

.products-table-section .section-back:hover .ic { transform: translateX(-2px); }

.products-table-section .section-back:focus-visible {
    outline: 2px solid rgba(1, 40, 84, .55);
    outline-offset: 2px;
}

.products-table-section .section-title {
    font-size: 38px;
    font-weight: 500;
    color: rgba(1, 40, 84, 1);
    margin-bottom: 40px;
    line-height: 1;
}

.products-table-section .section-title span {
    font-size: 36px;
    font-weight: 400;
    color: rgba(1, 40, 84, 1);
    font-family: 'Geist', var(--font-sans), sans-serif !important;
    font-style: normal !important;
}

.all-products-filter-note {
    margin: -24px 0 32px;
    font-size: 14px;
    color: var(--text-grey, #5A6478);
}
.all-products-filter-note a {
    color: var(--orange, #F68C31);
    font-weight: 600;
    text-decoration: underline;
    margin-left: 6px;
}

.table-wrapper {
    border: 1px solid #e8edf4;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0px 1px 2px 0px rgba(27, 36, 44, 0.12);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.product-table thead th {
    background: rgba(1, 41, 88, 1);
    color: #fff;
    padding: 18px 20px;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    white-space: nowrap;
    border-right: 1px solid rgba(255, 255, 255, .12);
}

.product-table thead th:last-child {
    border-right: 0;
}

.product-table thead th.text-center {
    text-align: center;
}

.product-table tbody td {
    padding: 18px 20px;
    font-size: 14px;
    font-weight: 100;
    color: rgba(3, 5, 21, 1);
    vertical-align: middle;
    border-bottom: 1px solid #e8edf4;
    border-right: 1px solid #eef2f7;
}

.product-table tbody td:last-child {
    border-right: 0;
}

/* S.no. stays as narrow as its content; the product name keeps to a single
   line — no mid-name wrapping */
.product-table tbody td:first-child,
.product-table thead th:first-child {
    white-space: nowrap;
    width: 1%;
}

.product-table tbody td:nth-child(2),
.product-table thead th:nth-child(2) {
    white-space: nowrap;
}

.product-table tbody tr:last-child td {
    border-bottom: 0;
}

.product-table tbody td.text-center {
    text-align: center;
}

.product-table tbody tr:nth-child(odd) td {
    background-color: rgba(247, 247, 248, 1);
}

.product-table tbody tr:nth-child(even) td {
    background-color: rgba(255, 255, 255, 1);
}

.view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(222, 222, 227, 1);
    border-radius: 40px;
    padding: 8px 18px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(38, 55, 127, 1);
    text-decoration: none;
    transition: .3s;
    background: transparent;
}

.view-btn span {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f7941d;
    display: flex;
    justify-content: center;
    align-items: center;
}

.view-btn span img {
    width: 12px;
    height: 12px;
    filter: brightness(0) invert(1);
}

.view-btn:hover {
    border-color: #8d8a8a;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(247, 148, 29, .25);
}

/* ---------------- pagination ---------------- */

.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-top: 1px solid #edf1f5;
    background: #fff;
    gap: 16px;
    flex-wrap: wrap;
}

.page-btn {
    background: rgba(253, 253, 253, 1);
    border: 1px solid rgba(207, 207, 207, 1);
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(3, 5, 21, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: .3s;
}

.page-btn img {
    width: 15px;
    height: 15px;
}

.page-btn:hover {
    background: #163f78;
    color: #fff;
}

.page-btn:hover img {
    filter: brightness(0) invert(1);
}

.pagination-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-list li {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(53, 55, 68, 1);
}

.pagination-list li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    text-decoration: none;
    color: rgba(53, 55, 68, 1);
    font-size: 13px;
    font-weight: 600;
    transition: .3s;
}

.pagination-list li.active a {
    background: #edf2f8;
    color: #082f63;
}

.pagination-list li a:hover {
    background: #082f63;
    color: #fff;
}

/* ---------------- director's message ---------------- */

.ab-director {
    padding: 100px 0 100px;
    background: #fff;
}

/* centered section heading above the card */
.director-head {
    text-align: center;
    margin-bottom: 48px;
}
.director-head .badge-pill { margin: 0 auto 20px; }
.director-head .section-title { margin-bottom: 0; }

.director-card {
    display: flex;
    align-items: center;
    gap: 48px;
    background: #27377F;
    border-radius: 24px;
    padding: 35px 65px 35px 40px;
}

.director-photo {
    flex: 0 0 300px;
}

.director-photo img {
    width: 100%;
    aspect-ratio: 1 / 1.1;
    object-fit: cover;
    /* The photo is a wide landscape in a portrait box, so cover crops the
       sides. The first value picks WHICH slice survives: 0% keeps the far
       left, 50% is dead centre, 100% keeps the far right. 25% slides the
       picture right inside the frame, bringing the left of the office
       (shelves, flag) into view and letting the plant on the right go. */
    object-position: 25% top;
    display: block;
    border-radius: 16px;   /* rounded square, echoing the card's corners */
}

.director-quote {
    font-family: 'Geist', var(--font-sans), sans-serif;
    font-weight: 400;
    font-size: 28px;
    line-height: 37px;
    color: #FFFFFF;
    margin: 0 0 24px;
}

.director-name {
    font-family: 'Geist', var(--font-sans), sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 28px;
    color: #F68C31;
    margin: 0 0 6px;
}

.director-role {
    font-family: 'Geist', var(--font-sans), sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    color: #EAECF0;
}

/* ---------------- faq ---------------- */

.faq-section {
    padding: 100px 0;
    background: #fff;
}

.faq-section .faq-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: start;
    gap: 60px;
}

.faq-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border: 1px solid #f0f0f0;
    border-radius: 40px;
    background: #fff;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
    margin-bottom: 20px;
    font-weight: 550;
}

.faq-dot {
    width: 8px;
    height: 8px;
    background: #00b894;
    border-radius: 50%;
}

.faq-title {
    font-size: 49px;
    font-weight: 500;
    line-height: 1.05;
    color: var(--blue);
    margin-bottom: 20px;
}

.faq-title span {
    color: #00b894;
    font-style: italic;
    font-size: 49px;
    font-family: var(--font-serif);
}

.faq-description {
    color: #777;
    font-size: 15px;
    line-height: 1.8;
    max-width: 270px;
    font-weight: 400;
}

.faq-accordion .accordion-item {
    border-bottom: 1px solid #e6e6e6;
}

.faq-accordion .accordion-header {
    margin: 0;
}

.faq-accordion .accordion-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    border: none;
    cursor: pointer;
    background: #fff;
    box-shadow: none;
    padding: 25px 30px;
    font-size: 18px;
    font-weight: 500;
    color: #222;
}

.faq-accordion .accordion-button::after {
    content: "+";
    font-size: 28px;
    font-weight: 300;
    color: #555;
    line-height: 1;
    margin-left: 16px;
}

.faq-accordion .accordion-item.is-open {
    background-image: url('../images/faq-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.faq-accordion .accordion-item.is-open .accordion-button {
    color: #1f2937;
    background: transparent;
}

.faq-accordion .accordion-button:not(.collapsed)::after {
    content: "\2212";
}

.faq-accordion .accordion-collapse {
    display: none;
}

.faq-accordion .accordion-collapse.show {
    display: block;
}

.faq-accordion .accordion-body {
    background: transparent;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.7;
    padding: 0 30px 26px;
}

/* ---------------- cta / partner ---------------- */

.partner-section {
    position: relative;
    overflow: hidden;
    padding: 120px 0;
    background: #012B59;
    isolation: isolate;
}

/* corner accent images (top-right & bottom-left) */
.partner-section .cta-corner {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    width: 40%;
    max-width: 500px;
    height: auto;
}

.partner-section .cta-corner-tr {
    top: 0;
    right: 0;
}

.partner-section .cta-corner-bl {
    bottom: 0;
    left: 0;
}

/* blue glow effect */
.partner-section::before {
    content: "";
    position: absolute;
    width: 650px;
    height: 650px;
    left: -320px;
    bottom: -320px;
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(120, 180, 240, .45) 0%,
            rgba(70, 130, 200, .28) 25%,
            rgba(20, 70, 130, .12) 55%,
            rgba(1, 43, 89, 0) 75%);
    filter: blur(40px);
    z-index: -1;
}

.partner-section::after {
    content: "";
    position: absolute;
    width: 550px;
    height: 550px;
    right: -250px;
    top: -250px;
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(150, 200, 245, .35) 0%,
            rgba(80, 140, 205, .20) 35%,
            rgba(1, 43, 89, 0) 75%);
    filter: blur(35px);
    z-index: -1;
}

.partner-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: auto;
    text-align: center;
}

.partner-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50px;
    color: #fff;
    font-size: 12px;
    font-family: var(--font-mono);
    font-weight: 500;
    letter-spacing: 1.2px;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, .04);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.partner-badge .badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00d26a;
}

.partner-content h2 {
    font-size: 56px;
    color: rgba(252, 250, 250, 1);
    font-weight: 400;
    margin-bottom: 20px;
    line-height: 1.1;
}

.partner-content p {
    color: rgba(252, 250, 250, 1);
    font-size: 16px;
    line-height: 1.8;
    font-weight: 400;
    max-width: 476px;
    margin: 0 auto 40px;
}

.partner-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.btn-enquire {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    background: #f7941d;
    color: #fff;
    padding: 10px 28px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 700;
    transition: .35s;
    text-transform: uppercase;
}

.btn-enquire span {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-enquire span img {
    width: 16px;
    height: 16px;
}

.btn-enquire:hover {
    color: #fff;
    transform: translateY(-5px);
    background: #eb8308;
}

.btn-distributor2 {
    display: flex;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    background: #fff;
    color: rgba(1, 40, 84, 1);
    padding: 10px 13px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 700;
    transition: .35s;
    text-transform: uppercase;
}

.btn-distributor2:hover {
    color: #0a376b;
    transform: translateY(-5px);
}

.handshake {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    /* background: #edf4ff; */
    display: flex;
    align-items: center;
    justify-content: center;
}

.handshake img {
    width: 16px;
    height: 16px;
}

/* ---------------- responsive ---------------- */

@media (max-width: 991.98px) {
    .gp-banner {
        min-height: 560px;
        text-align: center;
        padding: 100px 0;
    }

    .division-badge {
        margin-top: 20px;
    }

    .banner-title {
        font-size: 38px;
    }

    .banner-text {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .banner-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .products-table-section {
        padding: 60px 0;
    }

    .products-table-section .section-title {
        font-size: 30px;
    }

    /* director's message */
    .ab-director {
        padding: 60px 0;
    }

    .director-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 20px;
    }

    .director-photo {
        flex: 0 0 auto;
        width: 100%;
    }

    .director-quote {
        font-size: 17px;
        line-height: 26px;
        margin-bottom: 16px;
    }

    .director-name {
        font-size: 20px;
        line-height: 24px;
    }

    .director-role {
        font-size: 15px;
        line-height: 20px;
    }

    /* faq */
    .faq-section {
        padding: 60px 0;
    }

    .faq-section .faq-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .faq-title {
        font-size: 36px;
    }

    .faq-title span {
        font-size: 36px;
    }

    .faq-description {
        max-width: 100%;
        margin-bottom: 30px;
    }

    /* faq accordion */
    .faq-accordion .accordion-button {
        padding: 18px 20px;
        font-size: 16px;
    }

    .faq-accordion .accordion-body {
        padding: 0 20px 20px;
    }

    /* cta */
    .partner-section {
        padding: 80px 0;
    }

    .partner-content h2 {
        font-size: 40px;
    }
}

@media (max-width: 575.98px) {
    .gp-banner {
        min-height: 480px;
    }

    .banner-title {
        font-size: 30px;
    }

    .banner-text {
        text-align: left;
    }

    .banner-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    /* products table becomes stacked cards on mobile */
    .product-table thead { display: none; }
    .product-table,
    .product-table tbody,
    .product-table tr,
    .product-table td { display: block; width: 100%; }
    .product-table tr {
        background: #fff;
        border: 1px solid #E7ECF4;
        border-radius: 14px;
        padding: 16px 18px;
        margin-bottom: 14px;
        box-shadow: 0 6px 18px -12px rgba(15, 30, 70, .12);
    }
    .product-table td {
        border: none !important;
        padding: 7px 0;
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 14px;
        text-align: right;
    }
    /* on mobile cards let the product name wrap again if it must (no overflow) */
    .product-table tbody td:first-child,
    .product-table tbody td:nth-child(2) { white-space: normal; width: auto; }
    .product-table td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 12px;
        letter-spacing: .06em;
        text-transform: uppercase;
        color: #6E7689;
        text-align: left;
        flex-shrink: 0;
    }
    .product-table td.text-center {
        display: block;
        text-align: left;
        padding-top: 12px;
    }
    .product-table td.text-center::before { display: none; }
    .product-table .view-btn {
        display: inline-flex;
        width: 100%;
        justify-content: center;
    }

    .btn-explore,
    .btn-distributor {
        flex: 1 1 0;
        min-width: 0;
        justify-content: center;
        padding-left: 14px;
        padding-right: 14px;
        gap: 8px;
        text-align: center;
    }

    .pagination-wrapper {
        justify-content: center;
    }

    /* faq */
    .faq-title {
        font-size: 26px;
    }

    .faq-title span {
        font-size: 26px;
    }

    /* cta */
    .partner-content h2 {
        font-size: 30px;
    }

    /* stack the CTA buttons — one per line, full width */
    .partner-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .btn-enquire,
    .btn-distributor2 {
        width: 100%;
        min-width: 0;
        justify-content: center;
        padding-left: 14px;
        padding-right: 14px;
        gap: 8px;
        text-align: center;
    }
}
