/* ============================================================
   Shared styles for inner pages
   (about.php, services.php, hospitals.php, treatments.php,
    privacy.php, terms.php)
   Uses design tokens already defined in main.css
   ============================================================ */

/* ----- Page hero / banner ----- */
.page-hero {
    color: var(--white);
    padding: 100px 0 0px;
    text-align: left;
}

.page-hero h1 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.page-hero p {
    max-width: 740px;
    font-size: 14.5px;
    line-height: 1.6;
    color: #4b5563;
}

.breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 18px;
    color: rgba(15, 15, 15, 0.7);
}

.breadcrumb a {
    color: rgba(34, 34, 34, 0.9);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ----- Generic section ----- */
.page-section {
    padding: 70px 0;
}

.page-section.alt {
    background: var(--bg-blue-light);
}

.page-section h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 12px;
}

/* ----- About: intro + stats ----- */
.about-intro {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.stat-box {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(10, 61, 79, 0.05);
}

.stat-num {
    display: block;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--primary-green);
}

.stat-label {
    display: block;
    margin-top: 6px;
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* ----- Feature cards (why choose us) ----- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 30px;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px 24px;
    text-align: center;
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary-green);
    background: var(--bg-blue-light);
}

.feature-card h3 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* ----- Steps row ----- */
.steps-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
    margin-top: 30px;
}

.step-item {
    text-align: center;
    padding: 18px 10px;
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--primary-green);
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
}

.step-item p {
    font-size: 0.88rem;
    color: var(--text-gray);
}

/* ----- Services grid (legacy icon cards) ----- */
.svc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-top: 36px;
}

.svc-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px 26px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.svc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(10, 61, 79, 0.10);
}

.svc-icon {
    width: 62px;
    height: 62px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-green), var(--green-hover));
    margin-bottom: 18px;
}

.svc-card h3 {
    font-size: 1.15rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.svc-card p {
    font-size: 0.92rem;
    color: var(--text-gray);
    line-height: 1.65;
}

/* ----- Services page (image cards) ----- */
.svc2-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-top: 36px;
}

.svc2-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.svc2-card:hover {
    box-shadow: 0 10px 26px rgba(10, 61, 79, 0.08);
    transform: translateY(-4px);
}

.svc2-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: var(--bg-blue-light);
}

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

.svc2-body {
    padding: 22px 24px;
}

.svc2-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.svc2-desc {
    font-size: 0.92rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* ----- Testimonials ----- */
.tst-section {
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}

.tst-title {
    font-size: 1.6rem;
    color: var(--primary-dark);
    margin-bottom: 18px;
}

.tst-quote {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.75;
    max-width: 760px;
    margin: 0 auto 18px;
    font-style: italic;
}

.tst-author {
    font-weight: 600;
    color: var(--primary-dark);
}

.tst-stars {
    color: #fbbf24;
    margin-top: 8px;
    font-size: 0.9rem;
}

/* ----- Treatments grid ----- */
.tx-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.tx-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tx-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tx-img {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-blue-light);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tx-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tx-img-empty::after {
    content: "\f0f8";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary-green);
    font-size: 1.8rem;
    opacity: 0.45;
}

.tx-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-dark);
    line-height: 1.35;
}

/* ----- Hospitals ----- */
.hosp-country {
    margin-top: 46px;
}

.hosp-country:first-of-type {
    margin-top: 10px;
}

.hosp-country-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.hosp-country-sub {
    font-size: 0.9rem;
    color: var(--text-light-gray);
    margin-bottom: 22px;
}

.hosp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.hosp-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hosp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(10, 61, 79, 0.10);
}

.hosp-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--primary-green);
    background: var(--bg-blue-light);
    margin-bottom: 14px;
}

.hosp-thumb {
    position: relative;
    width: 100%;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    background: var(--bg-blue-light);
}

.hosp-thumb img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hosp-thumb-fallback {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--primary-green);
}

.hosp-name {
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--primary-dark);
    line-height: 1.4;
    margin-bottom: 8px;
}

.hosp-spec {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* ----- Health check packages (legacy, retained) ----- */
.hc-note {
    max-width: 760px;
    margin: 0 auto 10px;
    text-align: center;
    font-size: 0.92rem;
    color: var(--text-gray);
    line-height: 1.7;
}

.hc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-top: 36px;
}

.hc-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px 26px;
}

.hc-card h3 {
    font-size: 1.15rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.hc-card .hc-for {
    font-size: 0.82rem;
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 14px;
}

.hc-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
}

.hc-card ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 9px;
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.5;
}

.hc-card ul li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 1px;
    color: var(--primary-green);
    font-size: 0.78rem;
}

.hc-card .btn {
    margin-top: auto;
}

/* ----- Treatment chips ----- */
.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 30px;
}

.chip {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 0.88rem;
    color: var(--primary-dark);
}

/* ----- Legal pages (privacy / terms) ----- */
.legal-wrap {
    max-width: 860px;
    margin: 0 auto;
}

.legal-updated {
    font-size: 0.85rem;
    color: var(--text-light-gray);
    margin-bottom: 24px;
}

.legal-wrap h2.legal-h {
    text-align: left;
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin: 34px 0 12px;
}

.legal-wrap p {
    color: var(--text-gray);
    line-height: 1.85;
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.legal-wrap ul {
    padding-left: 22px;
    margin: 0 0 16px;
}

.legal-wrap li {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.legal-note {
    background: var(--bg-blue-light);
    border-left: 4px solid var(--primary-green);
    border-radius: 8px;
    padding: 16px 20px;
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 24px;
}

/* ----- CTA band ----- */
.page-cta {
    background: var(--primary-dark);
    color: var(--white);
    text-align: center;
    padding: 64px 0;
}

.page-cta h2 {
    font-size: 1.9rem;
    color: var(--white);
    margin-bottom: 12px;
}

.page-cta p {
    max-width: 600px;
    margin: 0 auto 28px;
    color: rgba(255, 255, 255, 0.85);
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-dark);
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
    .tx-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .svc-grid,
    .hosp-grid,
    .hc-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-intro {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .svc2-grid {
        grid-template-columns: 1fr;
    }

    .tx-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .page-hero h1 {
        font-size: 24px;
    }

    .feature-grid,
    .svc-grid,
    .hosp-grid,
    .hc-grid,
    .about-stats {
        grid-template-columns: 1fr;
    }

    .steps-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .tx-grid {
        grid-template-columns: 1fr;
    }
}