/*
 Theme Name: Astra Child
 Theme URI: http://pkgroup.in
 Author: Shahabas PK
 Author URI: http://pkgroup.in
 Version: 1.0
 Description: Custom theme independent from Astra
 Text Domain: Deyafa
*/

.wp-block-image.size-large img {
  box-shadow: none !important;
  filter: none !important;
  background: none !important;
}
.wp-block-image.size-large {
  box-shadow: none !important;
  background: none !important;
}

.clinic-selector .clinic-btn {
  border: none !important;  /* kill border inside clinic selector */
  margin: 0;                /* remove side gaps */
  border-radius: 0;
}

.clinic-selector h3{
    padding : 30px 60px 20px 60px;
      font-size: 1.8rem; 
      margin-bottom:15px;
}

.clinic-selector {
  text-align: center;
  width: 100%;
}

.clinic-options {
  display: flex;
  width: 100%;
  overflow: hidden;
  position: relative;
  border: none; /* 🚫 remove any border */
}
/*.clinic-logo {*/
/*  max-height: 60px;*/
/*  margin-bottom: 10px;*/
/*}*/

/* Only the middle separator */
.clinic-options::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;             /* thickness of separator */
  background: #ccc;       /* color of separator */
  transform: translateX(-50%);
}

.clinic-half {
  flex: 1;
  padding: 30px 0;
  cursor: pointer;
  text-align: center;
  background: #f7f7f7;
  font-weight: bold;
  transition: background 0.3s, color 0.3s;
  border: none;
  display: flex;              /* enable flexbox */
  flex-direction: column;     /* stack logo above text */
  align-items: center;        /* center horizontally */
  justify-content: center;    /* center vertically inside each half */
}

.clinic-logo {
  max-height: 60px;
  margin-bottom: 10px; /* space between logo and text */
}

/* Hover states */
.clinic-half[data-clinic="al-deyafa"]:hover {
  background: #294671; /* navy */
  color: #fff;
}
.clinic-half[data-clinic="al-minha"]:hover {
  background: #EB1C24; /* red */
  color: #fff;
}

/* Active states */
.clinic-half[data-clinic="al-deyafa"].active {
  background: #294671;
  color: #fff;
}
.clinic-half[data-clinic="al-minha"].active {
  background: #EB1C24;
  color: #fff;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/*.page-row {*/
/*  width: 100%;*/
/*  display: block;*/
/*}*/

.custom-clinic-menu {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 999;
    overflow-x: auto; /* Horizontal scroll for mobile */
}


#clinic-menu {
    display: flex;
    list-style: none;
    padding: 0 10px;
    margin: 0;
}

#clinic-menu li {
    padding: 15px 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.3s, border-bottom 0.3s;
    border-bottom: 2px solid transparent; /* reserve space to prevent jump */
}

#clinic-menu li.active {
    color: #2E7D32;
    border-bottom: 2px solid #2E7D32; /* active underline */
}

#clinic-menu::-webkit-scrollbar {
    height: 5px;
}

#clinic-menu::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 5px;
}
/* Desktop: menu centered, title on left */
.menu-wrapper {
    display: flex;
    align-items: center;
    justify-content: center; /* center menu items on desktop */
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

#selected-clinic-title {
  position: static;          /* let flexbox handle alignment */
  font-weight: bold;
  font-size: 1rem;
  color: #ffffff;
  line-height: 1.2;
  margin: 0;                 /* reset default */
  white-space: nowrap;       /* prevent breaking into 2 lines */
}

/* Make menu wrapper flex and allow menu to be centered */
#clinic-menu-wrapper {
    display: flex;
    justify-content: center; /* center menu items inside wrapper */
    flex: 1 1 auto;
}

/* Mobile: menu scrolls, title stays fixed left */
@media (max-width: 768px) {
    .menu-wrapper {
        justify-content: flex-start; /* menu starts after title */
    }

    #clinic-menu-wrapper {
        overflow-x: auto; /* scroll menu items only */
        justify-content: flex-start; /* start menu after title */
    }

    #clinic-menu {
        gap: 15px;
    }
}

/* --- Top Bar --- */
/* --- Removed .top-bar styles completely --- */

/* Menu wrapper */
.menu-wrapper {
    display: flex;
    align-items: center;
    justify-content: center; /* keep menu centered */
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Logo on left */
.menu-logo {
    flex: 0 0 auto;
    margin-right: 20px;
    margin-left: 20px;
}
.menu-logo img {
    height: 40px;
}


#al-minha-services.services-wrapper {
  background-color: #fdecec; /* light grey */      /* add spacing if needed */
}

/* Al Deyafa */
#al-deyafa-services.services-wrapper {
  background-color: #e6f0fa; /* soft blue */
}

/* Menu */
#clinic-menu {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}
#clinic-menu li {
    padding: 15px 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.3s, border-bottom 0.3s;
    border-bottom: 2px solid transparent;
}
#clinic-menu li.active {
    color: #2E7D32;
    border-bottom: 2px solid #2E7D32;
}

/* Clinic title container below menu */
/* Hide clinic title bar by default */
/* --- Clinic Title Bar (below menu) --- */
.selected-clinic-container {
  display: flex;
  justify-content: center;   /* horizontal centering */
  align-items: center;       /* vertical centering */
  height: 50px;              /* or match your header height */
  text-align: center;        /* no effect with flex, safe to remove */
}

/* Clinic-specific colors */
.selected-clinic-container.clinic-al-deyafa {
    background-color: #294671; /* Navy shade */
}

.selected-clinic-container.clinic-al-minha {
    background-color: #EB1C24; /* Red shade */
}

/* Show only when clinic is selected */
.selected-clinic-container.active {
    display: flex;
    justify-content: center;   /* horizontal centering */
    align-items: center;       /* vertical centering */
    min-height: 50px;          /* give it some height to center within */
}

#selected-clinic-title {
    position: static;          /* don't use absolute */
    font-weight: bold;
    font-size: 1rem;
    color: #ffffff;
    line-height: 1.2;          /* helps keep text aligned nicely */
}

/* --- Global Typography --- */
body {
    font-family: "Open Sans", Arial, sans-serif; /* Astra default */
    font-weight: 400;
    font-size: 15px;
    line-height: 1.0;
    color: #333;
    background-color: #fff;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Open Sans", Arial, sans-serif;
    font-weight: 600;
    line-height: 1.2;
    color: #222;
    margin: 0 0 0.5em 0;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin: 0 0 1em 0;
    font-size: 15px;
    line-height: 1.6;
}

a {
    color: #000000;
    text-decoration: none;
}
a:hover {
    color: #2E7D32;
}

/* --- Lists --- */
ul, ol {
    margin: 0 0 1em 1.5em;
    padding: 0;
}

ol li {
    margin-bottom: 0.5em;
}

/* --- Buttons --- */
button, input[type="submit"], .button {
    font-family: "Open Sans", Arial, sans-serif;
    font-weight: 600;
    cursor: pointer;
}

/* --- Images --- */
img {
    max-width: 100%;
    height: auto;
}

/* --- Headings for clinic selector --- */
.clinic-selector h3 {
    font-family: "Open Sans", Arial, sans-serif;
    font-weight: 600;
}

/* --- Footer --- */
.site-footer, .site-footer a {
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 13px; /* adjust smaller if needed */
}
.footer-menu li a {
    font-size: 13px;
}
.footer-social-icons a svg {
    width: 24px;
    height: 24px;
}



/* Optional: responsive text */
@media (max-width: 768px) {
    body { font-size: 14px; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

.site-footer {
    background: #222;
    color: #fff;
    padding: 30px 20px 15px; /* slightly smaller padding */
    font-family: sans-serif;
    font-size: 13px; /* smaller text */
}

.site-footer a {
    color: #fff;
    text-decoration: none;
}
.site-footer a:hover {
    text-decoration: underline;
}

.site-primary-footer-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center; /* vertically center nav and icons */
    gap: 20px;
}

/* Navigation only takes as much space as needed */
.site-footer-primary-section-1 {
    flex: 0;
    min-width: 200px;
}

/* Empty section collapses */
.site-footer-primary-section-2 {
    flex: 0;
}

/* Social icons pinned to right */
.site-footer-primary-section-3 {
    margin-left: auto; /* pushes to the far right */
    display: flex;
    align-items: center;
    min-width: 200px;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-menu li a {
    font-size: 13px; /* smaller menu text */
}

.footer-social-icons {
    display: flex;
    gap: 12px; /* slightly smaller gap */
}

.footer-social-icons a svg {
    width: 24px; /* smaller icons */
    height: 24px;
    fill: currentColor;
}

.site-below-footer-wrap {
    border-top: 1px solid #444;
    margin-top: 20px;
    padding-top: 20px;
}
.site-below-footer-wrap p {
    text-align: center;
    font-size: 12px;
    margin: 0;
}

/* Responsive for mobile */
@media (max-width: 768px) {
    .site-primary-footer-wrap {
        flex-direction: column;
        gap: 20px;
        align-items: center; /* center everything */
        text-align: center;
    }
    .site-footer-primary-section-1,
    .site-footer-primary-section-2,
    .site-footer-primary-section-3 {
        margin-left: 0;
        justify-content: center; /* center nav and social icons */
    }
    .footer-menu {
        justify-content: center;
    }
    .footer-social-icons {
        justify-content: center;
    }
}

.wp-block-spacer {
    display: none !important;
}

.site-footer-primary-section-2 {
  flex: 1;          /* force this section to take full width */
  text-align: center;      /* center align */
}

.footer-licenses {
  display: inline-block;   /* keep content together */   /* prevent each line from splitting */
  font-size: 12px;
line-height: 0.8;
  color: #ccc;
}

.footer-licenses .license-line {
  display: block;          /* each one on its own line */
}

.clinic-area {
  display: block;
  font-weight: 400; /* normal */
  font-size: 0.9rem;
  margin-top: 4px;
}

.clinic-name {
  display: block;
  font-weight: 800; /* semi-bold */
  font-size: 1.3rem;
  margin-top: 6px;
}

@media (max-width: 600px) {
  .clinic-name {
    font-size: 0.9rem;
  }
  .clinic-area {
    font-size: 0.8rem;
  }
}