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

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background: #fdfdfd;
  color: #333;
}

/* Header Hero */
header .hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, #ff9a9e, #fad0c4);
  text-align: center;
}

header .teacher-pic {
  width: 120px;
  height: auto;
  border-radius: 50%;
  margin-right: 1rem;
}

header .hero-text h1 {
  font-size: 2rem;
  font-weight: 600;
  color: #222;
  font-family: 'LettersForLearners', sans-serif;
}

header .hero-text p {
  font-size: 1.2rem;
  color: #444;
  font-family: 'MariaLucia', cursive; 
}

/* Navigation */
nav {
  background: #ff6f61;
  padding: 0.5rem;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav ul li {
  margin: 0.5rem;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  transition: background 0.3s;
  font-family: 'Heyam';
  font-size: 1.4rem;
}

nav ul li a:hover {
  background: #ff9a9e;
  border-radius: 5px;
  color: #f1fcc4;
}

#menu-toggle {
  display: none;
}

/* Sections */
section {
  padding: 2rem;
  max-width: 1000px;
  margin: auto;
}
.Ritu {
  width: 400px;
  height: auto;
  border-radius: 50px;
  float: right;
  box-shadow: 10px 6px 12px rgba(235, 108, 4, 0.3);
  margin-bottom: 40px;
  transition: all 0.3s ease;
  margin: 10px 10px;
}

.Ritu:hover {
  transform: scale(1.05);
  box-shadow: 12px 8px 16px rgba(4, 181, 235, 0.5);
  cursor: pointer;
}

section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #ff6f61;
  text-align: center;
  font-family: 'Heyam';
}

section p, section ul {
  font-size: 1rem;
  color: #555;
  font-family: 'Saphile';
  font-weight: bold;
}
.A {
  text-align: left;
}
.B {
  border-top-right-radius: 14px;
  border-bottom-right-radius: 50px;
  background: linear-gradient(to right, rgb(255, 255, 255), rgb(180, 178, 175), rgb(163, 163, 157));
  box-shadow: 12px 8px 16px rgba(124, 145, 151, 0.5);
  max-width: 50%;
}
#phonics-foundation ul.D {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 4px;
  list-style: disc inside;
  padding: 0;
  margin: 0;
}

/* Optional: make sure items split evenly */
#phonics-foundation ul.D li {
  break-inside: avoid;
  padding: 0.9rem 0.9rem;
}
.D {
  border-radius: 14px;
  background: linear-gradient(to right, #ebcc34, #34e8eb, #eb34bd);
  box-shadow: 0 6px 14px #fc0f03;
  max-width: 100%;
  font-size: 1rem;
}

section ul li {
  margin-bottom: 0.5rem;
}

/* Book Grid */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.book-card {
  background: #fff;
  border: 2px solid #eeeeee;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0px 4px 20px #9ae7ff;
  transition: transform 0.3s;
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 4px 20px #ff9a9e;
}

.book-card img {
  width: 100%;
  height: 400px;
  border-radius: 8px;
}

.book-card h3 {
  margin: 0.8rem 0;
  color: #f78400;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.4rem;
}

.buy-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #ff6f61;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}

.buy-btn:hover {
  background: #ff9a9e;
}

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  box-shadow: 0 4px 20px rgb(151, 217, 255);
  border-radius: 10px;
  margin-top: 14px;
  padding: 4px 14px;
}

.video-card {
  background: #fdf7f7;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  box-shadow: 4px 4px 4px rgb(253, 209, 128);
  margin: 10px auto;
}

.video-card:hover {
  background: #fddddd;
  box-shadow: 4px 4px 4px rgb(128, 253, 243);
}

.video-card video {
  width: 100%;
  border-radius: 8px;
}

a {
  text-decoration: none;
  color: #ff9900;
  font-family: Georgia, 'Times New Roman', Times, serif;
}
a:hover {
  color: #00f7ff;
}
.ce {
  text-align: center;
  color: #f78400;
  font-family: Georgia, 'Times New Roman', Times, serif;
}
/* Email link styling */
p.Email {
  text-align: center; /* centers horizontally */
  margin-top: 20px;
}

p.Email a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  color: #0066cc; /* email blue */
  background: #fff;
  border: 2px solid #0066cc;
  padding: 10px 18px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

p.Email a i {
  margin-right: 8px;
  font-size: 22px;
}

/* Hover effect */
p.Email a:hover {
  background: #0066cc;
  color: #fff;
  transform: scale(1.05);
}

p.Email a:hover i {
  color: #fff;
}

/* YouTube link styling */
p.YouTube {
  text-align: center; /* centers horizontally */
  margin-top: 20px;
}

p.YouTube a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  color: #ff0000; /* YouTube red */
  background: #fff;
  border: 2px solid #ff0000;
  padding: 10px 18px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

p.YouTube a i {
  margin-right: 8px;
  font-size: 22px;
}

/* Hover effect */
p.YouTube a:hover {
  background: #ff0000;
  color: #fff;
  transform: scale(1.05);
}

p.YouTube a:hover i {
  color: #fff;
}
/* Facebook link styling */
p.Facebook {
  text-align: center; /* centers horizontally */
  margin-top: 20px;
}

p.Facebook a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  color: #425df5;
  background: #fff;
  border: 2px solid #ff0000;
  padding: 10px 18px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

p.Facebook a i {
  margin-right: 8px;
  font-size: 22px;
}

/* Hover effect */
p.Facebook a:hover {
  background: #425df5;
  color: #fff;
  transform: scale(1.05);
}

p.Facebook a:hover i {
  color: #fff;
}
/* Footer */
footer {
  background: #ff6f61;
  color: #fff;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
  font-family: 'CaviarDreams';
}
.Footer {
  color: #FFFFA8;
  text-align: center;
  font-family: 'CaviarDreams';
  cursor: pointer;
}

.Footer:hover {
  color: #FFD1A8;
  transition: all 0.3s ease;
}

/* Responsive Navigation */
@media (max-width: 768px) {
  header .teacher-pic {
    width: 70px;
    margin: 10px 10px;
  }
   header .hero {
    padding: 0.4rem !important;
  }
   header .hero-text h1 {
    font-size: 1.4rem;
  }

  header .hero-text p {
    font-size: 0.9rem;
  }
  nav {
    background: #ff6f61;
    padding: 0 !important;
  }
  nav ul {
    display: none;
    flex-direction: column;
    background: #ff6f61;
  }

  nav ul.show {
    display: flex;
    text-align: center;
  }

  #menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #fff;
    justify-self: center;
    margin: 0 auto;
  }
  .Ritu {
    width: 300px;
  }
  .B {
    max-width: 100% !important;
  }
  .book-card img {
    width: 70% !important;
    height: auto !important;
  }

}
@media (max-width: 552px) {
  .Ritu {
    float: none;
    margin-left: 14%;
  }
}
@media (max-width: 418px) {
  .Ritu {
    margin-left: 4%;
  }
}
@media (max-width: 376px) {
  .Ritu {
    width : 70%;
    margin: 14px auto;
    display: block;
  }
  .video-grid {
    grid-template-columns: repeat(auto-fit, minmax(70%, 1fr)) !important;
 }
}
@media (max-width: 400px) {
  #phonics-foundation ul.D {
    grid-template-columns: 1fr;
  }
}

