/* Styles for Sanitetski Prevoz Website */
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa; /* Osnovna pozadina sajta */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.container-full {
    width: 100%;
    padding: 0 20px; /* Mali razmak od ivica ekrana */
}

/* Header / Navigation - OČIŠĆEN KOD */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    height: 60px; /* Fiksna visina za navigaciju */
}

.logo h1 {
    font-size: 1.5rem;
    color: #d32f2f;
    cursor: default;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem;
}

.nav-link:hover {
    color: #d32f2f;
}

.nav-toggle, .nav-close {
    display: none; /* Sakriveni po defaultu */
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
}

/* Responsive stilovi za Burger Meni */
@media (max-width: 992px) {
    .nav-menu-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100%;
        background-color: #fff;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.4s ease-in-out;
        z-index: 1001;
    }
    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        padding: 4rem 2rem 2rem;
        gap: 2rem;
    }
    .nav-toggle {
        display: block;
    }
    .nav-close {
        display: block;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        font-size: 2rem;
    }
    .close-btn-li {
        display: block;
        position: absolute;
        top: 0;
        right: 0;
    }
    .show-menu {
        right: 0;
    }

    /* AŽURIRANO: Kontakt forma se prebacuje u jednu kolonu na tabletima */
    .contact-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .nav-menu-container {
        width: 80%;
    }
    
    /* AŽURIRANO: Smanjujemo veličinu naslova na telefonima */
    .hero-title {
        font-size: 2.2rem;
    }
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    .about-text h3 {
        font-size: 1.5rem;
    }
}

/* Hero Section */
.hero {
    /* Menjamo URL da pokazuje na vašu lokalnu sliku */
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('media/hero.png') center center/cover no-repeat;
    color: white;
    padding: 120px 20px;
    text-align: center;
}


.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: #d32f2f;
    color: white;
    border: 2px solid #d32f2f;
}

.btn-primary:hover {
    background-color: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-emergency {
    background-color: #f44336;
    color: white;
    font-size: 1.2rem;
    padding: 18px 40px;
}

.btn-emergency:hover {
    background-color: #e64a19;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 87, 34, 0.4);
}

/* Sections */
section {
    padding: 80px 20px;
}
.about, .gallery, .testimonials, .contact-form {
    background-color: #ffffff;
}
.services, .contact {
    background-color: #f8f9fa;
}


.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #d32f2f;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* About Section */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.about-text h3 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1.5rem 0;
    color: #d32f2f;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.75rem 0;
    font-size: 1.1rem;
    color: #555;
}
.feature-list li .fas {
    color: #28a745;
    margin-right: 10px;
}

/* Gallery & Testimonials Section - FINALNA ISPRAVKA */

/* Glavni stilovi za oba karusela */
.swiper {
    width: 100%;
    padding-top: 20px;
    padding-bottom: 50px; /* Prostor za paginaciju */
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0; /* Pozadina dok se slika/video ne učita */
}

/* Stilovi specifični za GALERIJU */
.gallery-swiper .swiper-slide {
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.gallery-swiper .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Stilovi specifični za TESTIMONIALS */
.testimonials-swiper {
    padding-left: 20px;  /* Dodajemo padding da se karusel ne lepi za ivice */
    padding-right: 20px;
}

.testimonial-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Forsira 16:9 odnos stranica */
    height: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.testimonial-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Stilovi za navigaciju i paginaciju */
:root {
    --swiper-theme-color: #d32f2f;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--swiper-theme-color);
}

.swiper-pagination-bullet-active {
    background: var(--swiper-theme-color);
}


/* Emergency Section */
.emergency {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    color: white;
    text-align: center;
}

.emergency-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.emergency-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Contact Section */
.contact-grid {
    display: grid;
    /* Na desktopu, dve kolone */
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}


.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #d32f2f;
}

.contact-item {
    margin-bottom: 1.5rem;
}

.contact-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

.contact-item p {
    color: #666;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 16px;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.social-link i {
    font-size: 1.1rem;
}

.social-link:hover {
    color: white;
    transform: translateX(5px);
}

.social-link.facebook:hover { background-color: #1877f2; }
.social-link.instagram:hover { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4); }
.social-link.maps:hover { background-color: #34a853; }

/* Contact Form */
.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #d32f2f;
}

.form-group {   
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d32f2f;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.form-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-message i { font-size: 1.2rem; }
.form-message-success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-message-error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
#submitBtn:disabled { opacity: 0.6; cursor: not-allowed; }

/* STILOVI ZA VALIDACIJU FORME */
.form-group .error-message {
    color: #d32f2f;
    font-size: 0.85rem;
    display: none; /* Sakriveno po defaultu */
    margin-top: 5px;
}

.form-group input.invalid,
.form-group textarea.invalid {
    border-color: #d32f2f;
}

.form-group .error-message.visible {
    display: block; /* Prikazujemo poruku kada postoji greška */
}

/* STILOVI ZA VALIDACIJU FORME */
.form-group .error-message {
    color: #d32f2f;
    font-size: 0.85rem;
    display: block; /* Uvek ima prostor, ali je prazan */
    min-height: 1.2em;
    margin-top: 5px;
}
.form-group input.invalid,
.form-group textarea.invalid {
    border-color: #d32f2f;
}

/* ISPRAVLJENI STILOVI ZA SUBMIT DUGME SA LOADER-om */
#submitBtn {
    position: relative;
    transition: all 0.3s ease;
}
#submitBtn .btn-loader {
    display: none;
}
#submitBtn.loading .btn-text {
    visibility: hidden; /* Sakrivamo tekst ali dugme zadržava veličinu */
}
#submitBtn.loading .btn-loader {
    display: inline-block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-btn {
    background-color: #f0f0f0;
    border: 2px solid transparent;
    color: #555;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.lang-btn:hover {
    background-color: #e0e0e0;
}

.lang-btn.active {
    background-color: #d32f2f;
    color: white;
    border-color: #b71c1c;
}


/* Footer */
.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 2rem 20px;
}

.footer p { margin: 0.5rem 0; }
.footer-note { font-size: 0.9rem; opacity: 0.8; }

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.social-link-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.social-link-footer:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}
.social-link-footer i { font-size: 1.1rem; }

/* Responsive Design */
@media (max-width: 480px) {
    .hero { padding: 80px 20px; }
    .btn { padding: 12px 24px; }
    .service-card, .contact-form { padding: 1.5rem; }
    .social-links { flex-direction: row; flex-wrap: wrap; }
    .footer-social { gap: 0.75rem; }
}

/* --- STAFF PAGE STYLES --- */

/* Hero for staff page */
.staff-hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('media/hero.png') center center/cover;
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.staff-hero h1 {
    font-size: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Article Layout */
.staff-content {
    padding: 40px 20px;
    background-color: #fff;
}

.article-layout {
    display: grid;
    /* Desktop: Image left, Text right */
    grid-template-columns: 1fr 1.5fr; 
    gap: 50px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.article-image-container {
    position: sticky;
    top: 100px; /* Sticky effect on Desktop only */
}

/* Image styling */
.staff-figure {
    margin: 0;
    width: 100%;
}

.staff-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: block;
}

.staff-caption {
    margin-top: 15px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-bottom: 3px solid #d32f2f;
}

/* Text Content Styling */
.article-text {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.8;
}

.intro-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: #222;
    margin-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 2rem;
}

.article-text h2 {
    color: #d32f2f;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.staff-quote {
    background-color: #fff5f5;
    border-left: 5px solid #d32f2f;
    padding: 20px 30px;
    margin: 30px 0;
    font-style: italic;
    font-weight: 600;
    color: #333;
    border-radius: 0 8px 8px 0;
}

.staff-quote i {
    color: #d32f2f;
    opacity: 0.3;
    margin-right: 10px;
}

.staff-list {
    list-style: none;
    margin: 20px 0;
}

.staff-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.staff-list li i {
    color: #28a745;
    margin-top: 5px;
    margin-right: 12px;
}

.conclusion-box {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    padding: 30px;
    border-radius: 12px;
    margin-top: 40px;
}

/* --- RESPONSIVE FIXES --- */

/* Tablet and Mobile (Screens smaller than 1024px) */
@media (max-width: 1024px) {
    .article-layout {
        display: flex;       /* Switch to Flexbox */
        flex-direction: column; /* Stack vertically */
        gap: 30px;
    }
    
    .article-image-container {
        position: static;    /* Disable sticky */
        width: 100%;
        max-width: 500px;    /* Limit image width on mobile */
        margin: 0 auto;      /* Center the image */
    }

    .staff-hero h1 {
        font-size: 2rem;
    }
    
    .intro-text {
        font-size: 1.1rem;
    }
}

/* Small Mobile (Phones) */
@media (max-width: 480px) {
    .staff-content {
        padding: 30px 15px;
    }
    
    .staff-quote {
        padding: 15px;
        font-size: 0.95rem;
    }
}

/* --- STAFF PAGE UPDATES --- */

/* New Intro Container (Full width top) */
.staff-intro-container {
    max-width: 900px;
    margin: 0 auto 40px auto; /* Centers text and adds space below */
}

/* Style the intro text specifically */
.intro-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: #222;
    line-height: 1.8;
    border-left: 4px solid #d32f2f; /* Nice accent line on the left */
    padding-left: 20px;
}

/* Update Article Layout to handle the change */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr; 
    gap: 50px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .staff-intro-container {
        margin-bottom: 30px;
    }
    
    .intro-text {
        font-size: 1.15rem;
        padding-left: 15px;
        border-width: 3px;
    }

    .article-layout {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
}