/*
Theme Name: Prism Care Child
Theme URI: https://wpastra.com/
Template: astra
Author: Prism Care Web Team
Description: Custom highly-optimized child theme for Prism Care Multispeciality Clinic.
Version: 1.0.0
Text Domain: astra-child
*/

/* ======================================================
   1. PRISM CARE - DOCTOR DIRECTORY (V13.2)
   ====================================================== */
.prism-dir-wrap { font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; background: #ffffff; padding-bottom: 60px; max-width: 100%; margin: -20px auto 0 auto; }
.prism-hero-title { text-align: center; padding: 25px 20px 10px 20px; }
.prism-hero-title h2 { color: #076a60; font-size: 26px; font-weight: 800; margin: 0 0 5px 0; letter-spacing: -0.5px;}
.prism-hero-title p { color: #64748b; font-size: 14px; margin: 0; }

.prism-sticky-header { position: sticky; top: 0; z-index: 999; background: #ffffff; padding: 0px 20px; border-bottom: 1px solid #e2e8f0; box-shadow: 0 4px 10px rgba(0,0,0,0.02); }

/* DIRECTORY SEARCH BAR ALIGNMENT */
.prism-bar-inner { display: flex; gap: 12px; max-width: 800px; margin: 0 auto; align-items: stretch; }
.prism-dir-input-wrap { position: relative; flex: 2; margin: 0 !important; }
.prism-filter-group { flex: 1; margin-top: 0px; !important; }

.prism-search-field { width: 100%; height: 50px !important; min-height: 50px !important; padding: 0 15px 0 42px !important; border: 1px solid #cbd5e1 !important; border-radius: 6px; font-size: 15px; color: #1e293b; outline: none; transition: 0.2s; box-sizing: border-box !important; background-color: #ffffff !important; background-image: none !important; box-shadow: 0 1px 3px rgba(0,0,0,0.02); margin: 0 !important; line-height: normal !important; }
.prism-search-field:focus { border-color: #076a60 !important; box-shadow: 0 0 0 3px rgba(7, 106, 96, 0.1); }

.prism-filter-select { width: 100%; height: 50px !important; min-height: 50px !important; padding: 0 35px 0 15px !important; border: 1px solid #076a60 !important; background-color: #076a60 !important; color: #ffffff !important; border-radius: 6px; font-size: 14px; font-weight: 600; outline: none; cursor: pointer; appearance: none; -webkit-appearance: none; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24"><path fill="%23ffffff" d="M7 10l5 5 5-5z"/></svg>') !important; background-repeat: no-repeat !important; background-position: right 12px center !important; box-shadow: 0 2px 6px rgba(7, 106, 96, 0.15); transition: 0.2s; margin: 0 !important; box-sizing: border-box !important; line-height: normal !important;}
.prism-filter-select:hover { background-color: #05524a !important; }
.prism-filter-select option { background-color: #ffffff; color: #1e293b; font-weight: normal; }

.prism-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; max-width: 1200px; margin: 30px auto 0; padding: 0 20px; align-items: start; }
.prism-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; display: flex; flex-direction: column; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
@media(min-width: 769px) { .prism-card { border-top: 3px solid #076a60; } .prism-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.06); border-color: #cbd5e1; } }
.prism-card-body { padding: 15px 15px 10px 15px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.prism-dir-img-wrapper { position: relative; width: 80px; height: 80px; margin: 0 auto 12px auto; flex-shrink: 0; }
.prism-img-box { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; border: 2px solid #f1f5f9; box-sizing: border-box; }
.prism-img { width: 100%; height: 100%; object-fit: cover; }
.prism-dir-overlay-logo { position: absolute; bottom: -2px; left: -2px; width: 22px; height: 22px; background: #ffffff; border-radius: 50%; padding: 3px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); z-index: 10; object-fit: contain; box-sizing: border-box; }
.prism-info { width: 100%; }
.prism-name { font-size: 16px; font-weight: 700; color: #076a60; margin: 0 0 3px 0; line-height: 1.2; text-decoration: none; display: block; }
.prism-qual { font-size: 12px; color: #64748b; margin-bottom: 8px; line-height: 1.3; }
.prism-badge { display: inline-block; background: #f0fdfa; color: #0f766e; border: 1px solid #ccfbf1; font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; }
.prism-card-footer { padding: 12px 15px; border-top: 1px solid #f1f5f9; background: #fafafa; display: flex; gap: 8px; }
.prism-btn { display: block; width: 100%; text-align: center; padding: 8px 0; border-radius: 4px; font-size: 13px; font-weight: 600; text-decoration: none; transition: 0.2s; }
.btn-book { background: #ea580c; color: #fff !important; } .btn-book:hover { background: #c2410c; }
.btn-call { display: none; background: #fff; color: #076a60 !important; border: 1px solid #076a60; }
.prism-empty { grid-column: 1/-1; text-align: center; padding: 40px; color: #64748b; font-size: 15px; display: none; }

/* --- 2. PRISM CARE - SINGLE PROFILE & BOOKING FORM --- */
html body.single-doctor #content, html body.single-doctor .site-content, html body.single-doctor .ast-container, html body.single-doctor #primary, html body.single-doctor #main, html body.single-doctor .ast-plain-container, html body.single-doctor .ast-separate-container .ast-article-single, html body.single-doctor .ast-article-inner, html body.single-doctor .entry-content { padding-top: 0 !important; margin-top: 0 !important; }
.single-doctor .ast-single-post-header, .single-doctor .entry-header, .single-doctor .post-thumbnail, .single-doctor .entry-meta, .single-doctor .post-navigation, .single-doctor .ast-single-post-navigation, .single-doctor .nav-links { display: none !important; }
.prism-pro-wrapper { max-width: 1100px; margin: -10px auto 40px auto !important; display: flex; gap: 40px; align-items: flex-start; font-family: inherit; }
.prism-pro-sidebar { width: 350px; background: #ffffff; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.04); border: 1px solid #e2e8f0; border-top: 5px solid #076a60; padding: 40px 30px; text-align: center; flex-shrink: 0; position: sticky; top: 100px; transition: all 0.4s ease; }
.prism-img-wrapper { position: relative; width: 200px; height: 200px; margin: 0 auto 20px auto; }
.prism-pro-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 6px solid #f1f5f9; box-shadow: 0 8px 20px rgba(7, 106, 96, 0.1); box-sizing: border-box; transition: transform 0.5s ease; }
.prism-overlay-logo { position: absolute; bottom: 5px; left: 5px; width: 50px; height: 50px; background: #ffffff; border-radius: 50%; padding: 6px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); z-index: 10; object-fit: contain; box-sizing: border-box; }
.prism-pro-sidebar:hover .prism-pro-img { transform: scale(1.03); }
.prism-pro-name { color: #076a60; font-size: 26px; font-weight: 800; margin: 0 0 5px 0; line-height: 1.2; }
.prism-pro-qual { color: #64748b; font-size: 13px; font-weight: 500; display: block; margin-bottom: 15px; line-height: 1.4; }
.prism-pro-desig { background: #ea580c; color: #ffffff; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; display: inline-block; padding: 6px 14px; border-radius: 4px; box-shadow: 0 3px 8px rgba(234, 88, 12, 0.2); }
.prism-mobile-btn-container { display: none; }
.prism-pro-content { flex: 1; padding: 20px 0; }
.prism-pro-content h2 { color: #1e293b; font-size: 24px; border-bottom: 2px solid #e2e8f0; padding-bottom: 15px; margin-top: 0; margin-bottom: 20px; }
.prism-bio-text { font-size: 16px; line-height: 1.8; color: #334155; margin-bottom: 40px; }
.dr-form-title { font-size: 22px; font-weight: bold; margin-bottom: 15px; color: #076a60; border-top: 2px solid #e2e8f0; padding-top: 30px;}
.prism-related-wrap { margin-top: 50px; border-top: 2px solid #e2e8f0; padding-top: 35px;}
.prism-related-title { color: #076a60; font-size: 20px; font-weight: 800; margin-bottom: 20px; text-align: left;}
.prism-related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.prism-rel-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; text-align: center; padding: 15px; text-decoration: none !important; display: block; transition: 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.02);}
.prism-rel-card:hover { border-color: #076a60; transform: translateY(-3px); box-shadow: 0 4px 12px rgba(7, 106, 96, 0.1); }
.prism-rel-img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; border: 2px solid #f1f5f9; }
.prism-rel-name { font-size: 15px; font-weight: 700; color: #076a60; margin: 0 0 4px; line-height: 1.2; }
.prism-rel-spec { font-size: 11px; color: #64748b; font-weight: 700; text-transform: uppercase; }

/* Booking Form Base Styles */
.prism-booking-box { padding: 0; font-family:'Segoe UI',sans-serif; margin-top: 15px; }
.prism-input { width:100%; height:48px; padding:0 15px; margin-bottom:15px; border:1px solid #cbd5e1; border-radius:6px; box-sizing:border-box; font-size:15px; color:#1e293b; background:#fff; transition: 0.3s;}
.prism-input:focus { border-color: #076a60; outline: none; box-shadow: 0 0 0 3px rgba(7, 106, 96, 0.1);}
select.prism-input { line-height:normal; padding-top:14px; padding-bottom:14px; }
.prism-submit-btn { width:100%; background:#076a60; color:#fff; padding:15px; border:none; border-radius:6px; font-weight:bold; font-size:15px; text-transform:uppercase; cursor:pointer; transition:0.3s; }
.prism-submit-btn:hover { background:#055048; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(7, 106, 96, 0.2); }

/* --- 3. PRISM CARE - PHARMACY, HOME COLLECTION & CONTACT --- */
.prism-page-hero { background: linear-gradient(135deg, #076a60 0%, #044b44 100%); border-radius: 12px; padding: 40px; text-align: center; color: #fff; margin-bottom: 30px; margin-top: 20px;}
.prism-page-hero h1 { color: #fff; font-size: 32px; font-weight: 800; margin: 0 0 10px 0; }
.prism-page-hero p { font-size: 16px; color: #eef7f6; margin: 0 auto; max-width: 600px; line-height: 1.6;}
.prism-form-wrap { background: #fff; padding: 35px; border-radius: 8px; border: 1px solid #e2e8f0; border-top: 4px solid #076a60; box-shadow: 0 4px 15px rgba(0,0,0,0.02); }
.prism-form-title { color: #1e293b; font-size: 22px; font-weight: 800; margin-top: 0; margin-bottom: 20px; border-bottom: 1px solid #e2e8f0; padding-bottom: 15px;}

/* FORM LAYOUT FIX: Ensures labels and inputs stack cleanly on top of each other */
.prism-input-group { margin-bottom: 18px; display: block !important; width: 70%; }
.prism-label { display: block; font-size: 12px; font-weight: 700; color: #475569; margin-bottom: 6px; text-transform: uppercase; }
.prism-field { width: 100%; height: 46px; padding: 0 15px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 14px; box-sizing: border-box; font-family: inherit; background: #f8fafc; transition: 0.3s;}
textarea.prism-field { height: 90px; padding: 15px; resize: vertical; }
.prism-field:focus { border-color: #076a60; outline: none; background: #fff; box-shadow: 0 0 0 3px rgba(7, 106, 96, 0.1);}
.prism-file-upload { position: relative; overflow: hidden; display: inline-block; width: 100%; background: #f8fafc; border: 1px dashed #076a60; border-radius: 6px; text-align: center; padding: 12px; cursor: pointer; transition: 0.2s;}
.prism-file-upload:hover { background: #f0fdfa; }
.prism-file-upload input[type=file] { position: absolute; left: 0; top: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.prism-file-text { color: #076a60; font-weight: bold; font-size: 13px; }
.prism-btn-main { width: 100%; background: #ea580c; color: #fff; padding: 14px; border: none; border-radius: 6px; font-weight: bold; font-size: 15px; text-transform: uppercase; cursor: pointer; transition: 0.3s; margin-top: 10px; }
.prism-btn-main:hover { background: #c2410c; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(234, 88, 12, 0.2);}

/* Home Collection Layout */
.prism-hc-steps { display: flex; gap: 15px; margin-bottom: 35px; }
.prism-hc-step { flex: 1; background: #fff; padding: 20px; border-radius: 8px; text-align: center; border: 1px solid #e2e8f0; }
.prism-hc-step-num { width: 45px; height: 45px; background: #f0fdfa; color: #076a60; font-size: 18px; line-height: 45px; border-radius: 50%; margin: 0 auto 10px; font-weight: bold; border: 1px solid #ccfbf1;}
.prism-hc-step h4 { color: #1e293b; margin: 0 0 5px 0; font-size: 16px; }
.prism-hc-step p { color: #64748b; font-size: 13px; margin: 0; }
.prism-hc-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; align-items: start; }
.prism-info-box { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 25px; margin-bottom: 20px; }
.prism-info-box h3 { color: #076a60; font-size: 18px; margin-top: 0; margin-bottom: 15px; border-bottom: 1px solid #e2e8f0; padding-bottom: 10px;}
.prism-info-box p { font-size: 14px; color: #475569; line-height: 1.6; margin-bottom: 15px; }
.prism-seo-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 10px;}
.prism-seo-list li { font-size: 14px; color: #334155; position: relative; padding-left: 25px; line-height: 1.4;}
.prism-seo-list li::before { content: '\2714'; color: #076a60; position: absolute; left: 0; top: 0; font-weight: bold; font-size: 14px;}

/* Contact Layout */
.prism-contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 30px; align-items: start; margin-top: 30px;}
.prism-contact-card { background: #fff; padding: 25px; border-radius: 8px; border: 1px solid #e2e8f0; border-left: 4px solid #076a60; margin-bottom: 20px;}
.prism-contact-icon { font-size: 24px; margin-bottom: 10px; display: block;}
.prism-contact-card h4 { margin: 0 0 5px 0; color: #1e293b; font-size: 18px;}
.prism-contact-card p, .prism-contact-card a { color: #475569; font-size: 14px; margin: 0; text-decoration: none;}

/* --- 4. ASTRA OVERRIDES (HIDE DEFAULT PAGE TITLES) --- */
.page .ast-single-post-header, .page header.entry-header, .page h1.entry-title { display: none !important; }
.page .site-content, .page .ast-plain-container { padding-top: 0 !important; margin-top: 0 !important; }

/* --- 5. MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .prism-hero-title { padding: 35px 15px 5px 15px; } .prism-hero-title h2 { font-size: 22px; }
    .prism-sticky-header { padding: 12px 15px; } .prism-bar-inner { gap: 10px; }
    .prism-dir-input-wrap { flex: 1; } .prism-search-field { font-size: 15px; padding: 0 15px 0 40px !important; }
    .prism-filter-group { flex: 0 0 50px; width: 50px; } 
    .prism-filter-select { padding: 0 !important; color: transparent !important; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%23ffffff" d="M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"/></svg>') !important; background-position: center !important; background-size: 20px !important; }
    
    .prism-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 15px; padding: 0 8px; }
    .prism-card { flex-direction: column; border-left: 4px solid #076a60; border-top: 1px solid #e2e8f0; }
    .prism-card-body { flex-direction: row; align-items: center; text-align: left; padding: 15px 12px; gap: 12px; }
    .prism-dir-img-wrapper { width: 65px; height: 65px; margin: 0; } .prism-img-box { border-width: 1px; } .prism-dir-overlay-logo { width: 18px; height: 18px; padding: 2px; }
    .prism-name { font-size: 16px; margin-bottom: 2px; } .prism-qual { font-size: 11px; margin-bottom: 4px; }
    .prism-badge { font-size: 9px; padding: 3px 6px; background: #f8fafc; color: #475569; border-color: #e2e8f0; }
    .prism-card-footer { padding: 0 12px 12px 12px; border-top: none; background: #fff; }
    .prism-btn { font-size: 13px; padding: 10px 0; }
    .btn-call { display: block; flex: 1;} .btn-book { flex: 1.5; }

    .prism-pro-wrapper { flex-direction: column; padding: 0 5px !important; margin: 10px auto 20px auto !important; gap: 15px; }
    .prism-pro-sidebar { width: 100%; position: relative; top: 0; padding: 20px 15px; text-align: left; transform: none !important; }
    .prism-flex-header { display: flex; align-items: center; gap: 15px; text-align: left; }
    .prism-img-wrapper { width: 90px; height: 90px; margin: 0; flex-shrink: 0; }
    .prism-pro-img { border-width: 3px; }
    .prism-overlay-logo { width: 30px; height: 30px; bottom: -2px; left: -2px; padding: 3px; }
    .prism-pro-name { font-size: 20px; margin-bottom: 2px; }
    .prism-pro-qual { font-size: 11px; margin-bottom: 6px; }
    .prism-pro-desig { font-size: 10px; padding: 4px 8px; }
    .prism-mobile-btn-container { display: flex; gap: 10px; margin-top: 20px; }
    .prism-call-btn, .prism-scroll-btn { flex: 1; padding: 12px 0; border-radius: 6px; font-weight: 600; font-size: 14px; text-decoration: none; text-align: center; box-sizing: border-box; }
    .prism-call-btn { background: #ffffff; color: #076a60 !important; border: 1px solid #076a60; }
    .prism-scroll-btn { background: #ea580c; color: #ffffff !important; border: 1px solid #ea580c; }
    .prism-pro-content { width: 100%; padding: 10px 5px; box-sizing: border-box; }
    .prism-pro-content h2 { font-size: 20px; margin-bottom: 10px; }
    .prism-bio-text { font-size: 14px; line-height: 1.6; margin-bottom: 20px; }
    .dr-form-title { font-size: 18px; padding-top: 20px; margin-bottom: 10px;}
    .prism-related-title { font-size: 18px; }
    .prism-related-grid { grid-template-columns: 1fr; }
    .prism-rel-card { display: flex; align-items: center; text-align: left; padding: 12px; gap: 15px; border-left: 3px solid #076a60; }
    .prism-rel-img { width: 55px; height: 55px; margin: 0; }
    
    .prism-input { height: 44px; font-size: 14px; margin-bottom: 12px; padding: 0 12px;}
    select.prism-input { padding-top:12px; padding-bottom:12px; }
    .prism-submit-btn { padding: 14px; font-size: 14px; }
    .prism-page-hero { padding: 30px 15px; } .prism-page-hero h1 { font-size: 24px; }
    .prism-hc-steps { flex-direction: column; gap: 12px; }
    .prism-hc-step { display: flex; flex-direction: row; align-items: center; text-align: left; padding: 15px; }
    .prism-hc-step-num { margin: 0 15px 0 0; width: 40px; height: 40px; line-height: 40px; font-size: 16px; flex-shrink: 0; }
    .prism-hc-grid, .prism-contact-grid { grid-template-columns: 1fr; }
    .prism-form-wrap { padding: 20px 15px; }
}

/* Remove gap between Astra header and content */
.site-content {
    padding-top: 0 !important;
}

/* Specifically target the hero slider container if needed */
.entry-content {
    margin-top: 0 !important;
}

/* Remove default Astra container top margin */
#primary {
    margin-top: 0 !important;
}