*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Hero Section - Dynamic Banner Styles */
.hero {
    width: 100vw;              /* Full width */
    height: 100vh;            /* Better on modern mobile browsers */
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: white;   /* Fallback color */
}

/* Slider Container */
.hero-slider-container {
    position: relative;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100svh;
    z-index: 0;
    overflow: hidden;
}

/* Individual Slide */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100svh;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide.active {
    opacity: 1;
}

/* Banner Image */
.hero-slide img {
  width: 100%;
  height: 100%;
  
  object-position: center;
  display: block;
}

/* Overlay Content */
.hero-overlay-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    background: rgba(0,0,0,0.4);
    padding: 20px;
    border-radius: 10px;
    max-width: 90%;
}

.hero-overlay-content h2 {
    font-size: 6vw;
    margin-bottom: 10px;
    color: white;
}

.hero-overlay-content p {
    font-size: 4vw;
    line-height: 1.4;
    color: white;
}

/* Arrows & Dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: white;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    padding: 15px;
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.slider-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.arrow-left {
    left: 20px;
}

.arrow-right {
    right: 20px;
}

/* Cards Section */
.hero-cards-wrapper {
    position: relative;
    z-index: 100;
    padding: 40px 20px;
    background: white;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.hero-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    height: 160px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.hero-card.appointment {
    background: rgba(3, 80, 64, 0.95);
    
}

.hero-card.doctor {
    background: rgba(108, 92, 231, 0.95);
}

.hero-card.hours {
    background: rgba(116, 185, 255, 0.95);
}

.hero-card h3,
.hero-card p {
    color: white;
}

.hero-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: bold;
}

.hero-card p {
    font-size: 16px;
    line-height: 1.6;
}

/* Mobile Fixes */
@media (max-width: 768px) {
    .hero-overlay-content h2 {
        font-size: 70vw;
    }
    .hero-overlay-content p {
        font-size: 4.5vw;
    }
    .slider-arrow {
        padding: 5px;
        font-size: 10px;
    }
}

/* White content section */
.content-section {
    background: white;
    padding: 60px 0;
    position: relative;
    z-index: 1;
}

.content-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}

.content-section p {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* About Section */
.about-section {
    padding: 80px 20px;
    background: #f8f9fa;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-content h2 {
    color: #0984e3;
    font-size: 36px;
    margin-bottom: 20px;
}

.about-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.video-placeholder-portrait {
    width: 100%;
    height: 450px;
    max-width: 350px;
    background: #000;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff4757;
    font-size: 18px;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.video-placeholder-portrait iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Doctor Section */
.doctor-section {
  padding: 80px 20px;
  background: white;
}

.doctor-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: flex-start;
}

.doctor-image {
  width: 100%;
  height: 500px;
  background: #e0e0e0;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.doctor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center; /* ✅ Keeps top of image visible */
  border-radius: 15px;
  display: block;
}

.doctor-info h2 {
  color: #0984e3;
  font-size: 32px;
  margin-bottom: 20px;
}

.doctor-info h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #333;
}

.doctor-info h4 {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 15px;
  text-align: justify; /* ✅ Justify text for clean alignment */
}

/* ✅ Responsive Adjustments */
@media (max-width: 1024px) {
  .doctor-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .doctor-image {
    height: 400px;
  }

  .doctor-info h2 {
    font-size: 28px;
  }

  .doctor-info h3 {
    font-size: 17px;
  }

  .doctor-info p {
    font-size: 15px;
  }
}

@media (max-width: 600px) {
  .doctor-section {
    padding: 60px 15px;
  }

  .doctor-image {
    height: 300px;
  }

  .doctor-info h2 {
    font-size: 24px;
  }

  .doctor-info h3 {
    font-size: 16px;
  }

  .doctor-info p {
    font-size: 14px;
    line-height: 1.6;
  }
}

/* Technologies Section */
.tech-section {
  padding: 80px 20px;
  background: #f8f9fa;
}

.tech-container {
  max-width: 1200px;
  margin: 0 auto;
}

.tech-title {
  text-align: center;
  color: #0984e3;
  font-size: 36px;
  margin-bottom: 50px;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.tech-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tech-image {
  width: 100%;
  height: 200px;
  background: #e0e0e0;
  border-radius: 10px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.tech-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
}

.tech-label {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .tech-title {
    font-size: 28px;
  }

  .tech-image {
    height: 180px;
  }

  .tech-label {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .tech-title {
    font-size: 24px;
  }

  .tech-grid {
    grid-template-columns: 1fr;
  }

  .tech-image {
    height: 160px;
  }

  .tech-label {
    font-size: 14px;
  }
}

/* Mediclaim Partners Section */
.mediclaim-section {
    padding: 80px 0;
    background: white;
    width: 100%;
}

.mediclaim-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.mediclaim-title {
    text-align: center;
    color: #0984e3;
    font-size: 36px;
    margin-bottom: 50px;
}

.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    background: #f8f9fa;
    padding: 20px 0;
    border-radius: 10px;
}

.marquee-content {
    display: inline-flex;
    animation: marquee 30s linear infinite;
    gap: 30px;
    align-items: center;
}

.partner-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    min-width: 180px;
}

.partner-logo {
    width: 150px;
    height: 150px;
    background: #e0e0e0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 16px;
    color: #666;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
}

.partner-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: white;
    padding: 10px;
    border-radius: 10px;
}

.partner-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    white-space: normal;
    text-align: center;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Reviews Section */
.reviews-section {
  padding: 80px 20px;
  background: #f8f9fa;
}

.reviews-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.reviews-title {
  color: #0984e3;
  font-size: 36px;
  margin-bottom: 20px;
}

.rating-display {
  font-size: 48px;
  font-weight: bold;
  color: #0984e3;
  margin-bottom: 10px;
}

.stars {
  font-size: 24px;
  color: #ffd700;
  margin-bottom: 20px;
}

.rating-sources {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.rating-source {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
}

.google-link {
  color: #0984e3;
  text-decoration: none;
  margin-bottom: 40px;
  display: inline-block;
  font-weight: 500;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.review-card {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.reviewer-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 18px;
  background: #0984e3;
  flex-shrink: 0;
}

.reviewer-info h4 {
  font-size: 16px;
  margin-bottom: 5px;
  color: #333;
}

.review-date {
  font-size: 12px;
  color: #666;
}

.review-stars {
  color: #ffd700;
  margin-bottom: 10px;
  font-size: 16px;
}

.review-text {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

.google-badge {
  background: #4285f4;
  color: white;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 12px;
  margin-top: 10px;
  display: inline-block;
  align-self: flex-start;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .reviews-title {
    font-size: 28px;
  }

  .rating-display {
    font-size: 36px;
  }

  .stars {
    font-size: 20px;
  }

  .rating-source {
    font-size: 14px;
  }

  .review-card {
    padding: 20px;
  }

  .review-text {
    font-size: 13.5px;
  }
}

@media (max-width: 480px) {
  .reviews-title {
    font-size: 24px;
  }

  .rating-display {
    font-size: 30px;
  }

  .stars {
    font-size: 18px;
  }

  .review-card {
    padding: 18px;
  }

  .reviewer-avatar {
    width: 45px;
    height: 45px;
    font-size: 16px;
  }

  .reviewer-info h4 {
    font-size: 15px;
  }

  .review-date {
    font-size: 11px;
  }

  .review-text {
    font-size: 13px;
  }

  .google-badge {
    font-size: 11px;
    padding: 4px 8px;
  }
}

/* Eye Diseases Section */
.diseases-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 20px 100px;
}

.diseases-title {
  text-align: center;
  font-size: 4rem;
  font-weight: 700;
  color: #1976d2;
  margin-bottom: 60px;
  text-shadow: 0 2px 4px rgba(25, 118, 210, 0.1);
}

/* Responsive Grid Layout */
.diseases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Disease Card */
.disease-card {
  background: white;
  border-radius: 10px;
  padding: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 400px;
}

.disease-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Image Container */
.disease-image {
  width: 100%;
  height: 70%;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.disease-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Gradient Backgrounds */
.cataract-img {
  background: linear-gradient(45deg, #fff3e0, #ffcc80);
}

.glaucoma-img {
  background: linear-gradient(45deg, #ffebee, #ffcdd2);
}

.retina-img {
  background: linear-gradient(45deg, #e3f2fd, #90caf9);
}

.cornea-img {
  background: linear-gradient(45deg, #f3e5f5, #ce93d8);
}

/* Text Content */
.disease-content {
  padding: 20px;
  height: 30%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.disease-card h3 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #1976d2;
  margin-bottom: 12px;
  text-align: left;
}

.disease-card p {
  color: rgb(211, 203, 203);
  line-height: 1.5;
  font-size: 1rem;
  text-align: left;
  margin: 0;
}

/* Spacer */
.navbar-spacer {
  background-color: transparent;
}

/* Responsive Adjustments */

/* Tablet: 2 columns */
@media (max-width: 1024px) {
         .hero-slide img {
  width: 100%;
  height: 500px;
    
  object-position: center;
  display: block;
}
  .diseases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .disease-card {
    height: 380px;
  }

  .disease-card h3 {
    font-size: 1.5rem;
  }

  .disease-card p {
    font-size: 0.95rem;
  }
}

/* Mobile: 1 column */
@media (max-width: 600px) {
         .hero-slide img {
  width: 100%;
  height: 600px;
    
  object-position: center;
  display: block;
}
  .diseases-grid {
    grid-template-columns: 1fr;
  }

  .disease-card {
    height: auto;
  }

  .disease-image {
    height: 220px;
  }

  .disease-content {
    padding: 16px;
  }

  .disease-card h3 {
    font-size: 1.4rem;
    text-align: center;
  }

  .disease-card p {
    font-size: 0.95rem;
    text-align: center;
  }
}

/* Footer Styles */
.footer-wrapper {
    background: #2c3e50;
    color: white;
}

.footer-top-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top-item-area {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.footer-top-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
}

.footer-top-item-content h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.footer-top-item-content p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.contact-number {
    font-size: 20px;
    font-weight: bold;
    color: #3498db;
}

.appointment-button-top {
    background: #3498db;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.appointment-button-top:hover {
    background: #2980b9;
}

.main-footer {
    background: #34495e;
    padding: 40px 20px 20px;
}

.footer-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 30px;
}

.footer-section-item h3 {
    margin-bottom: 20px;
    color: #3498db;
}

.footer-section-item p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-section-item ul {
    list-style: none;
}

.footer-section-item ul li {
    margin-bottom: 10px;
}

.footer-link {
    color: #ecf0f1;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-link:hover {
    opacity: 1;
}

.footer-logo-main {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.footer-social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: transform 0.3s;
}

.social-icon:hover {
    transform: scale(1.1);
}

.copyright-section {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #7f8c8d;
    opacity: 0.8;
}

/* Enhanced Mobile Responsive Design */

/* Tablet View (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .hero-content {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .diseases-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .doctor-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Mobile View (768px and below) */
@media screen and (max-width: 768px) {
         .hero-slide img {
  width: 100%;
  height: 300px;
    
  object-position: center;
  display: block;
}
    body {
        font-size: 14px;
    }
    
    .hero{
        width:100%;
        height:250px;
        min-height: 20vh;
    }
    
    .hero-cards-wrapper {
        padding: 20px 15px;
        margin-top: -5vh;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero-card {
        height: auto;
        min-height: 140px;
        padding: 20px;
    }
    
    .hero-card h3 {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .hero-card p {
        font-size: 14px;
    }
    
    .slider-arrow {
        padding: 10px;
        font-size: 18px;
    }
    
    .arrow-left {
        left: 10px;
    }
    
    .arrow-right {
        right: 10px;
    }
    
    .about-section {
        padding: 40px 15px;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .about-content h2 {
        font-size: 28px;
        text-align: center;
    }
    
    .about-content p {
        font-size: 14px;
        text-align: center;
    }
    
    .video-placeholder-portrait {
        max-width: 100%;
        height: 300px;
    }
    
    .doctor-section {
        padding: 40px 15px;
    }
    
    .doctor-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .doctor-image {
        height: 300px;
    }
    
    .doctor-info h2 {
        font-size: 24px;
        text-align: center;
    }
    
    .doctor-info h3 {
        font-size: 16px;
        text-align: center;
    }
    
    .doctor-info p {
        font-size: 14px;
        text-align: center;
    }
    
    .tech-section {
        padding: 40px 15px;
    }
    
    .tech-title {
        font-size: 28px;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tech-labels {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .mediclaim-section {
        padding: 40px 0;
    }
    
    .mediclaim-container {
        padding: 0 15px;
    }
    
    .mediclaim-title {
        font-size: 28px;
    }
    
    .partner-logo {
        width: 100px;
        height: 100px;
    }
    
    .partner-item {
        min-width: 120px;
    }
    
    .partner-name {
        font-size: 14px;
    }
    
    .reviews-section {
        padding: 40px 15px;
    }
    
    .reviews-title {
        font-size: 28px;
    }
    
    .rating-display {
        font-size: 36px;
    }
    
    .rating-sources {
        flex-direction: column;
        gap: 10px;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .review-card {
        padding: 20px;
    }
    
    .diseases-section {
        padding: 40px 15px 60px;
    }
    
    .diseases-title {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }
    
    .diseases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .disease-card {
        height: 300px;
    }
    
    .disease-card h3 {
        font-size: 1.3rem;
    }
    
    .disease-card p {
        font-size: 0.9rem;
    }
    
    .footer-top-section {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 15px;
    }
    
    .footer-top-item-area {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .footer-content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .main-footer {
        padding: 30px 15px 15px;
    }
}

/* Small Mobile View (480px and below) */
@media screen and (max-width: 480px) {
         .hero-slide img {
  width: 100%;
  height: 300px;
    
  object-position: center;
  display: block;
}
    .hero{
        width:100%;
        height:250px;
        min-height: 20vh;
    }
    
    .hero-overlay-content h2 {
        font-size: 2rem;
    }
    
    .hero-overlay-content p {
        font-size: 1rem;
    }
    
    .hero-card {
        min-height: 120px;
        padding: 15px;
    }
    
    .hero-card h3 {
        font-size: 18px;
    }
    
    .hero-card p {
        font-size: 13px;
    }
    
    .about-content h2 {
        font-size: 24px;
    }
    
    .doctor-info h2 {
        font-size: 20px;
    }
    
    .doctor-info h3 {
        font-size: 14px;
    }
    
    .tech-title {
        font-size: 24px;
    }
    
    .mediclaim-title {
        font-size: 24px;
    }
    
    .reviews-title {
        font-size: 24px;
    }
    
    .diseases-title {
        font-size: 2rem;
    }
    
    .diseases-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .disease-card {
        height: 350px;
    }
    
    .disease-image {
        height: 60%;
    }
    
    .disease-content {
        padding: 15px;
    }
    
    .disease-card h3 {
        font-size: 1.2rem;
    }
    
    .disease-card p {
        font-size: 0.85rem;
    }
    
    .partner-logo {
        width: 80px;
        height: 80px;
    }
    
    .partner-item {
        min-width: 100px;
    }
    
    .footer-top-item-area {
        padding: 15px;
    }
    
    .footer-top-item-content h3 {
        font-size: 16px;
    }
    
    .contact-number {
        font-size: 18px;
    }
}

/* Very Small Mobile View (360px and below) */
/* Very Small Mobile View (360px and below) - Continuation */
@media screen and (max-width: 360px) {
       .hero-slide img {
  width: 100%;
  height: 300px;

    
  object-position: center;
  display: block;
}
    .hero{
        width:97%;
        height:250px;
        min-height: 20vh;
    }
    .hero-content {
        gap: 5px;
    }
    
    .hero-card {
        padding: 12px;
        min-height: 100px;
    }
    
    .hero-card h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .hero-card p {
        font-size: 12px;
        line-height: 1.4;
    }
    
    .hero-overlay-content {
        max-width: 90%;
        padding: 15px;
    }
    
    .hero-overlay-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-overlay-content p {
        font-size: 0.9rem;
    }
    
    .slider-dots {
        bottom: 15px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .slider-arrow {
        padding: 8px;
        font-size: 16px;
    }
    
    .arrow-left {
        left: 8px;
    }
    
    .arrow-right {
        right: 8px;
    }
    
    .about-section {
        padding: 30px 10px;
    }
    
    .about-content h2 {
        font-size: 22px;
    }
    
    .about-content p {
        font-size: 13px;
    }
    
    .video-placeholder-portrait {
        height: 250px;
    }
    
    .doctor-section {
        padding: 30px 10px;
    }
    
    .doctor-image {
        height: 300px;
    }
    
    .doctor-info h2 {
        font-size: 18px;
    }
    
    .doctor-info h3 {
        font-size: 13px;
    }
    
    .doctor-info h4 {
        font-size: 12px;
        text-align:justify;
    }
    
    .tech-section {
        padding: 30px 10px;
    }
    
    .tech-title {
        font-size: 22px;
    }
    
    .tech-image {
        height: 150px;
    }
    
    .tech-label {
        font-size: 14px;
    }
    
    .mediclaim-section {
        padding: 30px 0;
    }
    
    .mediclaim-container {
        padding: 0 10px;
    }
    
    .mediclaim-title {
        font-size: 22px;
    }
    
    .marquee-container {
        padding: 15px 0;
    }
    
    .partner-logo {
        width: 70px;
        height: 70px;
    }
    
    .partner-item {
        min-width: 90px;
    }
    
    .partner-name {
        font-size: 12px;
    }
    
    .reviews-section {
        padding: 30px 10px;
    }
    
    .reviews-title {
        font-size: 22px;
    }
    
    .rating-display {
        font-size: 32px;
    }
    
    .stars {
        font-size: 20px;
    }
    
    .rating-source {
        font-size: 14px;
    }
    
    .review-card {
        padding: 15px;
    }
    
    .reviewer-avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .reviewer-info h4 {
        font-size: 14px;
    }
    
    .review-text {
        font-size: 13px;
    }
    
    .diseases-section {
        padding: 30px 10px 50px;
    }
    
    .diseases-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .disease-card {
        height: 320px;
    }
    
    .disease-content {
        padding: 12px;
    }
    
    .disease-card h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .disease-card p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .footer-top-section {
        padding: 20px 10px;
    }
    
    .footer-top-item-area {
        padding: 12px;
    }
    
    .footer-top-image {
        width: 60px;
        height: 60px;
    }
    
    .footer-top-item-content h3 {
        font-size: 14px;
    }
    
    .footer-top-item-content p {
        font-size: 12px;
    }
    
    .contact-number {
        font-size: 16px;
    }
    
    .appointment-button-top {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .main-footer {
        padding: 20px 10px 10px;
    }
    
    .footer-section-item h3 {
        font-size: 16px;
    }
    
    .footer-section-item p {
        font-size: 12px;
    }
    
    .footer-logo-main {
        width: 60px;
        height: 60px;
    }
    
    .social-icon {
        width: 25px;
        height: 25px;
    }
    
    .copyright-section {
        padding: 15px;
        font-size: 12px;
    }
}

/* Extra Small Mobile View (320px and below) */
@media screen and (max-width: 320px) {
        .hero-slide img {
  width: 100%;
  height: 250px;
    
  object-position: center;
  display: block;
}
  .hero{
        width:97%;
        height:250px;
        min-height: 20vh;
    }
    
    .hero-cards-wrapper {
        padding: 15px 10px;
    }
    
    .hero-card {
        padding: 10px;
        min-height: 90px;
    }
    
    .hero-card h3 {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .hero-card p {
        font-size: 11px;
    }
    
    .hero-overlay-content h2 {
        font-size: 1.5rem;
    }
    
    .hero-overlay-content p {
        font-size: 0.8rem;
    }
    
    .about-content h2 {
        font-size: 20px;
    }
    
    .about-content p {
        font-size: 12px;
    }
    
    .video-placeholder-portrait {
        height: 200px;
    }
    
    .doctor-info h2 {
        font-size: 16px;
    }
    
    .doctor-info h3 {
        font-size: 12px;
    }
    .doctor-image {
        height: 300px;
    }
    
    .doctor-info p {
        font-size: 12px;
    }
    
    .tech-title {
        font-size: 20px;
    }
    
    .tech-image {
        height: 120px;
    }
    
    .tech-label {
        font-size: 13px;
    }
    
    .mediclaim-title {
        font-size: 20px;
    }
    
    .partner-logo {
        width: 60px;
        height: 60px;
    }
    
    .partner-item {
        min-width: 80px;
    }
    
    .partner-name {
        font-size: 11px;
    }
    
    .reviews-title {
        font-size: 20px;
    }
    
    .rating-display {
        font-size: 28px;
    }
    
    .diseases-title {
        font-size: 1.6rem;
    }
    
    .disease-card {
        height: 300px;
    }
    
    .disease-content {
        padding: 10px;
    }
    
    .disease-card h3 {
        font-size: 1rem;
    }
    
    .disease-card p {
        font-size: 0.75rem;
    }
    
    .footer-top-item-area {
        padding: 10px;
    }
    
    .footer-top-image {
        width: 50px;
        height: 50px;
    }
    
    .contact-number {
        font-size: 14px;
    }
    
    .appointment-button-top {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .social-icon {
        width: 22px;
        height: 22px;
    }
}

/* Print Styles */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .hero-slider-container,
    .slider-dots,
    .slider-arrow,
    .footer-wrapper {
        display: none !important;
    }
    
    .hero-cards-wrapper {
        background: white !important;
    }
    
    .hero-card {
        border: 1px solid #ccc !important;
        background: white !important;
        color: black !important;
    }
    
    .hero-card h3,
    .hero-card p {
        color: black !important;
    }
    
    a {
        text-decoration: underline;
    }
    
    .page-break {
        page-break-after: always;
    }
}

/* High DPI Display Optimizations */
@media only screen and (-webkit-min-device-pixel-ratio: 2),
       only screen and (min--moz-device-pixel-ratio: 2),
       only screen and (-o-min-device-pixel-ratio: 2/1),
       only screen and (min-device-pixel-ratio: 2),
       only screen and (min-resolution: 192dpi),
       only screen and (min-resolution: 2dppx) {
    
    .hero-card {
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    
    .disease-card {
        box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    }
    
    .review-card {
        box-shadow: 0 1px 5px rgba(0,0,0,0.08);
    }
}

/* Landscape Orientation for Mobile */
@media screen and (max-width: 768px) and (orientation: landscape) {
       .hero-slide img {
  width: 100%;
  height: 250px;
    
  object-position: center;
  display: block;
}

  .hero{
        width:97%;
        height:250px;
        min-height: 20vh;
    }
    
    .hero-cards-wrapper {
        padding: 10px 15px;
    }
    
    .hero-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .hero-card {
        height: 120px;
        padding: 15px;
    }
    
    .diseases-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .disease-card {
        height: 280px;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .marquee-content {
        animation: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .hero-card {
        background: rgba(45, 45, 45, 0.95) !important;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .disease-card {
        background: #2a2a2a;
        border: 1px solid #444;
    }
    
    .review-card {
        background: #2a2a2a;
        color: #fff;
    }
    
    .tech-image,
    .partner-logo {
        background: #333;
    }
}

/* Focus States for Accessibility */
.hero-card:focus,
.disease-card:focus,
.review-card:focus,
.slider-arrow:focus,
.dot:focus {
    outline: 2px solid #0984e3;
    outline-offset: 2px;
}

/* Hover Effects Enhancement */
@media (hover: hover) {
    .hero-card:hover {
        transform: translateY(-8px);
    }
    
    .disease-card:hover {
        transform: translateY(-8px);
    }
    
    .review-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    }
}

/* Container Queries Support (Future-proofing) */
@supports (container-type: inline-size) {
    .hero-content {
        container-type: inline-size;
    }
    
    @container (max-width: 600px) {
        .hero-content {
            grid-template-columns: 1fr;
        }
    }
}

/* CSS Grid Fallback for older browsers */
@supports not (display: grid) {
    .hero-content {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
   
    .hero-card {
        flex: 1 1 300px;
        margin: 10px;
    }
    
    .diseases-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .disease-card {
        flex: 1 1 300px;
        margin: 10px;
    }
}
