* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #FFFFFF;
    color: #000000;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
    padding-left: 0;
}

.services-page {
    width: 100%;
    overflow-x: hidden;
}

/* HERO */
.services-hero {
    background: #F1F9FF;
    padding: 220px 20px 120px;
}

.services-hero-content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.services-hero-content h1 {
    font-weight: 600;
    font-size: 45px;
    line-height: 1.35;
    color: #000000;
    margin-bottom: 18px;
}

.services-hero-content p {
    max-width: 1033px;
    margin: 0 auto;
    font-weight: 300;
    font-size: 24px;
    line-height: 1.5;
    color: #000000;
}

/* SHARED */
.services-section,
.why-section {
    padding: 95px 40px;
}

.section-header {
    max-width: 950px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-header h2 {
    font-weight: 600;
    font-size: 35px;
    line-height: 52px;
    color: #000000;
    margin-bottom: 14px;
}

.section-header p {
    font-weight: 300;
    font-size: 18px;
    line-height: 27px;
    color: #000000;
}

.card-icon,
.medical-icon,
.imaging-icon,
.why-icon,
.rapid-icon {
    width: 43px;
    height: 43px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* LAB SECTION */
.lab-grid {
    max-width: 1210px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 32px;
}

.lab-card {
    background: #FFFFFF;
    border: 2px solid #D9D9D9;
    border-radius: 10px;
    padding: 42px 40px 34px;
}

.lab-card.large {
    min-height: 405px;
}

.lab-card:not(.large) {
    min-height: 316px;
}

.lab-card .card-icon {
    background: rgba(46, 177, 247, 0.2);
    color: #000000;
    margin-bottom: 18px;
}

.lab-card h3 {
    font-weight: 600;
    font-size: 18px;
    line-height: 27px;
    margin-bottom: 10px;
    color: #000000;
}

.lab-card p {
    font-weight: 300;
    font-size: 16px;
    line-height: 24px;
    color: #5C5C5C;
    margin-bottom: 14px;
}

.lab-card ul li {
    font-weight: 300;
    font-size: 16px;
    line-height: 24px;
    color: #5C5C5C;
    margin-bottom: 4px;
    position: relative;
    padding-left: 18px;
}

.lab-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
}

/* RAPID TESTING */
.rapid-testing {
    max-width: 1210px;
    margin: 88px auto 0;
    background: rgba(246, 176, 146, 0.2);
    border-radius: 20px;
    padding: 48px 42px;
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 36px;
    align-items: start;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    line-height: 18px;
}

.rapid-left .badge {
    background: rgba(246, 176, 146, 0.4);
    color: #730909;
    margin-bottom: 18px;
}

.rapid-left h3 {
    font-weight: 600;
    font-size: 35px;
    line-height: 52px;
    color: #000000;
    margin-bottom: 10px;
}

.rapid-left p {
    font-weight: 300;
    font-size: 18px;
    line-height: 27px;
    color: #000000;
}

.rapid-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.rapid-card {
    background: #FFFFFF;
    border: 1px solid #F6B092;
    border-radius: 7px;
    padding: 16px 12px;
    min-height: 101px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.rapid-card .rapid-icon {
    background: rgba(246, 176, 146, 0.2);
    color: #730909;
    margin-bottom: 10px;
}

.rapid-card h4 {
    font-weight: 600;
    font-size: 18px;
    line-height: 27px;
    color: #000000;
}

/* MEDICAL */
.medical-section {
    background: #F6F6F6;
}

.medical-grid {
    max-width: 1210px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.medical-card {
    background: #FFFFFF;
    border: 2px solid #162447;
    border-radius: 15px;
    padding: 28px 20px 26px;
    min-height: 203px;
    text-align: center;
}

.medical-card .medical-icon {
    background: #162447;
    color: #FFFFFF;
    margin: 0 auto 18px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.medical-card h3 {
    font-weight: 600;
    font-size: 18px;
    line-height: 27px;
    color: #000000;
    margin-bottom: 8px;
}

.medical-card p {
    font-weight: 300;
    font-size: 16px;
    line-height: 24px;
    color: #5C5C5C;
}

/* IMAGING */
.imaging-section {
    background: #FFFFFF;
}

.imaging-grid {
    max-width: 1210px;
    margin: 0 auto 70px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.imaging-card {
    background: #FFFFFF;
    border: 2px solid #DEDEDE;
    border-radius: 15px;
    overflow: hidden;
}

.imaging-top {
    height: 137px;
    background: rgba(46, 177, 247, 0.1);
}

.imaging-icon {
    background: #162447;
    color: #FFFFFF;
    margin: -21px auto 14px;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.imaging-body {
    padding: 0 28px 30px;
    text-align: center;
}

.imaging-body h3 {
    font-weight: 600;
    font-size: 18px;
    line-height: 27px;
    color: #000000;
    margin-bottom: 8px;
}

.imaging-body p {
    font-weight: 300;
    font-size: 16px;
    line-height: 24px;
    color: #5C5C5C;
}

.equipment-banner {
    max-width: 1210px;
    margin: 0 auto;
    background: #162447;
    border-radius: 20px;
    padding: 44px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 42px;
    align-items: center;
}

.equipment-badge {
    background: rgba(46, 177, 247, 0.4);
    color: #FFFFFF;
    margin-bottom: 16px;
}

.equipment-content h3 {
    font-weight: 600;
    font-size: 35px;
    line-height: 52px;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.equipment-content p {
    font-weight: 300;
    font-size: 18px;
    line-height: 27px;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.equipment-content ul li {
    position: relative;
    padding-left: 18px;
    font-weight: 300;
    font-size: 16px;
    line-height: 24px;
    color: #FFFFFF;
    margin-bottom: 6px;
}

.equipment-content ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
}

.equipment-image img {
    width: 100%;
    max-width: 402px;
    margin-left: auto;
    border-radius: 20px;
    object-fit: cover;
}

/* WHY */
.why-section {
    background: #F6F6F6;
}

.why-grid {
    max-width: 1210px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.why-card {
    text-align: center;
    padding: 10px 10px 0;
}

.why-card .why-icon {
    background: #FFFFFF;
    color: #2EB1F7;
    margin: 0 auto 18px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.why-card h3 {
    font-weight: 600;
    font-size: 18px;
    line-height: 27px;
    color: #000000;
    margin-bottom: 6px;
}

.why-card p {
    font-weight: 300;
    font-size: 16px;
    line-height: 24px;
    color: #5C5C5C;
}

/* CTA */
.services-cta {
    background: #2EB1F7;
    padding: 75px 40px 85px;
}

.cta-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.cta-content h2 {
    font-weight: 600;
    font-size: 35px;
    line-height: 52px;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.cta-content p {
    font-weight: 400;
    font-size: 18px;
    line-height: 27px;
    color: #FFFFFF;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 18px;
    line-height: 27px;
    transition: 0.25s ease;
    white-space: nowrap;
    min-height: 53px;
    padding: 13px 28px;
}

.btn-light {
    min-width: 299px;
    background: #FFFFFF;
    color: #145071;
}

.btn-dark {
    min-width: 189px;
    background: #162447;
    color: #FFFFFF;
}

.btn:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

/* FOOTER */
.footer {
    width: 100%;
    background: #162447;
    color: #FFFFFF;
    padding: 50px 40px 20px;
}

.footer-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
}

.footer-logo-section {
    flex: 1.3;
    min-width: 220px;
}

.footer-logo-section img {
    width: 230px;
    max-width: 100%;
    height: auto;
}

.social-icons {
    display: flex;
    gap: 14px;
    margin-top: 18px;
}

.social-icons a {
    color: #FFFFFF;
    font-size: 24px;
}

.footer-links,
.footer-contact,
.footer-visit {
    padding-top: 8px;
}

.footer-links {
    flex: 1;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #FFFFFF;
    font-weight: 400;
    font-size: 18px;
    line-height: 27px;
}

.footer-contact,
.footer-visit {
    flex: 1;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact h3,
.footer-visit h3 {
    font-weight: 700;
    font-size: 18px;
    line-height: 27px;
    color: #FFFFFF;
    margin-bottom: 4px;
}

.footer-contact p,
.footer-visit p {
    font-weight: 400;
    font-size: 18px;
    line-height: 27px;
    color: #FFFFFF;
}

.footer-copy {
    text-align: center;
    margin-top: 32px;
    font-weight: 400;
    font-size: 11px;
    line-height: 16px;
    color: #FFFFFF;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .lab-grid,
    .medical-grid,
    .imaging-grid,
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rapid-testing,
    .equipment-banner {
        grid-template-columns: 1fr;
    }

    .rapid-left,
    .equipment-content,
    .equipment-image {
        text-align: left;
    }

    .equipment-image img {
        margin: 0 auto;
    }
}

@media (max-width: 992px) {
    .services-hero {
        padding: 180px 20px 90px;
    }

    .services-hero-content h1 {
        font-size: 36px;
    }

    .services-hero-content p {
        font-size: 18px;
        line-height: 1.6;
    }

    .rapid-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-header h2,
    .rapid-left h3,
    .equipment-content h3,
    .cta-content h2 {
        font-size: 30px;
        line-height: 1.35;
    }
}

@media (max-width: 768px) {
    .services-section,
    .why-section,
    .services-cta,
    .footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .services-hero {
        padding: 150px 16px 70px;
    }

    .services-hero-content h1 {
        font-size: 30px;
        line-height: 1.3;
    }

    .services-hero-content p,
    .section-header p,
    .rapid-left p,
    .equipment-content p,
    .cta-content p {
        font-size: 16px;
        line-height: 1.6;
    }

    .lab-grid,
    .medical-grid,
    .imaging-grid,
    .why-grid,
    .rapid-grid {
        grid-template-columns: 1fr;
    }

    .lab-card,
    .lab-card.large,
    .medical-card {
        min-height: unset;
    }

    .rapid-testing,
    .equipment-banner {
        padding: 28px 20px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn,
    .btn-light,
    .btn-dark {
        width: 100%;
        min-width: unset;
    }

    .footer-container {
        flex-direction: column;
        gap: 28px;
    }

    .footer-logo-section,
    .footer-links,
    .footer-contact,
    .footer-visit {
        width: 100%;
        min-width: unset;
    }

    .footer-logo-section img {
        width: 180px;
    }

    .footer-links a,
    .footer-contact h3,
    .footer-visit h3,
    .footer-contact p,
    .footer-visit p {
        font-size: 16px;
        line-height: 24px;
    }

    .footer-copy {
        margin-top: 24px;
        font-size: 10px;
        line-height: 15px;
    }
}

/* ===== NEW DYNAMIC SERVICES UI ===== */
.services-overview-strip {
    background: #F1F9FF; /* same as hero para seamless */
    padding: 0 40px 80px;
    margin-top: -80px; /* mas extended overlap */
    position: relative;
    z-index: 3;
}

.overview-container {
    max-width: 1210px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.overview-card {
    background: #ffffff;
    border: 1px solid #DDE7F0;
    border-radius: 18px;
    padding: 24px 20px;
    box-shadow: 0 10px 25px rgba(22, 36, 71, 0.08);
    text-align: center;
}

.overview-card i {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border-radius: 12px;
    background: rgba(46, 177, 247, 0.15);
    color: #162447;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.overview-card h3 {
    font-size: 18px;
    line-height: 27px;
    margin-bottom: 6px;
    color: #000000;
    font-weight: 600;
}

.overview-card p {
    font-size: 15px;
    line-height: 23px;
    color: #5C5C5C;
    font-weight: 300;
}

.dynamic-service-section {
    padding: 95px 40px;
}

.dynamic-service-grid {
    max-width: 1210px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.dynamic-service-card {
    background: #FFFFFF;
    border: 2px solid #E3E8EF;
    border-radius: 18px;
    padding: 28px 24px;
    min-height: 250px;
    box-shadow: 0 8px 18px rgba(22, 36, 71, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dynamic-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(22, 36, 71, 0.10);
    border-color: #2EB1F7;
}

.dynamic-service-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(46, 177, 247, 0.15);
    color: #162447;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
}

.dynamic-service-card h3 {
    font-weight: 600;
    font-size: 20px;
    line-height: 30px;
    color: #000000;
    margin-bottom: 10px;
}

.dynamic-service-card p {
    font-weight: 300;
    font-size: 16px;
    line-height: 24px;
    color: #5C5C5C;
    margin-bottom: 18px;
}

.service-book-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #145071;
    font-weight: 500;
    font-size: 15px;
    line-height: 22px;
}

.category-lab {
    background: #FFFFFF;
}

.category-consultation,
.category-medical {
    background: #F8FBFF;
}

.category-checkup {
    background: #F6F6F6;
}

.category-imaging {
    background: #FFFFFF;
}

@media (max-width: 1200px) {
    .overview-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .dynamic-service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-overview-strip,
    .dynamic-service-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .overview-container,
    .dynamic-service-grid {
        grid-template-columns: 1fr;
    }
}
/* Add to index.css, services.css, about.css, appointment.css */

/* Fade-in animation on page load */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade-out animation on page exit */
@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(10px);
    }
}

main, .homepage, .services-page, .about-page, .appointment-page {
    animation: fadeIn 0.5s ease-in-out;
}

body.fade-out main {
    animation: fadeOut 0.3s ease-in-out forwards;
}