html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: #FDF0D5;
  color: #00293D;
  font-family: Karla, sans-serif;
  font-weight: 400;
  margin: 0;
  font-size: 1rem;
}

/* ==== HEADER ===== */

header {
  background-color: #003049;
  color: #FDF0D5;
  padding: 0;
  min-height: 120px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

#header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#header-left h1 {
  font-weight: 800;
  font-size: 4rem;
  padding-left: 1rem;
  margin: 0;
  position: static;
}

#logo img {
  height: 5rem;
  padding: 0;
  margin-top: -0.8rem;
  margin-left: -0.5rem;
  width: auto;
  max-width: 100%;
}

/* ==== navigation ===== */

nav {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  width: auto;
  margin-top: 0;
  margin-right: 2rem;
  flex-wrap: wrap;
}

.nav-btn {
  color: #FDF0D5;
  font-weight: 500;
  font-size: 1.1rem;
  text-decoration: none;
  padding: 0.3em 0.7em;
  border-radius: 5px;
  transition: background 0.2s, color 0.2s;
}

.nav-btn:hover,
.nav-btn.active {
  color: #EC323E;
  background: #FDF0D5;
}

.nav-btn:visited {
  text-decoration: none;
}

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

main {
  background-color: #FDF0D5;
}

#home {
  padding-top: 3rem;
  margin-bottom: 5rem;
}

#slogan {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1.3rem;
  text-align: center;
  gap: 0.7em;
}

#slogan h1 {
  margin-bottom: 0;
  font-size: 2rem;
}

#pricing-details {
  border: solid #00293D 2px;
  border-radius: 5px;
  padding: 0.7em 1.2em;
  margin-top: 0.5em;
  transition: box-shadow 0.2s;
}

#pricing-details:hover {
  box-shadow: 5px 5px #00293D;
}

#pricing-btn {
  color: #00527A;
  text-decoration: none;
  font-size: 1rem;
}
#pricing-btn:visited {
  text-decoration: none;
}


/*===== ABOUT =======*/

#about {
  background: #FFFDF7;
  border: 2px solid #003049;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0, 41, 61, 0.07);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 2rem;
  margin-top: 8rem;
  margin-bottom: 8rem;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  transition: box-shadow 0.2s;
}

#about:hover {
  box-shadow: 0 8px 32px rgba(0, 41, 61, 0.13);
}

#profile-img {
  height: auto;
  width: 22rem;
  border-radius: 15px;
  margin:auto;
  box-shadow: 6px 6px #00293D22;
  max-width: 90vw;
  display: block;
  flex-shrink: 0;
}

#information {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 600px;
}

#about-section h1 {
  font-size: 2.2rem;
  color: #003049;
  margin-bottom: 0.5em;
  font-weight: 800;
}

#about-section p {
  font-size: 1.08rem;
  margin-bottom: 0.7em;
  color: #00293D;
  line-height: 1.7;
}

#definition {
  margin-top: 1.5rem;
  font-size: 1rem;
  border: 1.5px solid #003049;
  border-radius: 8px;
  padding: 1em;
  color: #003049;
  box-shadow: 0 2px 8px rgba(0,41,61,0.04);
}

#definition:hover {
  box-shadow: 0 0 24px 6px #FFD70099, 0 2px 8px rgba(0,41,61,0.08);
  border-color: #FFD700;
  transition: box-shadow 0.3s, border-color 0.3s;
}


/* Responsive improvements */
@media (max-width: 900px) {
  #about {
    flex-direction: column;
    gap: 2em;
    padding: 1.5rem 0.7rem;
    margin-bottom: 4rem;
  }
  #profile-img {
    width: 9rem;
    margin: 0 auto;
  }
  #information {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  #about {
    flex-direction: column;
    gap: 1.2em;
    padding: 1rem 0.2rem;
    margin-bottom: 2.5rem;
  }
  #profile-img {
    width: 6.5rem;
    margin: 0 auto;
  }
}

/*==========Subjects==========*/

#subjects {
  padding: 3rem 1rem;
  background-color: #fdf0d5;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#subjects h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #003049;
  text-align: center;
}

.subjects-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.subject {
  background: #FFFDF7;
  border: 2px solid #00293D;
  border-radius: 10px;
  padding: 1.2rem;
  width: 16rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.subject:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 41, 61, 0.10);
}

.subject h3 {
  color: #003049;
  margin-bottom: 0.7em;
  font-size: 1.2rem;
}

.subject ul {
  list-style-type: disc;
  padding-left: 1.2em;
  margin: 0;
}

.subject li {
  margin: 0.3em 0;
  font-size: 1em;
}

/*=======Pricing===========*/

#pricing {
  padding: 3rem 1rem;
  background-color: #fdf0d5;
  text-align: center;
}

.pricing-intro {
  font-size: 1.05rem;
  max-width: 37rem;
  margin: 0 auto 2rem;
  color: #333;
}

.pricing-grid {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.pricing-card {
  background: #FFFDF7;
  border: 2px solid #003049;
  border-radius: 12px;
  padding: 1.5rem;
  width: 18rem;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

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

.pricing-card h3 {
  color: #003049;
  margin-bottom: 0.7em;
  font-size: 1.2rem;
}

.subtitle {
  font-size: 0.95em;
  color: #666;
  margin-bottom: 1em;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1em;
}

.pricing-card li {
  margin: 0.5em 0;
  font-size: 1em;
}

.note {
  font-size: 0.9em;
  color: #555;
  font-style: italic;
}

.recommended {
  border: 2.5px solid #003049;           /* Use your main blue */
  background-color: #FFFDF7;             /* Subtle highlight, matches your theme */
  box-shadow: 0 0 20px rgba(0, 41, 61, 0.08);
  position: relative;
}

.recommended::before {
  content: "Recommended";
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: #003049;
  color: #FDF0D5;
  font-size: 0.85em;
  font-weight: 700;
  padding: 0.3em 0.8em;
  border-radius: 8px;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(0,41,61,0.08);
}

/*=======testimonials=======*/

#testimonials {
  text-align: center;
  margin: 5rem auto;
}

 /* ===== CONTACT FORM ===== */
#contact {
  padding: 2rem 1rem;
  background-color: #FFFDF7;
  max-width: 37rem;
  margin: 0 auto 2.5rem auto;
  color: #00293D;
  font-family: Karla, sans-serif;
  border: #00293D solid 2px;
  border-radius: 5px;
}

#contact h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #003049;
  text-align: center;
}

#contact form {
  display: flex;
  flex-direction: column;
  gap: 0.7em;
}

#contact label {
  font-weight: 600;
  margin-bottom: 0.2em;
  color: #003049;
}

#contact input[type="text"],
#contact input[type="email"],
#contact textarea {
  padding: 0.7em;
  border: 2px solid #00293D;
  border-radius: 8px;
  font-size: 1em;
  font-family: Karla, sans-serif;
  color: #00293D;
  resize: vertical;
}

#contact input[type="text"]:focus,
#contact input[type="email"]:focus,
#contact textarea:focus {
  outline: none;
  border-color: #EC323E;
  box-shadow: 0 0 8px #EC323E;
}

#contact button {
  width: 9rem;
  padding: 0.7em 1.2em;
  background-color: #EC323E;
  color: #FDF0D5;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1em;
  align-self: center;
  transition: background-color 0.3s ease;
}

#contact button:hover {
  background-color: #B0262A;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  margin-bottom: 1.2em;
}


/* ===== FOOTER ===== */
#site-footer {
  background-color: #003049;
  color: #FDF0D5;
  padding: 2rem 0.7rem 1.2rem 0.7rem;
  text-align: center;
  font-size: 1em;
  margin-top: 0;
}

.site-credit {
  font-size: 0.95em;
  color: #FDF0D5;
  opacity: 0.8;
  margin-bottom: 0.5em;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: center;
}

.footer-nav a {
  color: #FDF0D5;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  font-size: 1em;
}

.footer-nav a:hover {
  color: #EC323E;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 900px) {
  html {
    font-size: 15px;
  }
  header {
    flex-direction: column;
    height: auto;
    padding: 1rem 0.5rem;
    gap: 0.5em;
  }
  #header-left h1 {
    font-size: 2.2rem;
    padding-left: 0.5em;
  }
  nav {
    margin-top: 1em;
    margin-right: 0;
    gap: 1em;
  }
  #profile-img {
    width: 10rem;
  }
  #about {
    flex-direction: column;
    gap: 2em;
    align-items: center;
    margin-bottom: 4rem;
  }
  #information {
    margin-right: 0;
    width: 100%;
    max-width: 100%;
  }
  .subjects-grid, .pricing-grid {
    flex-direction: column;
    align-items: center;
    gap: 1.5em;
  }
  .subject, .pricing-card {
    width: 90%;
    max-width: 22rem;
  }
}

@media (max-width: 600px) {
  html {
    font-size: 14px;
  }
  header {
    flex-direction: column;
    height: auto;
    padding: 0.5em 0.2em;
    gap: 0.2em;
  }
  #header-left h1 {
    font-size: 1.3rem;
    padding-left: 0.2em;
  }
  nav {
    flex-direction: column;
    gap: 0.5em;
    margin-top: 0.5em;
    margin-right: 0;
  }
  #profile-img {
    width: 7rem;
    margin: 0 auto;
    display: block;
  }
  #about {
    flex-direction: column;
    gap: 1em;
    align-items: center;
    margin-bottom: 2.5rem;
    padding: 0 0.2em;
  }
  #information {
    margin-right: 0;
    width: 100%;
    max-width: 100%;
  }
  .subjects-grid, .pricing-grid {
    flex-direction: column;
    align-items: center;
    gap: 1em;
  }
  .subject, .pricing-card {
    width: 100%;
    max-width: 22rem;
    padding: 1em;
  }
  #contact {
    padding: 1.2em 0.3em;
    max-width: 98vw;
  }
  #site-footer {
    padding: 1.2em 0.2em 0.7em 0.2em;
    font-size: 0.95em;
  }
  .footer-content {
    gap: 0.7em;
  }
  .footer-nav {
    gap: 0.5em;
    flex-direction: column;
    align-items: center;
  }
}

section {
  margin-top: 5rem;
  margin-bottom: 5rem;
}

@media (max-width: 600px) {
  section {
    margin-top: 3rem;
    margin-bottom: 3rem;
  }
}