body{
    font-family:Segoe UI, Arial;
    margin:0;
    background:#f5f8fb;
    color:#333;
    }
    
    
    /* HEADER */
    
    .site-header{
    padding:0;
    margin:0;
    }

    .logo{
    font-size:50px;
    font-weight:800;
    letter-spacing:2px;
    }
    
    .tagline{
    font-size:24px;
    margin-top:10px;
    font-style:italic;
    }
    
    .subline{
    font-size:16px;
    opacity:0.9;
    }
    
    
    
    /* NAVBAR */
    
    nav{
    background:#083C6D;
    text-align:center;
    padding:15px;
    }
    
    nav a{
    color:white;
    margin:15px;
    text-decoration:none;
    font-weight:600;
    font-size:22px;
    }
    
    nav a:hover{
    color:#d0e8ff;
    }
    
    
    
    /* HERO SECTION */
    
    .hero{
    text-align:center;
    padding:80px 20px;
    background:white;
    }
    
    .hero h2{
    font-size:40px;
    font-weight:700;
    color:#0A5EA8;
    letter-spacing:0.5px;
    }
    
    .hero p{
    font-size:18px;
    margin-top:10px;
    color:#444;
    }
    
    
    
    /* BUTTON */
    
    .btn{
    display:inline-block;
    margin-top:25px;
    padding:14px 38px;
    font-size:20px;
    font-weight:600;
    letter-spacing:0.5px;
    text-decoration:none;
    background:#0A5EA8;
    color:white;
    border-radius:8px;
    cursor:pointer;
    transition:0.3s ease;
}

.btn:hover{
    background:#083C6D;
    transform:translateY(-2px);
    box-shadow:0 8px 18px rgba(0,0,0,0.15);
}
    
    
    
    /* SERVICES */
    
    .services{
    padding:80px 20px;
    text-align:center;
    }
    
    .services h2{
    font-size:32px;
    color:#02cf57;
    }
    
    .service-box{
    display:flex;
    justify-content:center;
    gap:30px;
    margin-top:40px;
    flex-wrap:wrap;
    }
    
    .card{
    background:white;
    padding:25px;
    width:250px;
    border-radius:10px;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
    }
    
    .card h3{
    color:#0A5EA8;
    }
    
    
    
    
    /* CONTACT */

.contact{
    background:#0A5EA8;
    color:white;
    text-align:center;
    padding:35px 20px;
}

.contact h2{
    margin-bottom:15px;
    font-size:32px;
}

.contact p{
    margin:10px 0;
    font-size:18px;
}
    
    
    
    /* FOOTER */
    
    footer{
    background:#083C6D;
    color:white;
    text-align:center;
    padding:20px;
    }
    /* IMAGE POPUP GALLERY */

.popup{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.9);
    justify-content:center;
    align-items:center;
    z-index:1000;
    }
    
    .popup-content{
    max-width:95%;
    max-height:95%;
    border-radius:10px;
    box-shadow:0 0 20px rgba(0,0,0,0.5);
    }
    
    .close{
    position:absolute;
    top:30px;
    right:40px;
    font-size:45px;
    color:white;
    cursor:pointer;
    font-weight:bold;
    }
    
    .close:hover{
    color:#ccc;
    }
    .machine:hover{
        transform:translateY(-8px);
        transition:0.3s;
        }
        html{
            scroll-behavior: smooth;
            }
            /* MACHINES */

/* MACHINES */

/* MACHINES */

.machines{
    padding:80px 20px;
    background:white;
    text-align:center;
}

.machines h2{
    font-size:50px;      /* ~2x bigger */
    color:#0A5EA8;       /* medical blue */
    font-weight:600;
    margin-bottom:30px;
}

.machine-box{
    display:flex;
    justify-content:flex-start;
    gap:30px;
    margin-top:40px;
    flex-wrap:wrap;
    padding-left:40px;
}

.machine{
    width:280px;
    background:#f5f8fb;
    padding:20px;
    border-radius:10px;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
}

.machine img{
    width:100%;
    border-radius:8px;
}

.machine h3{
    margin-top:10px;
    color:#0A5EA8;
}

.machine img[alt="Endoscopy"] {
    width: 110%;
    max-width: 100%;
    border-radius: 8px;
}

.machine-box {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* New column for stacked machines */
.machine-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ecg-machine{
    width:370px;
    margin-left:-40px;
    margin-top:-50px;

}

.ecg-machine img{
    width:100%;
    border-radius:8px;
}

.endoscopy-machine{
    margin-left:-20px;
}

.xray-machine{
    margin-left:-90px;
}

.ultrasound-machine{
    margin-left:-30px;
}

.services-modern{
    padding:80px 20px;
    text-align:center;
    background:#f5f8fb;
}

.services-modern h2{
    font-size:32px;
    color:#0A5EA8;
    margin-bottom:30px;
}

.services-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
    max-width:1100px;
    margin:auto;
}

.service-card{
    background:white;
    padding:20px;
    border-radius:12px;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
    transition:0.3s ease;
}

.service-card:hover{
    transform:translateY(-6px);
    background:#eaf3ff;
}

.service-card h3{
    color:#0A5EA8;
    margin-bottom:10px;
}

.service-card p{
    font-size:14px;
    color:#555;
}

.btn{
    display:inline-block;
    text-decoration:none;
}

/* PORTAL PAGE */

.portal-header{
    background:#59b1ec;
    color:white;
    text-align:center;
    padding:50px 20px;
}

.portal{
    max-width:1000px;
    margin:auto;
    padding:15px 20px 70px;
}

.portal h2{
    text-align:center;
    font-size:48px;
    color:#0A5EA8;
    margin-bottom:30px;
    font-weight:700;
}

.portal-card,
.app-card,
.credentials,
.notice{
    background:white;
    padding:35px;
    margin-bottom:25px;
    border-radius:12px;
    box-shadow:0 5px 18px rgba(0,0,0,0.08);
}

.portal-intro{
    font-size:26px;
    font-weight:600;
    color:#1f4f7a;
    margin-bottom:15px;
    text-align:center;
}

.portal-card p,
.app-card p,
.credentials p,
.notice p,
.portal-features li{
    font-size:22px;
    line-height:1.9;
    color:#2f3f4f;
}

.portal-features{
    margin-top:15px;
    font-size:18px;
    line-height:2;
}

.portal-features li{
    margin-bottom:5px;
}

.app-card h3,
.credentials h3,
.notice h3{
    color:#0A5EA8;
    font-size:30px;
    margin-bottom:15px;
}

.download-btn{
    display:inline-block;
    margin-top:15px;
    padding:14px 35px;
    background:#0A5EA8;
    color:white;
    text-decoration:none;
    border-radius:6px;
    font-size:18px;
    font-weight:600;
}

.download-btn:hover{
    background:#083C6D;
}

.credential-box{
    margin-top:20px;
    background:#eef6ff;
    border-left:5px solid #0A5EA8;
    padding:20px;
    border-radius:8px;
}

.credential-box p{
    font-size:20px;
    margin:12px 0;
}

.notice{
    border-top:5px solid #41c55e;
}

@media(max-width:768px){

    .portal h2{
        font-size:36px;
    }

    .portal-card,
    .app-card,
    .credentials,
    .notice{
        padding:25px;
    }

    .portal-card p,
    .app-card p,
    .credentials p,
    .notice p{
        font-size:16px;
    }

    .credential-box p{
        font-size:18px;
    }
}

.header-banner{
    width:100%;
    height:auto;
    display:block;
}

.working-hours{
    background:linear-gradient(135deg,#ffffff,#eaf3ff);
    margin:15px auto;
    padding:14px 25px;
    text-align:center;
    font-size:18px;
    font-weight:600;
    color:#0A5EA8;
    width:fit-content;
    border-radius:10px;
    box-shadow:0 6px 16px rgba(0,0,0,0.12);
}

.hero-tagline{
    font-size:60px;
    color:#1f4f7a;
    font-weight:500;
    line-height:1.4;
    max-width:950px;
    margin:25px auto;
    letter-spacing:0.2px;
}

.portal-title{
    font-size:42px;
    color:#0A5EA8;
    font-weight:700;
    text-align:center;
    margin-bottom:25px;
    letter-spacing:0.5px;
}

/* CLEAN PORTAL TEXT CONTROL */
.portal-card p,
.app-card p,
.credentials p,
.notice p {
    font-size:22px;
    line-height:1.9;
    color:#2f3f4f;
}

/* LIST ITEMS */
.portal-features li {
    font-size:20px;
    line-height:1.8;
    color:#2f3f4f;
}

/* =========================
   CERTIFICATES PAGE
========================= */

.certificates-section{
    padding:80px 20px;
    text-align:center;
    background:#f5f8fb;
}

.certificates-section h2{
    font-size:42px;
    color:#0A5EA8;
    margin-bottom:40px;
    font-weight:700;
}

.cert-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:30px;
    max-width:1200px;
    margin:auto;
    padding:40px 20px;
}

.cert-card{
    text-align:center;
}

.cert-box{
    width:100%;
    aspect-ratio: 1 / 1.414; /* B5/A4-like ratio */
    background:white;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 10px 25px rgba(0,0,0,0.15);
}

.cert-box img{
    width:100%;
    height:100%;
    object-fit:contain;
}

.cert-card h3{
    margin-top:12px;
    font-size:18px;
    color:#0A5EA8;
    font-weight:600;
}

/* RESPONSIVE */

/* GALLERY PAGE */

.gallery-page{
    padding:60px 10px;
    background:white;
}

.gallery-page h2{
    text-align:center;
    font-size:48px;
    color:#0A5EA8;
    margin-bottom:50px;
}

.gallery-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    column-gap:35px;
    row-gap:20px;
    max-width:1800px;
    margin:0 auto 35px auto;
}

.gallery-card{
    background:white;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 5px 18px rgba(0,0,0,0.12);
    cursor:pointer;
    transition:0.3s;
}

.gallery-card:hover{
    transform:translateY(-5px);
}

.gallery-card img{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
    border-radius:20px;
}

/* Portrait Slots */

.portrait{
    background:white;
    height:400px;
    border-radius:50px;
}

/* Landscape Slots */

.landscape{
    height:260px;
    border-radius:12px;
    background:white;
}

/* Tablet */

@media(max-width:900px){

    .gallery-grid{
        grid-template-columns:repeat(2,1fr);
    }

}

/* Mobile */

@media(max-width:600px){

    .gallery-grid{
        grid-template-columns:1fr;
    }

    .portrait{
        height:380px;
    }

    .landscape{
        height:230px;
    }

}

.cert-image{
    cursor:pointer;
}

/* SECOND LANDSCAPE ROW ONLY */

.landscape-row-2 .landscape{
    height:400px;   /* adjust as needed */
}

.portrait-row-1,
.portrait-row-2,
.landscape-row-1{
    margin-bottom:60px;
}

.waiting-area{
    height:650px;
    width:380px;
    justify-self:center;
}

.setting-area{
    height:525px;
    width:380px;
    justify-self:center;
}

.grinding-area{
    height:360px;
    width:530px;
    justify-self:center;
}

.gallery-card.waiting-area{
    height:650px !important;
    width:380px;
    justify-self:center;
}

.notice{
    position:relative;
}

.auth-stamp{
    position:absolute;
    top:20px;
    right:20px;
    width:167px;
    height:auto;
}

@media(max-width:768px){

    .auth-stamp{
        position:static;
        display:block;
        margin:0 auto 15px;
        width:120px;
    }

    .notice h3{
        text-align:center;
    }
}

.gallery-image{
    cursor:pointer;
}

.prev,
.next{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    color:white;
    font-size:50px;
    font-weight:bold;
    cursor:pointer;
    padding:15px;
    user-select:none;
}

.prev{
    left:20px;
}

.next{
    right:20px;
}

.prev:hover,
.next:hover{
    color:#32cc1d;
}

.cert-prev,
.cert-next{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    color:white;
    font-size:50px;
    font-weight:bold;
    cursor:pointer;
    padding:15px;
}

.cert-prev{
    left:20px;
}

.cert-next{
    right:20px;
}

footer h3{
    margin-bottom:15px;
    font-size:26px;
}

footer p{
    margin:8px 0;
    font-size:17px;
    line-height:1.6;
}

/* =========================
   TESTS PAGE
========================= */

.tests{
    max-width:1400px;
    margin:auto;
    padding:70px 25px;
}

.tests h2{
    text-align:center;
    font-size:52px;
    color:#0A5EA8;
    margin-bottom:15px;
    font-weight:700;
}

.tests-subtitle{
    text-align:center;
    font-size:22px;
    color:#555;
    margin-bottom:50px;
}

.test-category{
    background:white;
    padding:35px;
    margin-bottom:35px;
    border-radius:16px;
    box-shadow:0 6px 20px rgba(0,0,0,0.08);
}

.test-category h3{
    color:#0A5EA8;
    font-size:34px;
    margin-bottom:20px;
    border-bottom:3px solid #32cc1d;
    padding-bottom:10px;
}

.test-category ul{
    columns:3;
    column-gap:50px;
    padding-left:20px;
}

.test-category li{
    font-size:19px;
    line-height:2;
    color:#333;
}

@media(max-width:900px){

    .test-category ul{
        columns:2;
    }

}

@media(max-width:600px){

    .tests h2{
        font-size:38px;
    }

    .tests-subtitle{
        font-size:18px;
    }

    .test-category h3{
        font-size:28px;
    }

    .test-category ul{
        columns:1;
    }

    .test-category li{
        font-size:18px;
    }

}

/* =========================
   CONNECT PAGE
========================= */

.connect-section{
    max-width:1200px;
    margin:auto;
    padding:70px 25px;
}

.connect-section h2{
    text-align:center;
    font-size:52px;
    color:#0A5EA8;
    margin-bottom:15px;
    font-weight:700;
}

.connect-subtitle{
    text-align:center;
    font-size:22px;
    color:#555;
    margin-bottom:55px;
}

/* TOP ROW */

.social-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:30px;
    margin-bottom:40px;
}

.social-card{
    background:white;
    border-radius:18px;
    padding:35px;
    text-align:center;
    box-shadow:0 6px 20px rgba(0,0,0,0.08);
}

.social-card h3{
    color:#0A5EA8;
    font-size:38px;
    margin-bottom:15px;
    font-weight:700;
}

.social-card p{
    font-size:18px;
    color:#555;
    margin-bottom:20px;
}

.instagram-card{
    border-top:6px solid #E1306C;
}

.facebook-card{
    border-top:6px solid #1877F2;
}

/* WHATSAPP */

.whatsapp-section{
    background:white;
    border-radius:18px;
    padding:40px;
    margin-bottom:40px;
    box-shadow:0 6px 20px rgba(0,0,0,0.08);
    text-align:center;
    border-top:6px solid #25D366;
}

.whatsapp-section h3{
    color:#0A5EA8;
    font-size:42px;
    margin-bottom:10px;
    font-weight:700;
}

.whatsapp-section p{
    font-size:18px;
    color:#555;
    margin-bottom:30px;
}

.whatsapp-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:30px;
}

.whatsapp-card{
    background:#f8fbff;
    padding:25px;
    border-radius:14px;
}

.whatsapp-card h4{
    color:#0A5EA8;
    font-size:30px;
    margin-bottom:15px;
}

/* TWITTER */

.twitter-section{
    background:white;
    border-radius:18px;
    padding:35px;
    text-align:center;
    box-shadow:0 6px 20px rgba(0,0,0,0.08);
    border-top:6px solid #000;
}

.twitter-section h3{
    color:#0A5EA8;
    font-size:38px;
    margin-bottom:15px;
    font-weight:700;
}

.twitter-section p{
    font-size:18px;
    color:#555;
    margin-bottom:20px;
}

/* BUTTONS */

.social-btn{
    display:inline-block;
    background:#0A5EA8;
    color:white;
    text-decoration:none;
    padding:12px 28px;
    border-radius:8px;
    font-size:17px;
    font-weight:600;
    margin-bottom:20px;
    transition:0.3s;
}

.social-btn:hover{
    background:#083C6D;
}

/* QR */

.qr-container img{
    width:300px;
    height:300px;
    object-fit:contain;
    border-radius:20px;
    border:1px solid #ddd;
    padding:6px;
    background:white;
}

/* MOBILE */

@media(max-width:768px){

    .social-row,
    .whatsapp-grid{
        grid-template-columns:1fr;
    }

    .connect-section h2{
        font-size:40px;
    }

    .connect-subtitle{
        font-size:18px;
    }
}

/* QR POPUP */

.popup{
    display:none;
    position:fixed;
    z-index:9999;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.9);
}

.popup-content{
    display:block;
    margin:auto;
    margin-top:50px;
    max-width:80%;
    max-height:80%;
    border-radius:12px;
    background:white;
    padding:10px;
}

.close{
    position:absolute;
    top:20px;
    right:35px;
    color:white;
    font-size:50px;
    font-weight:bold;
    cursor:pointer;
}

.close:hover{
    color:#32cc1d;
}

.qr-container img{
    cursor:pointer;
}