body {
    background-color: #FFF6C1;
    color: #2B1B0E;
    font-family: 'Fredoka', sans-serif;
    text-align: center;
}


#privacy {
    background-color: #FFF6C1;
    color: #2B1B0E;
    font-family: 'Fredoka', sans-serif;
    text-align: left;
}

#copyright {
    background-color: #FFF6C1;
    color: #2B1B0E;
    font-family: 'Fredoka', sans-serif;
    text-align: left;
}

#coming-soon-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.coming-soon-wrap {
  max-width: 500px;
}

.coming-soon-emoji {
  font-size: 60px;
  margin-bottom: 10px;
}

#coming-soon-page p {
  font-size: 18px;
  color: var(--ink);
  margin-top: 20px;
}


#chapter-page {
  max-width: 500px;
  margin: 0 auto;
}
#chapter-page .exception-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  text-align: center;
  font-size: 17px;
  color: var(--ink);
}

#chapter-page .exception-list li {
  margin-bottom: 4px;
}
#chapter-page p,
#chapter-page .exception-list {
  font-weight: bold;
}

:root {
  --page-bg:   #fdf2c0;
  --card-bg:   #fdf8e3;
  --gold:      #f0c040;
  --gold-dark: #e0a92c;
  --gold-dash: #e0b44a;
  --ink:       #3d2b0f;
}

* {
  box-sizing: border-box;
}

body {
    font-family: 'Fredoka', sans-serif;
    background: var(--page-bg);
    color: var(--ink);
    margin: 0;
    padding: 40px 20px 60px;
}


.class-heading-box,
.page-title {
  display: block;
  text-align: center;
  margin: 0 auto 45px;
}

.class-heading-box {
  background: var(--card-bg);
  border: 2px solid var(--gold);
  max-width: 460px;
  padding: 22px 20px;
  border-radius: 16px;
}

.class-heading-box h1 {
  margin: 0;
  font-size: 34px;
  font-family: 'Anton', sans-serif;
}

.page-title {
    font-size: 40px;
}


.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.subject-box {
  background: var(--card-bg);
  border: 2px solid var(--gold);
  border-radius: 14px;
  padding: 22px 24px;
  
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.subject-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.subject-box h2 {
    margin: 0 0 14px;
    font-size: 24px;
    text-align: center;
}

.subject-box ul {
  list-style: disc;
  margin: 0;
  padding-left: 20px;
}

.subject-box li {
  margin-bottom: 8px;
}

.subject-box a {
  color: var(--gold-dark);
  font-weight: bold;
  text-decoration: none;
}

.subject-box a:hover {
  text-decoration: underline;
}

#list-page .topic-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#list-page .topic-list li {
  position: relative;
}

#list-page .topic-list li a {
  display: block;
  background: var(--card-bg);
  border: 2px solid var(--gold);
  border-radius: 14px;
  
  padding: 16px 22px 16px 46px;
  text-decoration: none;
  color: var(--gold-dark);
  font-size: 18px;
  font-weight: bold;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#list-page .topic-list li::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
}

#list-page .topic-list li a:hover {
  transform: translateY(-3px) translateX(4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  color: var(--ink);
}

#entry-page {
.entry-heading {
    background-color: #f2c14e;
    border: none;
    border-radius: 12px;
    padding: 20px 40px;
    width: fit-content;
    margin: 0 auto;
    text-align: center;
}

.entry-list {
    width: fit-content;
    margin: 30px 0 0 40px;
    list-style-position: inside;
    text-align: left;
}

.entry-list li {
    margin-bottom: 16px;
    text-align: left;
}

.entry-list a {
    color: #7a5c00;
    text-align: left;
}

.entry-list li::marker {
    color: #f2c14e;
    text-align: left;
}
.entry-list a:hover {
    color: #1a1a1a;
}
.entry-list {
    padding: 0;
}

.entry-list li {
    list-style-position: inside;
    background-color: #FFFDF0;
    border: 2px solid #E8B84B;
    border-radius: 10px;
    padding: 8px 16px;
    margin-bottom: 10px;
    width: fit-content;
}
}

:root {
  --page-bg:   #fdf2c0;
  --card-bg:   #fdf8e3;
  --gold:      #f0c040;
  --gold-dash: #e0b44a;
  --ink:       #3d2b0f;
}

body {
  background: var(--page-bg);
  color: var(--ink);
  margin: 0;
  padding: 40px 20px 60px;
}

.page-title {
  text-align: center;
  font-size: 40px;
  margin-bottom: 45px;
}

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.chapter-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 110px;
  background: var(--card-bg);
  border: 2px solid var(--gold);
  border-radius: 14px;
  
  padding: 18px 22px;
  text-decoration: none;
  color: var(--ink);
  font-size: 18px;
  font-weight: bold;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chapter-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.class-heading-box {
  margin-top: 50px;
}

body > .class-heading-box:first-child {
  margin-top: 0;
}

#prep-books-page {
  max-width: 500px;
  margin: 0 auto;
}

.back-wrap {
  text-align: center;
  margin-top: 55px;
}

.back-btn {
  display: inline-block;
  padding: 13px 34px;
  background: #fdf0c8;
  color: var(--ink);
  font-size: 17px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 30px;
  border: 2px solid var(--gold);
  transition: all 0.15s ease;
}

.back-btn:hover {
  background: var(--gold);
  transform: translateY(-2px);
}

.back-btn:active {
  transform: translateY(0);
}

#chapter-page li {
  list-style: none;
}

#chapter-page li a.single-topic {
  display: inline-block;
  width: auto;
}
#chapter-page li a.single-topic {
  display: inline-block;
  width: auto;
}

#chapter-page ul:has(.single-topic) {
  display: block;
  text-align: center;
}

#chapter-page p {
  text-align: center;
  font-size: 21px;
  color: var(--ink);
  margin-bottom: 30px;
}

#chapter-page h2 {
  display: block;
  max-width: 460px;
  margin: 0 auto 20px;
  padding: 22px 20px;
  background: var(--card-bg);
  border: 2px solid var(--gold);
  border-radius: 16px;
  text-align: center;
  font-family: 'Anton', sans-serif;
  font-size: 34px;
  color: var(--ink);
}

#chapter-page h3 {
  text-align: center;
  font-size: 22px;
  margin-bottom: 30px;
  color: var(--ink);
}

#chapter-page ul {
  list-style: none;
  padding: 0;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#chapter-page li a {
  display: block;
  text-align: center;
  background: var(--card-bg);
  border: 2px solid var(--gold);
  border-radius: 14px;
  
  padding: 16px 20px;
  text-decoration: none;
  color: var(--gold-dark);
  font-size: 17px;
  font-weight: bold;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#chapter-page li a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  color: var(--ink);
}

#chapter-page > a {
  display: table;
  margin: 40px auto 0;
  padding: 13px 34px;
  background: var(--gold);
  color: var(--ink);
  font-size: 17px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 30px;
  border: 2px solid var(--gold-dash);
  box-shadow: 0 4px 0 #c99a2e;
  transition: all 0.15s ease;
}

#chapter-page > a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #c99a2e;
}
#math-chapter-page {
  max-width: 500px;
  margin: 0 auto;
}

#math-chapter-page > h1 {
  text-align: center;
  font-family: 'Anton', sans-serif;
  font-size: 34px;
  color: var(--ink);
  margin-bottom: 35px;
}

.exercise-block {
  margin-bottom: 45px;
}

.exercise-block h2 {
  display: block;
  text-align: center;
  background: var(--card-bg);
  border: 2px solid var(--gold);
  border-radius: 16px;
  padding: 20px;
  font-family: 'Anton', sans-serif;
  font-size: 28px;
  color: var(--ink);
  margin: 0 0 18px;
}
.exercise-block h3 {
  text-align: center;
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 16px;
}

.exercise-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.exercise-block li a {
  display: block;
  text-align: center;
  background: var(--card-bg);
  border: 2px solid var(--gold);
  border-radius: 14px;
  
  padding: 14px 18px;
  text-decoration: none;
  color: var(--gold-dark);
  font-size: 16px;
  font-weight: bold;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.exercise-block li a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  color: var(--ink);
}

#chapter-page li,
#math-chapter-page li {
  list-style: none;
}
#grammar-page .grammar-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 500px;
  margin: 0 auto;
}

#grammar-page .grammar-list li {
  list-style: none;
  width: 100%;
}

#grammar-page .grammar-list li a {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  background: var(--card-bg);
  border: 2px solid var(--gold);
  border-radius: 14px;
  
  padding: 14px 18px;
  text-decoration: none;
  color: var(--gold-dark);
  font-size: 18px;
  font-weight: bold;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#grammar-page .grammar-list li a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  color: var(--ink);
}

#grammar-page.rtl .grammar-list li a {
  direction: rtl;
}
/* 404 / Coming Soon Page */

body#coming-soon-page {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    box-sizing: border-box;
}

.coming-soon-wrap {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.coming-soon-emoji {
    font-size: 3rem;
}

.class-heading-box h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.coming-soon-wrap p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.85;
}

.back-wrap {
    margin-top: 1.5rem;
}

.back-btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border: 2px solid currentColor;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.back-btn:hover {
    background-color: your-color-here;
    color: #fdf0c8;
}
































#homepage {
    background-color: #FFE18A;

    h1, h2 {
        font-family: 'Anton', sans-serif;
    }
}

a {
    text-decoration: none;
}

nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 20px 0;
}

nav a {
    position: relative;
    display: inline-block;
    padding: 20px 28px;
    background-color: #FFF6C1;
    border: 2px solid #E8B84B;
    border-radius: 16px;
    color: #2B1B0E;
    font-family: 'Fredoka', sans-serif;
    font-weight: 500;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    transition: transform 0.15s ease;
}


nav a::before {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1.5px dashed #E8B84B;
    border-radius: 10px;
    pointer-events: none;
}


nav a:hover {
    transform: translateY(-3px);
}

.doodle-9 {
    position: absolute;
    width: 33px;
    bottom: 45px;
    right: 68px;
}

.doodle-10 {
    position: absolute;
    width: 33px;
    bottom: 43px;
    right: 70px;
}
.doodle-11 {
    position: absolute;
    width: 33px;
    bottom: 42px;
    right: 10px;
}
.doodle-12 {
    position: absolute;
    width: 38px;
    bottom: 42px;
    right: 78px;
}
.doodle-mdcat {
    position: absolute;
    width: 38px;
    bottom: 35px;
    right: 170px;
}
.doodle-mdcat-2 {
    position: absolute;
    width: 33px;
    bottom: 4px;
    right: 4px;
}
.doodle-test {
    position: absolute;
    width: 38px;
    bottom: 42px;
    right: 3px;
}
.doodle-test-2 {
    position: absolute;
    width: 33px;
    bottom: 4px;
    right: 150px;
}

.doodle-army {
    position: absolute;
    width: 33px;
    bottom: 40px;
    right: -10px;
}

.doodle-army-2 {
    position: absolute;
    width: 25px;
    bottom: 0.5px;
    right: 65px;
}

:root {
  --hero-scale: clamp(0.6, 2vw, 1.2);
}

.logo-container {
    position: relative;
    width: 250px;
    margin: 0 auto;
}

.flutter-bee {
    position: absolute;
    animation: flutter 3s ease-in-out infinite;
}
.bee-left-1 {
    width: 40px;
    top: 80px;
    left: 330px;
    animation: flutter-flipped 3s ease-in-out infinite;
    animation-delay: 0s;
}

.bee-left-2 {
    width: 28px;
    top: 140px;
    left: 405px;
    animation: flutter-flipped 3s ease-in-out infinite;
    animation-delay: 0.7s;
    animation-fill-mode: backwards;
}

.bee-right-1 {
    width: 40px;
    top: 80px;
    right: 330px;
    animation: flutter 3s ease-in-out infinite;
    animation-delay: 0.4s;
    animation-fill-mode: backwards;
}

.bee-right-2 {
    width: 28px;
    top: 140px;
    right: 390px;
    animation: flutter 3s ease-in-out infinite;
    animation-delay: 1s;
    animation-fill-mode: backwards;
}

@keyframes flutter-flipped {
    0%, 100% {
        transform: scaleX(-1) translateY(0px);
    }
    50% {
        transform: scaleX(-1) translateY(-15px);
    }
}
@keyframes flutter {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}
footer {
  background-color: #e6b835;
  padding: 50px 20px 20px;
}

.footer-brand {
  text-align: left;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  margin-bottom: 30px;
}

.footer-columns {
  display: flex;
  justify-content: flex-start;
  text-align: left;
  gap: 80px;
  flex-wrap: wrap;
  padding-bottom: 20px;
}

.footer-col h4 {
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-bottom {
  text-align: left;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  padding-top: 15px;
}
footer a {
  color: inherit;
  text-decoration: none;
}
.icon-credits {
  font-size: 12px;
  text-align: center;
  color: var(--ink);
  opacity: 0.7;
  margin-top: 10px;
}

.icon-credits p {
  margin: 2px 0;
}

.icon-credits a {
  color: var(--ink);
  text-decoration: underline;
}

@media (max-width: 600px) {
  body {
    padding: 20px 14px 40px;
  }

  .class-heading-box h1,
  #chapter-page h2 {
    font-size: 24px;
    padding: 16px 14px;
  }

  .page-title {
    font-size: 28px;
  }

  .subjects-grid,
  .chapter-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .subject-box h2 {
    font-size: 20px;
  }

  .exercise-block h2 {
    font-size: 22px;
  }

  .back-btn {
    padding: 12px 24px;
    font-size: 15px;
  }
  .logo-container {
  overflow: visible;
}

.flutter-bee {
  width: 22px !important;
}

.logo-container {
  width: 160px;
  position: relative;
}

.logo-container img[alt="Study Bees Logo"] {
  width: 100%;
  height: auto;
}

.flutter-bee {
  width: 25px !important;
}

.bee-left-1 {
  top: 51px;
  left: 205px;
}

.bee-left-2 {
  top: 90px;
  left: 239px;
}

.bee-right-1 {
  top: 51px;
  right: 205px;
}

.bee-right-2 {
  top: 90px;
  right: 229px;
}


}
