/* Variables */
:root {
  --primary-color: #FFF9F0;
  --secondary-color: #1fbe9b; /* Teal */
  --accent-color: #0c614f; /* Deep Green */
  --font-color: #10162f; /* Navy Blue */
  --font-family: 'Segoe UI', sans-serif;
  --background-light: #ffffff; /* White for cards */
  --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  --button-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

/* Base Styles */
body {
  font-family: var(--font-family);
  background-color: var(--primary-color);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: var(--font-color);
  scroll-behavior: smooth;
}

header {
  background: url('../images/learn.jpg') center/cover no-repeat;
  padding: 60px 20px;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
  position: sticky;
  top: 0;
  z-index: 1000;
}


.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.header-logo {
  max-height: 60px;
  border-radius: 8px; /* subtle rounding */
}

header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 1px;
}

@media (max-width: 480px) {
  .header-container {
    flex-direction: column;
  }
}


/* Hero Section */
#hero {
  /* Gradient overlay + background image */
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/learn.jpg') center/cover no-repeat;
  padding: 100px 20px;
  text-align: center;
  color: #fff; /* white text for contrast */
  font-size: 2rem;
  box-shadow: inset 0 0 0 rgba(0,0,0,0.1);
}

#hero h2, #hero p, #hero button {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards;
}

#hero p {
  animation-delay: 0.3s;
}

#hero button {
  animation-delay: 0.6s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* Buttons */
button,
.learn-more-btn,
.contact-form button {
  background: var(--secondary-color);
  color: var(--background-light);
  border: none;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

button,
.learn-more-btn {
  padding: 14px 28px;
  font-size: 1rem;
  box-shadow: var(--button-shadow);
}

button:hover,
.learn-more-btn:hover,
button:focus,
.learn-more-btn:focus {
  background: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 10px rgba(0,0,0,0.2);
  outline: none;
}

button:active,
.learn-more-btn:active {
  transform: translateY(1px);
}

/* Layout Containers */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Profile Section */
.profile-box {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
  margin-top: 20px;
  background: var(--background-light);
  padding: 20px;
  border-radius: 12px;
  box-shadow: var(--box-shadow);
}

.profile-photo {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #ddd;
}

.profile-text {
  flex: 1;
}

.certificates {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.certificates figure {
  flex: 1 1 150px;
  text-align: center;
  background: var(--primary-color);
  padding: 10px;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.certificates figure:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.certificates img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* Booking Section */
.pricing-box {
  background: #FFF9F0;
  border-left: 6px solid #ff9900;
  padding: 20px;
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
}

.discount {
  color: #d9534f;
  font-size: 1.3rem;
  font-weight: bold;
}

.contact-options li {
  margin: 8px 0;
}

/* Founder + IELTS Section */
#founder-ielts {
  background-color: #fdfaf6;
  padding: 40px 20px;
  border-radius: 12px;
  box-shadow: var(--box-shadow);
  margin: 40px auto;
}

#founder-ielts h2 {
  color: var(--accent-color);
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
}

#founder-ielts h3 {
  color: var(--secondary-color);
  font-size: 1.5rem;
  margin: 30px 0 15px;
}

#founder-ielts p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 15px;
  text-align: justify;
}

#founder-ielts ul {
  margin: 0 0 20px 20px;
}

#founder-ielts li {
  margin-bottom: 10px;
}

/* Figure / Images */
figure {
  text-align: center;
  margin: 20px 0;
}

figure img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

figcaption {
  font-size: 0.9rem;
  color: var(--font-color);
  margin-top: 8px;
}

/* Footer */
footer {
  background: var(--primary-color);
  color: var(--font-color);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
  margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  #hero {
    font-size: 1.8rem;
    padding: 80px 20px;
  }
}

@media (max-width: 768px) {
  .profile-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .certificates {
    justify-content: center;
  }

  #hero {
    font-size: 1.5rem;
    padding: 60px 20px;
  }
}

@media (max-width: 480px) {
  header {
    font-size: 1rem;
    padding: 0.8rem;
  }

  #hero {
    font-size: 1.2rem;
    padding: 40px 15px;
  }

  button,
  .learn-more-btn {
    padding: 8px 15px;
    font-size: 0.85rem;
  }

  .profile-photo {
    width: 150px;
    height: 150px;
  }

  .certificates figure {
    flex: 1 1 100%;
  }
}

/* Skip link helper */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.visually-hidden:focus {
  position: static !important;
  height: auto; width: auto;
  clip: auto; white-space: normal;
  display: inline-block; padding: .5rem 1rem;
  background: #000; color: #fff; border-radius: 4px;
}
