:root {
    --primary: #D56CA2;
    --primary-dark: #b85a8a;
    --text: #111111;
    --text-light: #666666;
    --grey-light: #F7F7F7;
    --grey-medium: #E4E4E4;
    --grey-dark: #666666;
    --white: #ffffff;
    --success: #28a745;
    --error: #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: var(--white);
}

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

/* Header */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1002;
    transition: top 0.3s ease;
}

/* Absence Notification */
.absence-notification {
    background-color: #fff3cd;
    border-bottom: 3px solid #ffc107;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1001;
    width: 100%;
    transition: top 0.3s ease, opacity 0.3s ease, max-height 0.3s ease;
    overflow: hidden;
}

.absence-notification.hidden {
    display: none;
    max-height: 0;
    padding: 0;
    opacity: 0;
}

.absence-notification .container {
    position: relative;
}

.absence-notification-content {
    color: #000;
    font-weight: 600;
    line-height: 1.6;
    text-align: center;
    padding-right: 2.5rem;
}

.absence-notification-content p {
    margin: 0;
}

.absence-notification-content p:not(:last-child) {
    margin-bottom: 0.5rem;
}

.absence-notification-content strong {
    font-weight: 700;
}

.absence-notification-content a {
    color: var(--primary);
    text-decoration: underline;
}

.absence-notification-content a:hover {
    color: var(--primary-dark);
}

.absence-notification-close {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #856404;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
}

.absence-notification-close:hover {
    background-color: rgba(133, 100, 4, 0.1);
    color: #5a4203;
}

.absence-notification-close:active {
    background-color: rgba(133, 100, 4, 0.2);
}

.absence-notification-close span {
    font-size: 1.75rem;
    line-height: 1;
}

/* Absence notification in contact section */
.absence-notification-content-contact {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    padding: 1rem 1.25rem;
    margin-top: 0.5rem;
    color: #000;
    line-height: 1.7;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.absence-notification-content-contact p {
    margin: 0;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.absence-notification-content-contact p:last-child {
    margin-bottom: 0;
}

.absence-notification-content-contact strong {
    font-weight: 700;
    color: #000;
    padding-left: 0;
}

.absence-notification-content-contact strong::before {
    display: none;
}

.absence-notification-content-contact a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
}

.absence-notification-content-contact a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    height: 2rem;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text);
    transition: all 0.3s;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(213, 108, 162, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero-section {
    background-image: linear-gradient(135deg, rgba(213, 108, 162, 0.8) 0%, rgba(148, 61, 106, 0.7) 100%), url('../images/Ordinacija-Rodosek-BG.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 9rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.hero-logo-icon {
    height: 3.5rem;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-section .btn-primary {
    background-color: rgba(150, 50, 100, 0.95);
    color: var(--white);
}

.hero-section .btn-primary:hover {
    background-color: rgba(120, 40, 80, 0.95);
}

.hero-section .btn-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 2px solid var(--white);
    backdrop-filter: blur(10px);
}

.hero-section .btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

/* Sections */
section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text);
}

.section-content {
    max-width: 800px;
    margin: 0 auto;
}

/* About Section */
.about-section {
    background-color: #FAF9F7;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 2.3fr 1fr;
    gap: 2rem;
    align-items: center;
    padding: 0 2rem;
}

.about-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 1rem;
}

.about-content a {
    color: var(--primary);
    text-decoration: none;
}

.about-content a:hover {
    text-decoration: underline;
}

.about-image {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.portrait-image {
    width: 100%;
    max-width: 170px;
    height: auto;
    object-fit: cover;
}

.portrait-caption {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
}

/* Contact Section */
.contact-section {
    background-color: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.contact-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    text-align: center;
    max-width: 100%;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-phones {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-phones .contact-item {
    flex: 1;
    min-width: 200px;
}

.contact-item {
    padding: 1rem;
    background-color: var(--grey-light);
    border-radius: 10px;
}

.contact-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.contact-item a {
    color: var(--text);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--primary);
}

.map-container {
    margin-top: 1rem;
}

.map-container iframe {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map-note {
    margin-top: 0.5rem;
    color: var(--text-light);
    font-style: italic;
}

.phone-note {
    width: 100%;
    margin-top: 0rem;
    padding: 0.75rem 1rem;
    background-color: var(--grey-light);
    border-left: 3px solid var(--primary);
    border-radius: 6px;
    color: var(--text);
    font-size: 0.875rem;
    line-height: 1.5;
}

.phone-note small {
    display: block;
    color: var(--text-light);
}

.contact-form-wrapper {
    background-color: var(--grey-light);
    padding: 2rem;
    border-radius: 10px;
}

.contact-form-wrapper h3 {
    margin-bottom: 1.5rem;
    color: var(--text);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--grey-medium);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
    cursor: pointer;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Page Section */
.page-section {
    padding: 4rem 0;
}

.page-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.page-content h2 {
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.page-content h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.page-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.page-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.page-content li {
    margin-bottom: 0.5rem;
}

.page-content a {
    color: var(--primary);
    text-decoration: none;
}

.page-content a:hover {
    text-decoration: underline;
}

/* Footer */
.site-footer {
    background-color: var(--text);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.footer-section p {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--grey-medium);
}

/* Services Section */
.services-section {
    background-color: #FAF9F7;
    padding: 4rem 0;
    overflow: visible;
}

.services-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
    padding: 0 2rem;
    overflow: visible;
}

.services-content {
    display: flex;
    flex-direction: column;
}

.services-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.services-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 2.25rem;
}

.services-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.services-description p {
    margin-bottom: 1rem;
}

.services-description p:last-child {
    margin-bottom: 0;
}

/* Services Cards Carousel */
.services-cards-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 30px 0 50px 0;
    overflow: visible;
}

.services-cards-container {
    overflow-x: hidden;
    overflow-y: visible;
    width: 100%;
    position: relative;
    padding: 0 80px 20px 80px;
    background-color: transparent;
}

.services-cards-container::before,
.services-cards-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 20px;
    width: 80px;
    z-index: 5;
    pointer-events: none;
}

.services-cards-container::before {
    left: 0;
    background: linear-gradient(to right, #FAF9F7 0%, rgba(250, 249, 247, 0) 100%);
}

.services-cards-container::after {
    right: 0;
    background: linear-gradient(to left, #FAF9F7 0%, rgba(250, 249, 247, 0) 100%);
}

.services-cards-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.4s ease;
    will-change: transform;
    padding: 15px;
}

.service-card {
    min-width: calc(48% - 0.75rem);
    background-color: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.service-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.service-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
    text-align: center;
}

.service-card-subtitle {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    text-align: center;
    line-height: 1.5;
}

.service-card-separator {
    width: 50px;
    height: 2px;
    background-color: var(--grey-medium);
    margin: 0 auto 1rem;
}

.service-card-list {
    list-style: none;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-card-list li {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.5;
}

.service-card-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--text-light);
    font-size: 1.2rem;
    line-height: 1.4;
}

.service-card-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    color: var(--white);
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.service-card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--grey-dark);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    flex-shrink: 0;
    z-index: 10;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transform-origin: center center;
}

.carousel-btn-prev {
    left: 56px;
}

.carousel-btn-next {
    right: 56px;
}

.carousel-btn:hover {
    background-color: var(--text);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
        flex-wrap: wrap;
    }

    .hero-logo-icon {
        height: 4.5rem;
    }

    .logo-icon {
        height: 1.5rem;
    }

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

    .hero-section {
        padding: 6rem 0;
    }

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

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .portrait-image {
        max-width: 150px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .absence-notification {
        padding: 0.75rem 0;
    }

    .absence-notification-content {
        font-size: 0.9rem;
        padding-right: 2rem;
    }

    .absence-notification-close {
        right: 0.5rem;
        width: 1.75rem;
        height: 1.75rem;
    }

    .absence-notification-close span {
        font-size: 1.5rem;
    }

    .services-section {
        overflow-x: hidden;
    }

    .services-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
        overflow-x: hidden;
    }

    .services-title {
        font-size: 2rem;
    }

    .services-description {
        font-size: 1rem;
    }

    .services-cards-wrapper {
        gap: 0;
        padding: 20px 0 40px 0;
        overflow: hidden;
    }
    
    .services-cards-container {
        padding: 0 40px 15px 40px;
        overflow-x: hidden;
        width: 100%;
        box-sizing: border-box;
    }

    .services-cards-container::before,
    .services-cards-container::after {
        width: 40px;
    }

    .services-cards-track {
        padding: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
    }

    .carousel-btn-prev {
        left: 2px;
    }

    .carousel-btn-next {
        right: 2px;
    }

    .carousel-btn svg {
        width: 18px;
        height: 18px;
    }

    .service-card {
        min-width: calc(100% - 20px);
        max-width: calc(100% - 20px);
        padding: 1.25rem;
        box-sizing: border-box;
    }

    .service-card-title {
        font-size: 1.1rem;
    }
    
    .service-card-icon {
        width: 56px;
        height: 56px;
        margin: 0 auto 0.75rem;
    }
}
