
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

* {
    margin: 0;
    padding: 0;
}

header {
    position: fixed;   /* Pin it to the screen */
    top: 0;            /* Align to the very top */
    left: 0;           /* Align to the very left */
    width: 100%;       /* Make it span the full width */
    z-index: 99999;    /* Stay on top of the contact form/map */
    background-color: #ffffff; /* Solid background so content doesn't bleed through */
    
    /* Optional: Adding back that bottom shadow/line for separation */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); 
}

/* IMPORTANT: Fix for the content jumping up */
body {
    /* Adjust this value to match the actual height of your header */
    padding-top: 95px; 
}

@media (max-width: 1120px) {
    header { 
        position: fixed !important; 
        top: 0;
        left: 0;
        width: 100%;
        z-index: 9999;
        /* Ensure no extra internal space is causing the gap */
        padding-top: 0px; 
    }

    body {
        /* Change this to match your MOBILE header height */
        /* If the space is too big, lower this number (e.g., 60px or 70px) */
        padding-top: 50px !important;
        
    }
}

/* Done */

/* Header */

/* --- BAZINIS HEADERIS --- */
.header-container {
    max-width: 1200px;
    margin: 20px auto;
    width: 100%;
    display: flex;
    justify-content: space-between; /* Logo kairėje, Nav dešinėje */
    align-items: center;
    box-sizing: border-box;
    
}


/* Logotipo konteineris */
.site-logo {
    display: flex;
    align-items: center;
    /* Padidiname maksimalų leidžiamą plotą */
    max-width: 300px; 
    padding-top: 5px;
    padding-bottom: 5px;
    
}

.site-logo img {
    /* Priverčiame SVG užimti visą jam skirtą vietą */
    width: 350px;  /* Čia pagrindinis skaičius – didink šitą, kol bus gerai */
    height: auto;
    
    /* Padidiname aukščio limitą, kad jis nebūtų "suspaustas" */
    max-height: 300px; 
    
    display: block;
    transition: transform 0.3s ease;
}

/* Jei nori, kad užvedus pelę logotipas šiek tiek padidėtų (nebūtina) */
.site-logo img:hover {
    transform: scale(1.02);
}


/* --- NAVIGACIJA --- */
.nav-list {
    display: flex;
    list-style: none;
    gap: 40px; /* Didelis tarpas dideliems ekranams */
    margin: 0;
    padding: 0;
    
}

.nav-list a {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    color: #333;
    letter-spacing: 3px;
    font-size: 1.0rem;
    padding-right: 20px;
}



/* --- MOBILIEJI (HAMBURGERIS) --- */
.menu-toggle {
    display: none; /* Paslėptas ant desktop */
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 9999 !important;
    position: relative;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: 0.3s;
    justify-content: center;
}


 /* --- Mobile Header and Dropdown Menu --- */
@media (max-width: 1120px) {


.site-header {
    position: relative;
    z-index: 1001;
    background-color: #ffffff;
    /* Keeps the header clean and ensures the menu attaches to the bottom */
}

.header-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 5px 15px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    margin-left: 5px;
}

.site-logo img {
    /* Adjusted to ensure it doesn't crowd the toggle */
    max-width: 220px; 
    height: auto;
    display: block;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
    padding: 0;
}

/* Individual bars of the hamburger */
.bar {
    width: 100%;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
}

.site-navigation {
    /* Positioning: Drops exactly from the bottom of the header */
    position: absolute;
    top: 100%; 
    left: 0;
    width: 100%;
    
    /* Styling */
    background-color: #ffffff; /* White background */
    z-index: 1000;
    
    
    /* Animation logic */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    transition: all 0.4s ease-in-out;
    
    display: flex;
    flex-direction: column;
    align-items: center;
}

.site-navigation.active {
    max-height: 80vh; /* Allows menu to grow based on content */
    opacity: 1;
    visibility: visible;
    padding: 30px 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-list li {
    width: 100%;
    text-align: right;
}

/* --- Hamburger Animation to X --- */
.menu-toggle.active .bar:nth-child(1) { 
    transform: translateY(9px) rotate(45deg); 
}
.menu-toggle.active .bar:nth-child(2) { 
    opacity: 0; 
}
.menu-toggle.active .bar:nth-child(3) { 
    transform: translateY(-9px) rotate(-45deg); 
}
}




/* Footer */

/* 1. Global Footer Styles - CLEANED */
.site-footer {
    background-color: #f2ebe4;
    padding: 60px 0;
    color: #333;
    width: 100%; /* Ensures the footer spans the whole screen */
}


/* 2. Typography & Shared Text Styles */
.site-footer p, 
.site-footer a, 
.site-footer .working-hours,
.footer-copyright p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    
    margin-bottom: 10px;
    
}


.review-btn:hover {
    background-color: #7a635a;
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

.site-footer h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    margin: 0 0 20px 0;
    color: #333;
    line-height: 1.2;
    text-transform: uppercase;
    font-weight: 500;
}

/* 3. Layout - Container - FIXED FOR CENTERING */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;           /* This centers the 1200px box */
    padding: 0 20px;          /* This provides the 20px side spacing safely */
    display: flex;
    justify-content: space-between; /* Matches your Header's "space-between" logic */
    align-items: flex-start;
    gap: 40px;
}

/* 4. Columns */
.footer-col.contacts {
    flex: 0 0 220px;
    text-align: center; /* Keep left */
    
}

.footer-col.working-hours {
    flex: 0 0 220px;
    text-align: center; /* Center this specific column's text */
}

.footer-col.working-hours .social-links {
    justify-content: center; /* Centers social icons under working hours */
}

.footer-col.map {
    flex: 1;
    text-align: left; /* Keep titles above map left */
}

/* 5. Map & Responsive Iframe */
.map-responsive {
    flex-grow: 1;
    min-height: 250px;
}

.map-responsive iframe {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border: 0;
    border-radius: 8px;
}

/* 6. Buttons */
.review-btn {
    background-color: #92796e;
    color: white;
    border: none;
    padding: 10px 20px;
    margin-top: 15px;
    cursor: pointer;
    border-radius: 25px;
    font-weight: 400;
    letter-spacing: 1px;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
}





/* 7. Social Links */
.social-links {
    margin-top: 20px;
    display: flex;
    gap: 20px;
}

.social-links a {
    text-decoration: none;
    font-size: 28px !important; 
    color: #333;
    line-height: 1;
    transition: transform 0.2s ease-in-out, color 0.2s;
}

.social-links a:hover {
    color: #7a635a;
    transform: scale(1.1);
}

.social-links a i {
    display: block;
}

/* 8. Copyright Footer */
.footer-copyright p {
    text-align: center;
    width: 100%;
    padding-top: 20px;
}




/* --- MOBILUS EKRANAS Footer --- */
@media (max-width: 1120px) {
    /* 1. Main Container */
    .footer-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        height: auto;
        min-height: 0;
        gap: 25px;
        
    }

    /* 2. Column Settings (Merged common properties) */
    .footer-col {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0;
        padding: 0;
        height: auto;
    }

    .footer-col.working-hours {
        flex: 1 1 auto !important;
    }

    /* 3. Typography (Consolidated) */
    .site-footer h3,
    .footer-col.map h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
        width: 100%;
        text-align: center;
    }

    /* Fixed typo and combined contacts/working-hours styles */
    .footer-col.contacts p, 
    .footer-col.contacts a,
    .footer-col.working-hours p,
    .footer-col.working-hours a{
        font-size: 1.1rem;
        text-transform: none;
        width: 100%;

    }

    /* 4. Social Links (Fixed typo in class name 'socials-links') */
    .socials-links {
        display: flex;
        gap: 20px;
        justify-content: center;  
        }
        .fa-brands {
        font-size: 30px;
        transition: transform 0.2s, color 0.2s;
        color: #333;
        }

    .footer-col.map {
        text-align: center;
    }

    .socials-links a:hover {
        transform: translateY(-3px);
        color: black;
    }

    /* 5. Components */
    .review-btn {
        padding: 15px 35px;
        font-size: 1rem;
        margin-top: 10px;
    }

    /* 6. Map Responsive */
    .map-responsive {
        width: 100%;
        padding: 0 20px; /* Instead of margin on iframe, padding on container is safer */
    }

    .map-responsive iframe {
        width: 100%;
        height: 250px;
        border: none;
        display: block;
    }
}





/* Done */

/* APIE MUS */

/* Konteineris, kuris laiko viską centre */
.page-apie-mus-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}


/* Pagrindinė sekcija */
.page-apie-mus-split-section {
    padding: 80px 0; 
    overflow: hidden; /* Saugiklis, kad niekas neišlystų į šonus */
}

.page-apie-mus-split-flex {
    display: flex;
    gap: 60px; /* Tarpas tarp logo ir teksto */
    align-items: stretch;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Kairė pusė: Foto */
.page-apie-mus-split-image {
    flex: 1 1 400px;
    max-width: 100%;
}

.page-apie-mus-split-image img {
    max-width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1; /* Padaro kvadratą */
    object-fit: cover;
    display: block;
    border-radius: 25px;
    object-position: 100% 70%;
}

/* Dešinė pusė: Tekstas */
.page-apie-mus-split-text {
    flex: 1 1 500px;
}

.page-apie-mus-text-wrapper h1 {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    color:#333 ;
    padding-bottom: 20px;
    
    text-align: center;
    letter-spacing: 3px;
    font-weight: 400;
    
}

.page-apie-mus-text-vizija {
    font-family: 'Inter',sans-serif;
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: justify;
    line-height: 1.6;

}

/* Bendri nustatymai visoms pastraipoms */
.page-apie-mus-text-normal {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
    font-family: 'Inter',sans-serif;
    text-align: justify;
}


@media (max-width: 1120px) {
    
    /* 1. Add side padding so text doesn't touch the screen edges */
    .page-apie-mus-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* 2. Reverse the order: Text moves to top, Image moves to bottom */
    .page-apie-mus-split-flex {
        flex-direction: column-reverse; 
        gap: 30px; /* Smaller gap for mobile */
    }

    /* 3. Ensure columns take full width */
    .page-apie-mus-split-image, 
    .page-apie-mus-split-text {
        flex: 1 1 100%;
        max-width: 100%;
    }

    /* 4. Fix the image so it doesn't stretch weirdly */
    .page-apie-mus-split-image img {
        height: auto; /* Allow height to adjust naturally */
        aspect-ratio: 1 / 1; /* Keeps it square */
        width: 100%; /* Spans the width of the container */
        max-height: 400px; /* Prevents it from being too tall on mobile */
    }

    /* 5. Adjust typography for better mobile readability */
    .page-apie-mus-text-wrapper h1 {
        font-size: 2.5rem;
        letter-spacing: 3px;
    }

    .page-apie-mus-text-vizija,
    .page-apie-mus-text-normal {
        text-align: justify; /* Justified text often looks messy on narrow screens */
        font-size: 1rem;
    }

    .page-apie-mus-split-section {
        padding: 40px 0;
    }
}





/* GYDYTOJAI */

/* Gydytojų puslapio konteineris */
.gydytojai-container {
    max-width: 1200px;
    margin: 0px auto;
    width: 100%;
    box-sizing: border-box;
    padding-bottom: 80px;
    padding-top: 80px;
}

.gydytojai-name-mobile {
    display: none; /* Hidden on desktop */
}

/* Pagrindinis Flex išdėstymas */
.gydytojai-flex {
    display: flex;
    gap: 60px; /* Tarpas tarp foto ir teksto */
    align-items: flex-start; /* Pradėti nuo viršaus, kad tekstas nenušoktų į centrą */
    justify-content: space-between;
}

/* Kairė pusė: Nuotrauka (40%) */
.gydytojai-image {
    flex: 0 0 calc(45% - 30px);
}

.gydytojai-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 25px;
    /* Jei norite kvadrato kaip logo: aspect-ratio: 1/1; object-fit: cover; */
}

/* Dešinė pusė: Tekstas (60%) */
.gydytojai-split-info {
    flex: 0 0 calc(55% - 30px);
}

.gydytojai-info-wrapper h1 {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    color:#333;
    margin-bottom: 25px;
    letter-spacing: 3px;
    font-weight: 400;
}

/* Teksto stilius */
.gydytojai-info-wrapper p, 
.gydytojai-info-wrapper li {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 5px;
    font-weight: 400;
}

.info-justify {
    text-align: justify;
}

.specializacijos-list,
.issilavinimas-list,
.patirtis-list {
    padding-left: 50px;
}


.specialybe-name ,
.specializacijos-name ,
.kalbos-name ,
.issilaviniams-name ,
.partitis-name ,
.kvalifikacijos-name ,
.kita-informacija-name {
    padding-top: 20px;
}


/* GYDYTOJAI MOBILE */
@media (max-width: 1120px) {
    .gydytojai-container {
        /* FIXED: Removed !important 0px which was killing your side padding */
        padding: 40px 20px; 
        box-sizing: border-box;
        max-width: 100%;
        
    }

    .gydytojai-flex {
        flex-direction: column;
        /* FIXED: Reduced the massive gap from 60px to 20px */
        gap: 0px; 
    }

    /* Allows content to stack correctly */
    .gydytojai-split-info, 
    .gydytojai-info-wrapper {
        display: contents; 
    }

    .Gydytojo-name {
        order: -1; 
        text-align: center;
        width: 100%;
        margin: 0 0 15px 0;
        font-size: 1.8rem;
    }

    .gydytojai-image {
        order: 0;
        width: 100%;
        flex: none; /* FIXED: Overrides the 45% width from desktop */
    }

    .gydytojai-image img {
        width: 100%;
        height: auto;
        border-radius: 15px;
    }

    /* FIXED: Reset the large list indentation from PC version */
    .specializacijos-list,
    .issilavinimas-list,
    .patirtis-list {
        padding-left: 20px; /* Reduced from 50px */
        margin-top: 5px;
    }

    /* Ensure names don't have too much top padding on mobile */
    .specialybe-name, .specializacijos-name, .kalbos-name, 
    .issilaviniams-name, .partitis-name {
        padding-top: 15px;
        width: 100%;
    }
}




/* Paslaugų sekcijos stilius */
.services-section {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 80px;
    padding: 80px 0;
}

.section-title {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
    letter-spacing: 3px;
    font-weight: 400;

}

.services-container {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    
}

.service-card {
    position: relative;
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    margin-bottom: 50px; /* Vietos overlay'ui */
  
}

.image-wrapper img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 25px; /* Suapvalinti kampai kaip pavyzdyje */

}

/* Organiška "burbulo" forma tekstui */
.info-overlay {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%) translateY(70px);
    background-color: #f2ebe4; /* Šviesi smėlio spalva */
    padding: 30px 35px;
    width: 80%;
    /* Sukuriama asimetriška forma */
    border-radius: 50% 50% 50% 50% / 20% 20% 20% 20%;
    /* Tikslesnė organiška forma naudojant border-radius: */
    border-radius: 63% 37% 54% 46% / 27% 33% 67% 73%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.info-overlay h3 {
    font-size: 1.2rem;
    margin: 0 0 10px 0;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: #333;
}

.info-overlay p {
    font-style: italic;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
}

.btn-more {
    display: inline-block;
    background-color: #92796e; /* Ruda spalva iš foto */
    color: #fff;
    padding: 10px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s ease;
}

.btn-more:hover {
    background-color: #7a635a;
    transform: translateY(-2px);
}

/* PASLAUGOS MOBILE */
@media (max-width: 1120px) {
    .services-section {
        padding: 40px 20px;
        margin: auto auto;
    }

    .service-card {
        /* Increase margin to prevent the bubble from overlapping the next image */
        margin-bottom: 120px; 
    }

    .image-wrapper img {
        /* Optional: adjust height for smaller screens so it doesn't look too tall */
        height: 350px; 
    }
    .info-overlay {
        max-width: 75%;
        max-height: 70%;
    }
}


/* FRONT PAGE */

.hero-section {
    height: 85vh; /* Užims 85% ekrano aukščio */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Lengvas šviesus sluoksnis ant foto, jei tekstas blogai matytųsi */
.hero-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1); 
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.hero-content h1 {
    font-family: 'Inter', sans-serif; /* Arba jūsų naudojamas šriftas */
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: 3px;
    color:#333;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 1.4rem;
    color:#333;
    margin-bottom: 40px;
    font-style: italic;
    font-family: 'Inter', sans-serif;
}

/* Mygtukas */
.btn-registracija {
    display: inline-block;
    padding: 15px 35px;
    background-color: #937d71; /* Ruda spalva iš jūsų foto */
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 16px;
    transition: 0.3s ease;
    font-family: "Inter", sans-serif;
}

.btn-registracija:hover {
    background-color: #7a635a;
    transform: translateY(-2px);
}

/* Socialiniai ikonų tarpai */
.hero-socials {
    display: flex;
    gap: 15px;
    align-items: center;
}

.hero-socials i {
    font-size: 24px;
    color: #333; /* Arba ruda spalva #937d71 */
    transition: transform 0.3s ease;
}

.hero-socials i:hover {
    transform: scale(1.2);
}






/* BENDROJI DERMATOLOGIJA */

/* Container and Title */
.bd-services-section {
    max-width: 1200px; /* Slightly wider to fit 3 cards comfortably */
    margin: 0px auto 80px auto;
    text-align: center;
    padding: 80px 0;
}


.bd-section-title {
    font-size: 2.5rem;
    font-family: 'Inter', sans-serif;
    margin-bottom: 25px;
    letter-spacing: 3px;
    font-weight: 400;
    color: #333;
}


/* The Grid System */
.bd-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    /* 160px is the vertical gap that protects the bubbles from colliding */
    gap: 160px 30px; 
    
}

/* The Card */
.bd-service-card {
    position: relative;
    width: 100%;
}

.bd-image-wrapper img {
    width: 100%;
    height: 400px; /* Adjusted height for 3-column layout */
    object-fit: cover;
    border-radius: 25px;
}

/* The Organic Bubble */
.bd-info-bubble {
    position: absolute ;
    /* Pushes bubble off the image. Adjust this one number to move it up/down */
    bottom: -90px; 
    left: 50%;
    transform: translateX(-50%); /* Removed translateY to prevent layout drift */
    background-color: #f2ebe4;
    padding: 30px 25px;
    width: 75%;
    border-radius: 63% 37% 54% 46% / 27% 33% 67% 73%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    z-index: 2;
}

.bd-info-bubble h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    padding-bottom: 10px;
    color: #333;
}

.bd-info-bubble p {
    font-style: italic;
    font-size: 0.85rem;
    margin-bottom: 15px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: #333;
    
}

.bd-btn-more {
    display: inline-block;
    background-color: #92796e;
    color: #fff;
    padding: 8px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 17px;
    transition: 0.3s ease;
    font-family: "Inter", sans-serif;
}

.bd-btn-more:hover {
    background-color: #7a635a;
    transform: translateY(-2px);
}


/* BENDROJI DERMATOLOGIJA ir ESTETINE MOBILE */



/* Mobile (1 column) */
@media (max-width: 1120px) {
    .bd-services-section {
        padding: 40px 20px;

        padding-bottom: 70px !important;
    }

    .bd-section-title {
        font-size: 2rem;
    }

    .bd-services-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 130px 0; /* Large vertical gap to clear the bubble */
    }

    .bd-image-wrapper img {
        height: 350px; /* Slightly shorter images for mobile screens */
    }

    .bd-info-bubble {
        width: 85%; /* Slightly wider bubble on mobile for better text fit */
        padding: 25px 20px;
    }
}





/* KONTAKTAI */
/* --- BENDRAS KONTEINERIS IR ANTRAŠTĖ --- */
.ct-section {
    max-width: 1200px;
    padding: 80px 20px;
    text-align: center;
    margin: auto;
}

.ct-main-title {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 25px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 400;
    color: #333;
}

/* --- TINKLELIS (GRID) --- */
.ct-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 80px;
    align-items: stretch; /* Užtikrina, kad abu stulpeliai būtų vienodo aukščio */
}

/* --- KAIRĖ PUSĖ (Stulpelio valdymas) --- */
.ct-info-column {
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* Kortelių stilius kairėje */
.ct-card {
    background-color: white; /* Galite pakeisti arba nuimti */
    border-radius: 25px;
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 10px;
    align-items: start;
    font-family: 'Inter',sans-serif;
    padding-bottom: 60px;
}

/* --- DEŠINĖ PUSĖ (Kontaktų Forma) --- */
.ct-form-card {
    display: flex;
    flex-direction: column;
    background-color: #f2ebe4;
    padding: 20px;
    border-radius: 25px;
    text-align: left;
    
}

.ct-form-card h3 {
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: #333;
    margin-bottom: 25px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    
}

/* --- ŽEMĖLAPIS (Užpildo likusią vietą) --- */
.ct-map-container {
    flex-grow: 1;      /* Priverčia žemėlapį užpildyti likusį plotą iki formos apačios */
    display: flex;
    flex-direction: column;
    min-height: 0;     /* Neleidžia žemėlapiui ištempti konteinerio daugiau nei reikia */
}

.ct-map-container h3 {
    font-family: 'Inter', sans-serif;
    margin-bottom: 15px;
    font-size: 1.2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;
    text-align: center;
    justify-content: center;
    
}

.ct-map-responsive {
    flex-grow: 1;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    min-height: 250px; /* Minimalus aukštis mobiliems įrenginiams */
}

.ct-map-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- FORMOS ELEMENTAI --- */
.custom-contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.custom-contact-form input, 
.custom-contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 25px;
    font-family: inherit;
    background: white;
    box-sizing: border-box;
}

.field-tip {
    font-size: 1rem;
    color: #333;
    margin-bottom: 4px;
    margin-left: 12px;
}

.btn-submit {
    background-color: #92796e;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 400;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: #7a635a;
    transform: translateY(-2px);
}

/* --- TEKSTAS IR SOCIALINIAI TINKLAI --- */
.ct-group h3 {
    font-size: 1.2rem;
    letter-spacing: 3px;
    color: #333;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    text-align: center;
    font-weight: 500;
}

.ct-group p, .ct-group a {
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    text-align: center;
    font-weight: 500;
}

.socials-links {
    display: flex;
    gap: 15px;
    margin-top: 5px;
    justify-content: center;
    color: #333;
}

.socials-links a {
    font-size: 25px;
    color: #333;
    transition: color 0.2s;
    
}

.socials-links a:hover {
    color: #000;
    
}


/* --- MOBILE RESPONSIVENESS (for screens smaller than 768px) --- */
@media (max-width: 768px) {
    
    /* 1. Stack the main grid into one column */
    .ct-info-grid {
        grid-template-columns: 1fr;
        gap: 40px; /* Space between the stacked sections */
    }

    /* 2. Adjust the Contacts Card (ct-card) inside the left column */
    .ct-card {
        grid-template-columns: 1fr; /* Stack contact info pieces vertically */
        padding-bottom: 30px;
        text-align: center;
    }

    /* 3. Ensure the form row (Name/Email) stacks vertically */
    .form-row {
        grid-template-columns: 1fr;
    }

    /* 4. Layout Order Adjustment */
    /* Assuming .ct-info-column contains Contacts & Map, and .ct-form-card is the Form */
    .ct-info-grid {
        display: flex;
        flex-direction: column;
    }

    .ct-info-column {
        order: 1; /* Contacts Container */
    }

    .ct-form-card {
        order: 2; /* Form */
    }

    /* If your Map is inside .ct-info-column, we need to move it to the bottom */
    .ct-map-container {
        order: 3;
    }
}



/* TOAST NOTIFICATION */

/* Toast pranešimo stilius */
/* 1. Modalinio lango fonas (uždengia visą ekraną) */
.ct-modal-overlay {
    display: none; /* Pradžioje paslėptas, PHP/JS jį įjungia */
    position: fixed;
    z-index: 10000; /* Kad būtų virš visų elementų */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Tamsus skaidrus fonas */
    backdrop-filter: blur(5px); /* Sulieja vaizdą už lango */
    align-items: center;
    justify-content: center;
    font-family: 'Inter',sans-serif;
    font-weight: 500;
}

/* 2. Pats langelis viduryje */
.ct-modal-content {
    background-color: #fff;
    padding: 50px 40px;
    border-radius: 25px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: modalPopIn 0.3s ease-out;
    font-family: 'Inter',sans-serif;
    font-weight: 500;
}

/* Atsiradimo animacija */
@keyframes modalPopIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* 3. Žalia varnelės ikona viršuje */
.ct-modal-icon {
    width: 80px;
    height: 80px;
    background-color: #e8f0ed; /* Šviesiai žalsva spalva (kaip jūsų formos) */
    color: #333; /* Tamsiai žalia */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    margin: 0 auto 25px;
}

/* 4. Teksto stiliai lange */
.ct-modal-content h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
    letter-spacing: 3px;
}

.ct-modal-content p {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* 5. "GERAI" mygtukas */
.ct-modal-btn {
    background-color: #92796e; /* Jūsų ruda akcento spalva */
    color: white;
    border: none;
    padding: 15px 50px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 3px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.ct-modal-btn:hover {
    background-color: #7a635a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}



/* Fixed CSS */






/* POLAPIS - GYDYTOJO DERMATOVENEROLOGO KONSULTACIJA */

.gydytojo-dermatovenerologo-konsultacija-section,
.odos-dariniu-salinimas-section,
.diagnostyniai-tyrimai-section,
.lytiniu-organu-ligu-istyrimas-section,
.chirurginis-nagu-ligu-gydymas-section,
.injekcinis-aknes-randu-gydymas-section,
.injekcines-proceduros-section,
.plauku-slinkimo-gydymas-section,
.odos-bukles-gerinimas-section {
    max-width: 700px;
    width: 100%;
    margin: auto auto; /* Combined margins for cleanliness */
    color: #333;
    padding: 80px 0px;
    align-items: center;
        
}


.gydytojo-dermatovenerologo-konsultacija-title,
.odos-dariniu-salinimas-title,
.diagnostyniai-tyrimai-title,
.lytiniu-organu-ligu-istyrimas-title,
.chirurginis-nagu-ligu-gydymas-title,
.injekcinis-aknes-randu-gydymas-title,
.injekcines-proceduros-title,
.plauku-slinkimo-gydymas-title,
.odos-bukles-gerinimas-title {
    letter-spacing: 3px;
    width: auto; 
    font-family: 'Inter', sans-serif;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: 400;
}

.gydytojo-dermatovenerologo-konsultacija-item-title,
.odos-dariniu-salinimas-item-title,
.diagnostyniai-tyrimai-item-title,
.lytiniu-organu-ligu-istyrimas-item-title,
.chirurginis-nagu-ligu-gydymas-item-title,
.injekcinis-aknes-randu-gydymas-item-title,
.injekcines-proceduros-item-title,
.plauku-slinkimo-gydymas-item-title,
.odos-bukles-gerinimas-item-title {
    display: block;
    max-width: 700px;
    word-wrap: break-word;
    width: 100%;
    text-align: left;
    font-size: 1.5rem;
    letter-spacing: 3px;
    font-family: 'Inter', sans-serif;
    border-bottom: 1px solid #C6A564;
    font-weight: 400;
    margin-bottom: 5px;
}



.gydytojo-dermatovenerologo-konsultacija-container,
.odos-dariniu-salinimas-container,
.diagnostyniai-tyrimai-container,
.lytiniu-organu-ligu-istyrimas-container,
.chirurginis-nagu-ligu-gydymas-container,
.injekcinis-aknes-randu-gydymas-container,
.injekcines-proceduros-container,
.plauku-slinkimo-gydymas-container,
.odos-bukles-gerinimas-container {
    width: 100%;
    
    
}

.gydytojo-dermatovenerologo-konsultacija-item,
.odos-dariniu-salinimas-item,
.diagnostyniai-tyrimai-item,
.lytiniu-organu-ligu-istyrimas-item,
.chirurginis-nagu-ligu-gydymas-item,
.injekcinis-aknes-randu-gydymas-item,
.injekcines-proceduros-item,
.plauku-slinkimo-gydymas-item,
.odos-bukles-gerinimas-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Aligns price to the bottom of the text line */
    /* This creates the thick light-colored line from the image */
    max-width: 700px;
    font-size: 1.3rem;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    text-align: justify;
    margin-bottom: 40px;

}

.gydytojo-dermatovenerologo-konsultacija-item-details p,
.odos-dariniu-salinimas-item-details p,
.diagnostyniai-tyrimai-item-details p,
.lytiniu-organu-ligu-istyrimas-item-details p,
.chirurginis-nagu-ligu-gydymas-item-details p,
.injekcinis-aknes-randu-gydymas-item-details p,
.injekcines-proceduros-item-details p,
.plauku-slinkimo-gydymas-item-details p,
.odos-bukles-gerinimas-item-details p {
    padding-bottom: 15px;
}
 
.gydytojo-dermatovenerologo-konsultacija-item-details ul,
.odos-dariniu-salinimas-item-details ul,
.diagnostyniai-tyrimai-item-details ul,
.lytiniu-organu-ligu-istyrimas-item-details ul,
.chirurginis-nagu-ligu-gydymas-item-details ul,
.injekcinis-aknes-randu-gydymas-item-details ul,
.injekcines-proceduros-item-details ul,
.plauku-slinkimo-gydymas-item-details ul,
.odos-bukles-gerinimas-item-details ul {
    padding-left: 15px;
}



/* KAINOS */

.kainos-bendroji-dermatologija-section,
.kainos-konsultacijos-section,
.kainos-estetine-medicina-section {
    max-width: 900px;
    margin: 0 auto;
    font-family: 'Inter', sans-serif; /* Clean sans-serif like the photo */
    color: #333;
    padding: 80px 0;
}

.kainos-bendroji-dermatologija-header,
.kainos-konsultacijos-header,
.kainos-estetine-medicina-header {
    text-align: center;
    font-size: 2.5rem;
    letter-spacing: 3px;
    margin-bottom: 25px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: #333;
}

.kainos-bendroji-dermatologija-title,
.kainos-konsultacijos-title,
.kainos-estetine-medicina-title {
    text-align: left;
    font-size: 1.3rem;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 20px;
    margin-top: 40px;
    color: #333;
    font-weight: 500;
}

.kainos-bendroji-dermatologija-container,
.kainos-konsultacijos-container,
.kainos-estetine-medicina-container {
    width: 100%;
}   

.kainos-bendroji-dermatologija-item,
.kainos-konsultacijos-item,
.kainos-estetine-medicina-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;              /* space ABOVE & BELOW content */
    border-bottom: 1px solid #C9A45C;
    color: #333;
    min-height: 40px;
    align-items: center;
}

.kainos-bendroji-dermatologija-item-details,
.kainos-konsultacijos-item-details,
.kainos-estetine-medicina-item-details {
    text-align: left;
    
}

.kainos-bendroji-dermatologija-item-title,
.kainos-konsultacijos-item-title,
.kainos-estetine-medicina-item-title {
    font-size: 1.15rem;
    color: #333;
    line-height: 1.2;
    font-family: 'Inter', sans-serif;
    margin: 0;
    display: block;
   
}

.kainos-bendroji-dermatologija-item-title-subtext,
.kainos-konsultacijos-item-title-subtext,
.kainos-estetine-medicina-item-title-subtext {
    font-size: 0.9rem;
    font-style: italic;
    color: #333;
    margin-top: 2px;
    font-family: 'Inter', sans-serif;
    
}

.kainos-bendroji-dermatologija-item-cost,
.kainos-konsultacijos-item-cost,
.kainos-estetine-medicina-item-cost {
    font-size: 1.1rem;
    font-weight: 400;
    color: #333;
    white-space: nowrap;
    padding-left: 20px;
    align-self: center;
    font-family: 'Inter', sans-serif;
}


@media (max-width: 1120px) {
    .gydytojo-dermatovenerologo-konsultacija-section,
    .odos-dariniu-salinimas-section,
    .diagnostyniai-tyrimai-section,
    .lytiniu-organu-ligu-istyrimas-section,
    .chirurginis-nagu-ligu-gydymas-section,
    .injekcinis-aknes-randu-gydymas-section,
    .injekcines-proceduros-section,
    .plauku-slinkimo-gydymas-section,
    .odos-bukles-gerinimas-section,
    .odos-dariniu-salinimas-title {
        
        width: auto;        
        margin: 40px 20px;
        padding: 0 !important;
        margin-left: auto;
        margin-right: auto;
    }
    

    .kainos-konsultacijos-section,
    .kainos-bendroji-dermatologija-section,
    .kainos-estetine-medicina-section {
        width: auto;        
        margin: 40px 20px;
        padding: 0 !important;
        margin-left: auto;
        margin-right: auto;
    }
 
    .page-apie-mus-text-wrapper h1,
    .gydytojai-info-wrapper h1,
    .services-section h2,
    .bd-services-section h2,
    .kainos-bendroji-dermatologija-section h1,
    .kainos-konsultacijos-section h1,
    .kainos-estetine-medicina-section h1,
    .ct-section h1, 
    .gydytojo-dermatovenerologo-konsultacija-section h1,
    .odos-dariniu-salinimas-section h1,
    .diagnostyniai-tyrimai-section h1,
    .lytiniu-organu-ligu-istyrimas-section h1,
    .chirurginis-nagu-ligu-gydymas-section h1,
    .injekcinis-aknes-randu-gydymas-section h1,
    .injekcines-proceduros-section h1,
    .plauku-slinkimo-gydymas-section h1,
    .odos-bukles-gerinimas-section h1,
    .hero-content h1,
    .kainos-bendroji-dermatologija-section h1,
    .kainos-konsultacijos-section h1,
    .kainos-estetine-medicina-section h1 {
    font-size: 28px;
    

}


    .page-apie-mus-text-wrapper p,
    .gydytojai-info-wrapper p,
    .services-section p,
    .bd-services-section p,
    .kainos-bendroji-dermatologija-section p,
    .kainos-konsultacijos-section p,
    .kainos-estetine-medicina-section p,
    .ct-section p,
    .gydytojo-dermatovenerologo-konsultacija-section p,
    .odos-dariniu-salinimas-section p,
    .diagnostyniai-tyrimai-section p,
    .lytiniu-organu-ligu-istyrimas-section p,
    .chirurginis-nagu-ligu-gydymas-section p,
    .injekcinis-aknes-randu-gydymas-section p,
    .injekcines-proceduros-section p,
    .plauku-slinkimo-gydymas-section p,
    .odos-bukles-gerinimas-section p,
    .hero-content p {
        font-size: 17.6px;

    }

    .gydytojo-dermatovenerologo-konsultacija-item-title,
    .odos-dariniu-salinimas-item-title,
    .diagnostyniai-tyrimai-item-title,
    .lytiniu-organu-ligu-istyrimas-item-title,
    .chirurginis-nagu-ligu-gydymas-item-title,
    .injekcinis-aknes-randu-gydymas-item-title,
    .injekcines-proceduros-item-title,
    .plauku-slinkimo-gydymas-item-title,
    .odos-bukles-gerinimas-item-title {
        font-size: 24.0px !important;

    }

    .gydytojo-dermatovenerologo-konsultacija-item-text,
    .odos-dariniu-salinimas-item-text,
    .diagnostyniai-tyrimai-item-text,
    .lytiniu-organu-ligu-istyrimas-item-text,
    .chirurginis-nagu-ligu-gydymas-item-text,
    .injekcinis-aknes-randu-gydymas-item-text,
    .injekcines-proceduros-item-text,
    .plauku-slinkimo-gydymas-item-text,
    .odos-bukles-gerinimas-item-text,
    .gydytojo-dermatovenerologo-konsultacija-list,
    .odos-dariniu-salinimas-list,
    .diagnostyniai-tyrimai-list,
    .lytiniu-organu-ligu-istyrimas-list,
    .chirurginis-nagu-ligu-gydymas-list,
    .injekcinis-aknes-randu-gydymas-list,
    .injekcines-proceduros-list,
    .plauku-slinkimo-gydymas-list,
    .odos-bukles-gerinimas-list,
    .gydytojai-info-wrapper p,
    .page-apie-mus-text-wrapper p {
        font-size: 18px !important;
}

    .info-overlay h3,
    .bd-info-bubble h3,
    .kainos-bendroji-dermatologija-item-details,
    .kainos-konsultacijos-item-details,
    .kainos-estetine-medicina-item-details {
        font-size: 18px !important;
    }

    .info-overlay p,
    .bd-info-bubble p {
        font-size: 16px !important;
    }


    .ct-group h3 {
        font-size: 20px !important;
    }


    .ct-group p,
    .ct-group a,
    .fa-brands {
        font-size: 18px !important;
    }
}
    

/* FOOTER PASLEPIMAS PASKUTINIAM KONTAKTAI */


/* Paslepia footerį tik kontaktu puslapyje, bet leidžia veikti JS */
/* Pakeiskite .page-id-XX į savo puslapio ID */


.page-id-132 footer,
.page-id-132 .site-footer {
    display: none !important;
}



/* Hide the default input */
/* --- FILE UPLOAD CONTAINER --- */
.file-upload-wrapper {
    margin: 15px 0;
    text-align: left;
}

/* Hide the ugly default browser input */
.file-upload-wrapper input[type="file"] {
    display: none;
}

/* The "Button" that users see */
.custom-file-upload {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    background: white;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 25px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.custom-file-upload:hover {
    background-color: #fcfcfc;
    border-color: #92796e;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.custom-file-upload i {
    color: #92796e; 
    font-size: 1.1rem;
}

/* --- SELECTED FILES LIST --- */
.file-list-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

/* Individual File Tag */
.file-item {
    background: #f2ebe4; /* Matches your form's beige color */
    padding: 6px 12px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #333;
    border: 1px solid #333;
    animation: fadeIn 0.3s ease;
}

/* The X Button */
.remove-file {
    cursor: pointer;
    color: #92796e;
    font-size: 1.2rem;
    line-height: 1;
    font-weight: bold;
    display: inline-block;
    transition: color 0.2s;
}

.remove-file:hover {
    color: #ff4d4d; /* Red on hover to signal deletion */
}

/* Small tips below */
.file-limit {
    display: block;
    font-size: 0.7rem;
    color: #999;
    margin-top: 6px;
    margin-left: 15px;
    font-style: italic;
}

/* Simple animation for adding files */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.file-size-counter {
    display: block;
    font-size: 0.7rem;
    color: #999;
    margin-top: 6px;
    margin-left: 15px;
    font-style: italic;
}

#total-size {
    font-family: monospace; /* Makes numbers easier to read */
}
