/* ===== SERVICE DETAIL PAGE ===== */

/* --- Service Hero --- */
.service-hero {
    position: relative; overflow: hidden;
    background: var(--primary-lighter);
    padding: 80px 0 60px;
}
.service-hero::before {
    display: none;
}
.service-hero .container {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
    position: relative; z-index: 2;
}
.service-hero-content { animation: fadeInLeft 0.8s ease forwards; }
.service-hero-content .service-tag-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--accent-light); color: var(--accent);
    padding: 8px 18px; border-radius: var(--radius-full);
    font-size: 0.78rem; font-weight: 700; margin-bottom: 20px;
    border: 1px solid rgba(247,148,29,0.15);
}
.service-hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800; line-height: 1.15; margin-bottom: 20px;
    color: var(--text-primary);
}
.service-hero-content .service-desc {
    font-size: 1.05rem; color: var(--text-secondary);
    line-height: 1.85; margin-bottom: 28px; max-width: 520px;
}
.service-hero-price {
    display: inline-flex; align-items: center; gap: 12px;
    background: var(--white); padding: 16px 28px; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md); margin-bottom: 32px;
    border: 1px solid var(--gray-100);
}
.service-hero-price .price-label { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }
.service-hero-price .price-value { font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.service-hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

.service-hero-visual { animation: fadeInRight 0.8s ease forwards; }
.service-hero-visual img {
    border-radius: var(--radius-2xl); box-shadow: var(--shadow-2xl);
    width: 100%; height: 420px; object-fit: cover;
    border: 4px solid var(--white);
}

/* --- Service Overview --- */
.service-overview { padding: 80px 0; background: var(--white); }
.service-overview .container {
    max-width: 900px;
}
.service-overview h2 {
    font-family: var(--font-heading); font-size: 1.8rem;
    font-weight: 700; color: var(--text-primary); margin-bottom: 24px;
}
.service-overview .content {
    font-size: 1rem; color: var(--text-secondary); line-height: 1.9;
}
.service-overview .content p { margin-bottom: 18px; }
.service-overview .content ul {
    margin: 16px 0; padding-left: 0;
}
.service-overview .content ul li {
    padding: 8px 0 8px 28px; position: relative;
    font-size: 0.95rem; color: var(--text-secondary);
}
.service-overview .content ul li::before {
    content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; left: 0; color: var(--primary); font-size: 0.8rem;
}

/* --- Service Advantages --- */
.service-advantages {
    padding: 80px 0;
    background: var(--gray-50);
}
.service-advantages .section-header { text-align: center; margin-bottom: 56px; }
.service-advantages .section-header .section-subtitle { margin: 0 auto; }
.advantages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.advantage-card {
    background: var(--white); border-radius: var(--radius-lg);
    padding: 32px 28px; text-align: center;
    box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100);
    transition: var(--transition);
}
.advantage-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: var(--primary-light); }
.advantage-card .icon {
    width: 64px; height: 64px; margin: 0 auto 20px;
    background: var(--primary-light);
    border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: var(--primary); transition: var(--transition);
}
.advantage-card:hover .icon { background: var(--primary); color: var(--white); transform: scale(1.1); }
.advantage-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; color: var(--text-primary); }
.advantage-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; }

/* --- Service Process / Timeline --- */
.service-process { padding: 80px 0; background: var(--white); }
.service-process .section-header { text-align: center; margin-bottom: 56px; }
.service-process .section-header .section-subtitle { margin: 0 auto; }

.process-timeline { max-width: 800px; margin: 0 auto; position: relative; }
.process-timeline::before {
    content: ''; position: absolute; left: 32px; top: 0; bottom: 0;
    width: 3px; background: var(--primary);
    border-radius: 2px;
}
.process-step {
    display: flex; gap: 28px; margin-bottom: 36px; position: relative;
    padding-left: 0; align-items: flex-start;
}
.process-step:last-child { margin-bottom: 0; }
.process-step-number {
    width: 64px; height: 64px; min-width: 64px;
    background: var(--primary); color: var(--white);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; font-weight: 800; position: relative; z-index: 2;
    box-shadow: var(--shadow-primary);
}
.process-step-content {
    background: var(--white); border-radius: var(--radius-lg);
    padding: 28px 32px; box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100); flex: 1;
    transition: var(--transition);
}
.process-step-content:hover { box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.process-step-content h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.process-step-content p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }

/* --- Service Pricing Table --- */
.service-pricing { padding: 80px 0; background: var(--gray-50); }
.service-pricing .section-header { text-align: center; margin-bottom: 56px; }
.service-pricing .section-header .section-subtitle { margin: 0 auto; }

.pricing-table {
    background: var(--white); border-radius: var(--radius-xl);
    overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--gray-100);
    max-width: 800px; margin: 0 auto;
}
.pricing-table-header {
    display: grid; grid-template-columns: 2fr 1fr;
    background: var(--primary); color: var(--white);
    padding: 20px 32px; font-weight: 600; font-size: 0.95rem;
}
.pricing-row {
    display: grid; grid-template-columns: 2fr 1fr;
    padding: 18px 32px; border-bottom: 1px solid var(--gray-100);
    transition: var(--transition); align-items: center;
}
.pricing-row:last-child { border-bottom: none; }
.pricing-row:hover { background: var(--primary-lighter); }
.pricing-row .service-name { font-weight: 600; color: var(--text-primary); font-size: 0.95rem; }
.pricing-row .price { font-weight: 700; color: var(--primary); font-size: 0.95rem; }
.pricing-note {
    text-align: center; padding: 20px; font-size: 0.85rem;
    color: var(--text-muted); font-style: italic;
    border-top: 1px solid var(--gray-100);
}

/* --- FAQ Accordion --- */
.service-faq { padding: 80px 0; background: var(--white); }
.service-faq .section-header { text-align: center; margin-bottom: 56px; }
.service-faq .section-header .section-subtitle { margin: 0 auto; }

.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: var(--white); border-radius: var(--radius-md);
    margin-bottom: 12px; border: 1px solid var(--gray-200);
    overflow: hidden; transition: var(--transition);
}
.faq-item.active { border-color: var(--primary-light); box-shadow: var(--shadow-md); }
.faq-question {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 24px; cursor: pointer; gap: 16px;
    transition: var(--transition); background: none; border: none;
    width: 100%; text-align: left; font-family: inherit;
}
.faq-question:hover { background: var(--gray-50); }
.faq-question h3 { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); margin: 0; }
.faq-question .faq-icon {
    width: 32px; height: 32px; min-width: 32px;
    background: var(--primary-light); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 0.8rem;
    transition: var(--transition);
}
.faq-item.active .faq-icon { background: var(--primary); color: var(--white); transform: rotate(180deg); }
.faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
}
.faq-item.active .faq-answer { max-height: 500px; }
.faq-answer-inner {
    padding: 0 24px 20px;
    font-size: 0.9rem; color: var(--text-secondary); line-height: 1.8;
}

/* --- Booking Form (inline on service page) --- */
.service-booking {
    padding: 80px 0;
    background: var(--gray-50);
}
.service-booking .booking-inner {
    max-width: 700px; margin: 0 auto;
    background: var(--white); border-radius: var(--radius-xl);
    padding: 48px; box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-100); position: relative; overflow: hidden;
}
.service-booking .booking-inner::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--primary);
}
.service-booking .booking-inner .section-header { text-align: center; margin-bottom: 32px; }
.service-booking .booking-inner .section-header h2 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 6px; }
.service-booking .booking-inner .section-header p { color: var(--text-muted); font-size: 0.9rem; }
.service-booking-form { display: grid; gap: 16px; }
.service-booking-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.service-booking-form input,
.service-booking-form select,
.service-booking-form textarea {
    width: 100%; padding: 14px 18px; border: 2px solid var(--gray-200);
    border-radius: var(--radius-md); font-size: 0.9rem; font-family: inherit;
    transition: var(--transition); background: var(--gray-50); color: var(--text-primary);
}
.service-booking-form textarea { min-height: 100px; resize: vertical; }
.service-booking-form input:focus,
.service-booking-form select:focus,
.service-booking-form textarea:focus {
    outline: none; border-color: var(--primary); background: var(--white);
    box-shadow: 0 0 0 4px rgba(0,182,190,0.08);
}
.service-booking-form .btn-primary { width: 100%; justify-content: center; padding: 16px; }

/* --- Related Services --- */
.related-services { padding: 80px 0; background: var(--gray-50); }
.related-services .section-header { text-align: center; margin-bottom: 48px; }
.related-services .section-header .section-subtitle { margin: 0 auto; }
.related-services .services-grid { max-width: 1000px; margin: 0 auto; }

/* ===== SERVICE LISTING PAGE ===== */
.services-listing { padding: 80px 0; background: var(--white); }
.services-listing .services-grid { margin-bottom: 48px; }

/* ===== 404 PAGE ===== */
.error-404 {
    padding: 120px 0; text-align: center;
    background: var(--primary-lighter);
    min-height: 60vh; display: flex; align-items: center;
}
.error-404 h1 {
    font-family: var(--font-heading); font-size: 8rem;
    font-weight: 800; color: var(--primary); line-height: 1;
    margin-bottom: 16px; opacity: 0.15;
}
.error-404 h2 {
    font-family: var(--font-heading); font-size: 2rem;
    font-weight: 700; color: var(--text-primary); margin-bottom: 16px;
}
.error-404 p {
    font-size: 1.05rem; color: var(--text-secondary);
    margin-bottom: 36px; max-width: 480px; margin-left: auto; margin-right: auto;
}

/* ===== RESPONSIVE FOR SERVICE PAGES ===== */
@media (max-width: 1024px) {
    .service-hero .container { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .service-hero-content { order: 1; }
    .service-hero-visual { order: 0; }
    .service-hero-content .service-desc { margin-left: auto; margin-right: auto; }
    .service-hero-buttons { justify-content: center; }
    .advantages-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .service-hero { padding: 40px 0; }
    .service-hero-visual img { height: 300px; }
    .advantages-grid { grid-template-columns: 1fr; }
    .process-timeline::before { left: 24px; }
    .process-step-number { width: 48px; height: 48px; min-width: 48px; font-size: 1rem; }
    .process-step-content { padding: 20px 24px; }
    .pricing-table-header, .pricing-row { padding: 14px 20px; font-size: 0.88rem; }
    .service-booking .booking-inner { padding: 28px 24px; }
    .service-booking-form .form-row { grid-template-columns: 1fr; }
    .related-services .services-grid { grid-template-columns: 1fr; }
}

/* ===== PAGE CONTENT ===== */
.page-content {
    padding: 60px 0 80px; background: var(--white);
}
.page-content-inner {
    max-width: 900px; margin: 0 auto;
    font-size: 1rem; color: var(--text-secondary); line-height: 1.9;
}
.page-content-inner h2 {
    font-family: var(--font-heading); font-size: 1.6rem;
    font-weight: 700; color: var(--text-primary);
    margin: 48px 0 20px; padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-light);
}
.page-content-inner h2:first-child { margin-top: 0; }
.page-content-inner h3 {
    font-size: 1.2rem; font-weight: 700; color: var(--text-primary);
    margin: 32px 0 14px;
}
.page-content-inner p { margin-bottom: 18px; }
.page-content-inner img {
    border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
    margin: 24px 0;
}
.page-content-inner ul, .page-content-inner ol {
    margin: 16px 0 24px; padding-left: 0;
}
.page-content-inner ul li {
    padding: 8px 0 8px 28px; position: relative;
}
.page-content-inner ul li::before {
    content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; left: 0; color: var(--primary); font-size: 0.8rem;
}
.page-content-inner ol li {
    padding: 8px 0; margin-left: 24px;
}
.page-content-inner blockquote {
    background: var(--primary-light); border-left: 4px solid var(--primary);
    padding: 20px 28px; border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 24px 0; font-style: italic;
}
.page-content-inner table {
    width: 100%; border-collapse: collapse; margin: 24px 0;
    background: var(--white); border-radius: var(--radius-md);
    overflow: hidden; box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
}
.page-content-inner table th {
    background: var(--primary); color: var(--white);
    padding: 14px 20px; font-weight: 600; font-size: 0.92rem; text-align: left;
}
.page-content-inner table td {
    padding: 14px 20px; border-bottom: 1px solid var(--gray-100);
    font-size: 0.92rem;
}
.page-content-inner table tr:last-child td { border-bottom: none; }
.page-content-inner table tr:hover td { background: var(--primary-lighter); }

/* Info Cards Grid */
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 32px 0; }
.info-card {
    background: var(--white); border-radius: var(--radius-lg);
    padding: 28px 24px; text-align: center;
    box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100);
    transition: var(--transition);
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.info-card .icon {
    width: 56px; height: 56px; margin: 0 auto 16px;
    background: var(--primary-light); border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: var(--primary);
}
.info-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.info-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

/* Doctor Cards */
.doctor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 32px 0; }
.doctor-card {
    background: var(--white); border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100);
    text-align: center; transition: var(--transition);
}
.doctor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.doctor-card .doctor-avatar {
    width: 100%; height: 280px; object-fit: cover; background: var(--gray-100);
}
.doctor-card .doctor-info { padding: 24px; }
.doctor-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.doctor-card .doctor-role { font-size: 0.85rem; color: var(--primary); font-weight: 600; margin-bottom: 8px; }
.doctor-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

@media (max-width: 768px) {
    .info-cards { grid-template-columns: 1fr; }
    .doctor-grid { grid-template-columns: 1fr; }
}
