/* Responsive header for mobile */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-width: 100%;
  overflow-x: hidden;
}


/* WhatsApp icon in footer contact */
.whatsapp-icon {
    width: 36px !important;
    height: 36px !important;
    vertical-align: middle;
    margin-left: 4px;
}
/* Fixed Booking Button */
.booking-btn {
    position: fixed;
    right: 2.2rem;
    bottom: 2.2rem;
    z-index: 1000;
    background: linear-gradient(to right, #2a6dbb, #5a8dc9);
    border: none;
    box-shadow: 0 4px 18px 0 rgba(60,40,20,0.18);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    width: 88px;
    height: 88px;
    aspect-ratio: 1 / 1;
    font-size: 1.6rem;
    transition: width 0.3s cubic-bezier(.4,2,.6,1), border-radius 0.3s, box-shadow 0.2s, background 0.2s;
    overflow: hidden;
    white-space: nowrap;
}
.booking-btn:hover {
    box-shadow: 0 8px 32px 0 rgba(60,40,20,0.18);
    background: transparent;
}
/* Booking button image style */
.booking-btn-img {
    width: 64px;
    height: 64px;
    display: block;
    filter: brightness(0) invert(1);
    transition: width 0.3s, height 0.3s;
}
/* Booking button text, hidden by default */
.booking-btn-text {
    opacity: 0;
    max-width: 0;
    margin-right: 0;
    color: #fff;
    font-family: 'Jomhuria', Arial, sans-serif;
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.3s, max-width 0.3s, margin-right 0.3s, font-size 0.3s;
}
.booking-btn:hover {
    width: 320px;
    border-radius: 2em;
    box-shadow: 0 8px 32px 0 rgba(60,40,20,0.18);
    background: linear-gradient(to right, #2a6dbb, #5a8dc9);
    padding-left: 1em;
    padding-right: 1em;
}
.booking-btn:hover .booking-btn-text {
    opacity: 1;
    max-width: 220px;
    margin-right: 1.2em;
    font-size: 2.0rem;
}

/* Map frame styling */
.map-frame {
    border: none;
    border-radius: 18px;
    box-shadow: 0 4px 18px 0 rgba(60,40,20,0.10);
    padding: 8px;
    background: none;
    transition: box-shadow 0.2s;
    width: 100%;
    box-sizing: border-box;
    min-height: 180px;
    overflow: visible;
}
.map-frame iframe {
    width: 100% !important;
    display: block;
    border-radius: 0;
    border: none;
}
.map-frame:hover {
    box-shadow: 0 8px 32px 0 rgba(60,40,20,0.18);
}
/* Location Map beside location info */

.location-map {
    flex: 1 1 320px;
    min-width: 220px;
    max-width: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 2rem;
    box-sizing: border-box;
    min-height: 180px;
    overflow: visible;
}
/* Location and Address Row */
.location-address-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}
.location-address-row .location {
    flex: 1 1 0;
    min-width: 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}
.location-address-row .address {
    flex: 1 1 0;
    min-width: 50%;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}
/* Main Content Container */
.container.main-content {
    background: linear-gradient(to bottom, #EADACD, #BBBEA0);
    color: #333;
}
/* Hero Container */
.hero-container {
    background: #F7ECE2;
    width: 80%;
    max-width: 100vw;
    box-sizing: border-box;
}
/* Footer hours table styling */
.hours-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5em;
    font-family: 'Noto Sans', Arial, sans-serif;
    font-weight: 400;
    font-size: 0.92rem;
}
.hours-table td {
    padding: 0.1em 0.7em 0.1em 0;
    border: none;
    color: #2d2d2d;
}
.hours-table tr td:first-child {
    font-weight: 400;
    text-align: left;
}
.hours-table tr td:last-child {
    text-align: right;
}

.header-content.jomhuria-regular {
    font-size: 2.2rem !important;
}
.logo {
    height: 80px !important;
    width: auto !important;
}
/* Utility class for Jomhuria font */
.jomhuria-regular {
    font-family: "Jomhuria", serif;
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Jomhuria';
    src: url('https://fonts.googleapis.com/css2?family=Jomhuria&display=swap') format('truetype');
    font-weight: 400;
    font-style: normal;
}
.header-content {
    width: 80%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}
.main-content-group{
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}
body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', Arial, sans-serif;
    background: #F7ECE2;
    color: #2d2d2d;
    min-height: 100vh;
    padding-top: 150px;
}

main {
    margin: 0; /* Remove auto margins */
    padding: 0; /* Ensure no padding reduces width */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%; /* Ensure full width */
    max-width: 100vw; /* Prevent overflow */
    background: #F7ECE2;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4vw 2rem 4vw;
    margin-bottom: 1.5rem;
    background: #F7ECE2;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    box-sizing: border-box;
    box-shadow: 0 2px 12px 0 rgba(60,40,20,0.06);
}
.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #6e7a8a;
}
.brand {
    font-family: 'Jomhuria', Arial, sans-serif;
    font-weight: 400;
    font-size: 1.5rem;
    color: #2d2d2d;
    line-height: 1.1;
}
section {
        width: 100%;
        box-sizing: border-box;
        padding: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #6e7a8a;
    
}
.nav a {
    margin-left: 2rem;
    text-decoration: none;
    color: #2d2d2d;
    font-family: 'Jomhuria', Arial, sans-serif;
    font-weight: 400;
    letter-spacing: 1px;
    transition: color 0.2s;
}
.nav a:hover {
    color: #2a7be4;
}

/* Hero Section */
.hero {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 1.5rem 0 0 0;
    display: flex;         /* stays flex */
    flex-direction: row;   /* ✅ side by side */
    justify-content: center;
    align-items: center;
}
.section-content {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    gap: 2.5rem;
}
.hero-text {
    flex: 1 1 0;
    
    text-align: left;
}
.hero-text h1 {
    font-family: 'Jomhuria', Arial, sans-serif;
    font-size: 2.8rem;
    font-weight: 400;
    margin: 0 0 1rem 0;
    color: #2d2d2d;
    line-height: 1.1;
}
.highlight {
    color: #2d2d2d;
    font-size: 7.5rem;
    line-height: 0.6;
    display: inline-block;
    margin-bottom: 0.5rem;
}
.subtitle {
    font-size: 1.1rem;
    color: #6e7a8a;
    margin-bottom: 1.5rem;
}
.about-left h2, .guide h2, .working-closely h2 {
    font-family: 'Jomhuria', Arial, sans-serif;
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: #2d2d2d;
}
.cta-link {
    display: inline-block;
    color: #2a7be4;
    font-family: 'Jomhuria', Arial, sans-serif;
    font-weight: 400;
    text-decoration: none;
    font-size: 3rem;
    margin-top: 0.5rem;
    transition: color 0.2s;
}
.cta-link:hover {
    color: #195a9b;
}
.hero-image {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    box-sizing: border-box;
    text-align: right;
}
.profile-photo {
    width: 100%;
    max-width: 420px;
    min-width: 320px;
    height: auto;
    border-radius: 16px;
    background: transparent;
    box-shadow: none;
    object-fit: cover;
    display: block;
}

/* About Section */
.about {
    width: 100%;
    padding: 2.5rem 0 2.5rem 0;
}
.about-left {
    width: 70%;
    text-align: justify;
    box-sizing: border-box;
    padding-right: 5%;
}

.about-right {
    width: 30%;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 0.5rem;
    box-sizing: border-box;
    text-align: right;
}
.about-title {
    font-family: 'Jomhuria', Arial, sans-serif;
    font-size: 3rem;
    font-weight: 400;
    color: #1f3062;
    margin-bottom: 0.2rem;
}
.chinese {
    font-size: 2rem;
    color: #1f3062;
    font-weight: 700;
}
.about-roles {
     font-family: "Noto Sans", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
    font-size: 0.95rem;
    color: #6e7a8a;
    margin-bottom: 0.5rem;
}
.linkedin-icon img {
    margin-top: 0.5rem;
    filter: grayscale(1);
    transition: filter 0.2s, transform 0.2s;
    width: 48px;
    height: 48px;
}
.linkedin-icon img:hover {
    filter: transparent;
    transform: scale(1.2);
}

/* Guide Section */
.guide {
    width: 100%;
    padding: 1.0rem 0 2.5rem 0;
    text-align: center;
}
.guide h2 {
    text-align: center;
    width: 100%;
}
.guide-cards {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.guide-card {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 200px;
    min-width: 180px;
}
.guide-card img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    margin-bottom: 0.7rem;
}
.guide-label {
    font-family: 'Jomhuria', Arial, sans-serif;
    font-weight: 400;
    color: #2d2d2d;
    font-size: 2rem;
}

/* Location Section */
.location {
    width: 100%;
    padding: 2.5rem 0 2.5rem 0;
    text-align: center;
}
.location h2 {
    font-family: 'Jomhuria', Arial, sans-serif;
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: #2d2d2d;
}
.mrt-stations {
    margin: 1.2rem 0 1.2rem 0;
    display: block;
    justify-content: center;
}

.mrt-stations .mrt {
    flex: 1 1 0;
    min-width: 215px;
    width: 30%;
    text-align: left;
    box-sizing: border-box;
    white-space: nowrap;
}
    /* ...existing code... */


.mrt {
    display: inline-block;
    padding: 0.5rem 0.5rem;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    margin: 0.25rem;
}
.mrt.green { background: #009645; }
.mrt.purple { background: #6f2780; }
.mrt.brown { background: #7A4421; }

/* MRT code white border square box */
.mrt-code {
    display: inline-block;
    border: 1px solid #fff;
        border-radius: 8px;
    background: transparent;
    color: #fff;
    font-weight: 500;
    padding: 0.1em 0.5em;
    min-width: 3em;
    text-align: center;
    font-size: 1em;
    box-sizing: border-box;
}


/* Footer */
.address {
    font-size: 1.05rem;
    color: #2d2d2d;
    margin-bottom: 0.7rem;
}
.contact-info {
    font-size: 1rem;
    color: #2a7be4;
    margin-bottom: 0.7rem;
}

.footer {
    width: 100%;
    background: #BBBEA0;
    padding: 2rem 0 1rem 0;
    font-size: 0.98rem;
    color: #2d2d2d;
    /* border-top removed */
    position: relative;
    box-sizing: border-box;
}
.footer > .header-content {
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    box-sizing: border-box;
}
.footer-left {
    flex: 2 1 300px;
    min-width: 220px;
}
.footer-logo {
    height: 36px;
    margin-bottom: 0.7rem;
}
.footer-address {
    margin-bottom: 0.5rem;
    font-family: 'Noto Sans', Arial, sans-serif;
    font-weight: 400;
    font-size: 0.92rem;
}
.footer-contact {
    margin-bottom: 0.5rem;
    font-family: 'Noto Sans', Arial, sans-serif;
    font-weight: 400;
    font-size: 0.92rem;
}
.footer-right {
    flex: 1 1 220px;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}
.footer-hours {
    font-family: 'Jomhuria', Arial, sans-serif !important;
    font-weight: 400 !important;
    font-size: 1.85rem;
    margin-bottom: 0.5rem;
    text-align: right;
}
.footer-social img {
    margin-left: 0.5rem;
    filter: grayscale(1);
    transition: filter 0.2s;
    vertical-align: middle;
    width: 36px !important;
    height: 36px !important;
}
.footer-social img:hover {
    filter: none;
}
.footer-copy {
    width: 100%;
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: #6e7a8a;
}

.social-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-icons img {
  width: 48px;
  height: 48px;
  transition: transform 0.2s;
}

.social-icons img:hover {
  transform: scale(1.2);
}

/* Loading Screen */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(0, 0, 0, 0.1);
  border-top: 5px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#loading-screen p {
  margin-top: 1rem;
  font-size: 1.2rem;
  color: #333;
}

.working-closely {
  text-align: center;
  margin: 2rem 0;
}

.accredited-partners h2 {
  font-family: 'Jomhuria', Arial, sans-serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  
  font-weight: 0;
  color: #6e7a8a;
}

.partners {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.partner-logo {
  max-height: 150px;
  width: auto;
  height: auto;
  object-fit: contain; /* maintain original aspect ratio */
}

.accredited-with {
  text-align: center;
  margin: 2rem 0;
}



.accredited-partners {
  display: flex;
  align-items: center; /* vertically center all items */
  justify-content: center;
  gap: 2rem; /* add spacing between items */
}

.accredited-logo {
  max-width: 150px;
  width: auto;
  height: auto;
  object-fit: contain; /* maintain original aspect ratio */
  align-self: center;
}

.accredited-with h2 {
  font-size: 1.3rem; /* slightly smaller font size */
}

.accredited-logo[alt="Mount Elizabeth Hospital"] {
  max-width: 200px; /* increase size */
}

.partner-logo[alt="The Psychology Practice"] {
  max-width: 250px; /* decrease width */
}

@media (max-width: 910px) {
 .hero{
    display: block;
 }
  .location-address-row{
    display: block;
    text-align: center;
 }
 .location{
    align-items: center;
 }
 .location h2, .location p{
    margin-bottom: 0rem;
    justify-content: center;
    width: 100%;
    text-align: center ;
 }
 .mrt-stations{
    justify-content: center;
    text-align: center;
 }

 .map-frame, .location-map {
    width: 100%;
    max-width: none;
    max-height: max-content;
    margin-bottom: 2rem;
 }

 .partners {
    display: block;
    text-align: center;
 }

 .partner-logo {
    margin: 2.5rem;
 }



}

@media (max-width: 900px) {

    .header {
        padding: 1rem 0;
    }

    .header .header-content {
        display: flex;
        flex-direction: column; /* stack logo and nav vertically */
        align-items: center;    /* center both horizontally */
        gap: 1rem;              /* space between logo and nav */
    }

    .logo-section img {
        max-height: 60px;  /* keep logo size controlled */
        height: auto;
        width: auto;
    }

    .nav {
        display: flex;
        gap: 2rem;             /* space between links */
        justify-content: center;
        flex-wrap: wrap;       /* allow wrapping on small screens */
    }

}

@media (max-width: 650px) {

     .hero,.hero-text,.hero-image {
        flex-direction: column;
        text-align: center;
     }
     .section-content {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
     }
     .about-right, .about-left, .about-title, .chinese, .about-roles,.linkedin-icon {
        width: 100%;
        text-align: center;
        padding: 0;
     }
     .footer > .header-content {
          display: flex; /* Use flexbox for layout */
          flex-direction: column; /* Stack items vertically */
            align-items: center; /* Center items horizontally */
        }
     .footer-left, .footer-right {
        width: 100%;
        text-align: center;
        align-items: center;
        margin-bottom: 1.5rem;
     }
     .footer-address, .footer-contact,.footer-hours-table,td{
        font-size: 1.2rem;
     }
     /* increase footer text size */
  

  .main-content-group,.about-roles{
    font-size: 1.1rem; /* increase content text size */
  }

     .location {
    display: flex;
    flex-direction: column; /* stack children vertically */
    align-items: center;    /* center block elements horizontally */
    text-align: center;     /* center text inside */
    gap: 1rem;              /* space between children */
    }

     .accredited-partners {
    display: flex; /* Use flexbox for centering */
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Vertical center */
    justify-content: center; /* Horizontal center */
    text-align: center;
    margin-bottom: 5em;
 }

 .accredited-logo{
     max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain; /* Maintain original aspect ratio */
    margin: 0 auto; /* Center horizontally */

 }
}

 @media (max-width: 560px) {
    .header-content.jomhuria-regular {
        font-size: 1.2rem !important;
    }
    
 }

 @media (max-width: 1150px) {
    .social-icons{
        position: fixed;
        right: 0;
        top: 50%;               
        transform: translateY(-50%);
        display: flex;
        flex-direction: column; /* stack vertically */
        gap: 10px;
        padding: 12px;
        background: rgba(255, 255, 255, 0.5); /* white with transparency */
        border-radius: 12px 0 0 12px; /* rounded left corners */
        box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* soft shadow */
        z-index: 1000;
    }
     .booking-btn {
        transition: none !important; /* disable all transitions */
        width: 320px; /* show full button */
        border-radius: 2em 0em 0em 2em; /* rounded corners */
        box-shadow: 0 8px 32px 0 rgba(60,40,20,0.18);
        background: linear-gradient(to right, #2a6dbb, #5a8dc9);
        padding-left: 1em;
        padding-right: 1em;
        right: 0; /* stick to the right */
        margin-right: 0; /* remove any margin */
    }

    .booking-btn .booking-btn-text {
        opacity: 1;
        max-width: 220px;
        margin-right: 1.2em;
        font-size: 2.0rem;
    }
}

