/* ============================================
   Enspire Learning - Main Stylesheet
   ============================================ */

:root {
  --primary-navy: #1E3A8A;
  --secondary-white: #FFFFFF;
  --accent-yellow: #FACC15;
  --light-gray: #F9FAFB;
  --dark-gray: #1F2937;
  --border-gray: #E5E7EB;
  --text-dark: #111827;
  --text-light: #6B7280;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--secondary-white);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-navy);
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-navy);
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-navy);
}

p {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

/* ============================================
   NAVIGATION
   ============================================ */

nav {
  position: sticky;
  top: 0;
  background-color: var(--secondary-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  width: 100%;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
  position: relative;
}

.navbar-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-navy);
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
}

.navbar-logo:hover {
  transform: scale(1.05);
}

.navbar-logo-img {
  height: 45px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
}

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

.navbar-menu li {
  margin: 0;
  padding: 0;
}

.navbar-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
  display: block;
  padding: 0.5rem 0;
}

.navbar-menu a:hover {
  color: var(--accent-yellow);
}

.navbar-menu a.active {
  color: var(--accent-yellow);
  border-bottom: 2px solid var(--accent-yellow);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  background: none;
  border: none;
  padding: 0.5rem;
  margin-right: -0.5rem;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background-color: var(--primary-navy);
  transition: all 0.3s ease;
  display: block;
  border-radius: 2px;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  background: linear-gradient(135deg, var(--primary-navy) 0%, #2E5090 100%);
  color: var(--secondary-white);
  padding: 100px 5%;
  text-align: center;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.hero h1 {
  font-size: 3.5rem;
  color: var(--secondary-white);
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.8s ease;
}

.hero p {
  font-size: 1.1rem;
  color: #E0E7FF;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease 0.2s both;
  line-height: 1.8;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--accent-yellow);
  color: var(--primary-navy);
}

.btn-primary:hover {
  background-color: #FCD34D;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(250, 204, 21, 0.3);
}

.btn-secondary {
  background-color: var(--primary-navy);
  color: var(--secondary-white);
}

.btn-secondary:hover {
  background-color: #153E75;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(30, 58, 138, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--secondary-white);
  border: 2px solid var(--secondary-white);
}

.btn-outline:hover {
  background-color: var(--secondary-white);
  color: var(--primary-navy);
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
  padding: 80px 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   CARDS
   ============================================ */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: var(--secondary-white);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--border-gray);
}

.card:hover {
  box-shadow: 0 15px 40px rgba(30, 58, 138, 0.1);
  transform: translateY(-5px);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
}

/* ============================================
   PRICE CARDS
   ============================================ */

.price-card {
  background: var(--secondary-white);
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  border: 2px solid var(--border-gray);
  transition: all 0.3s ease;
  position: relative;
}

.price-card.featured {
  border-color: var(--accent-yellow);
  transform: scale(1.05);
  box-shadow: 0 20px 50px rgba(250, 204, 21, 0.2);
}

.price-card:hover {
  box-shadow: 0 15px 40px rgba(30, 58, 138, 0.1);
}

.price-card h3 {
  margin-bottom: 0.5rem;
}

.price-amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin: 1rem 0;
}

.price-period {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.price-features {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
}

.price-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-gray);
  font-size: 0.95rem;
}

.price-features li:last-child {
  border-bottom: none;
}

.price-features li:before {
  content: "✓ ";
  color: var(--accent-yellow);
  font-weight: bold;
  margin-right: 0.5rem;
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonial-card {
  background: var(--light-gray);
  padding: 2rem;
  border-radius: 12px;
  margin: 1rem 0;
  border-left: 4px solid var(--accent-yellow);
}

.testimonial-quote {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: 0.25rem;
}

.testimonial-campus {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ============================================
   ACCORDION
   ============================================ */

.accordion {
  margin-top: 2rem;
}

.accordion-item {
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-header {
  background-color: var(--light-gray);
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--primary-navy);
  transition: all 0.3s ease;
}

.accordion-header:hover {
  background-color: #EEEFF6;
}

.accordion-header.active {
  background-color: var(--primary-navy);
  color: var(--secondary-white);
}

.accordion-icon {
  transition: transform 0.3s ease;
  font-size: 1.3rem;
}

.accordion-header.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.5rem;
}

.accordion-content.active {
  max-height: 500px;
  padding: 1.5rem;
}

.accordion-text {
  color: var(--text-light);
  line-height: 1.8;
}

/* ============================================
   GALLERY
   ============================================ */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  height: 100%;
  width: 100%;
  aspect-ratio: 1 / 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* ============================================
   FORM
   ============================================ */

form {
  max-width: 600px;
  margin: 2rem auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary-navy);
}

input,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-yellow);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.1);
}

textarea {
  resize: vertical;
  min-height: 150px;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background-color: var(--primary-navy);
  color: var(--secondary-white);
  padding: 40px 5%;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto 2rem;
}

.footer-section h4 {
  color: var(--accent-yellow);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-section p,
.footer-section a {
  color: #D1D5DB;
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
  line-height: 1.8;
}

.footer-section a:hover {
  color: var(--accent-yellow);
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background-color: var(--accent-yellow);
  color: var(--primary-navy);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: #9CA3AF;
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */

#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--accent-yellow);
  color: var(--primary-navy);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  z-index: 999;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#backToTop:hover {
  background-color: #FCD34D;
  transform: translateY(-3px);
}

#backToTop.show {
  display: flex;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .navbar {
    padding: 1rem 3%;
  }

  .navbar-logo {
    font-size: 1.2rem;
  }

  .navbar-logo-img {
    height: 40px;
  }

  .navbar-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--secondary-white);
    flex-direction: column;
    gap: 0;
    display: none;
    border-bottom: 1px solid var(--border-gray);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
  }

  .navbar-menu.active {
    display: flex !important;
  }

  .navbar-menu li {
    width: 100%;
  }

  .navbar-menu a {
    padding: 1rem 5%;
    border-bottom: 1px solid var(--border-gray);
  }

  .navbar-menu a:last-child {
    border-bottom: none;
  }

  .navbar-menu a.active {
    background-color: var(--light-gray);
    border-left: 4px solid var(--accent-yellow);
    border-bottom: none;
  }

  .hamburger {
    display: flex;
  }

  .hamburger span {
    width: 24px;
    height: 3px;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 8px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -8px);
  }

  .hero {
    padding: 60px 5%;
    min-height: 400px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .section {
    padding: 50px 5%;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  /* .gallery {
    grid-template-columns: repeat(2, 1fr);
  } */

  .price-card.featured {
    transform: scale(1);
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  #backToTop {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  .navbar {
    padding: 0.75rem 3%;
  }

  .navbar-logo {
    font-size: 1rem;
  }

  .navbar-logo-img {
    height: 35px;
  }

  .hamburger span {
    width: 22px;
    height: 2.5px;
  }

  .navbar-menu {
    top: 100%;
  }

  .navbar-menu a {
    padding: 0.75rem 4%;
    font-size: 0.95rem;
  }

  .section {
    padding: 40px 3%;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .section-title h2 {
    font-size: 1.5rem;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* ============================================
   TUTOR PROFILES
   ============================================ */

.tutor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.tutor-card {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tutor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.tutor-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 4px solid var(--accent-yellow);
}

.tutor-card h4 {
  color: var(--primary-navy);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.tutor-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .tutor-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
  }

  .tutor-photo {
    width: 100px;
    height: 100px;
  }

  .tutor-card {
    padding: 1rem;
  }

  .tutor-card h4 {
    font-size: 1rem;
  }

  .tutor-card p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .tutor-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .tutor-photo {
    width: 80px;
    height: 80px;
  }

  .tutor-card {
    padding: 0.75rem;
  }

  .tutor-card h4 {
    font-size: 0.9rem;
  }

  .tutor-card p {
    font-size: 0.85rem;
  }
}
