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

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Top Bar */
.top-bar {
  display: flex;
  justify-content: space-between;
  font-size: 17px;
  margin: 10px 35px 0;
  flex-wrap: wrap;
}

.top-left {
  background-color: #f15a29;
  color: white;
  padding: 10px 20px;
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 15px;
}

.top-left span {
  display: flex;
  align-items: center;
}

.top-right {
  background-color: black;
  color: white;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  flex: 1;
}

.top-right a {
  margin: 0 15px;
  text-decoration: none;
  color: white;
  display: flex;
  align-items: center;
}

.top-right a i {
  margin-right: 6px;
}

/* Navbar */
.navbar {
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 35px;
  font-size: 17px;
  margin: 0 35px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
}

.logo img {
  width: 200px;
  height: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  transition: color 0.3s ease;
}

.nav-links a.active,
.nav-links a:hover {
  color: #f15a29;
}

.search-icon {
  font-size: 18px;
}

.hamburger {
  display: none; /* Hidden by default on all screens */
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

.service-card img {
   margin-left: auto;
   margin-right: auto;
  } 

.top-left span a, .top-right a {
  color: #ffffff;
  text-decoration: none;
  margin-left: 5px;
}

.top-left span a:hover, .top-right a:hover {
  text-decoration: underline;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .navbar {
    padding: 10px 20px;
    margin: 0 20px;
  }

  .logo img {
    width: 150px;
  }

  .nav-links li {
    margin-left: 15px;
  }
}

@media (max-width: 768px) {
  .top-bar {
    flex-direction: column;
    margin: 10px 20px;
    gap: 10px;
  }

  .top-left,
  .top-right {
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
  }

  .top-right a {
    margin: 0 10px;
  }

  .navbar {
    flex-wrap: wrap;
    padding: 10px 20px;
    margin: 0 20px;
    position: relative;
  }

  .logo {
    flex: 1;
  }

  .hamburger {
    display: block; /* Show hamburger on mobile */
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }

  .nav-links {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    width: 100%;
    background: #fff;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .nav-links.active {
    display: flex; /* Show when active (hamburger clicked) */
  }

  .nav-links li {
    margin: 10px 0;
    text-align: center;
  }

  .nav-links li a {
    display: block;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .top-bar {
    font-size: 14px;
    margin: 10px 15px;
  }

  .top-left span,
  .top-right a {
    margin: 0 5px;
  }

  .navbar {
    padding: 10px 15px;
    margin: 0 15px;
  }

 
    .logo img {
        width: 70%;
    }

  .hamburger {
    right: 15px;
    font-size: 20px;
  }

  .nav-links li a {
    font-size: 14px;
    padding: 8px;
  }
}

/* Remaining sections (unchanged) */
.homeBanner {
  position: relative;
  overflow: hidden;
  background: #fff;
  margin: 0 35px;
}

.homeBanner img {
  width: 100%;
  height: auto;
  max-height: 670px;
  object-fit: cover;
  margin-top: 20px;
}

/* Universities Section */
.universities {
  padding: 50px 20px;
  background: #f5f5f5;
  text-align: center;
}

.universities h2 {
  font-size: 2em;
  margin-bottom: 40px;
  color: #363636;
}

.section-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  width: 60px;
  height: 3px;
  background-color: orange;
  display: block;
  margin: 10px auto 0;
  border-radius: 5px;
}

.university-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

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

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-body {
  padding: 15px;
}

.card-body p {
  margin: 0;
  color: #0e0c0c;
  font-size: large;
  text-align: center;
}

.card-body h3 {
  margin: 10px 0;
  font-size: 18px;
  color: #222;
  text-align: center;
}

.btn.small {
  background: #42342c;
  font-size: 14px;
  padding: 8px 15px;
  display: inline-block;
  margin-top: 10px;
  border-radius: 5px;
  text-decoration: none;
  color: white;
}

/* Services Section */
.services {
  padding: 60px 20px;
  background: #fff;
  text-align: center;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 30px;
}

.service-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 25px 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

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

.service-card img {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  border-radius: 50%;
  object-fit: cover;
}

.services h2 {
  font-size: 2em;
  margin-bottom: 0;
  color: #121213;
}

.service-card h3 {
  color: #d6452b;
  font-size: 18px;
  margin-bottom: 15px;
}

.service-card p {
  color: #555;
  font-size: 14px;
  line-height: 1.6;
}

/* Countries Section */
.countries-section {
  text-align: center;
  margin: 55px 0;
}

.countries-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  padding: 50px;
}

.countries-section h2 {
  font-size: 2em;
  margin-bottom: 0;
  color: #19191a;
}

.country-card {
  background-color: #f5f5f5;
  width: 200px;
  height: 300px;
  padding: 8px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.country-card:hover {
  transform: scale(1.05);
}

.country-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 10px;
}

.country-card p {
  margin-top: 15px;
  font-weight: bold;
  font-size: 1.2em;
  color: #333;
}

/* MBBS Updates Section */
.mbbs-updates {
  padding: 50px 20px;
  background-color: #fff;
  text-align: center;
}

.mbbs-updates h2 {
  font-size: 2em;
  margin-bottom: 17px;
  color: #121213;
}

.updates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  justify-items: center;
}

.update-card {
  background: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 270px;
  transition: transform 0.3s;
}

.image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.caption {
  position: absolute;
  bottom: 0;
  left: 5px;
  right: 5px;
  background-color: rgba(255, 255, 255, 0.918);
  padding: 8px;
  font-size: 15px;
  font-weight: 500;
  color: #0e0a0a;
}

.name {
  margin-top: 10px;
  font-weight: bold;
  font-size: 16px;
  text-align: center;
}

/* Testimonial Section */
.testimonial-section {
  position: relative;
  background: url('images/background.webp') no-repeat center center;
  background-size: cover;
  height: 480px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  padding: 20px;
  justify-content: flex-start;
  margin: 40px;
}

.testimonial-box {
  background: linear-gradient(to bottom, #f5f5f5, #f4f9ff);
  padding: 30px 40px;
  max-width: 450px;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.testimonial-box h3 {
  margin: 0 15px 15px;
  font-size: 20px;
  font-weight: 700;
  color: #333;
}

.testimonial-box blockquote {
  margin: 0 15px 15px;
  font-style: italic;
  font-size: 14px;
  line-height: 1.9;
  color: #333;
}

.testimonial-box a {
  display: block;
  margin-top: 10px;
  font-weight: bold;
  color: #e55c1c;
}

.testimonial-controls {
  position: absolute;
  bottom: 15px;
  right: 20px;
}

.testimonial-controls button {
  background: #fff;
  color: black;
  border: none;
  padding: 5px 10px;
  font-size: 15px;
  margin-left: 5px;
  cursor: pointer;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background 0.2s ease-in-out;
}

.testimonial-controls button:hover {
  background: #6d6a6a;
}

/* About Section */
.about-section {
  padding: 60px 20px;
  background-color: #f5f5f5;
  text-align: center;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.about-image {
  position: relative;
  background: url('images/background.jpg') no-repeat center center;
  background-size: cover;
  width: 100%;
  max-width: 1300px;
  height: 450px;
  margin: 10px auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-radius: 5px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.about-text {
  background: #fff;
  border: 5px solid #e65c1c;
  padding: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about-text h3 {
  margin-top: 0;
  font-size: 22px;
  font-weight: 700;
  color: #000;
  margin-bottom: 15px;
}

.about-text p {
  font-size: 16px;
  color: #333;
  line-height: 1.6;
  flex-grow: 1;
}

.about-text a {
  background: #e56033;
  font-size: 15px;
  padding: 10px 15px;
  display: inline-block;
  margin-top: 10px;
  border-radius: 10px;
  text-decoration: none;
  color: white;
}

/* Contact Section */
.contact-section {
  background-color: #f5f5f5;
  padding: 25px 20px;
}

.contact-image {
  position: relative;
  background: url('images/images.jpg') no-repeat center center;
  background-size: cover;
  padding: 20px;
  margin: 10px;
  box-shadow: 0 10px 25px rgba(212, 210, 210, 0.1);
}

.contact-container {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
}

.contact-left {
  background-color: #2d2d2d;
  color: #fff;
  padding: 30px;
  width: 100%;
  max-width: 400px;
  margin: 20px;
  border-radius: 5px;
}

.contact-left h2 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #fff;
}

.contact-left p {
  margin: 15px 0;
  font-size: 15px;
  display: flex;
  align-items: center;
}

.contact-left p i {
  margin-right: 8px;
  color: #444;
  background-color: #fff;
  border-radius: 100%;
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contact-right {
  flex: 1;
  width: 100%;
  max-width: 600px;
}

.contact-right h2 {
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 20px;
}

form {
  display: flex;
  flex-direction: column;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

input,
select,
textarea {
  padding: 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 3px;
  flex: 1;
  width: 100%;
}

input.code {
  max-width: 60px;
}

input.phone {
  flex: 2;
}

textarea {
  resize: vertical;
  height: 100px;
  margin-bottom: 15px;
}

button {
  background-color: #f15a29;
  color: #fff;
  font-weight: bold;
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  width: fit-content;
  cursor: pointer;
}

/* Photo Updates Section */
.photo-updates {
  padding: 50px 20px;
  background-color: #f5f5f5;
  text-align: center;
}

.photo-updates h2 {
  font-size: 2em;
  margin-bottom: 10px;
  color: #121213;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 6px;
  justify-items: center;
}

.photo-card {
  background: #f9f9f9;
  border-radius: 1px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 300px;
  transition: transform 0.3s;
}

.photo-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Footer */
footer.footer {
  background-color: #192732;
  color: #fff;
  padding: 40px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  margin: 19px 10px;
  border-radius: 6px;
}

.footer-logo {
  flex: 1 1 250px;
  max-width: 300px;
}

.footer-logo p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: #777e82;
}

.footer-section {
  flex: 1 1 200px;
  max-width: 250px;
}

.footer-section h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #fcfcfc;
  border-bottom: 2px solid red;
  display: inline-block;
  padding-bottom: 5px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 16px;
}

.footer-section ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: rgb(172, 180, 185);
  font-size: 18px;
  line-height: 1;
}

.footer-section ul li a {
  text-decoration: none;
  color: #777e82;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: #131212;
}

.footer-section.contact p {
  font-size: 14px;
  margin: 8px 0;
  color: #777e82;
}

.footer-section.contact i {
  margin-right: 8px;
  color: #777e82;
}

.footer-section.newsletter p {
  font-size: 14px;
  color: #777e82;
  margin-bottom: 10px;
}

.footer-section.newsletter form {
  display: flex;
  flex-direction: column;
}

.footer-section.newsletter input[type="email"] {
  padding: 10px;
  border: none;
  border-radius: 4px;
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-section.newsletter button[type="submit"],
.brochure-btn {
  background-color: #104e73;
  color: #fff;
  padding: 10px;
  border: none;
  border-radius: 4px;
  margin: 4px 0;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

.footer-section.newsletter button[type="submit"]:hover,
.brochure-btn:hover {
  background-color: #0069d9;
}

.social-icons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.social-icons a {
  background-color: #104e73;
  color: #fff;
  padding: 10px;
  border-radius: 6px;
  font-size: 20px;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s;
}

.social-icons a:hover {
  background-color: #0069d9;
  transform: scale(1.1);
}

/* Media Queries for Responsiveness (continued) */
@media (max-width: 1024px) {
  .homeBanner {
    margin: 0 20px;
  }

  .homeBanner img {
    max-height: 400px;
  }

  .university-grid,
  .service-grid,
  .updates-grid,
  .countries-container,
  .photo-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
  }

  .contact-container {
    padding: 0 20px;
  }

  .about-image {
    height: 400px;
    padding: 15px;
  }

  .about-text {
    max-width: 320px;
  }
}

@media (max-width: 768px) {
  .homeBanner {
    margin: 0 20px;
  }
  .service-card img {
   margin-left: auto;
   margin-right: auto;
  } 	
  .homeBanner img {
    max-height: 300px;
  }

  .university-grid,
  .service-grid,
  .updates-grid,
  .countries-container,
  .photo-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .countries-container {
    padding: 20px;
  }

  .country-card {
    width: 100%;
    max-width: 250px;
    height: auto;
  }

  .country-card img {
    height: 200px;
  }
.service-card img {
   margin-left: auto;
   margin-right: auto;
  } 

  .mbbs-updates {
    padding: 30px 20px;
  }

  .testimonial-section {
    height: auto;
    padding: 20px;
    margin: 20px;
    flex-direction: column;
    justify-content: center;
  }

  .testimonial-box {
    max-width: 100%;
    padding: 20px;
  }

  .about-image {
    height: auto;
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }

  .about-text {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
  }

  .contact-image {
    padding: 10px;
    margin: 10px 20px;
  }

  .contact-container {
    flex-direction: column;
    align-items: center;
  }

  .contact-left,
  .contact-right {
    width: 100%;
    max-width: 100%;
    margin: 10px 0;
  }

  .row {
    flex-direction: column;
  }

  input,
  select,
  textarea {
    width: 100%;
  }

  input.code {
    max-width: 100%;
  }

  footer.footer {
    flex-direction: column;
    align-items: flex-start;
    margin: 10px;
    padding: 20px;
  }

  .footer-logo,
  .footer-section {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .homeBanner {
    margin: 0 15px;
  }

  .homeBanner img {
    max-height: 200px;
  }


  .universities,
  .services,
  .mbbs-updates,
  .photo-updates {
    padding: 20px 15px;
  }

  .section-title {
    font-size: 24px;
  }

  .university-grid,
  .service-grid,
  .updates-grid,
  .photo-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .countries-container {
    padding: 15px;
  }

  .country-card {
    max-width: 200px;
  }

  .country-card img {
    height: 150px;
  }

  .testimonial-box {
    padding: 15px;
  }

  .about-text {
    padding: 15px;
  }

  .about-text h3 {
    font-size: 18px;
  }

  .about-text p {
    font-size: 14px;
  }

  .contact-left,
  .contact-right {
    padding: 20px;
  }

  .contact-right h2 {
    font-size: 24px;
  }

  button {
    padding: 10px 15px;
    font-size: 14px;
  }

  .footer-section h3 {
    font-size: 16px;
  }

  .footer-section ul li a,
  .footer-section.contact p,
  .footer-section.newsletter p {
    font-size: 13px;
  }

  .social-icons a {
    padding: 8px;
    font-size: 18px;
  }
}