/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* CSS Variables */
:root {
  --primary-color: #2E86AB;
  --secondary-color: #F24236;
  --accent-color: #F6AE2D;
  --success-color: #2ECC71;
  --dark-blue: #1a5f7a;
  --bg-white: #FFFFFF;
  --bg-light: #F8F9FA;
  --bg-dark: #2C3E50;
  --text-dark: #2C3E50;
  --text-light: #6C757D;
  --text-white: #FFFFFF;
  --shadow: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
  --gradient-primary: linear-gradient(135deg, #2E86AB 0%, #1a5f7a 100%);
  --gradient-secondary: linear-gradient(135deg, #F24236 0%, #e53e3e 100%);
}

/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
}

body, html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.page-wrapper {
  display: flex;
  min-height: 100vh;
  margin-left: 0 !important;
  padding-left: 0 !important;
}

.navbar {
  width: 300px;
  min-width: 250px;
  max-width: 350px;
  /* Remove position: fixed if not needed for desktop */
}

.main-content-area {
  flex: 1 1 0%;
  min-width: 0;
  margin-left: 0 !important;
  padding-left: 0 !important;
  padding: 2rem;
  padding-right: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* When the desktop topbar is visible, push content below it */
.main-content-area.topbar-active {
  padding-top: 80px;
}

/* Layout Structure */
.main-layout {
  display: flex;
  min-height: 100vh;
}

/* Navbar Styles */
.navbar {
  position: fixed;
  left: 0;
  top: 0;
  width: 280px;
  height: 100vh;
  background: var(--gradient-primary);
  color: var(--text-white);
  padding: 2rem;
  box-shadow: 2px 0 20px rgba(0,0,0,0.1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Top Navbar Styles (when scrolled) */
/* Replaced by explicit desktop topbar */

/* Ensure top navbar is initially hidden */
.navbar:not(.top-navbar):not(.top-navbar-transition) {
  opacity: 1;
  visibility: visible;
}

/* Hide left navbar when transitioning to top */
.navbar.top-navbar-transition {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Full-width desktop topbar */
.desktop-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--gradient-primary);
  color: var(--text-white);
  display: none; /* hidden by default; shown after scroll on desktop */
  z-index: 1100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.desktop-topbar .topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.desktop-topbar .topbar-brand { display: flex; align-items: center; gap: 0.75rem; }
.desktop-topbar .topbar-logo { width: 48px; height: 48px; border-radius: 50%; object-fit: contain; }
.desktop-topbar .topbar-name { font-weight: 700; font-size: 1.1rem; }
.desktop-topbar .topbar-title { font-size: 0.8rem; opacity: 0.85; }
.desktop-topbar .topbar-links { display: flex; gap: 0.75rem; }
.desktop-topbar .topbar-links a { color: rgba(255,255,255,0.95); padding: 0.45rem 0.9rem; border-radius: 999px; white-space: nowrap; }
.desktop-topbar .topbar-links a:hover { background: rgba(255,255,255,0.15); }

/* Show/hide for breakpoints */
@media (max-width: 768px) {
  .desktop-topbar { display: none !important; }
}

.navbar.top-navbar .navbar-brand {
  flex-direction: row;
  align-items: center;
  margin-bottom: 0;
  gap: 1rem;
  overflow: hidden;
  flex-shrink: 0;
}

.navbar.top-navbar .brand-name {
  font-size: 1.2rem;
  margin-bottom: 0;
}

.navbar.top-navbar .brand-title {
  font-size: 0.8rem;
}

.navbar.top-navbar .logo {
  width: 50px;
  height: 50px;
  margin-bottom: 0;
}

.navbar.top-navbar .nav-links {
  flex-direction: row;
  gap: 1rem;
  flex-grow: 0;
  overflow: hidden;
}

.navbar.top-navbar .nav-links a {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-radius: 25px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.navbar-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3rem;
  text-align: center;
}

.logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 3px solid rgba(255,255,255,0.2);
  object-fit: cover;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.brand-title {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  font-weight: 400;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.nav-links a {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.nav-links a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: rgba(255,255,255,0.1);
  transition: width 0.3s ease;
}

.nav-links a:hover::before {
  width: 100%;
}

.nav-links a:hover {
  color: var(--text-white);
  background: rgba(255,255,255,0.1);
  transform: translateX(5px);
}

/* Main Content Area */
.main-content-area {
  flex: 1;
  margin-left: 280px;
  min-height: 100vh;
  transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-content-area.top-navbar-active {
  margin-left: 0;
  padding-top: 80px;
}

/* Section Styles */
section {
  padding: 5rem 0;
}

.container {
  max-width: 100%;
  width: 100%;
  margin-right: 0;
  padding-right: 0;
  box-sizing: border-box;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-color);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
  border-radius: 2px;
}

/* Home Section */
.home-main-section {
  min-height: 100vh;
  background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
  display: flex;
  align-items: center;
  padding: 2rem;
}

.home-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.home-text-content {
  animation: fadeInLeft 1s ease-out;
}

.home-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.home-intro-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.home-qr-connect {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.qr-code-img {
  width: 100px;
  height: 100px;
  border-radius: 10px;
  border: 3px solid var(--bg-white);
  box-shadow: var(--shadow);
}

.home-qr-connect p {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
}

.home-image-content {
  display: flex;
  justify-content: center;
  animation: fadeInRight 1s ease-out;
}

.main-profile-img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-hover);
  transition: transform 0.3s ease;
}

.main-profile-img:hover {
  transform: scale(1.02);
}

/* About Section */
.about {
  background: var(--bg-white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 2rem;
}

.about-image {
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
  margin-left: 5.5rem;
}

.about-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  transition: transform 0.3s ease;
}

.about-image:hover img {
  transform: none;
}

.about-right h3 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.about-right p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.credentials, .specializations {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 15px;
  margin-bottom: 2rem;
  border-left: 5px solid var(--primary-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.specializations {
  border-left-color: var(--secondary-color);
}

.credentials:hover, .specializations:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.credentials h4, .specializations h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.specializations h4 {
  color: var(--secondary-color);
}

.credentials ul, .specializations ul {
  list-style: none;
}

.credentials li, .specializations li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 2rem;
  color: var(--text-dark);
  font-weight: 500;
}

.credentials li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success-color);
  font-weight: bold;
  font-size: 1.2rem;
}

.specializations li:before {
  content: '▶';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1rem;
}

.quote {
  background: var(--gradient-primary);
  color: white;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: rgba(255,255,255,0.2);
  font-family: serif;
}

.quote p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 0;
  position: relative;
  z-index: 1;
}

.quote span {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
  font-style: italic;
}

/* Doctors Section */
.aarogya-foundation {
  background: var(--bg-light);
}

.foundation-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.foundation-header {
  text-align: center;
  margin-bottom: 2rem;
}

.foundation-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 4px solid var(--primary-color);
  object-fit: cover;
}

.foundation-intro-text h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 700;
}

.foundation-intro-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-light);
}

.service-display-area {
  background: var(--bg-white);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: var(--shadow);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-content-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.service-item-display {
  display: none;
  text-align: center;
  animation: fadeIn 0.5s ease-in;
}

.service-item-display.active {
  display: block;
}

.service-icon-large {
  width: 100px;
  height: 100px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 2.5rem;
  color: white;
  box-shadow: var(--shadow);
}

.service-title-large {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 700;
}

.service-description-large {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-light);
  max-width: 500px;
  margin: 0 auto;
}

/* Services Section */
.services {
  background: var(--bg-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--bg-white);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-color);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.service-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* Gallery Section */
.gallery {
  background: var(--bg-light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.3s ease;
  aspect-ratio: 4/3;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(46, 134, 171, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  color: white;
  font-size: 2rem;
}

/* Gallery Slider Styles */
.gallery-row {
  margin-bottom: 4rem;
}

.gallery-row-title {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 700;
}

.gallery-slider-container {
  overflow: hidden;
  position: relative;
}

.gallery-slider {
  overflow: hidden;
}

.gallery-slide-track {
  display: flex;
  gap: 2rem;
  animation: slide 20s linear infinite;
}

.gallery-slide-item {
  flex: 0 0 300px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-slide-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-slide-item:hover img {
  transform: scale(1.05);
}

@keyframes slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Contact Section */
.contact {
  background: var(--primary-color);
}

.contact-layout {
  display: flex;
  gap: 4rem;
  align-items: stretch;
}

.contact-vertical-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 3rem;
  font-weight: 800;
  color: var(--bg-light);
  opacity: 0.7;
  align-self: center;
  transform: rotate(180deg);
}

.contact-content {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-form-section h2,
.contact-info-section h2 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-weight: 700;
}

.modern-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.form-row {
  position: relative;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--bg-white);
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(46, 134, 171, 0.1);
}

.form-row textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-submit-btn {
  background: var(--bg-dark);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.contact-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  color: var(--text-white);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  padding: 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.contact-link:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.contact-link i {
  color: var(--accent-color);
  font-size: 1.3rem;
  width: 20px;
  text-align: center;
}

.visit-us h3 {
  color: var(--text-white);
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 1.4rem;
}

.visit-us p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-logo-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 3px solid var(--secondary-color);
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.footer-logo h3 {
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
  font-weight: 700;
  font-size: 1.5rem;
}

.footer-logo p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}

.footer-logo .tagline {
  font-style: italic;
  color: var(--accent-color);
  font-size: 0.9rem;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  font-weight: 700;
  font-size: 1.2rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  text-align: left;
}

.footer-contact-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
  margin-bottom: 0.5rem;
}

.footer-contact-link:hover {
  color: white;
}

.footer-contact-link i {
  color: var(--secondary-color);
  font-size: 1.1rem;
}

.footer-address {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.8);
  text-align: left;
}

.footer-address i {
  color: var(--secondary-color);
  font-size: 1.1rem;
  margin-top: 0.2rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.social-icon:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-white);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: var(--gradient-secondary);
  color: var(--text-white);
  box-shadow: var(--shadow);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Mobile Navbar Styles */
.mobile-navbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--gradient-primary);
  padding: 1rem 2rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  z-index: 1001;
  transition: transform 0.3s ease;
}

.mobile-navbar.hidden {
  transform: translateY(-100%);
}

.mobile-navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.mobile-navbar-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-navbar-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  object-fit: contain;
  background: white;
  padding: 4px;
}

.mobile-navbar-brand-text {
  display: flex;
  flex-direction: column;
}

.mobile-navbar-brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.2rem;
  line-height: 1.2;
}

.mobile-navbar-brand-title {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.8);
  font-weight: 400;
  line-height: 1.2;
}

.mobile-navbar-menu-btn {
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.mobile-navbar-menu-btn:hover {
  background: rgba(255,255,255,0.1);
}

/* Mobile Menu Styles */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  height: 100vh;
  background: var(--bg-dark);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-header {
  padding: 2.5rem 2rem 2rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.mobile-menu-brand {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex: 1;
}

.mobile-menu-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: white;
  padding: 8px;
  object-fit: contain;
  flex-shrink: 0;
}

.mobile-menu-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.mobile-menu-brand-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--secondary-color);
  display: block;
  line-height: 1.2;
}

.mobile-menu-brand-title {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  display: block;
  line-height: 1.2;
}

.mobile-menu-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-nav {
  padding: 2rem 0;
  flex: 1;
}

.mobile-menu-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu-nav li {
  margin: 0;
}

.mobile-menu-nav a {
  display: flex;
  align-items: center;
  padding: 1.2rem 2rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  font-size: 1rem;
  font-weight: 500;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a.active {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-left-color: var(--secondary-color);
}

.mobile-menu-nav a i {
  margin-right: 1.2rem;
  font-size: 1.3rem;
  width: 24px;
  text-align: center;
  color: var(--secondary-color);
}



/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger.active span:first-child {
  transform: rotate(45deg) translate(6px, 6px);
}

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

.hamburger.active span:last-child {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Floating Buttons */
.connect-with-me {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: var(--gradient-secondary);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-hover);
  z-index: 1000;
  transition: all 0.3s ease;
}

.connect-with-me:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(242, 66, 54, 0.4);
}

.connect-message {
  position: fixed;
  bottom: 170px;
  right: 20px;
  background: var(--bg-dark);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.connect-message.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* Animations */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Animation classes for when elements come into view */
.fade-in.animate,
.fade-in-up.animate,
.fade-in-scale.animate {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .home-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .foundation-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .contact-layout {
    flex-direction: column;
    gap: 2rem;
  }
  
  .contact-vertical-text {
    display: none;
  }
}

@media (max-width: 768px) {
  .navbar {
    display: none;
  }
  
  .navbar.top-navbar {
    display: none;
  }
  
  .main-content-area.top-navbar-active {
    margin-left: 0;
    padding-top: 0;
  }
}

@media (max-width: 1200px) {
  .navbar.top-navbar .nav-links a {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }
  
  .navbar.top-navbar .brand-name {
    font-size: 1.1rem;
  }
  
  .navbar.top-navbar .brand-title {
    font-size: 0.75rem;
  }
}

/* Begin mobile-only layout overrides */
@media (max-width: 768px) {
  .mobile-navbar {
    display: block;
  }
  
  .main-content-area {
    margin-left: 0;
    padding-top: 5rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .home-main-section {
    padding: 1rem;
    min-height: auto;
    padding-top: 2rem;
  }
  
  .home-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
  }
  
  .mobile-menu-overlay,
  .mobile-menu {
    display: block;
  }
  
  .hamburger {
    display: none;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .service-display-area {
    padding: 2rem;
    min-height: 300px;
  }
  
  .service-icon-large {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }
  
  .service-title-large {
    font-size: 1.5rem;
  }
  
  .service-description-large {
    font-size: 1rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

}
/* End mobile-only layout overrides */


@media (max-width: 480px) {
  .mobile-navbar {
    padding: 0.8rem 1rem;
  }
  
  .mobile-navbar-brand-name {
    font-size: 0.9rem;
  }
  
  .mobile-navbar-brand-title {
    font-size: 0.65rem;
  }
  
  .mobile-navbar-logo {
    width: 50px;
    height: 50px;
  }
  
  .mobile-menu {
    width: 280px;
  }
  
  .mobile-menu-header {
    padding: 2rem 1.5rem 1.5rem 1.5rem;
  }
  
  .mobile-menu-logo {
    width: 50px;
    height: 50px;
  }
  
  .mobile-menu-brand-name {
    font-size: 1.1rem;
  }
  
  .mobile-menu-nav a {
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
  }
  
  .mobile-menu-nav a i {
    font-size: 1.2rem;
    width: 20px;
    margin-right: 1rem;
  }
  
  .home-title {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .home-container {
    gap: 2rem;
  }
  
  .about-content {
    gap: 2rem;
  }
  
  .about-image {
    margin-left: 0;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .contact-form {
    padding: 1rem;
    width: 90%;
    max-width: 90%;
    overflow: hidden;
  }
  
  .modern-contact-form {
    gap: 1rem;
    width: 90%;
    max-width: 90%;
    overflow: hidden;
  }
  
  .form-row input,
  .form-row textarea {
    padding: 0.8rem;
    font-size: 0.95rem;
    width: 95%;
    box-sizing: border-box;
    max-width: 95%;
    overflow: hidden;
  }
  
  .contact-submit-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
  }
  
  .contact-item {
    padding: 1.5rem;
  }
  
  .connect-with-me {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .scroll-to-top {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
} 

/* Awards & Recognition Section */
.awards-section {
  padding: 3rem 2rem;
  background:#f3f8fd;
}

/* Compact Awards Grid */
.awards-compact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.award-compact-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  cursor: pointer;
  height: 200px;
  background: var(--bg-white);
}

.award-compact-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.award-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.award-compact-item:hover .award-preview-img {
  transform: scale(1.05);
}

.award-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  padding: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.award-compact-item:hover .award-overlay {
  transform: translateY(0);
}

.award-overlay h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.award-overlay p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.5rem;
  z-index: 2;
}

/* Awards Popup */
.awards-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
}

.awards-popup.active {
  display: flex;
}

.awards-popup-content {
  background: transparent;
  border-radius: 15px;
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: auto;
  padding: 20px;
}

.close-awards-popup {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--secondary-color);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.close-awards-popup:hover {
  background: #d32f2f;
}

#awardsPopupContent {
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 40px 20px;
}

.award-popup-image {
  width: auto;
  height: auto;
  max-width: 65%;
  max-height: 65%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  object-fit: contain;
}

.award-popup-video {
  width: auto;
  height: auto;
  max-width: 80%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.award-popup-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.award-popup-description {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Hidden News Items */
.hidden-news {
  display: none;
}

.hidden-news.show {
  display: block;
}

/* See More Button */
.see-more-container {
  text-align: center;
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.see-more-btn {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.see-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.see-more-icon {
  transition: transform 0.3s ease;
}

.see-more-btn.expanded .see-more-icon {
  transform: rotate(180deg);
}

/* Responsive Design for Awards Section */
@media (max-width: 768px) {
  .awards-compact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .award-compact-item {
    padding: 1.5rem;
  }
  
  .award-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .award-compact-item h4 {
    font-size: 1rem;
  }
  
  .award-compact-item p {
    font-size: 0.8rem;
  }
  
  .awards-popup-content {
    max-width: 95%;
    max-height: 95%;
  }
  
  #awardsPopupContent {
    padding: 1.5rem;
  }
  
  .award-popup-image,
  .award-popup-video {
    max-width: 95%;
    max-height: 95%;
  }
  
  .see-more-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .awards-compact-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Services Section */
.free-services-section {
  background: var(--primary-color);
  padding: 5rem 0;
}

.services-layout {
  display: flex;
  gap: 4rem;
  align-items: stretch;
}

.services-vertical-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 3rem;
  font-weight: 800;
  color: var(--bg-light);
  opacity: 0.7;
  align-self: center;
  transform: rotate(180deg);
}

.services-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* New two-column services layout */
.services-content {
  flex: 1;
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.services-left-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.services-right-column {
  flex: 0 0 400px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 0;
  padding-top: 18rem; 
  padding-right: 2rem;/* Move image down to align with first service card */
}

.cashless-image-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cashless-image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.cashless-image-container img:hover {
  transform: scale(1.02);
}

/* Responsive design for services layout */
@media (max-width: 1200px) {
  .services-content {
    flex-direction: column;
    gap: 2rem;
  }
  
  .services-right-column {
    flex: none;
    width: 100%;
    order: 1; /* Move image to bottom on smaller screens */
    padding-top: 2rem; /* Reset padding for mobile */
  }
  
  .services-left-column {
    width: 100%;
    order: 0; /* Keep cards at top */
  }
}

@media (max-width: 768px) {
  .services-layout {
    flex-direction: column;
    gap: 2rem;
  }
  
  .services-vertical-text {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 2rem;
    text-align: center;
  }
  
  .services-content {
    gap: 1.5rem;
  }
  
  .services-right-column {
    padding: 1rem 0;
  }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
  margin-right: 2rem;
}

.service-item {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 15px;
  border-left: 5px solid var(--primary-color);
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  margin-right: 2rem;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-left-color: var(--secondary-color);
}

.service-item h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-item p {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.read-more-btn {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.read-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Service Popup */
.service-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.service-popup.active {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.service-popup.active .popup-content {
  transform: scale(1);
}

.close-popup {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-light);
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-popup:hover {
  color: var(--secondary-color);
}

/* Facilities Section */
.impact {
  background: var(--bg-light);
  padding: 5rem 0;
}

.impact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.impact-card {
  background: var(--bg-white);
  padding: 2.5rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.impact-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-color);
}

.impact-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
  transition: transform 0.3s ease;
}

.impact-card:hover .impact-icon {
  transform: scale(1.1);
}

.impact-card h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.impact-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* Stats Section */
.impact-stats-section {
  position: relative;
  background: var(--gradient-primary);
  padding: 5rem 0;
  color: white;
  overflow: hidden;
}

.stats-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.stats-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.stat-card {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  display: block;
}

.stat-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Responsive Design for new sections */
@media (max-width: 1024px) {
  .services-layout {
    flex-direction: column;
    gap: 2rem;
  }
  
  .services-vertical-text {
    display: none;
  }
  
  .impact-cards {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .service-item {
    padding: 1.5rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .impact-card {
    padding: 2rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .stats-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .popup-content {
    padding: 2rem;
    margin: 1rem;
  }
} 

#about, #doctors, #facilities, .about-section, .doctors-section, .impact {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
  padding-left: 2rem !important;
  padding-right: 2rem !important;
}

@media (max-width: 768px) {
  #about, #doctors, #facilities, .about-section, .doctors-section, .impact {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
} 

/* Hero/Home Section Layout */
#home, .home-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 60vh;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.home-text {
  flex: 1 1 0%;
  max-width: 600px;
}

.home-title, #home .section-title {
  font-size: 2.8rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.home-description, #home p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.home-image {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-image img {
  max-width: 320px;
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

@media (max-width: 1024px) {
  #home, .home-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    min-height: unset;
  }
  .home-image img {
    max-width: 220px;
  }
  .home-title, #home .section-title {
    font-size: 2.1rem;
  }
  .home-description, #home p {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  #home, .home-section {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    gap: 1rem;
  }
  .home-title, #home .section-title {
    font-size: 1.3rem;
  }
  .home-description, #home p {
    font-size: 0.95rem;
  }
  .home-image img {
    max-width: 140px;
    border-radius: 12px;
  }
} 

/* Logo Styling */
.logo, .footer-logo-img {
  display: block;
  width: 180px;
  height: 60px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  margin-bottom: 0.5rem;
}

@media (max-width: 600px) {
  .logo, .footer-logo-img {
    width: 120px;
    height: 40px;
  }
}

/* Doctors Section Styling */
.doctors-section {
  background: var(--bg-light, #f7fbfd);
  padding: 4rem 0 4rem 0;
}

.doctors-section .section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-color, #1976a5);
  margin-bottom: 2.5rem;
}

.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2.5rem;
  justify-items: center;
}

.doctor-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
  max-width: 340px;
  width: 100%;
  min-height: 480px;
  position: relative;
}

.doctor-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px rgba(25, 118, 165, 0.13);
}

.doctor-img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--primary-color, #1976a5);
  margin-bottom: 1.5rem;
  background: #eaf6fa;
  box-shadow: 0 4px 16px rgba(25, 118, 165, 0.12);
}

.doctor-info {
  text-align: center;
}

.doctor-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color, #1976a5);
  margin-bottom: 0.3rem;
}

.doctor-qual {
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.doctor-role {
  font-size: 0.98rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.doctor-bio {
  font-size: 0.97rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 0.2rem;
  max-height: 120px;
  overflow-y: auto;
  padding-right: 2px;
}

@media (max-width: 900px) {
  .doctors-section {
    padding: 2rem 0;
  }
  .doctors-grid {
    gap: 1.5rem;
  }
  .doctor-card {
    padding: 1.2rem 0.7rem 1rem 0.7rem;
    min-height: 480px;
  }
  .doctor-img {
    width: 140px;
    height: 140px;
  }
}

@media (max-width: 600px) {
  .doctors-section {
    padding: 1rem 0;
  }
  .doctors-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .doctor-card {
    min-height: 350px;
    padding: 1rem 0.5rem 0.7rem 0.5rem;
  }
  .doctor-img {
    width: 120px;
    height: 120px;
  }
  .doctor-info h3 {
    font-size: 1.05rem;
  }
  .doctor-bio {
    font-size: 0.93rem;
    max-height: 90px;
  }
} 

/* Home Section Adjustments */
#home, .home-main-section, .home-section {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2.5rem;
  min-height: 60vh;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.home-text-content {
  flex: 1 1 0%;
  max-width: 600px;
  z-index: 1;
}

.home-title, #home .section-title {
  font-size: 2.2rem;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.home-intro-text, .home-description, #home p {
  font-size: 1.08rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.home-qr-connect {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.2rem;
}

.qr-code-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.home-image-content {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.main-profile-img {
  max-width: 280px;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 6px 30px rgba(0,0,0,0.12);
}

@media (max-width: 1024px) {
  #home, .home-main-section, .home-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    min-height: unset;
  }
  .main-profile-img {
    max-width: 250px;
  }
  .home-title, #home .section-title {
    font-size: 1.5rem;
  }
  .home-intro-text, .home-description, #home p {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  #home, .home-main-section, .home-section {
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
    gap: 1rem;
  }
  .main-profile-img {
    max-width: 200px;
    border-radius: 12px;
  }
  .home-title, #home .section-title {
    font-size: 1.1rem;
  }
  .home-intro-text, .home-description, #home p {
    font-size: 0.95rem;
  }
} 

/* Ensure home content is not behind navbar */
@media (min-width: 1025px) {
  .main-content-area > #home,
  .main-content-area > .home-main-section,
  .main-content-area > .home-section {
    margin-left: 320px;
  }
}

@media (max-width: 1024px) {
  .main-content-area > #home,
  .main-content-area > .home-main-section,
  .main-content-area > .home-section {
    margin-left: 0;
  }
} 