/* ==========================================
   1. OSNOVNA PODEŠAVANJA
   ================================---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #333333;
    line-height: 1.6;
    background-color: #ffffff;
}

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

/* ==========================================
   2. GORNJA TRAKA (TOP BAR) I SOCIAL
   ================================---------- */
.top-bar {
    background-color: #2b4f3e;
    color: #ffffff;
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-right a,
.top-bar-address-link {
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.top-bar-right a:hover,
.top-bar-address-link:hover {
    color: #f39c12;
}

.top-bar-right .social-icon-link {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, color 0.3s;
}

/* Brend boje za društvene mreže */
.top-bar-right a.social-icon-link[aria-label="Facebook"],
.footer-social-icon i[aria-label="Facebook"],
.footer-social-icon .fa-facebook-f {
    background-color: #1877f2 !important;
    color: #ffffff !important;
}

.top-bar-right a.social-icon-link[aria-label="Instagram"],
.footer-social-icon i[aria-label="Instagram"],
.footer-social-icon .fa-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) !important;
    color: #ffffff !important;
}

.top-bar-right a.social-icon-link[aria-label="Facebook"]:hover,
.top-bar-right a.social-icon-link[aria-label="Instagram"]:hover,
.footer-social-icon:hover i {
    background: #f39c12 !important;
    background-color: #f39c12 !important;
    color: #2b4f3e !important;
}

/* ==========================================
   3. HEADER I NAVIGACIJA
   ================================---------- */
.site-header {
    position: sticky;
    top: 0;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* ==========================================
   SKROL DO SEKCIJA - OFFSET ZBOG HEADERA
   ========================================== */

section[id],
footer[id] {
    scroll-margin-top: 90px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: relative;
}

.logo img {
    height: 50px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.main-nav a {
    text-decoration: none;
    color: #569777;
    font-weight: 600;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #f39c12;
}

.header-cta {
    display: flex;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #569777;
    cursor: pointer;
    padding: 5px;
}

/* ==========================================
   4. DUGMAD (BUTTONS)
   ================================---------- */
.btn-primary {
    background-color: #569777;
    color: #ffffff;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    background-color: #3f735a;
}

.btn-secondary {
    background-color: transparent;
    color: #569777;
    border: 2px solid #569777;
    padding: 10px 22px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: background 0.3s, color 0.3s;
}

.btn-secondary:hover {
    background-color: #569777;
    color: #ffffff;
}

.btn-full {
    width: 100%;
}

/* ==========================================
   HERO - DORAĐENI STIL
   ========================================== */

.hero-section {
    background:
        linear-gradient(
            rgba(255, 255, 255, 0.50),
            rgba(255, 255, 255, 0.50)
        ),
        url('../images/hero-bg.jpg') center/cover no-repeat;

    padding: 95px 0;
    text-align: center;
}

.hero-content {
    display: flex;
    justify-content: center;
}

.hero-box {
    max-width: 850px;
    padding: 40px 50px;
    background: rgba(255, 255, 255, 0.82);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(43, 79, 62, 0.10);
}

.hero-motto {
    color: #569777;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.hero-content h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    color: #2b4f3e;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 1.35rem;
    font-weight: 600;
    color: #569777;
    margin-bottom: 15px;
}

.hero-description {
    max-width: 680px;
    margin: 0 auto 28px auto;
    font-size: 1.05rem;
    color: #444;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    justify-content: center;
}

.hero-buttons .btn-primary {
    padding: 13px 28px;
}


/* ==========================================
   6. SEKCIJE I OPŠTA PRAVILA
   ================================---------- */
.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: #f4f8f5;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: #569777;
}

/* ==========================================
   7. USLUGE (SERVICES) I AKORDEON
   ================================---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch; /*dodao sam */
}

.service-card {
    background: #ffffff;
    padding: 25px 12px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    /*height: fit-content;*/
    height: 100%;
    box-sizing: border-box;
    scroll-snap-align: start;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.5rem;
    color: #f39c12;
    margin-bottom: 15px;
    /*Ovaj deo je dodat*/
    height: 50px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Naslovi kartica poravnati po visini */
.service-card h3 {
    width: 100%;
    min-height: 3.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.service-toggle-btn {
    background-color: #f39c12;
    color: #fff;
    border: none;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    /*margin-top: 15px;*/
    margin-top: auto;
    flex-shrink: 0; /*dodao sam*/
    transition: background-color 0.3s ease;
}

.service-toggle-btn:hover {
    background-color: #d68910;
}

.service-toggle-btn .icon {
    font-size: 1.1rem;
    font-weight: bold;
}

.service-doctors-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin-top 0.4s ease;
    margin-top: 0;
    width: 100%;
}

.service-card.expanded .service-doctors-list {
    max-height: 800px;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #e2ece6;
}

.service-doctors-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.service-doctors-list li {
    font-size: 0.88rem;
    color: #333;
    padding: 6px 0;
    border-bottom: 1px dashed #f0f0f0;
}

.service-doctors-list li:last-child {
    border-bottom: none;
}

.service-doctors-list .doc-title {
    color: #569777;
    font-weight: 600;
    font-size: 0.82rem;
    display: block;
}

/* ==========================================
   8. LEKARI I SLAJDER (DOCTORS / TEAM)
   ================================---------- */
.team-slider-container {
    width: 100%;
    overflow: hidden;
    padding: 10px 0 30px 0;
}

/*.team-grid {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 15px;
}*/

.team-grid {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
    align-items: flex-start; /* Osigurava da sve kartice u redu budu iste visine */
}

.team-grid::-webkit-scrollbar {
    height: 6px;
}

.team-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.team-grid::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.team-grid::-webkit-scrollbar-thumb:hover {
    background: #f39c12;
}

/*.doctor-card {
    background: #ffffff;
    padding: 25px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: fit-content;
    flex: 0 0 calc(25% - 19px);
    box-sizing: border-box;
    scroll-snap-align: start;
    align-self: flex-start;
}*/

.doctor-card {
    background: #ffffff;
    padding: 25px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 calc(25% - 19px); /* Prilagodi širini koja ti treba, npr. 4 kartice u videu */
    box-sizing: border-box;
    scroll-snap-align: start;
    align-self: stretch; /* Razvlači karticu na punu visinu roditelja */
    /* BITNO */
    height: 350px;
    overflow: hidden;
}

.doctor-card:hover {
    transform: translateY(-5px);
}

.doctor-img {
    width: 120px;         /* Možeš prilagoditi širinu po želji (npr. 100px ili 120px) */
    height: auto;         /* Visina se automatski srazmerno prilagođava da se ne izduži */
    max-height: 160px;    /* Opciono: da ne bude predugačka */
    object-fit: cover;
    border-radius: 6px;   /* Blago zaobljene ivice umesto kruga */
    margin-bottom: 15px;
    flex-shrink: 0;
}

/* Unutrašnji fleksibilni kontejner */
.doctor-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex-grow: 1;    
}

/* Fiksiramo visinu naslova da uvek zauzima prostor za 2 reda i poravnava elemente ispod */
.doctor-content h3 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 8px;
    min-height: 2.4em; 
    display: flex;
    align-items: center;
    justify-content: center;
}

/*.doctor-info {
    padding: 20px 0 0 0;
    text-align: center;
    width: 100%;
}

.doctor-info h3 {
    color: #569777;
    margin-bottom: 5px;
}*/

/* Opciono: Da unutrašnji info blok popuni preostali prostor ako je potrebno */
.doctor-info {
    padding: 20px 0 0 0;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Tera info deo da se istegne i poravna dno kartica */
}

.doctor-info h3 {
    color: #569777;
    margin-bottom: 5px;
    /* Sprečava da prelom imena gura dugme van ifoa */
    min-height: 2.4em; /* Zauzima prostor za 2 reda teksta uvek */
    display: flex;
    align-items: center;
    justify-content: center;
}

.doctor-spec {
    color: #f39c12;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Donji deo sa dugmetom i biografijom koji se lepi na dno kartice */
.doctor-bottom-wrap {
    margin-top: auto; /* Gura ovaj blok uvek na dno kartice */
    width: 100%;
}

/* Stil za dugme */
.toggle-bio-btn {
    background: none;
    border: 1px solid #569777;
    color: #569777;
    padding: 6px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.toggle-bio-btn:hover {
    background: #569777;
    color: #fff;
}

.toggle-bio-btn .icon {
    font-size: 1.1rem;
    font-weight: bold;
}

/* Biografija - inicijalno skrivena */
.doctor-bio {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.3s ease;
    opacity: 0;
    text-align: left;
    font-size: 0.85rem;
}

/* Kada je kartica otvorena (klasa koju dodaje JS) */
.doctor-card.expanded {
    height: auto;
    overflow: visible;
}

.doctor-card.expanded .doctor-bio {
    max-height: 200px; /* Dovoljno visoko da primi tekst biografije */
    opacity: 1;
    margin-top: 10px;
}

.doctor-bio ul {
    margin: 0;
    padding-left: 20px;
    text-align: left;
}

.doctor-bio ul li {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 6px;
    list-style-type: disc;
}

/* ==========================================
   9. TABELA CENOVNIKA (PRICING)
   ================================---------- */
.price-table-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
}

.price-table th {
    background-color: #397d5b !important;
    color: #ffffff;
    padding: 15px 20px;
    font-size: 1.1rem;
    text-align: left;
}

.price-table td {
    padding: 12px 20px;
    border-bottom: 1px solid #eeeeee;
}

.price-table tr:hover {
    background-color: #f9f9f9;
}

.price-table tr.category-row {
    background-color: #eaf4ed;
}

.price-table tr.category-row td {
    font-weight: 700;
    color: #569777;
    font-size: 1rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #569777;
}

.text-right {
    text-align: right !important;
    font-weight: 600;
}

/* ==========================================
   10. FORMA ZA ZAKAZIVANJE
   ================================---------- */
.booking-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-notice {
    font-size: 0.9rem;
    color: #666666;
    margin-bottom: 5px;
}

.required-star {
    color: #e74c3c;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-family: inherit;
}

/* ==========================================
   11. FOOTER I MAPA
   ================================---------- */
.site-footer {
    background-color: #2b4f3e;
    color: #ffffff;
    padding-top: 60px;
    padding-bottom: 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-block h3 {
    font-size: 1.3rem;
    color: #f39c12;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-block p {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.footer-block a {
    color: #ffffff;
    text-decoration: none;
}

.footer-block a:hover {
    color: #f39c12;
}

.footer-map-wrapper {
    width: 100%;
    min-height: 320px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.footer-map-wrapper iframe {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border: 0;
}

.footer-social {
    margin-top: 15px;
}

.footer-social-icon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-social-icon i {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, color 0.3s;
}

.footer-social-icon:hover {
    color: #f39c12;
}

.footer-social-icon:hover i {
    background-color: #f39c12;
    color: #2b4f3e;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ==========================================
   12. RESPONSIVE (MEDIA QUERIES)
   ================================---------- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
    .team-grid .doctor-card {
        flex: 0 0 calc(33.333% - 17px);
    }
}

@media (max-width: 992px) {
    .top-bar {
        font-size: 0.8rem;
    }
    .top-bar-left {
        display: none;
    }
    .top-bar-container {
        justify-content: center;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }
    .main-nav.active {
        display: block;
    }
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-map-wrapper {
        height: 280px;
    }
    .team-grid .doctor-card {
        flex: 0 0 calc(50% - 13px);
    }
}

@media (max-width: 576px) {
    .top-bar-right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .btn-primary {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
	gap: 18px;
    }
    .service-card { /*dodato*/
        padding: 25px 20px;
    }
    .team-grid .doctor-card {
        flex: 0 0 100%;
    }

    .hero-section {
        padding: 60px 0;
    }

    .hero-box {
        padding: 30px 20px;
    }

    .hero-motto {
        font-size: 0.72rem;
        letter-spacing: 1.5px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }
}

.service-doctors-list ul.service-specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left; /* Da tekst bude poravnat levo ili center po želji */
}

.service-doctors-list ul.service-specs-list li {
    margin-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 6px;
}

.service-doctors-list ul.service-specs-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.service-doctors-list ul.service-specs-list a {
    color: #569777; /* Boja tvoje ordinacije/sajta */
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    display: block;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.service-doctors-list ul.service-specs-list a:hover {
    color: #f39c12; /* Boja kad pređeš mišem */
    padding-left: 5px; /* Blagi efekat pomeranja u desno */
}

/* Glavni kontejner za stavku sa tooltipom */
.has-tooltip {
    position: relative;
}

/* Stil za skriveni tooltip prozorčić */
.tooltip-content {
    position: absolute;
    left: 0;
    top: 50%;
    margin-top: 5px;
    background-color: #2c3e50; /* Tamna pozadina */
    color: #ffffff; /* Bela slova */
    padding: 8px 12px;
    font-size: 0.85rem;
    line-height: 1.4;
    border-radius: 6px;
    width: 220px; /* Širina oblačića */
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    pointer-events: none;
}

/* Mali troulić (strelica) koja pokazuje na link */
.tooltip-content::after {
    content: "";
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent #2c3e50 transparent transparent;
}

/* Kada se pređe mišem preko li elementa, prikaži tooltip */
.has-tooltip:hover .tooltip-content {
    opacity: 1;
    visibility: visible; 
}

/* ==========================================
   MODAL PROZOR (ČIST TEKST, BEZ LISTI)
   ========================================== */
/* ==========================================
   DORADE MODAL PROZORA (STILIZOVANO I CENTRIRANO)
   ========================================== */
/* ==========================================
   MODAL U FORMI TABELE CENOVNIKA
   ========================================== */
.custom-modal-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;

    background-color: rgba(0, 0, 0, 0.6);

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 99999;

    opacity: 0;
    visibility: hidden;

    transition: opacity 0.3s ease, visibility 0.3s ease;

    padding: 20px;

    box-sizing: border-box;
}

.custom-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* GLAVNI KONTEJNER */
.custom-modal-container {
    position: relative;

    width: 100%;
    max-width: 600px;

    max-height: 85vh;

    background-color: #ffffff;

    border-radius: 10px;

    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);

    transform: translateY(-15px);
    transition: transform 0.3s ease;

    overflow: hidden;

    display: flex;
    flex-direction: column;

    box-sizing: border-box;
}

.custom-modal-overlay.active .custom-modal-container {
    transform: translateY(0);
}


/* ZAGLAVLJE */
.custom-modal-header {
    flex: 0 0 auto;

    background-color: #569777; /*#34495e*/
    color: #ffffff;

    padding: 20px 55px 20px 30px;

    border-radius: 10px 10px 0 0;

    text-align: center;

    position: relative;
}

.custom-modal-header h3 {
    margin: 0;

    font-size: 1.25rem;

    color: #ffffff !important;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.5px;
}


/* X DUGME */
.custom-modal-close {
    position: absolute;

    top: 10px;
    right: 15px;

    width: 36px;
    height: 36px;

    padding: 0;

    background: transparent;

    border: none;

    color: #ffffff;

    cursor: pointer;

    font-size: 2.2rem;

    line-height: 36px;

    z-index: 10;

    transition: opacity 0.2s ease;
}

.custom-modal-close:hover {
    opacity: 0.7;
}


/* TELO MODALA - OVDE JE SCROLL */
.custom-modal-body {
    flex: 1 1 auto;

    min-height: 0;

    overflow-y: auto;
    overflow-x: hidden;

    box-sizing: border-box;

    scrollbar-width: thin;
    scrollbar-color: #b8c9c0 transparent;
}


/* WEBKIT SCROLLBAR */
.custom-modal-body::-webkit-scrollbar {
    width: 7px;
}

.custom-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.custom-modal-body::-webkit-scrollbar-thumb {
    background-color: #b8c9c0;
    border-radius: 10px;
}

.custom-modal-body::-webkit-scrollbar-thumb:hover {
    background-color: #8fa99b;
}


/* SADRŽAJ */
#modalDynamicContent {
    width: 100%;
    box-sizing: border-box;
}


/* TABELA */
.modal-price-table {
    width: 100%;

    border-collapse: collapse;

    border-spacing: 0;

    text-align: left;

    margin: 0;

    table-layout: fixed;
}


/* ĆELIJE */
.modal-price-table th,
.modal-price-table td {
    padding: 12px 30px;

    border-bottom: 1px solid #f0f0f0;

    font-size: 0.95rem;

    box-sizing: border-box;
}


/* KATEGORIJA */
.modal-price-table .category-row td {
    background-color: #f4f8f5;

    color: #2b4f3e;

    font-weight: 700;

    text-transform: uppercase;

    font-size: 0.9rem;

    letter-spacing: 0.5px;

    padding-top: 15px;
    padding-bottom: 15px;

    border-top: 2px solid #e2ece6;
    border-bottom: 2px solid #e2ece6;
}


/* NAZIV STRUKE */
.modal-price-table td .doc-title {
    display: block;

    font-size: 0.78rem;

    color: #569777;

    font-weight: 600;

    text-transform: uppercase;

    margin-bottom: 2px;
}


/* IME LEKARA */
.modal-price-table td .doc-name {
    display: block;

    font-size: 0.95rem;

    color: #333;

    font-weight: 700;
}


/* HOVER */
.modal-price-table tr:not(.category-row):hover td {
    background-color: #fafbfb;
}

/* ==========================================
   PRETRAGA LEKARA - REDIZAJN
   ========================================== */

.team-search {
    width: 100%;
    max-width: 680px;
    margin: 18px auto 5px;
}


/* Glavni okvir pretrage */
.team-search-wrapper {
    position: relative;
    width: 100%;
}


/* Polje */
.doctor-search-input {
    width: 100%;
    height: 54px;

    padding: 0 52px 0 52px;

    background-color: #ffffff;

    color: #333333;

    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;

    border: 1px solid #d9e4de;
    border-radius: 8px;

    outline: none;

    box-sizing: border-box;

    /* Suptilna senka */
    box-shadow:
        0 3px 12px rgba(43, 79, 62, 0.06);

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}


/* Placeholder */
.doctor-search-input::placeholder {
    color: #999999;
    font-weight: 400;
}


/* Fokusirano polje */
.doctor-search-input:focus {
    border-color: #569777;

    background-color: #ffffff;

    box-shadow:
        0 0 0 3px rgba(86, 151, 119, 0.10),
        0 5px 18px rgba(43, 79, 62, 0.08);
}


/* ==========================================
   IKONICA PRETRAGE
   ========================================== */

.team-search-icon {
    position: absolute;

    left: 19px;
    top: 50%;

    transform: translateY(-50%);

    color: #569777;

    font-size: 1.15rem;

    line-height: 1;

    pointer-events: none;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}


/* Kada je polje aktivno */
.team-search-wrapper:focus-within .team-search-icon {
    color: #2b4f3e;
    transform: translateY(-50%) scale(1.05);
}


/* ==========================================
   X - BRISANJE PRETRAGE
   ========================================== */

.clear-doctor-search {
    position: absolute;

    right: 13px;
    top: 50%;

    transform: translateY(-50%);

    width: 30px;
    height: 30px;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 0;

    background-color: #f4f8f5;

    color: #569777;

    border: none;
    border-radius: 50%;

    font-size: 1.15rem;
    line-height: 1;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


/* Hover X dugmeta */
.clear-doctor-search:hover {
    background-color: #569777;
    color: #ffffff;

    transform: translateY(-50%) scale(1.05);
}


/* Klik */
.clear-doctor-search:active {
    transform: translateY(-50%) scale(0.95);
}


/* ==========================================
   REZULTAT PRETRAGE
   ========================================== */

.doctor-search-result {
    min-height: 20px;

    margin: 10px 0 0;

    color: #777777;

    font-size: 0.82rem;
    font-weight: 500;

    text-align: center;
}


/* ==========================================
   NEMA REZULTATA
   ========================================== */

.no-doctors-found {
    width: 100%;

    padding: 40px 20px;

    text-align: center;

    color: #777777;

    font-size: 0.95rem;

    background-color: #f4f8f5;

    border-radius: 8px;
}


/* ==========================================
   MOBILNI
   ========================================== */

@media (max-width: 576px) {

    .team-search {
        max-width: 100%;
        margin: 18px auto 10px;
    }

    .doctor-search-input {
        height: 50px;

        padding-left: 48px;
        padding-right: 48px;

        font-size: 0.9rem;

        border-radius: 8px;
    }

    .team-search-icon {
        left: 17px;
        font-size: 1.1rem;
    }

    .clear-doctor-search {
        right: 10px;

        width: 28px;
        height: 28px;

        font-size: 1.05rem;
    }
}

/* ==========================================
   O NAMA
   ========================================== */

.about-section {
    position: relative;
    /*background:
        linear-gradient(
            rgba(244, 248, 245, 0.93),
            rgba(244, 248, 245, 0.93)
        ),
        url('../images/about-bg.jpg') center/cover;*/
}

/* Glavni sadržaj */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

/* Naslov */
.about-section .section-title {
    margin-bottom: 30px;
}

.about-section .section-title h2 {
    margin-bottom: 15px;
}

/* Moto */
.about-motto {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: #2b4f3e;
}

.about-motto span {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.about-motto small {
    color: #777;
    font-size: 0.85rem;
    font-style: italic;
}

/* Tekst */
.about-text {
    max-width: 850px;
    margin: 0 auto;
}

.about-text p {
    margin-bottom: 20px;
    text-align: left;
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-text strong {
    color: #2b4f3e;
    font-weight: 700;
}

/* Završna poruka */
.about-highlight {
    max-width: 700px;
    margin: 35px auto 0;
    padding: 22px 30px;
    text-align: center;
    background-color: rgba(244, 248, 245, 0.93); /*255, 255, 255, 0.88*/
    border-left: 4px solid #f39c12;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.about-highlight span {
    display: block;
    margin-bottom: 5px;
    color: #569777;
    font-size: 1.05rem;
    font-weight: 700;
}

.about-highlight p {
    margin: 0;
    color: #444;
    font-size: 0.95rem;
    font-weight: 500;
}


/* ==========================================
   O NAMA - MOBILNI
   ========================================== */

@media (max-width: 576px) {

    .about-section .section-title {
        margin-bottom: 25px;
    }

    .about-motto span {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .about-motto small {
        font-size: 0.8rem;
    }

    .about-text p {
        font-size: 0.92rem;
        line-height: 1.7;
        margin-bottom: 17px;
    }

    .about-highlight {
        padding: 18px 20px;
        margin-top: 28px;
    }

    .about-highlight span {
        font-size: 1rem;
    }

    .about-highlight p {
        font-size: 0.9rem;
    }
}
/* ==========================================
   VIBER - SAMO PORUKE
   ========================================== */

.footer-viber {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: #ffffff;
    text-decoration: none;

    font-size: 0.95rem;
    font-weight: 500;



    transition: color 0.3s ease;
}

.footer-viber > i {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background-color: #7360f2;
    color: #ffffff;

    font-size: 1rem;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.2s ease;
}

.footer-viber-text {
    display: flex;
    flex-direction: column;

    line-height: 1.2;
}

.footer-viber-text strong {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
}

.footer-viber-text small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.72rem;
    margin-top: 2px;
}

.footer-viber:hover {
    color: #f39c12;
}

.footer-viber:hover > i {
    background-color: #f39c12;
    color: #2b4f3e;
    transform: scale(1.05);
}

.footer-viber:hover .footer-viber-text strong {
    color: #f39c12;
}

.footer-viber:hover .footer-viber-text small {
    color: #ffffff;
}


/* ==========================================
   VIBER - MOBILNI
   ========================================== */

@media (max-width: 576px) {

    .footer-viber-text strong {
        font-size: 0.85rem;
    }

    .footer-viber-text small {
        font-size: 0.7rem;
    }
}
/* ==========================================
   VIBER FALLBACK PORUKA
   ========================================== */

.viber-fallback-message {
    position: fixed;
    left: 30px;
    bottom: 30px;

    z-index: 999999;

    max-width: 420px;

    background-color: #ffffff;
    color: #333333;

    border-radius: 10px;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.20);

    opacity: 0;
    visibility: hidden;

    transform: translateY(20px);

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease;
}

.viber-fallback-message.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.viber-fallback-content {
    display: flex;
    align-items: center;

    gap: 15px;

    padding: 18px 45px 18px 20px;

    position: relative;
}

.viber-fallback-content > i {
    flex-shrink: 0;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background-color: #665cac;
    color: #ffffff;

    font-size: 1.25rem;
}

.viber-fallback-text {
    min-width: 0;
}

.viber-fallback-text strong {
    display: block;

    color: #2b4f3e;

    font-size: 0.95rem;
    font-weight: 700;

    margin-bottom: 3px;
}

.viber-fallback-text p {
    margin: 0;

    color: #666666;

    font-size: 0.82rem;
    line-height: 1.45;
}

.viber-fallback-close {
    position: absolute;

    top: 7px;
    right: 9px;

    width: 28px;
    height: 28px;

    padding: 0;

    border: none;
    background: transparent;

    color: #999999;

    font-size: 1.4rem;
    line-height: 28px;

    cursor: pointer;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.viber-fallback-close:hover {
    color: #2b4f3e;

    background-color: #f4f8f5;

    border-radius: 50%;
}


/* ==========================================
   VIBER - MOBILNI
   ========================================== */

@media (max-width: 576px) {

    .viber-fallback-message {
        left: 15px;
        right: 15px;
        bottom: 15px;

        max-width: none;
    }

    .viber-fallback-content {
        padding: 16px 40px 16px 15px;

        gap: 12px;
    }

    .viber-fallback-content > i {
        width: 38px;
        height: 38px;

        font-size: 1.1rem;
    }

    .viber-fallback-text strong {
        font-size: 0.88rem;
    }

    .viber-fallback-text p {
        font-size: 0.78rem;
    }
}

/* Skriveno polje za otkrivanje spam botova */
.website-field {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}
/* Uklanjanje sistemskog X dugmeta iz search polja */
.doctor-search-input::-webkit-search-cancel-button,
.doctor-search-input::-webkit-search-decoration,
.doctor-search-input::-webkit-search-results-button,
.doctor-search-input::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}