/* ==================== ROOT & RESET ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face{
  src: url(../../fonts/Dangrek-Regular.ttf);
  font-family: dangrek;
}

:root {
    --primary-yellow: #F4C430;
    --dark-brown: #3E2723;
    --light-cream: #FFF9E6;
    --orange-accent: #FF6B35;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    background-color: var(--primary-yellow);
}

/* ==================== PAGE lOADER ==================== */
#pageLoader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loader-text {
    font-family: Arial, sans-serif;
    color: #333;
    font-size: 18px;
}

.progress-bar {
    width: 200px;
    height: 10px;
    background: #f0f0f0;
    border-radius: 5px;
    margin-top: 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #3498db;
    width: 0%;
    transition: width 0.3s ease;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

body.loaded #pageLoader {
    opacity: 0;
    pointer-events: none;
}

#content {
    padding: 20px;
    font-family: Arial, sans-serif;
}
/* ==================== NAVIGATION ==================== */
.navbar {
    background-color: var(--primary-yellow) !important;
    padding: 1.2rem 0;
    box-shadow: none;
}

.navbar-ztop{
  position: fixed;
  z-index: 100;
  width: 100%;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--dark-brown) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    color: var(--orange-accent);
}

.navbar-nav .nav-link {
    color: var(--dark-brown) !important;
    font-weight: 500;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--orange-accent) !important;
}

.navbar-toggler {
    border: 2px solid var(--dark-brown);
    padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%233E2723' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============== MOBILE NAVIGATION ==================== */
.m-navbar {
  overflow: hidden;
  position: fixed;
  bottom: 0.6%;
  width: 100%;
  z-index: 100;
  display:none;
  
}

.m-navbar-row{
  display: flex;
  justify-content: center;
  background-color: var(--primary-yellow);
  width: 90%;
  border-radius: 50px;
}

.m-navbar-corner{
    display: flex;
    justify-content: center;
}

.m-navbar a {
  float: left;
  display: block;
  color: var(--dark-brown);
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 14px;
}

.m-navbar a:hover { 
  color: var(--orange-accent) !important;
}


/* ==================== HERO SECTION ==================== */
.hero-section {
    background-color: var(--primary-yellow);
    min-height: 85vh;
    position: relative;
    overflow: hidden;
    padding: 10rem 0 2rem;
}

.hero-title {
    font-family: dangrek;
    font-size: 6rem;
    font-weight: 800;
    letter-spacing: 10px;
    color: var(--dark-brown);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--dark-brown);
    font-weight: 400;
    max-width: 100%;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-image {
    position: relative;
    z-index: 3;
    max-width: 450px;
    margin: 0 auto;
}

.hero-image img{
    width: 100%;
    height: auto;
    display: block;
}

/* ==================== FLOATING DECORATIONS ==================== */
.floating-icon {
    position: absolute;
    animation: float 3s ease-in-out infinite;
}

.book-icon {
    top: 15%;
    left: 8%;
    font-size: 2.5rem;
    color: #FF6B6B;
    animation-delay: 0s;
}

.lightbulb-icon {
    top: 18%;
    right: 25%;
    font-size: 2.5rem;
    color: #FFE66D;
    animation-delay: 0.5s;
}

.dots-decoration {
    position: absolute;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    top: 35%;
    left: 15%;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
}

.squiggle {
    position: absolute;
    bottom: 25%;
    right: 10%;
    width: 150px;
    height: 80px;
    border: 3px dashed rgba(62, 39, 35, 0.2);
    border-radius: 50%;
    border-left: none;
    border-bottom: none;
    transform: rotate(-20deg);
}

.cloud-shape {
    position: absolute;
    top: 12%;
    right: 8%;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.4);
    animation: float 4s ease-in-out infinite;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* ==================== STATS CARDS ==================== */
.stats-container {
    position: relative;
    z-index: 10;
    margin-top: -2rem;
    padding-bottom: 3rem;
}

.stat-card {
    background-color: white;
    border-radius: 15px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-card.dark {
    background-color: var(--dark-brown);
    color: white;
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--orange-accent);
}

.stat-card.dark .stat-icon {
    color: var(--primary-yellow);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--orange-accent);
    margin-bottom: 0.5rem;
}

.stat-card.dark .stat-number {
    color: white;
}

.stat-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark-brown);
}

.stat-card.dark .stat-label {
    color: white;
}

.stat-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.stat-title.light {
    color: var(--dark-brown);
}

.avatar-group {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid var(--dark-brown);
    background-color: var(--primary-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.cta-button {
    background-color: white;
    color: var(--dark-brown);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    display: inline-block;
    text-decoration: none;
}

.cta-button:hover {
    background-color: var(--dark-brown);
    color: white;
}

/* ==================== OTHER PAGES ==================== */
.page-camp{
    padding: 8rem 0 2rem;
}

.lesson-menu{
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
}
.lesson-menu .lboard div{
    background: rgba(255, 255, 255, 0.25);
    padding: 5px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--dark-brown);
    font-weight: 600;
    font-size: inherit;
    box-shadow: 3px 5px 2px -3px #caa32b;;
}
.lesson-menu .rboard{
  display: flex;
  gap: 8px;
  padding: 5px 10px;
  font-size: inherit;
  font-weight: bold;
  color: var(--light-cream);
border-radius: 50px;
background: #F4C430;
box-shadow:  5px 5px 11px #624e13,
             -5px -5px 11px -6px #ffff4d;
}

.lesson-menu .active{
  width: 24px;
    height: 24px;
    background-color: #ffffff45;
    padding-left: 2px;
    border-radius: 50%;
}
.lesson-pic-col{
    display: flex; 
    justify-content: center; 
    padding: 10px 0px;
}
.lesson-word{
    position: relative;
    font-family: dangrek;
    font-size: 90px;
    letter-spacing: 40px;
    text-align: center;
    font-weight: 900;
    text-transform: uppercase;
    word-wrap: break-word;
}
.lesson-word-describe{
    display: flex;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}
.clear-lesson-row{
    display: flex;
    justify-content: end;
    padding-top: 10px;
}
.clear-lesson-col{
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 900;
    color: var(--dark-brown);
    box-shadow: 3px 5px 2px -3px #caa32b;
}
.cell-words{
    display: flex;
    position: relative;
    font-family: dangrek;
    justify-content: space-around;
    flex-wrap: wrap;
}

.cell-words div{
  position: relative;
  font-size: 50px;
  text-transform: uppercase;
  font-weight: 900;
  border-radius: 5px;
  cursor: pointer;
  padding: 5px 20px 5px;
  -webkit-box-shadow: 3px 5px 20px 0px #caa32b;
  -moz-box-shadow: 3px 5px 20px 0px #caa32b;
  box-shadow: 3px 5px 20px 0px #caa32b;
}
.cell-words p{
  margin-top: unset;
  margin-bottom: unset;
  color: var(--dark-brown);
  animation: bounce-pause 2s infinite;
}

@keyframes bounce-pause {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  } 
  70% {
    transform: translateY(3px);

  }
}


/* ===== RESPONSIVE DESIGN ========= */
@media (max-width: 991px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .navbar-collapse {
        background-color: var(--primary-yellow);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 10px;
    }
    
    .navbar-nav .nav-link {
        margin: 0.5rem 0;
    }
}

@media (max-width: 768px) {
    .navbar {
      padding: 1.2rem 0 0 0;
    }
    #navbarNav{
        display:none;
    }
    .m-navbar {
        display: flex;
        justify-content: center;
    }
    .hero-image {
        display:none;
    }
    .hero-title {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .hero-subtitle {
        text-align: center;
        margin: 0 auto 2rem;
    }
    
    .hero-section {
        padding: 10rem 0 1rem;
        min-height: 0px;
    }
    
    .book-icon {
      top: 28%;
    }
    .lightbulb-icon {
      top: 30%;
    }
    .cloud-shape {
      top: 24%;
    }
    .dots-decoration{
      top: 48%;
    }
    .squiggle{
      bottom: 11%;
    }
    
    .stat-card {
        min-height: 180px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .page-camp {
        padding: 5rem 0 2rem;
    }
    
    .lesson-word-describe{
      font-size: 18px;
    }
    .cell-words{
        gap: 20px;
    }
    .cell-words div{
      font-size: 30px;
      padding: 5px 10px 5px;
    }
    .lesson-menu .lboard div{
        font-size: 11px;
    }
    .lesson-menu .rboard {
        font-size: 11px;
    }
    .lesson-menu .active {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-title {
        font-size: 1.1rem;
    }
}
