* { box-sizing: border-box; }
body {
  font-family: 'Cairo', sans-serif;
  background-color: #f9fafb;
  color: #333;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}
header {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.container {
  max-width: 1200px;
  margin: auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
nav a {
  margin: 0 1rem;
  text-decoration: none;
  color: #006699;
  font-weight: bold;
  transition: color 0.3s;
}
nav a:hover { color: #004466; }
.login-button {
  background-color: #006699;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.login-button:hover { background-color: #004466; }
.ad-section {
  background-color: #fff8dc;
  padding: 1rem;
  text-align: center;
  border-top: 1px solid #f6e05e;
  border-bottom: 1px solid #f6e05e;
  font-weight: bold;
  color: #b7791f;
}
.iframe-container {
  width: 80%;
  height: 80%;
  right: 10%;
  top: 15%;
  position: absolute;
  position: fixed;
  display: none;
}

.iframe-container iframe {
  left: 10%;
  top: 15%;
  width: 100%;
  height: 100%;
  border: none;
}

.close-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 30px;
  height: 30px;
  background-color: red;
  color: white;
  font-size: 18px;
  font-weight: bold;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  line-height: 30px;
  text-align: center;
}

.close-btn:hover {
  background-color: darkred;
}
section {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.section-title {
  font-size: 32px;
  text-align: center;
  color: #006699;
  margin-bottom: 2rem;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: #006699;
  margin: 10px auto 0;
  border-radius: 2px;
}
.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
#flashcards .cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

#flashcards .card {
  background: #fff;
  border-radius: 12px;
  width: 300px;
  padding: 1.2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
  position: relative;
}

#flashcards .card .back {
  display: none;
}
#flashcards .card .back img{
  border-radius: 0;
  width: 35px;
  height: 70px;
  margin: 60px 0 20px 0;
}
.teacher {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 1.5rem;
  width: 300px;
  height: 400px;
  text-align: center;
  transition: 0.3s;
}

.teacher img {
  border-radius: 50%;
  width: 100px;
  height: 100px;
  object-fit: cover;
}
.teacher h3 {
  margin-top: 1rem;
  font-size: 20px;
}
.teacher p {
  font-size: 14px;
  height: 100px;
  color: #666;
}
.teacher button {
  background-color: #006699;
  color: white;
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: 5px;
  margin-top: 1rem;
  cursor: pointer;
}
.teacher button:hover { background-color: #004466; }
.about-text {
  max-width: 800px;
  margin: 0 auto;
  font-size: 16px;
  color: #444;
  line-height: 1.8;
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 1.5rem;
  width: 300px;
  height: 250px;
  text-align: center;
  transition: 0.3s;
}

.card img {
  border-radius: 50%;
  width: 100px;
  height: 100px;
  object-fit: cover;
}
.card h3 {
  margin-top: 1rem;
  font-size: 20px;
}
.card p {
  font-size: 14px;
  color: #666;
}
.card button {
  background-color: #006699;
  color: white;
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: 5px;
  margin-top: 1rem;
  cursor: pointer;
}
.card button:hover { background-color: #004466; }
.about-text {
  max-width: 800px;
  margin: 0 auto;
  font-size: 16px;
  color: #444;
  line-height: 1.8;
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
}
.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: inherit;
}
.contact-form button {
  background-color: #006699;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
}
.contact-form button:hover { background-color: #004466; }
.side-ad {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background-color: #ffd700;
  color: #000;
  padding: 1rem;
  font-weight: bold;
  z-index: 999;
  border-radius: 0 8px 8px 0;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
}
textarea {
  resize: none;
}
footer {
  text-align: center;
  padding: 1.5rem;
  background-color: #e2e8f0;
  font-size: 14px;
  color: #4a5568;
  margin-top: 3rem;
}

#flashcards .card {
  text-align: center;
  padding: 1.5rem;
}
#flashcards button {
  background-color: #009688;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}
#flashcards button:hover {
  background-color: #00796b;
}
