/* ===== VET PAGE SPECIFIC STYLES ===== */
/* Container styles are now in scrollable-container.css */

/* ===== HEADER POSITIONING ===== */
.header-section {
    position: static;
    flex-shrink: 0;
}

/* Override mobile-specific sticky positioning */
@media (max-width: 768px) {
    .header-section {
        position: static !important;
        top: auto !important;
        bottom: auto !important;
        z-index: auto !important;
        overflow-y: visible !important;
        margin-bottom: 0 !important;
        padding: clamp(0.2rem, 1vh, 0.6rem) clamp(0.2rem, 1.2vw, 0.6rem) !important;
    }
}

@media (max-width: 480px) {
    .container .header-section {
        position: static !important;
        top: auto !important;
        bottom: auto !important;
        z-index: auto !important;
        overflow-y: visible !important;
    }
    
    body .container .header-section {
        position: static !important;
        top: auto !important;
        bottom: auto !important;
        z-index: auto !important;
        overflow-y: visible !important;
    }
}

/* ===== RESPONSIVE TYPOGRAPHY ===== */
.page-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.page-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    padding: 20px 40px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* ===== VET SERVICES ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.service-card {
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

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

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.service-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-content {
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-button,
a.service-button,
.service-card .service-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    color: white !important; /* Force white text for better contrast */
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none !important;
    display: inline-block;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.service-button:hover,
a.service-button:hover,
.service-card .service-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: white !important; /* Ensure white text on hover */
    text-decoration: none !important;
}

/* ===== ANIMAL TYPES SECTION ===== */
.animal-types {
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 30px;
}

.animal-types-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-align: center;
}

.animal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.animal-card {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.animal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.animal-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

.animal-name {
    font-weight: 600;
    color: var(--text-primary);
}

/* ===== EMERGENCY VET SECTION ===== */
.emergency-vet {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(239, 68, 68, 0.05));
    border: 2px solid rgba(220, 38, 38, 0.2);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
    max-width: 800px;
}

.emergency-vet h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.emergency-vet p {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.emergency-contact {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.emergency-button {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
    text-decoration: none;
    display: inline-block;
}

.emergency-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
    color: white;
}

/* ===== DARK MODE STYLES ===== */
body.dark-mode .service-card {
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .service-button,
body.dark-mode a.service-button,
body.dark-mode .service-card .service-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    color: white !important; /* Force white text in dark mode */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none !important;
}

body.dark-mode .service-button:hover,
body.dark-mode a.service-button:hover,
body.dark-mode .service-card .service-button:hover {
    color: white !important; /* Ensure white text on hover in dark mode */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
    text-decoration: none !important;
}

body.dark-mode .emergency-vet {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.2), rgba(239, 68, 68, 0.1));
    border: 2px solid rgba(220, 38, 38, 0.4);
}

body.dark-mode .page-title {
    color: var(--primary-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

body.dark-mode .page-subtitle {
    color: #d0d0d0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .main-content {
        padding: 15px 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .animal-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .emergency-contact {
        flex-direction: column;
        align-items: center;
    }

    .emergency-button {
        width: 100%;
        max-width: 300px;
    }

    .menu-container-left,
    .menu-container {
        display: none;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 10px 15px;
    }

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

    .page-subtitle {
        font-size: 1rem;
    }

    .service-card {
        padding: 20px;
    }

    .emergency-vet {
        padding: 20px;
        margin: 20px 0;
    }

    .animal-types {
        padding: 20px;
    }

    .animal-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }
}

/* ===== FORCE WHITE TEXT ON SERVICE BUTTONS ===== */
/* High specificity override to ensure white text */
.services-grid .service-card .service-button,
.services-grid .service-card a.service-button,
main .service-button,
main a.service-button {
    color: white !important;
    text-decoration: none !important;
}

.services-grid .service-card .service-button:hover,
.services-grid .service-card a.service-button:hover,
main .service-button:hover,
main a.service-button:hover {
    color: white !important;
    text-decoration: none !important;
}

/* Dark mode override */
body.dark-mode .services-grid .service-card .service-button,
body.dark-mode .services-grid .service-card a.service-button,
body.dark-mode main .service-button,
body.dark-mode main a.service-button {
    color: white !important;
    text-decoration: none !important;
}

body.dark-mode .services-grid .service-card .service-button:hover,
body.dark-mode .services-grid .service-card a.service-button:hover,
body.dark-mode main .service-button:hover,
body.dark-mode main a.service-button:hover {
    color: white !important;
    text-decoration: none !important;
}
