/* --- Global Reset & Base --- */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #fffaf3;
  color: #333;
}
img {
  max-width: 100%;
  height: auto;
}

/* --- HEADER --- */
header {
  width: 100%;
 /* background:  #ff6f00;   */  /* Orange theme */
 background:  #140E36;
  color: #fff;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}
.logo img {
  max-height: 50px;
  width: auto;
  height: auto;
}
.nav-links {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}
.nav-links li {
  margin-left: 20px;
}
.nav-links a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  transition: 0.3s;
}
.nav-links a:hover {
  color: #ffcc00;
}

/* --- Hamburger Icon --- */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.menu-toggle span {
  height: 3px;
  width: 25px;
  background: white;
  margin: 4px 0;
  border-radius: 2px;
  transition: 0.4s;
}

/* --- HERO --- */
.hero {
  background: linear-gradient(135deg, #22c55e, #16a34a); /* fresh green gradient */
  color: #ffffff;
  text-align: center;
  padding: 6px 6px;
  border-radius: 0 0 0px 0px; /* curved bottom */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.hero-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-text p {
  font-size: 1.2rem;
  color: #eaffea; /* soft light green */
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}
.hero-text h1 {
  font-size: 2.0rem; /* default for desktop/laptop */
  margin: 10px 0;    /* reduce top/bottom space */
}

@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 1.6rem; /* tablet */
	 margin: 8px 0;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.2rem; /* mobile */
	 margin: 6px 0;
  }
}



/* --- HIGHLIGHTS / Features --- */
.highlights {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 30px 5%;
  flex-wrap: wrap;
}
.highlight-box {
  background: #fff3e0;
  flex: 1 1 200px;
  padding: 20px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  cursor: pointer;
}
.highlight-box:hover {
  transform: translateY(-5px);
}
.highlight-box i {
  font-size: 2rem;
  color: #ff6f00;
  margin-bottom: 10px;
}

/* --- CLASS SELECTION --- */
.class-section {
  text-align: center;
  padding: 30px 20px;
}
.class-section select {
  padding: 10px;
  border: 2px solid #ff6f00;
  border-radius: 5px;
  margin-bottom: 10px;
}
.class-section button {
  padding: 10px 20px;
  background: #ff6f00;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.class-section button:hover {
  background: #e65100;
}

/* --- FOOTER --- */
footer {
  background: #ff6f00;
  color: white;
  text-align: center;
  padding: 10px;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
  .navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }

  /* Nav links will drop BELOW navbar but not push hamburger */
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
    background: #ff6f00;
    position: absolute;   /* 👈 take out of normal flow */
    top: 100%;            /* 👈 exactly below header */
    left: 0;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;  /* always stays at far right */
    margin-right: 10px;
    position: relative; /* stays in navbar */
    z-index: 1001;      /* above menu */
  }
}
/* --- ABOUT SECTION --- */
.about-section {
  max-width: 1400px;
  margin: 20px auto;
  padding: 6px 20px;
  background: #fff8f0; /* very light orange background */
  border-left: 6px solid #ff6f00;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.about-section h2 {
  color: #ff6f00;
  margin-top: 20px;
  font-size: 1.5rem;
}

.about-section p,
.about-section li {
  color: #444;
  line-height: 1.6;
  font-size: 1rem;
}

.about-section ol {
  padding-left: 20px;
}

.about-section li {
  margin-bottom: 10px;
}


/* student heading report */
.summary-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
	 padding: 0 16px;      /* optional: adds side padding inside the container */
}
.summary-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
.summary-card h3 { margin: 0; font-size: 22px; }
.summary-card p { font-size: 18px; color: #555; }

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mini-button {
    flex: 1 0 60px;       /* make buttons equal width, min 60px */
    text-align: center;   /* center text inside button */
    padding: 5px 0;      
    font-size: 13px;       
    color: #fff;            
    background-color: #28a745;
    border: none;
    border-radius: 4px;      
    text-decoration: none;   
    transition: background 0.3s, transform 0.2s;
}

.mini-button:hover {
    background-color: #1e7e34; 
    transform: scale(1.05);
}
.summary-wrapper {
    display: flex;
    flex-wrap: wrap; /* moves to next line if not enough space */
    gap: 15px;       /* spacing between cards */
}

.summary-container {
    flex: 1 1 200px;  /* grow/shrink, min width */
}
.efficiency-label {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c7a7b; /* greenish tone */
  margin: 8px 0;
}

.efficiency-label span {
  color: #228b22; /* darker green for number */
  font-weight: bold;
}


.progress-container {
	 width: 94%;
	 margin: 15px auto; /* just below top div */
  background: linear-gradient(90deg, #c9ffbf, #ffafbd); /* container background */
}

.progress-bar {
  background: linear-gradient(270deg, #ff6f61, #ffca28, #66bb6a, #42a5f5, #ab47bc);
  background-size: 400% 100%;
  animation: gradientShift 6s linear infinite;
}
  /* Gradient animation */
  @keyframes gradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
  }
  /* Vocabulary Topics Page - Greenish Theme for Kids */



.body-container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
}

.body-card {
    background-color: #f0fff0; /* Very light green */
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.body-card h1 {
    color: #2e7d32; /* Dark green */
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.body-card h2 {
    color: #388e3c; /* Medium green */
    margin-top: 25px;
    font-size: 1.3rem;
}

/* Vocabulary Topics Page - with Test and Marks */

/* Vocabulary Topics Page - with Test and Marks */

.project-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.project-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #d0f0c0; /* Light green */
    padding: 10px 12px;
    border-left: 5px solid #66bb6a;
    border-radius: 6px;
    transition: 0.3s;
}

.project-item:hover {
    background-color: #b2df8a;
    transform: translateX(5px);
}

.project-left {
    flex: 1;
}

.project-right {
    display: flex;
    align-items: center;
    gap: 10px; /* space between button and spans */
    flex-wrap: wrap; /* allow wrapping if needed */
}

//* Mobile / small screens */
@media (max-width: 768px) {
    .project-right {
        flex-direction: column; /* stack items vertically */
        align-items: flex-start; /* left-align button and spans */
    }

    .project-right .marks {
        margin-top: 5px; /* spacing below button */
    }
	
	.body-container {
        max-width: 100%;   /* or remove max-width completely */
        margin: 10px auto; /* reduce spacing */
        padding: 0 4px;    /* make padding tighter for mobile */
    }
}


.project-item a {
    text-decoration: none;
    color: #1b5e20;
    font-size: 1rem;
}

.project-item a.test-link {
    background-color: #66bb6a;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.project-item a.test-link:hover {
    background-color: #388e3c;
}

.marks {
    font-weight: bold;
    color: #2e7d32;
    font-size: 1rem;
    min-width: 20px;
    text-align: right;
}
.graph-link {
    position: relative;
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* smooth color change on hover */
.graph-link:hover,
.graph-link:hover span {
    color: #007bff;
}

/* create underline using a pseudo-element */
.graph-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background-color: #007bff;
    transition: width 0.3s ease;
}

/* show underline smoothly on hover */
.graph-link:hover::after {
    width: 100%;
}
