/* FAQ container spacing */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 20px;
}

/* FAQ box styling (closed state) */
.faq-box {
  border-radius: 12px;
  background: #eef2f7; /* light grey-blue like screenshot */
  overflow: hidden;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Question styling */
.faq-question {
  font-weight: 700;
  font-size: 18px;
  padding: 22px;
  background: #eef2f7;
  color: #111;
  transition: background 0.3s ease;
}

/* Hover effect */
.faq-box:hover .faq-question {
  background: #e7ecf3;
}

/* Answer styling */
.faq-answer {
  display: none;
  padding: 18px 22px;
  background: #ffffff;
  font-size: 16px;
  line-height: 1.6;
  color: #444;
}

/* OPEN state */
.faq-box.active .faq-answer {
  display: block;
}

/* Slight drop effect when open */
.faq-box.active {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}


/* =========================================
   1. GLOBAL RESETS & DESKTOP DEFAULTS
   ========================================= */

/* Hide Automatic Theme Featured Image */
.entry-content > img.wp-post-image,
.post-thumbnail,
.single-post .featured-image {
    display: none !important;
}

/* Main Container */
.app-wrapper {
    width: 100%;
    margin: 0 auto;
    background: transparent;
    font-family: inherit;
    color: #333;
    line-height: 1.6;
}

/* Cards */
.app-card {
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
    margin-bottom: 30px;
}

/* Typography */
.app-wrapper h1 { font-size: 2.2em; line-height: 1.2; margin-bottom: 20px; color: #111; }
.app-wrapper h2 { font-size: 1.8em; margin-top: 30px; margin-bottom: 15px; color: #111; }
.app-wrapper p { font-size: 1.1em; margin-bottom: 20px; color: #444; }

/* Images */
.app-hero-image, .app-image-rounded {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

/* Special Boxes */
.highlight-blue, .related-card {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
    border: 1px solid #eee;
}
.highlight-blue { border-left: 5px solid #1a73e8; background: #eef6ff; }
.related-card .app-btn { display: inline-block; width: auto; margin-top: 10px; }

/* Lists */
.clean-ul { list-style: none; padding: 0; margin: 0; }
.clean-ul li { position: relative; padding-left: 25px; margin-bottom: 10px; }
.clean-ul li:before { content: "•"; color: #1a73e8; position: absolute; left: 0; font-weight: bold; }

/* =========================================
   2. BUTTONS & GRIDS (FIXED 2x2 LAYOUT)
   ========================================= */

/* BLUE Buttons */
.app-btn {
    background: #1a73e8;
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}
.app-btn:hover { background: #155db5; }

/* ORANGE Booking Button */
.btn-orange {
    background-color: #fc643a !important;
    color: white !important;
    display: inline-block;
    width: auto;
    padding: 15px 30px;
    text-align: center;
    border-radius: 10px;
    font-weight: bold;
    text-decoration: none;
    font-size: 18px;
    margin-bottom: 15px;
    border: none;
}
.btn-orange:hover { background-color: #e35b34 !important; }

/* --- 2x2 GRID FIX (ROBUST FLEXBOX VERSION) --- */
.treatment-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin-top: 15px !important;
    width: 100% !important;
}

/* Forces the buttons to always take up 48% of the width (2 per row) */
.tag-box { 
    width: 48% !important;
    flex: 0 0 48% !important; 
    display: flex !important; 
    align-items: center;
    justify-content: center;
    background: #f0f2f5; 
    padding: 12px; 
    border-radius: 12px; 
    font-size: 14px; 
    color: #555; 
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    box-sizing: border-box !important;
    margin: 0 0 10px 0 !important; /* Adds space below */
}

/* Safety: Hides any invisible line breaks WordPress adds that break the layout */
.treatment-grid br, 
.treatment-grid p {
    display: none !important;
} =========================================
   3. FAQ STYLES
   ========================================= */
details.faq-item {
    margin-bottom: 12px;
    border-radius: 10px;
    overflow: hidden; 
    border: 1px solid #e0e0e0; 
    background: #ffffff;
}
details.faq-item summary {
    cursor: pointer;
    padding: 14px 18px;
    background-color: #f4f7fa;
    color: #222;
    font-weight: 600;
    font-size: 15px !important;
    list-style: none; 
    outline: none;
    display: flex; 
    justify-content: space-between;
    align-items: center;
}
details.faq-item summary:hover { background-color: #eef2f6; }
details.faq-item p {
    padding: 15px 18px;
    margin: 0;
    font-size: 14px !important;
    line-height: 1.5;
    color: #555;
    background: #fff;
    border-top: 1px solid #e0e0e0;
}
details.faq-item[open] summary {
    background-color: #1a73e8; 
    color: #ffffff;
}
details.faq-item summary::-webkit-details-marker { display: none; }

/* =========================================
   4. WUBA PROFILE CARD
   ========================================= */
.wuba-profile-card {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin: 20px 0;
    max-width: 100%;
}
.wuba-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 15px;
}
.wuba-left-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 80px;
    flex-shrink: 0;
}
.wuba-face {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #f2f4f8;
    margin-bottom: 8px;
}
.wuba-link {
    background-color: #ffffff;
    border: 2px solid #b08d55;
    color: #000000;
    font-weight: 800;
    text-decoration: none;
    font-size: 10px;
    text-transform: uppercase;
    display: block;
    padding: 8px 4px;
    border-radius: 6px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    transition: all 0.2s ease;
}
.wuba-link:hover { 
    background-color: #b08d55;
    color: #ffffff;
    border-color: #b08d55;
}
.wuba-bio { flex-grow: 1; }
.author-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}
.wuba-bio h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1a3b5c;
    line-height: 1.2;
    font-family: inherit;
}
.wuba-bio p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #555;
}
.wuba-footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
    text-align: left;
}
.manager-text {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    display: block;
    text-align: left;
}
.clinic-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.clinic-logo-link {
    display: block;
    max-width: 32%;
    text-decoration: none;
    border: none;
    transition: opacity 0.2s;
}
.clinic-logo-link:hover { opacity: 0.8; }
.clinic-logo-img {
    width: 100%;
    height: auto;
    max-height: 35px;
    object-fit: contain;
    display: block;
    margin: 0;
}

/* =========================================
   5. MOBILE APP MODE (Phones Only)
   ========================================= */
@media only screen and (max-width: 768px) {
    
    .app-wrapper {
        background-color: #f2f4f8 !important; 
        padding: 15px !important;
        margin-left: -15px !important; 
        width: calc(100% + 30px) !important;
        border-radius: 0 !important;
        box-sizing: border-box !important;
    }
    
    .app-card {
        background: #ffffff !important; 
        border-radius: 16px !important;
        padding: 20px !important;
        margin-bottom: 15px !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.06) !important;
        border: 1px solid rgba(0,0,0,0.02) !important;
    }

    .app-hero-image {
        margin: -20px -20px 15px -20px !important;
        width: calc(100% + 40px) !important;
        border-radius: 16px 16px 0 0 !important;
    }

    .app-btn, .btn-orange {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 14px !important;
        box-sizing: border-box !important;
    }

    /* Fonts */
    .app-wrapper h1 { font-size: 22px !important; line-height: 1.2 !important; margin-bottom: 15px !important; margin-top: 0 !important; }
    .app-wrapper h2 { font-size: 18px !important; line-height: 1.3 !important; margin-top: 5px !important; margin-bottom: 10px !important; }
    .app-wrapper h3 { font-size: 16px !important; margin-bottom: 5px !important; }
    .app-wrapper p, .clean-ul li { font-size: 15px !important; line-height: 1.5 !important; color: #444 !important; }

    /* Profile Card Tweaks */
    .wuba-profile-card { padding: 15px; }
    .wuba-header { gap: 15px; }
    .wuba-left-col, .wuba-face { width: 65px; } 
    .wuba-face { height: 65px; }
    .clinic-logo-img { max-height: 25px; } 
}