:root {
  --primary: hsl(178, 85%, 35%);
  --primary-foreground: hsl(0, 0%, 98%);
  --secondary: hsl(35, 91%, 65%);
  --secondary-foreground: hsl(0, 0%, 9%);
  --accent: hsl(14, 100%, 57%);
  --accent-foreground: hsl(0, 0%, 98%);
  --skyblue: hsl(197, 71%, 73%);
  --text-muted: hsl(0, 0%, 40%);
  --card-bg: hsl(0, 0%, 100%);
  --card-shadow: hsla(0, 0%, 0%, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: linear-gradient(to bottom right, var(--skyblue), hsl(197, 71%, 83%));
  color: var(--primary-foreground);
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  background: hsla(0, 0%, 100%, 0.9);
  backdrop-filter: blur(6px);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
}
.logo img {
  width: 48px;
  margin-right: 10px;
}
.logo h2 {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
  transition: color 0.3s ease;
}
.nav-links a:hover {
  color: var(--secondary);
}
.nav-links button {
  padding: 0.5rem 1rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.nav-links button:hover {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

/* Menu Toggle */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--primary);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--primary-foreground);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero */
.hero {
  text-align: center;
  padding: 8rem 2rem 4rem;
  max-width: 900px;
  margin: auto;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.hero h1 span {
  color: var(--secondary);
}
.hero p {
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: var(--primary-foreground);
}
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.btn-outline,
.btn-filled {
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-outline {
  border: 2px solid var(--primary-foreground);
  background: transparent;
  color: var(--primary-foreground);
}
.btn-outline:hover {
  background: var(--primary-foreground);
  color: var(--primary);
}
.btn-filled {
  background: var(--secondary);
  color: var(--secondary-foreground);
}
.btn-filled:hover {
  background: var(--accent);
  color: var(--accent-foreground);
}

/* Stats */
.stats {
  background: hsl(0, 0%, 95%);
  padding: 4rem 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}
.stat {
  text-align: center;
  max-width: 180px;
}
.stat img {
  width: 48px;
  margin-bottom: 0.75rem;
}
.stat h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
}
.stat p {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Courses */
.course-wrap{
  background: white;
}
.courses-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}
.courses-section h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: var(--primary);
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.course-grid > div:nth-child(n+4) {
  display: none;
}
.course-box {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 8px 20px var(--card-shadow);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.course-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px var(--card-shadow);
}
.course-box h3 {
  font-size: 1.4rem;
  color: #2c7a7b;
  margin-bottom: 10px;
}
.course-box p {
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: black;
}
.course-box .category {
  font-weight: 600;
  color: var(--secondary);
}
.course-box .details {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 10px;
}
.course-box .btn_wrapper {
  display: flex;
  justify-content: space-between;
}

.course-box button {
  padding: 8px 16px;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.course-box .btn_wrapper .enroll-btn {
  background: var(--secondary);
}

.course-box button:hover {
  background-color: #2c7a7b;
}

.view-all {
  margin-top: 40px;
}
.view-all button {
  padding: 10px 20px;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.view-all button:hover {
  background-color: var(--accent);
  color: var(--accent-foreground);
}
/* event-section */


.events-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
  text-align: center;
  
}

.events-section h2 {
  font-size: 2.5rem;
  color: #2c7a7b;
  margin-bottom: 10px;
}

.events-section .subtitle {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 40px;
}

.event-grid {
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: 20px;
 flex: 1;
}


.event-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 8px 20px var(--card-shadow);
  text-align: left;
  transition: transform 0.3s ease;
}

.event-card:hover {
  transform: translateY(-6px);
}

.event-label {
  display: inline-block;
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.event-card h3 {
  font-size: 1.2rem;
  color: #2c7a7b;
  margin-bottom: 10px;
}

.event-card p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 6px;
}

.event-card .icon {
  margin-right: 6px;
  color: #888;
}

/* Branches */

.branch-wrap{
  background: white;
}
.branches-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}
.branches-section h2 {
  font-size: 2.5rem;
  color: #2c7a7b;
  margin-bottom: 10px;
}
.branches-section .subtitle {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 40px;
}
.branch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.branch-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 8px 20px var(--card-shadow);
  text-align: center;
  transition: transform 0.3s ease;
}
.branch-card:hover {
  transform: translateY(-6px);
}
.branch-card .icon {
  font-size: 2rem;
  color: var(--primary);
  margin :10px;
}

  .branch-card .icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.branch-card h3 {
  font-size: 1.4rem;
  color: #2c7a7b;
  margin-bottom: 10px;
}

.branch-card p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 20px;
}

.branch-card button {
  padding: 8px 16px;
  background-color: var(--card-bg);
  color: var(--primary);
  border: 1px solid #ccc;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.branch-card button:hover {
  background-color: var(--accent);
  color: var(--accent-foreground);
  border-color: var(--accent);
}

/* CTA Section */
.cta-section {
  background: var(--primary);
  color: var(--primary-foreground);
  text-align: center;
  padding: 60px 20px;
}
.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.cta-section p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  background: hsl(0, 0%, 10%);
  color: hsl(0, 0%, 95%);
  padding: 60px 20px 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}
.footer-column h3,
.footer-column h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: hsl(0, 0%, 100%);
}
.footer-column p,
.footer-column li {
  font-size: 0.95rem;
  color: hsl(0, 0%, 80%);
  margin-bottom: 0.5rem;
}
.footer-column ul {
  list-style: none;
  padding: 0;
}
.footer-column a {
  color: hsl(0, 0%, 80%);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-column a:hover {
  color: var(--secondary);
}
.footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 0.85rem;
  color: hsl(0, 0%, 60%);
}

/*course page*/
.course{
  padding-top: 30px;
  background: white;
}
.course-filter-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.course-filter-section h2 {
  font-size: 2.5rem;
  color: #2c7a7b;
  margin-bottom: 10px;
}

.course-filter-section .subtitle {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 40px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  justify-content: center;
}

.filter-input,
.filter-select {
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: border-color 0.3s ease;
}

.filter-input:focus,
.filter-select:focus {
  border-color: var(--primary);
  outline: none;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 8px;
    position: absolute;
    top: 70px;
    right: 20px;
    box-shadow: 0 8px 20px var(--card-shadow);
  }

  .nav-links.show {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .stats {
    flex-direction: column;
    align-items: center;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .course-grid,
  .branch-grid {
    grid-template-columns: 1fr;
  }
}
/* 
for login page */

.login-wrap{
  padding-top: 40px;
  padding-bottom: 50px;
  background: white;
  display: flex;
  justify-content: center;
}
.login-container {
  width: 100%;
  max-width: 400px;
  padding: 20px;
  color: black;
 
}

.login-box {
  background-color: var(--input-bg);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.logo {
  font-size: 40px;
  margin-bottom: 10px;
}

h2 {
  color: var(--text-color);
  margin-bottom: 5px;
}

p {
  color: #666;
  margin-bottom: 20px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: left;
}

label {
  font-size: 14px;
  color: var(--text-color);
}

input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  background-color: var(--input-bg);
  font-size: 14px;
}

.password-wrapper {
  position: relative;
}

.password-wrapper input {
  width: 100%;
}

#togglePassword {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
}

button {
  background-color: var(--primary);
  color: black;
  padding: 12px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-radius: 12px;
}

button:hover {
  background-color: #27ae60;
}

.register-link {
  margin-top: 15px;
  font-size: 14px;
}

.register-link a {
  color: var(--primary-color);
  text-decoration: none;
  color: rgb(88, 197, 240);
}


