/* ========================================
   COMPONENTS CSS
   Additional shared UI components
   ======================================== */

/* ========================================
   ARCHIVE / BLOG GRID
   ======================================== */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}

.archive-grid .card {
    padding: 0;
    overflow: hidden;
}

.archive-grid .card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.archive-grid .card:hover img {
    transform: scale(1.04);
}

.archive-grid h2 {
    font-size: 18px;
    font-weight: 500;
    font-family: var(--dc-font-body);
    margin-bottom: 8px;
}

.archive-grid h2 a {
    color: var(--dc-text);
    text-decoration: none;
    transition: color 0.2s;
}

.archive-grid h2 a:hover {
    color: var(--dc-primary);
}

/* ========================================
   BREADCRUMB
   ======================================== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--dc-muted);
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--dc-primary);
    text-decoration: none;
}

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

.breadcrumb-sep {
    color: var(--dc-border);
}

/* ========================================
   PAGINATION
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 48px;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--dc-radius-sm);
    font-size: 14px;
    color: var(--dc-muted);
    border: 0.5px solid var(--dc-border);
    text-decoration: none;
    transition: all 0.2s;
}

.page-numbers:hover,
.page-numbers.current {
    background: var(--dc-primary);
    color: var(--dc-white);
    border-color: var(--dc-primary);
}

.page-numbers.dots {
    border: none;
    background: none;
}

/* ========================================
   SINGLE SERVICE PAGE
   ======================================== */
.single-service-hero {
    background: var(--dc-bg);
    padding: 60px 0;
    margin-bottom: 60px;
}

.single-service-hero .service-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.service-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--dc-muted);
}

.service-meta-item strong {
    color: var(--dc-text);
    font-weight: 500;
}

/* ========================================
   SINGLE DOCTOR PAGE
   ======================================== */
.doctor-profile-hero {
    background: var(--dc-bg);
    padding: 60px 0;
}

.doctor-profile-inner {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: start;
}

.doctor-profile-photo {
    border-radius: var(--dc-radius);
    overflow: hidden;
    aspect-ratio: 3/4;
}

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

.doctor-profile-name {
    font-size: 2rem;
    margin-bottom: 6px;
}

.doctor-profile-specialty {
    font-size: 16px;
    color: var(--dc-primary);
    font-weight: 500;
    margin-bottom: 20px;
}

.doctor-stats-row {
    display: flex;
    gap: 28px;
    margin: 24px 0;
}

.doctor-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 24px;
    background: var(--dc-white);
    border-radius: var(--dc-radius-sm);
    border: 0.5px solid var(--dc-border);
    min-width: 100px;
}

.doctor-stat-num {
    font-family: var(--dc-font-heading);
    font-size: 24px;
    font-weight: 600;
    color: var(--dc-primary);
}

.doctor-stat-label {
    font-size: 12px;
    color: var(--dc-muted);
    margin-top: 4px;
    text-align: center;
}

/* ========================================
   CONTACT PAGE
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: start;
}

.contact-info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 28px;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--dc-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-info-content strong {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--dc-text);
    margin-bottom: 2px;
}

.contact-info-content span,
.contact-info-content a {
    font-size: 14px;
    color: var(--dc-muted);
    text-decoration: none;
}

.contact-info-content a:hover {
    color: var(--dc-primary);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--dc-white);
    border: 0.5px solid var(--dc-border);
    border-radius: var(--dc-radius);
    padding: 40px;
    box-shadow: var(--dc-shadow);
}

/* ========================================
   MAP EMBED
   ======================================== */
.map-section {
    height: 400px;
    border-radius: var(--dc-radius);
    overflow: hidden;
    border: 0.5px solid var(--dc-border);
    margin-top: 60px;
}

.map-section iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ========================================
   GALLERY
   ======================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-item {
    border-radius: var(--dc-radius-sm);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

/* ========================================
   LIGHTBOX (simple CSS)
   ======================================== */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.lightbox-overlay img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--dc-radius-sm);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
}

/* ========================================
   NOTICE / ALERT BOXES
   ======================================== */
.notice {
    padding: 14px 18px;
    border-radius: var(--dc-radius-sm);
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.notice-info {
    background: #e6f1fb;
    color: #0d4f7c;
    border-left: 3px solid var(--dc-primary);
}

.notice-success {
    background: var(--dc-accent-light);
    color: #085041;
    border-left: 3px solid var(--dc-accent);
}

.notice-warning {
    background: #fef4ec;
    color: #7c3d0d;
    border-left: 3px solid #f59e0b;
}

.notice-error {
    background: #fce8e8;
    color: #7c1d1d;
    border-left: 3px solid #dc3545;
}

/* ========================================
   PRICE TABLE
   ======================================== */
.price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-top: 24px;
}

.price-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dc-muted);
    border-bottom: 0.5px solid var(--dc-border);
}

.price-table td {
    padding: 14px 16px;
    border-bottom: 0.5px solid var(--dc-border);
    color: var(--dc-text);
    vertical-align: middle;
}

.price-table tr:last-child td {
    border-bottom: none;
}

.price-table tr:hover td {
    background: var(--dc-bg);
}

.price-table .price-col {
    font-weight: 600;
    color: var(--dc-accent);
    text-align: right;
    white-space: nowrap;
}

/* ========================================
   FAQ ACCORDION
   ======================================== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 0.5px solid var(--dc-border);
    border-radius: var(--dc-radius);
    overflow: hidden;
}

.faq-item {
    border-bottom: 0.5px solid var(--dc-border);
}

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

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--dc-text);
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: var(--dc-font-body);
    transition: background 0.2s;
}

.faq-question:hover {
    background: var(--dc-bg);
}

.faq-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--dc-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: transform 0.25s;
    color: var(--dc-primary);
}

.faq-item.is-open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
}

.faq-item.is-open .faq-answer {
    max-height: 400px;
    padding: 0 24px 20px;
}

.faq-answer p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--dc-muted);
}

/* ========================================
   RESPONSIVE COMPONENTS
   ======================================== */
@media (max-width: 1024px) {
    .archive-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .doctor-profile-inner { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .archive-grid { grid-template-columns: 1fr; }
    .contact-form-wrapper { padding: 24px; }
    .gallery-grid { grid-template-columns: 1fr; }
    .doctor-stats-row { flex-wrap: wrap; gap: 12px; }
}
