/* Components Styles */

/* Hospital Card - List Layout (matching HTML version) */
.hospital-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
    margin-bottom: 30px;
    opacity: 1;
    transform: scale(1);
}

.hospital-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.hospital-header {
    display: flex;
    gap: 25px;
    padding: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.hospital-logo {
    width: 100px;
    height: 100px;
    background: #f8faff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.hospital-info {
    flex: 1;
}

.hospital-info h3 {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 700;
}

.hospital-info h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.hospital-info h3 a:hover {
    color: var(--primary-color);
}

.hospital-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.hospital-tag {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.hospital-body {
    padding: 30px;
}

.hospital-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.stat-box {
    text-align: center;
    padding: 15px;
    background: #f8faff;
    border-radius: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    color: #666;
}

/* Region Filter Buttons */
.region-filter-btn {
    padding: 10px 24px;
    border: 2px solid #e0e0e0;
    background: white;
    color: #333;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.region-filter-btn:hover {
    border-color: #0192BC;
    color: #0192BC;
}

.region-filter-btn.active {
    border-color: #0192BC;
    background: #0192BC;
    color: white;
}

/* Old Hospital Card Styles (for backward compatibility) */
.hospital-card__image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.hospital-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.hospital-card__badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(1, 146, 188, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.hospital-card__content {
    padding: 20px;
}

.hospital-card__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.hospital-card__title a {
    color: #1a1a1a;
    text-decoration: none;
}

.hospital-card__title a:hover {
    color: #0192BC;
}

.hospital-card__rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.star-rating {
    display: inline-flex;
    gap: 2px;
}

.star-rating .filled {
    color: #fbbf24;
}

.hospital-card__intro {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.hospital-card__stats {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.hospital-card__stats .stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #666;
}

.hospital-card__stats .stat-item i {
    color: #0192BC;
}

.hospital-card__actions {
    display: flex;
    gap: 10px;
}

.hospital-card__actions .btn {
    flex: 1;
    text-align: center;
    padding: 10px 15px;
    font-size: 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #0192BC;
    color: white;
    border: 2px solid #0192BC;
}

.btn-primary:hover {
    background: #017a9e;
    border-color: #017a9e;
}

.btn-outline {
    background: transparent;
    color: #0192BC;
    border: 2px solid #0192BC;
}

.btn-outline:hover {
    background: #0192BC;
    color: white;
}

/* Doctor Card */
/* Doctor Card - Modern Design */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

@media (max-width: 1200px) {
    .doctors-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 968px) {
    .doctors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .doctors-grid {
        grid-template-columns: 1fr;
    }
}

.doctor-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: scale(1);
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.doctor-image-wrapper {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.doctor-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.doctor-card:hover .doctor-image-wrapper img {
    transform: scale(1.05);
}

.doctor-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.doctor-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
    cursor: pointer;
}

.doctor-content h3:hover {
    color: #0192BC;
}

.doctor-specialty {
    font-size: 13px;
    color: #0192BC;
    margin-bottom: 10px;
    font-weight: 500;
}

.doctor-description {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.doctor-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.doctor-tag {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    background: #E6F7FA;
    color: #0192BC;
}

/* Consult Buttons */
.consult-btns {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.consult-btns .consult-video {
    background: #0192BC;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    font-weight: 500;
    font-size: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: 1;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(1, 146, 188, 0.15);
}

.consult-btns .consult-video .price,
.consult-btns .consult-chat .price {
    font-size: 11px;
    font-weight: 600;
    margin-top: 2px;
    opacity: 0.9;
}

.consult-btns .consult-video:hover {
    background: #0179a0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 146, 188, 0.25);
}

.consult-btns .consult-chat {
    background: #f8fbfd;
    color: #0192BC;
    border: 1.5px solid #d4e8f0;
    border-radius: 6px;
    padding: 8px 14px;
    font-weight: 500;
    font-size: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: 1;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.consult-btns .consult-chat:hover {
    background: #0192BC;
    color: #fff;
    border-color: #0192BC;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 146, 188, 0.25);
}

/* Filter Buttons */
.filter-btn {
    padding: 10px 24px;
    border: 2px solid #e0e0e0;
    background: white;
    color: #333;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    border-color: #0192BC;
    background: #0192BC;
    color: white;
}

/* Old doctor card styles - keeping for backward compatibility */
.doctor-card__image {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.doctor-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-card__content {
    padding: 20px;
}

.doctor-card__name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.doctor-card__name a {
    color: #1a1a1a;
    text-decoration: none;
}

.doctor-card__name a:hover {
    color: #0192BC;
}

.doctor-card__title,
.doctor-card__department,
.doctor-card__hospital,
.doctor-card__experience {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.doctor-card__title {
    color: #0192BC;
    font-weight: 600;
}

.doctor-card__rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.doctor-card__specialty {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

.doctor-card__actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Grid Layouts */
.hospital-grid,
.doctor-grid {
    display: grid;
    gap: 30px;
    margin: 40px 0;
}

.hospital-grid.columns-2,
.doctor-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.hospital-grid.columns-3,
.doctor-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.hospital-grid.columns-4,
.doctor-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Form Styles */
.appointment-form-wrapper,
.contact-form-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.appointment-form,
.contact-form {
    background: #f9fafb;
    padding: 30px;
    border-radius: 12px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.required {
    color: #ef4444;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #0192BC;
    box-shadow: 0 0 0 3px rgba(1, 146, 188, 0.1);
}

.form-actions {
    margin-top: 25px;
}

.btn-lg {
    padding: 15px 35px;
    font-size: 16px;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    display: none;
}

.form-message.success {
    display: block;
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.form-message.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Archive Header */
.archive-header {
    text-align: center;
    padding: 60px 0 40px;
}

.archive-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.archive-description {
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb-wrapper {
    background: #f9fafb;
    padding: 15px 0;
    margin-bottom: 40px;
}

.breadcrumb {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
    flex-wrap: wrap;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    color: #9ca3af;
}

.breadcrumb a {
    color: #0192BC;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Search Form Styles */
.search-form {
    margin: 30px 0;
}

.search-form-wrapper {
    display: flex;
    gap: 0;
    max-width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.search-field {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-right: none;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
    border-radius: 8px 0 0 8px;
}

.search-field:focus {
    border-color: #0192BC;
    box-shadow: 0 0 0 3px rgba(1, 146, 188, 0.1);
}

.search-submit {
    padding: 16px 32px;
    background: #0192BC;
    color: white;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-submit:hover {
    background: #017a9e;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.popular-searches {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.popular-label {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.popular-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.popular-tag {
    padding: 6px 14px;
    background: #f0f9ff;
    color: #0192BC;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #d4e8f0;
}

.popular-tag:hover {
    background: #0192BC;
    color: white;
    border-color: #0192BC;
}

/* Search Results */
.search-result-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.search-result-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.search-result-content {
    display: flex;
    gap: 25px;
}

.search-result-thumbnail {
    width: 280px;
    height: 200px;
    flex-shrink: 0;
}

.search-result-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-details {
    flex: 1;
    padding: 25px 30px 25px 0;
    display: flex;
    flex-direction: column;
}

.entry-header {
    margin-bottom: 15px;
}

.entry-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 10px;
}

.post-type-badge {
    padding: 4px 12px;
    background: #e6f7fa;
    color: #0192BC;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.post-date {
    color: #666;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.entry-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}

.entry-title a {
    color: #1a1a1a;
    transition: color 0.3s ease;
}

.entry-title a:hover {
    color: #0192BC;
}

.entry-summary {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 15px;
    flex: 1;
}

.entry-footer {
    margin-top: auto;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0192BC;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.read-more:hover {
    gap: 12px;
    color: #017a9e;
}

.page-header {
    text-align: center;
    padding: 50px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
}

.page-title {
    font-size: 36px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.page-title span {
    color: #0192BC;
}

.search-count {
    color: #666;
    font-size: 16px;
    margin: 10px 0 0 0;
}

.search-form-container {
    margin-bottom: 50px;
}

.search-results-list {
    margin-bottom: 40px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    background: white;
    color: #666;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1;
    margin: 0;
}

.pagination .page-numbers:hover {
    border-color: #0192BC;
    color: #0192BC;
    background: #f0f9ff;
    box-shadow: 0 8px 18px rgba(1, 146, 188, 0.15);
}

.pagination .page-numbers.current {
    background: #0192BC;
    color: white;
    border-color: #0192BC;
    box-shadow: 0 10px 20px rgba(1, 146, 188, 0.28);
}

.pagination .prev,
.pagination .next {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 16px;
    min-width: auto;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.no-results .page-header {
    border: none;
    padding: 0 0 20px 0;
    margin-bottom: 20px;
}

.no-results .page-content {
    max-width: 600px;
    margin: 0 auto;
}

.no-results .page-content p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Search Filter Components */
.search-filter-wrapper {
    margin-bottom: 40px;
}

.search-filter-form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.search-filter-controls {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 15px;
    align-items: end;
}

.search-field input,
.filter-field select {
    width: 100%;
}

.search-button .btn {
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 992px) {
    .hospital-grid.columns-3,
    .doctor-grid.columns-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hospital-grid.columns-4,
    .doctor-grid.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .search-filter-controls {
        grid-template-columns: 1fr 1fr;
    }
    
    .search-field {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .hospital-grid,
    .doctor-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .search-result-content {
        flex-direction: column;
    }
    
    .search-result-thumbnail {
        width: 100%;
        height: 220px;
    }
    
    .search-result-details {
        padding: 20px;
    }
    
    .search-filter-controls {
        grid-template-columns: 1fr;
    }
    
    .search-form-wrapper {
        flex-direction: column;
    }
    
    .search-field {
        border-radius: 8px 8px 0 0;
        border-right: 2px solid #e0e0e0;
        border-bottom: none;
    }
    
    .search-submit {
        border-radius: 0 0 8px 8px;
        justify-content: center;
    }
    
    .page-header {
        padding: 30px 0;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .entry-title {
        font-size: 18px;
    }
    
    .popular-searches {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 24px;
    }
    
    .entry-title {
        font-size: 16px;
    }
    
    .entry-summary {
        font-size: 13px;
