/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
}
header {
  background: #0066cc;
  color: white;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.logo {
  font-size: 1.2rem;
}

/* Navbar default (desktop) */
nav {
  display: flex;
  gap: 1rem;
}
nav a {
  color: white;
  text-decoration: none;
  padding: 0.5rem;
}
nav a:hover {
  background: #004080;
  border-radius: 4px;
}

/* Dropdown */
.dropdown {
  position: relative;
}
.dropbtn {
  background: none;
  border: none;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.5rem;
}
.dropdown-content {
  display: none;
  position: absolute;
  background: #0066cc;
  top: 100%;
  left: 0;
  min-width: 180px;
}
.dropdown-content a {
  display: block;
  padding: 0.5rem;
}
.dropdown-content a:hover {
  background: #004080;
}
.dropdown:hover .dropdown-content {
  display: block;
}

/* Hamburger (hidden on desktop) */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.menu-toggle span {
  width: 25px;
  height: 3px;
  background: white;
  margin: 4px 0;
}
.hero {
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
              url('images/study-abroad.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 100px 20px;
}

.hero-content {
  max-width: 700px;
  margin: auto;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.btn {
  background: #ffcc00;
  color: #000;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
}

.btn:hover {
  background: #ffaa00;
}
/* Services */
.services {
  padding: 60px 20px;
  text-align: center;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.service-card {
  background: #f4f4f4;
  padding: 20px;
  border-radius: 10px;
  transition: transform 0.3s;
}

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

/* About Home */
.about-home {
  background: #f9f9f9;
  padding: 50px 20px;
  text-align: center;
}

.about-home ul {
  list-style: none;
  max-width: 600px;
  margin: 20px auto;
  text-align: left;
}

.about-home li {
  margin: 10px 0;
  font-size: 1.1rem;
}
.contact {
  padding: 60px 20px;
  text-align: center;
  background: #f9f9f9;
}

.contact h2 {
  font-size: 2rem;
  color: #004080;
}

.contact p {
  margin-bottom: 30px;
  font-size: 1.1rem;
}

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

.contact-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 20px;
  transition: transform 0.3s;
}

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

.contact-card h3 {
  color: #0066cc;
  margin-bottom: 10px;
}

.contact-card p {
  margin: 5px 0;
  font-size: 1rem;
}

/* About Page */
.about {
  padding: 60px 20px;
  background: #f9f9f9;
  text-align: center;
}

.about h2 {
  color: #004080;
  font-size: 2rem;
  margin-bottom: 20px;
}

.about .intro {
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
  line-height: 1.7;
}

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

.about-card {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-align: left;
}

.about-card h3 {
  color: #0066cc;
  margin-bottom: 10px;
}

.about-card ul {
  padding-left: 20px;
  list-style-type: disc;
}

.about-card li {
  margin: 6px 0;
}

/* Team Section */
.team-section {
  margin-top: 60px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}
/* Team Member Card */
.team-member {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-align: center;
}

/* Image placeholder style */
.team-member img {
  width: 100%;
  height: 200px;
  border-radius: 10px;
  object-fit: cover;
  background-color: #e0e0e0; /* gray box background */
  display: block;
}

/* If image not found, show empty gray box */
.team-member img:before {
  content: "No Image";
  display: block;
  text-align: center;
  line-height: 200px;
  color: #555;
  font-size: 1rem;
}

/* Fallback for broken/missing images */
.team-member img:empty,
.team-member img:not([src]),
.team-member img[src=""] {
  background-color: #e0e0e0;
  display: block;
  width: 100%;
  height: 200px;
  border-radius: 10px;
}

.team-member img:empty::after {
  content: "No Image Available";
  color: #555;
  font-size: 0.9rem;
  display: block;
  line-height: 200px;
}

.team-member h4 {
  color: #004080;
  margin: 10px 0 5px;
}

.team-member p {
  font-size: 0.95rem;
  color: #333;
}


/* Footer */
footer {
  background: #004080;
  color: white;
  text-align: center;
  padding: 15px 10px;
}


/* ------------------ */
/* Mobile Responsive  */
/* ------------------ */
@media (max-width: 768px) {
  nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #0066cc;
    flex-direction: column;
    display: none; /* hidden by default */
  }
  nav a, .dropbtn {
    padding: 1rem;
    width: 100%;
    text-align: left;
  }
  .dropdown-content {
    position: static;
    background: #004080;
  }
  .menu-toggle {
    display: flex;
  }
  nav.active {
    display: flex; /* show menu when active */
  }
}
