/* CSS Variables */
:root {
    --primary-color: #2c5aa0;
    --secondary-color: #f8f9fa;
    --accent-color: #6eb5d1;
    --text-dark: #333;
    --text-light: #666;
    --border-light: #e8ecef;
}

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Navigation */
.navbar {
    background-color: #ffffff !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    padding: 15px 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    font-family: 'Libre Baskerville', 'Baskerville Old Face', 'Times New Roman', serif;
}

.navbar-brand .logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: white;
    font-size: 1.2rem;
}

.navbar-brand .logo-img {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    flex-shrink: 0;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 15px;
    transition: color 0.3s ease;
}

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

.navbar-toggler {
    border-color: var(--primary-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2844, 90, 160, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 100px 0;
    text-align: center;
}

.hero-logo {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: white;
    font-size: 3rem;
    box-shadow: 0 10px 30px rgba(44, 90, 160, 0.3);
}

.hero-logo-img {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    display: block;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: 'Libre Baskerville', 'Baskerville Old Face', 'Times New Roman', serif;
}

.hero-section .subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    font-weight: 400;
}

.hero-section .doctor-name {
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 20px;
    font-family: 'Libre Baskerville', 'Baskerville Old Face', 'Times New Roman', serif;
}

/* Hero Section for Pricing Page */
.hero-section.pricing-hero {
    padding: 40px 0;
}

.hero-section.pricing-hero h1 {
    font-size: 3rem;
}

.hero-section.pricing-hero .subtitle {
    font-size: 1.2rem;
}

/* Alert in Hero Section */
.hero-section .alert {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    color: #856404;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.hero-section .alert h5 {
    color: #856404;
    margin-bottom: 10px;
    font-family: 'Libre Baskerville', 'Baskerville Old Face', 'Times New Roman', serif;
}

.hero-section .alert p {
    color: #856404;
}

/* Section Styling */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 50px;
    font-family: 'Libre Baskerville', 'Baskerville Old Face', 'Times New Roman', serif;
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-light);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 1.8rem;
}

.service-card h5 {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-family: 'Libre Baskerville', 'Baskerville Old Face', 'Times New Roman', serif;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Ambulancia Cards */
.ambulancia-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    height: 100%;
}

.ambulancia-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(44, 90, 160, 0.15);
}

.ambulancia-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ambulancia-card:hover .ambulancia-img {
    transform: scale(1.05);
}

.ambulancia-content {
    padding: 25px;
}

.ambulancia-content h5 {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-family: 'Libre Baskerville', 'Baskerville Old Face', 'Times New Roman', serif;
}

.ambulancia-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Price Table */
.price-table {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid var(--border-light);
    margin-bottom: 30px;
}

.price-table-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 25px;
    text-align: center;
}

.price-table-header h4 {
    margin: 0;
    font-weight: 600;
    font-family: 'Libre Baskerville', 'Baskerville Old Face', 'Times New Roman', serif;
}

.price-item {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-item:last-child {
    border-bottom: none;
}

.price-item .service-name {
    font-weight: 500;
    color: var(--text-dark);
}

.price-item .service-description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 5px;
    margin-right: 20px;
}

.price-item .price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
    white-space: nowrap;
    text-align: right;
    min-width: fit-content;
}

/* Contact Section */
.contact-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--border-light);
    height: 100%;
}

.contact-card h4 {
    color: var(--primary-color);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    flex-shrink: 0;
}

.contact-info h6 {
    margin: 0;
    font-weight: 600;
    color: var(--primary-color);
    font-family: 'Libre Baskerville', 'Baskerville Old Face', 'Times New Roman', serif;
}

.contact-info p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

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

/* Info Cards (for pricing page) */
.info-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--border-light);
    height: 100%;
}

.info-card h5 {
    color: var(--primary-color);
    font-family: 'Libre Baskerville', 'Baskerville Old Face', 'Times New Roman', serif;
    margin-bottom: 20px;
}

.info-card ul {
    padding-left: 20px;
}

.info-card li {
    margin-bottom: 8px;
    color: var(--text-light);
}

.info-card a {
    color: var(--primary-color);
    text-decoration: none;
}

.info-card a:hover {
    text-decoration: underline;
}

/* Info Icon for improved info cards */
.info-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.3);
}

.info-card .list-unstyled {
    text-align: left;
}

.info-card .list-unstyled li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.4);
    background: linear-gradient(135deg, #244a87, #5ba3c4);
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-light);
}

footer p {
    margin: 0;
    color: var(--text-light);
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Job Listing Section */
.job-section {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4f8 100%);
}

.job-hero {
    background: linear-gradient(135deg, #e8f4f8 0%, #d4e8f0 100%);
}

.job-hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

.job-position-header {
    margin-bottom: 30px;
}

.new-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(238, 90, 36, 0.4);
    animation: pulse-badge 2s infinite;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(238, 90, 36, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(238, 90, 36, 0.6);
    }
}

.nav-new-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
    font-weight: 700;
    text-transform: uppercase;
    vertical-align: middle;
    animation: pulse-badge 2s infinite;
}

.job-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

.job-subtitle {
    font-size: 1.8rem;
    color: var(--accent-color);
    font-weight: 600;
    font-family: 'Libre Baskerville', 'Baskerville Old Face', 'Times New Roman', serif;
}

.job-intro-card {
    background: white;
    border-radius: 15px;
    padding: 25px 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-left: 5px solid var(--primary-color);
}

.job-intro-text {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.7;
}

.job-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--border-light);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.job-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.job-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: 0 4px 10px rgba(44, 90, 160, 0.3);
}

.job-icon.offer-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}

.job-card h4 {
    margin: 0;
    color: var(--primary-color);
    font-weight: 600;
    font-family: 'Libre Baskerville', 'Baskerville Old Face', 'Times New Roman', serif;
    font-size: 1.2rem;
}

.job-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.job-list li {
    padding: 10px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-light);
}

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

.job-list li i {
    color: var(--accent-color);
    margin-top: 4px;
    flex-shrink: 0;
}

.job-offer-card .job-list li i {
    color: #28a745;
}

.job-details-bar {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 2px solid var(--accent-color);
}

.detail-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-dark);
}

.detail-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.job-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 15px;
    padding: 40px;
    color: white;
    box-shadow: 0 10px 30px rgba(44, 90, 160, 0.3);
}

.job-cta h5 {
    font-family: 'Libre Baskerville', 'Baskerville Old Face', 'Times New Roman', serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.job-cta p {
    opacity: 0.95;
}

.job-cta .btn-primary {
    background: white;
    color: var(--primary-color);
    font-weight: 600;
}

.job-cta .btn-primary:hover {
    background: #f8f9fa;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.job-cta .btn-outline-primary {
    border: 2px solid white;
    color: white;
}

.job-cta .btn-outline-primary:hover {
    background: white;
    color: var(--primary-color);
}

.cta-footer {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
        font-family: 'Libre Baskerville', 'Baskerville Old Face', 'Times New Roman', serif;
    }
    
    .hero-logo {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .hero-logo-img {
        width: 80px;
        height: 80px;
    }
    
    .hero-section .doctor-name {
        font-size: 1.4rem;
        font-family: 'Libre Baskerville', 'Baskerville Old Face', 'Times New Roman', serif;
    }
    
    .section-title {
        font-size: 2rem;
        font-family: 'Libre Baskerville', 'Baskerville Old Face', 'Times New Roman', serif;
    }
    
    .price-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .price-item .price {
        margin-top: 10px;
        font-size: 1.2rem;
        align-self: flex-end;
        text-align: right;
    }
    
    /* Pricing page specific responsive */
    .hero-section.pricing-hero h1 {
        font-size: 2.2rem;
        font-family: 'Libre Baskerville', 'Baskerville Old Face', 'Times New Roman', serif;
    }
    
    .hero-section.pricing-hero .hero-logo {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}
