/*
Theme Name: Гинеколог Плюс (Astra Child)
Theme URI: https://www.kabinetginecologa.ru
Author: Medical Team
Author URI: https://www.kabinetginecologa.ru
Template: astra
Version: 4.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Domain Path: /languages
Requires at least: 5.8
Requires PHP: 7.4
Tested up to: 6.4

Description: Дочерняя тема WordPress для медицинской клиники "Гинеколог Плюс" на базе темы Astra.
*/

/* ============================================
CSS VARIABLES (BRAND COLORS)
============================================ */
:root {
    --med-primary: #667eea;
    --med-secondary: #764ba2;
    --med-accent: #e91e63;
    --med-success: #4caf50;
    --med-warning: #ff9800;
    --med-danger: #f44336;
    --med-info: #007cba;
    --med-text: #1a1a1a;
    --med-text-light: #666;
    --med-text-muted: #888;
    --med-bg: #ffffff;
    --med-bg-light: #f8f9fa;
    --med-bg-gray: #f5f7fa;
    --med-border: #f0f0f0;
    --med-radius: 16px;
    --med-radius-sm: 8px;
    --med-shadow: 0 2px 8px rgba(0,0,0,0.06);
    --med-shadow-hover: 0 12px 24px rgba(0,0,0,0.15);
    --med-shadow-lg: 0 25px 50px -12px rgba(0,0,0,0.25);
    --med-container: min(100% - 1rem, 1200px);
    --med-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --toast-success: #4caf50;
    --toast-error: #f44336;
    --toast-warning: #ff9800;
    --toast-info: #2196f3;
}

/* ============================================
BASE OVERRIDES (ASTRA COMPATIBLE)
============================================ */
.ast-container {
    max-width: var(--med-container);
}

.page-template-template-medical-full .entry-header {
    display: none;
}

.page-template-template-medical-full .site-content {
    padding-top: 0;
    padding-bottom: 0;
}

/* ============================================
LAYOUT SYSTEM (.med-* classes)
============================================ */
.med-container {
    width: 100%;
    max-width: var(--med-container);
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

.med-section {
    padding: 5rem 0;
    position: relative;
}

.med-grid {
    display: grid;
    gap: 1.5rem;
}

.med-flex {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Grid Responsive */
@media (min-width: 1025px) {
    .med-grid-4 { grid-template-columns: repeat(4, 1fr); }
    .med-grid-3 { grid-template-columns: repeat(3, 1fr); }
    .med-grid-2 { grid-template-columns: repeat(2, 1fr); }
    .med-grid-6 { grid-template-columns: repeat(6, 1fr); }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .med-grid-6 { grid-template-columns: repeat(3, 1fr); }
    .med-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .med-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .med-grid-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .med-section { padding: 3rem 0; }
    .med-grid { grid-template-columns: 1fr !important; }
    .med-flex { flex-direction: column; }
    .med-hide-mobile { display: none !important; }
    .med-full-width-mobile { width: 100% !important; }
}

/* ============================================
TYPOGRAPHY
============================================ */
.med-h1 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    margin: 0 0 0.5rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--med-text);
}

.med-h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--med-text);
    margin: 0 0 1rem;
    text-align: center;
    font-weight: 700;
}

.med-subtitle {
    color: var(--med-text-light);
    text-align: center;
    margin: 0 0 3rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ============================================
COMPONENTS
============================================ */
/* Cards */
.med-card {
    background: var(--med-bg);
    border-radius: var(--med-radius);
    padding: 2rem;
    box-shadow: var(--med-shadow);
    border: 1px solid var(--med-border);
    transition: var(--med-transition);
    height: 100%;
    box-sizing: border-box;
}

.med-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Hover Effects */
.med-hover-lift {
    transition: var(--med-transition);
    cursor: pointer;
}

.med-hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--med-shadow-hover);
}

.med-hover-scale {
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.med-hover-scale img {
    transition: transform 0.3s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
    backface-visibility: hidden;
}

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

/* Glassmorphism */
.glass-panel {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--med-radius);
}

/* Buttons */
.med-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.875rem 1.5rem;
    border-radius: var(--med-radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.med-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* Messenger Buttons */
.med-messenger-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: none;
    cursor: pointer;
}

.med-messenger-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    color: white;
    text-decoration: none;
}

.med-messenger-btn.max { background: #6B5B95; }
.med-messenger-btn.telegram { background: #0088cc; }
.med-messenger-btn.whatsapp { background: #25D366; }
.med-messenger-btn.phone { background: var(--med-info); }

@media (max-width: 768px) {
    .med-messenger-btn span.text {
        display: none;
    }
    .med-messenger-btn {
        padding: 0.75rem;
        font-size: 1.2rem;
    }
}

/* ============================================
ACCORDION (DETAILS/SUMMARY)
============================================ */
details {
    background: var(--med-bg);
    border-radius: 12px;
    box-shadow: var(--med-shadow);
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid var(--med-border);
}

summary {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--med-text);
    cursor: pointer;
    list-style: none;
    position: relative;
    user-select: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary .acc-icon {
    transition: transform 0.3s ease;
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--med-text-muted);
}

details[open] summary {
    border-bottom: 1px solid var(--med-border);
}

details[open] summary .acc-icon {
    transform: rotate(180deg);
}

.acc-content {
    padding: 1.5rem;
    background: var(--med-bg-light);
}

/* Service Items in Accordion */
.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--med-bg);
    border-radius: var(--med-radius-sm);
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s;
    text-decoration: none;
    border: 1px solid var(--med-border);
}

.service-item:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-decoration: none;
}

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

.service-item-meta {
    font-size: 0.85rem;
    color: var(--med-text-muted);
    margin-top: 0.25rem;
}

.service-item-price {
    font-weight: 600;
    white-space: nowrap;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: rgba(0,0,0,0.03);
}

/* ============================================
AJAX SEARCH
============================================ */
.astra-child-search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.astra-child-search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--med-border);
    border-radius: var(--med-radius-sm);
    font-size: 1rem;
    transition: var(--med-transition);
    background: white;
}

.astra-child-search-input:focus {
    outline: none;
    border-color: var(--med-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.astra-child-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--med-radius-sm);
    box-shadow: var(--med-shadow-hover);
    margin-top: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.astra-child-search-results.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.astra-child-search-result {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--med-text);
    border-bottom: 1px solid var(--med-border);
    transition: background 0.2s;
}

.astra-child-search-result:hover,
.astra-child-search-result.is-active {
    background: var(--med-bg-light);
}

.astra-child-search-result:last-child {
    border-bottom: none;
}

.result-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--med-bg-light);
    border-radius: 8px;
}

.result-content {
    flex: 1;
    min-width: 0;
}

.result-title {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.result-meta {
    display: block;
    font-size: 0.85rem;
    color: var(--med-text-muted);
}

.result-type {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: var(--med-primary);
    color: white;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Skeleton Loading */
.astra-child-search-skeleton {
    padding: 1rem;
}

.skeleton-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

.skeleton-text {
    flex: 1;
    height: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
TOAST NOTIFICATIONS
============================================ */
.astra-child-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.astra-child-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: white;
    border-radius: var(--med-radius-sm);
    box-shadow: var(--med-shadow-hover);
    border-left: 4px solid;
}

.astra-child-toast--success { border-left-color: var(--toast-success); }
.astra-child-toast--error { border-left-color: var(--toast-error); }
.astra-child-toast--warning { border-left-color: var(--toast-warning); }
.astra-child-toast--info { border-left-color: var(--toast-info); }

.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    font-size: 0.95rem;
    color: var(--med-text);
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--med-text-muted);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.toast-close:hover {
    color: var(--med-text);
}

@media (max-width: 768px) {
    .astra-child-toast-container {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}

/* ============================================
MOBILE MENU
============================================ */
.astra-child-mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.astra-child-mobile-menu-toggle .menu-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--med-text);
    position: relative;
    transition: all 0.3s;
}

.astra-child-mobile-menu-toggle .menu-icon::before,
.astra-child-mobile-menu-toggle .menu-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--med-text);
    transition: all 0.3s;
}

.astra-child-mobile-menu-toggle .menu-icon::before { top: -8px; }
.astra-child-mobile-menu-toggle .menu-icon::after { top: 8px; }

.astra-child-mobile-menu-toggle[aria-expanded="true"] .menu-icon {
    background: transparent;
}

.astra-child-mobile-menu-toggle[aria-expanded="true"] .menu-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.astra-child-mobile-menu-toggle[aria-expanded="true"] .menu-icon::after {
    transform: rotate(-45deg);
    top: 0;
}

@media (max-width: 768px) {
    .astra-child-mobile-menu-toggle {
        display: block;
    }
}

/* ============================================
FORM VALIDATION
============================================ */
input.is-invalid,
textarea.is-invalid {
    border-color: var(--med-danger) !important;
    background-color: rgba(244, 67, 54, 0.05);
}

.field-error {
    display: block;
    color: var(--med-danger);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* ============================================
SCROLL ANIMATIONS
============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
STICKY HEADER
============================================ */
.site-header {
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.site-header.is-hidden {
    transform: translateY(-100%);
}

/* ============================================
HERO SECTION
============================================ */
.medical-hero {
    background: linear-gradient(135deg, var(--med-primary) 0%, var(--med-secondary) 100%);
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.medical-hero .glass-panel {
    padding: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    border: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 2rem;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #4caf50;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============================================
WHY US SECTION
============================================ */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* ============================================
REVIEWS SECTION
============================================ */
.reviews-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.review-card {
    background: white;
    padding: 2rem;
    border-radius: var(--med-radius);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.review-quote {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 4rem;
    opacity: 0.1;
    line-height: 1;
    font-family: Georgia, serif;
}

.review-text {
    color: #444;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
    position: relative;
    z-index: 1;
    flex-grow: 1;
}

.review-author {
    font-weight: 700;
    color: var(--med-text);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.review-stars {
    color: #ffc107;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--med-border);
    font-size: 0.9rem;
    color: var(--med-text-muted);
}

/* ============================================
DOCTORS CARDS
============================================ */
.doctor-card {
    background: white;
    border-radius: var(--med-radius);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: var(--med-transition);
}

.doctor-image-wrap {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.doctor-experience-badge {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.doctor-info {
    padding: 2rem;
    text-align: center;
}

.doctor-name {
    margin: 0 0 0.25rem;
    color: var(--med-text);
    font-size: 1.4rem;
    font-weight: 700;
}

.doctor-position {
    margin: 0 0 1rem;
    color: var(--med-info);
    font-weight: 600;
    font-size: 1.1rem;
}

.doctor-specialty {
    color: var(--med-text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

/* ============================================
QUICK SERVICES (6 icons)
============================================ */
.quick-service-card {
    background: white;
    border-radius: var(--med-radius);
    padding: 2rem 1rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--med-shadow);
    border-top: 4px solid var(--med-primary);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--med-transition);
}

.quick-service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    background: rgba(0,0,0,0.03);
}

.quick-service-title {
    font-size: 1.1rem;
    color: var(--med-text);
    margin: 0 0 0.5rem;
    font-weight: 600;
}

.quick-service-desc {
    font-size: 0.9rem;
    color: var(--med-text-muted);
    margin: 0;
    line-height: 1.4;
    flex-grow: 1;
}

.quick-service-link {
    margin-top: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ============================================
FAQ SECTION
============================================ */
.faq-section details {
    margin-bottom: 1rem;
}

.faq-section summary {
    border-left: 4px solid var(--med-primary);
}

/* ============================================
LICENSES GALLERY
============================================ */
.license-image {
    aspect-ratio: 3/4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow: hidden;
    transition: var(--med-transition);
}

.license-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.license-image:hover img {
    transform: scale(1.05);
}

/* ============================================
DOCTOR MODAL
============================================ */
.doctor-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 0.2s forwards;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    background: white;
    border-radius: 24px;
    box-shadow: var(--med-shadow);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--med-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--med-text-muted);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--med-text);
}

.modal-content {
    padding: 2rem;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--med-border);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* ============================================
PROFESSIONAL FORMS
============================================ */
.astra-child-form {
    max-width: 600px;
    margin: 0 auto;
}

.astra-child-form .form-group {
    margin-bottom: 1.5rem;
}

.astra-child-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.astra-child-form input,
.astra-child-form textarea,
.astra-child-form select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--med-border);
    border-radius: var(--med-radius-sm);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.astra-child-form input:focus,
.astra-child-form textarea:focus,
.astra-child-form select:focus {
    outline: none;
    border-color: var(--med-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.astra-child-form .form-submit {
    padding: 0.875rem 1.5rem;
    background: var(--med-primary);
    color: white;
    border: none;
    border-radius: var(--med-radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.astra-child-form .form-submit:hover {
    filter: brightness(1.1);
}

/* ============================================
BREADCRUMBS
============================================ */
.med-breadcrumbs {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.med-breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: var(--med-text-muted);
}

.med-breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.med-breadcrumbs a:hover {
    text-decoration: underline;
}

/* ============================================
FILTER TABS
============================================ */
.filter-tab {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.filter-tab:hover:not(.is-active) {
    background: #e0e0e0;
}

/* ============================================
PAGINATION
============================================ */
.pagination {
    margin-top: 3rem;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.pagination .page-numbers.current {
    background: var(--med-primary);
    color: white;
}

.pagination .page-numbers:not(.current):hover {
    background: var(--med-bg-light);
}

/* ============================================
UTILITY CLASSES
============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 1.5rem; }
.mb-3 { margin-bottom: 2rem; }
.hidden { display: none !important; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
PRINT STYLES
============================================ */
@media print {
    .medical-hero { background: #fff !important; color: #000 !important; }
    .sticky-review-btn, .messengers-scroll, .toast { display: none !important; }
    .med-card { break-inside: avoid; box-shadow: none; border: 1px solid #ccc; }
    #wpadminbar { display: none !important; }
    .doctor-actions { display: none !important; }
}

/* ============================================
REDUCED MOTION
============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
