*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body{
  font-family: poppins,sans-serif;
}
/*MAIN HEADING*/

:root{
--primary-color: #2a9d8f;
--accent-color:#FFB703;
--dark-text:#212529;
--light-text:#f8f9fa;
--mild-dark-text: #264653;
--primary: #2c3e50; /* Dark Clinical Blue */
--accent: #3498db; /* Medical Blue */
--bg: #f8f9fa; /* Soft Background */
--text: #333333;
--white: #ffffff;
--success: #27ae60;
--border: #e2e8f0;
}



header {
  
  background:#134942;
  max-width: 100%;
  z-index: 1000;
}
header ul li a {
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  color: #F9F9F9;
}
.contact-banner {
  display: flex;
  justify-content: space-around;
  padding: 30px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #F9F9F9;
  list-style-type: none;
}

/*NEW NAVBAR GOES HERE*/
.nav-bar{
    position: sticky;
    top: -1px;
    z-index: 1000;
}
nav{
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f8f9fa;
  color: var(--light-text-color);
  padding: 15px 20px;
  position: relative;
}

.logo {
  font-size: 1.5rem;
  line-height: 1.1;
  font-weight: bold;
  
}
.logo a {
  text-decoration: none;
  color: #212529;
  cursor: pointer;
}
.brand{
    color: #FFB703;
    /* background-color: #c1121f; */
    border-radius: 6px;
}
.city{
    font-size: 1.3rem;
    letter-spacing: .3rem;
}
.owner{
  font-size: 0.6rem;
  font-style: italic;
  color: #7A8FA6;
  text-align: left;
  padding-left: 2px;
}
.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-links li {
  position: relative;
}

.nav-links li a {
  color: #212529;
  font-weight: 600;
  text-decoration: none;
  padding: 10px;
  display: block;
}

.nav-links li a.active,
.nav-links li a[href*="#"]:not([href="#"]):visited {
  border-bottom: 2px solid #9e2a2b;
}

.nav-links li a.active,
.nav-links ul li a.active,
.nav-links li.has-submenu > a.active,
.nav-links li.has-submenu-r > a.active,
.nav-links li a:hover,
.nav-links ul li a:hover {
  border-bottom: 1px solid #9e2a2b;
}

.nav-links li:hover > ul {
  display: block;
  transition: all .8s ease-in;
}

.nav-links ul {
  display: none;
  position: absolute;
  background-color: #f8f9fa;
  top: 100%;
  left: 0;
  list-style: none;
  min-width: 180px;
  z-index: 999;
  transition: all .8s ease-in;
}

.nav-links ul li a {
  padding: 10px;
}
/*to extend submenu*/
.has-submenu-r ul {
  position: absolute;
  right: 0;         /* Aligns the right edge of the menu with the right edge of the parent */
  left: auto;      /* Overrides any default left alignment */
  min-width: 290px; 
  white-space: normal; /* Allow wrapping if the title is very long */
}

.has-submenu-r ul li a {
  white-space: normal; /* Allows text to wrap to a second line instead of pushing the width */
  line-height: 1.4;
  padding: 12px 15px;
}
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  background: #212529;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}
/*******************************CONTACT FLOATING BUTTON**********************************/
.contact-wrapper {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 999;
}
.fa-whatsapp{
  color: #25D366;
  font-size: 2rem;
}
.fa-calendar-check{
  font-size: 1.8rem;
}

.contact-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(170,170,170,0.3);
  color: #3B3B3B;
  border: none;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.contact-btn:hover {
  background-color: #1d6d64;
  color: #f7fff7;
}

.phone-btn,
.whatsapp-btn,
.appointment-btn
 {
  text-decoration: none;
  opacity: 0;
  transform: scale(0);
  pointer-events: none;
}

.contact-wrapper.active .phone-btn,
.contact-wrapper.active .whatsapp-btn,
.contact-wrapper.active .appointment-btn
{
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
/*******   FLOATING BUTTON ENDS *************/


.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 2. Hero Section */
.hero {
  background: linear-gradient(rgba(44, 62, 80, 0.85), rgba(44, 62, 80, 0.85)),
    url("https://images.unsplash.com/photo-1516549655169-df83a0774514?auto=format&fit=crop&w=1200");
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 80px 0;
  text-align: center;
  margin-bottom: 40px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.hero .subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  font-style: italic;
}

/* 3. Intro Text & Journal Link */
.intro-text {
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.journal-access {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px dashed var(--border);
}

.journal-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.journal-link:hover {
  text-decoration: underline;
}

/* 4. Responsive Research Grid (THE FIX) */
.research-grid {
  display: grid;
  /* Auto-fit handles the responsiveness automatically */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.research-card {
  background: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.research-card.highlight {
  border-top: 5px solid var(--accent);
}

.research-card h3 {
  margin-bottom: 15px;
  color: var(--primary);
}

.research-card ul {
  list-style: none;
}

.research-card ul li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.research-card ul li::before {
  content: "•";
  color: var(--accent);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* 5. Image Wrapper & Captions */
.image-placeholder-box {
  background: var(--white);
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin: 40px 0;
  text-align: center;
}

.image-placeholder-box img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  display: block;
  margin: 0 auto;
}

.caption {
  margin-top: 15px;
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
}

/* 6. Content Blocks & Highlight Boxes */
.content-block {
  margin-bottom: 40px;
}

.highlight-box {
  background: #eef7fd;
  padding: 30px;
  border-left: 6px solid var(--accent);
  border-radius: 0 8px 8px 0;
  margin-bottom: 40px;
}

/* 7. FAQ Accordion */
.faq-section {
  margin-top: 60px;
  padding-bottom: 80px;
}

.accordion-item {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.accordion-header {
  width: 100%;
  padding: 20px;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--primary);
  text-align: left;
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 20px;
  color: #555;
}

.accordion-item.active .accordion-body {
  max-height: 300px; /* Adjust based on content length */
  padding-bottom: 20px;
}

/* 8. Mobile Responsiveness Adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .research-grid {
    grid-template-columns: 1fr; /* Force single column on mobile */
  }
}

/*FOOTER SECTION*/
.footer {
  background-color: #333533;
  color: var(--light-text);
  padding: 40px 20px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-box {
  flex: 1;
  min-width: 250px;
  margin: 20px;
}
.footer-box h4{
  font-size: 1.2rem;;
 margin-top: 15px;
}
.social-media .fa-brands{
  font-size: 1.2rem;
}
.social-media{
  max-width: 80px;
  display: flex;
  justify-content: space-between;
  margin: 7px;
}
.footer-box h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-box p,
.footer-box ul,
.footer-box li,
.footer-box a {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--light-text);
  text-decoration: none;
}
.footer-box p {
  padding-right: 30px;
}

.footer-box ul {
  list-style: none;
  padding-left: 32px;
}

.footer-box ul li {
  margin-bottom: 8px;
}

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

.copyright {
  margin-top: 20px;
  text-align: center;
  color: var(--text-color-secondary);
  font-size: 0.9rem;
}
.copyright a {
  color: var(--text-color-secondary);
  font-size: 0.9rem;
}