/*
Theme Name: Inhaf Study Abroad
Description: Stylesheet for the Inhaf WordPress theme.
*/

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #333;
  background: #fff;
}



/* Dropdown styling */
.nav-links li {
  position: relative;
}

.nav-links li ul {
  display: none;
  position: absolute;
  top: 100%;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  padding: 0.5rem 1rem;
  list-style: none;
}

.nav-links li:hover > ul {
  display: block;
}

.nav-links li ul li a {
  white-space: nowrap;
  display: block;
  padding: 0.3rem 0;
}


.site-header, .site-footer {
  background: #f9f9f9;
  padding: 1rem;
  text-align: center;
}

.site-header h1 a {
  color: #0056b3;
  text-decoration: none;
}

.site-header nav a {
  margin: 0 10px;
  text-decoration: none;
  color: #333;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.logo {
  height: 50px;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  text-decoration: none;
  color: #1f2937;
  font-weight: 500;
}

.nav-links li a:hover {
  color: #2563eb;
}



.site-header nav a:hover {
  text-decoration: underline;
}

.hero {
  background: url('<?php echo get_template_directory_uri(); ?>/images/hero-bg.png') no-repeat center center;
  background-size: cover;
  color: white;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* optional dark overlay */
  z-index: 0;
}

.hero * {
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) {
  .hero {
    background-position: center top;
    padding: 4rem 1rem;
  }
}


.btn {
  display: inline-block;
  background: white;
  color: #2563eb;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn:hover {
  background: #f1f5f9;
}

.destinations .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  padding: 2rem;
  list-style: none;
  margin: 0;
}

.destinations .grid li {
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  padding: 1rem;
  transition: box-shadow 0.3s;
}

.destinations .grid li:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.features {
  background: #f0f4f8;
  padding: 2rem;
  text-align: center;
}

.feature-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.feature-cards div {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  max-width: 300px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.social {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 0;
  margin-top: 0.5rem;
}

.social a {
  color: #555;
  text-decoration: none;
}

.social a:hover {
  text-decoration: underline;
}

.testimonials {
  background-color: #f9fafb;
  padding: 4rem 2rem;
  text-align: center;
}

.testimonials h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #111827;
}

.testimonial-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.testimonial-card p {
  font-style: italic;
  color: #4b5563;
}

.testimonial-card .author {
  margin-top: 1rem;
  font-weight: bold;
  color: #1f2937;
}

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

/* Apply animation to each card */
.testimonial-card {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

/* Delay each card slightly */
.testimonial-card:nth-child(1) {
  animation-delay: 0.2s;
}
.testimonial-card:nth-child(2) {
  animation-delay: 0.4s;
}
.testimonial-card:nth-child(3) {
  animation-delay: 0.6s;
}


.scrolling-logos {
  overflow: hidden;
  background: white;
  padding: 2rem 0;
}

@media (max-width: 768px) {
  .logos-track {
    gap: 1.5rem;
    animation-duration: 20s;
  }

  .logos-track img {
    height: 40px;
  }
}


.logos-track {
  display: flex;
  gap: 3rem;
  width: fit-content;
  animation: scrollLogos 30s linear infinite;
}

.logos-track img {
  height: 60px;
  width: auto;
  opacity: 0.9;
  transition: transform 0.3s ease;
}

.logos-track img:hover {
  transform: scale(1.1);
  opacity: 1;
}

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

