/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background: #f4f4f4;
  color: #222;
  transition: background 0.3s ease, color 0.3s ease;
}

/* HEADER */
header {
  background: #fff;
  padding: 15px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

header img {
  height: 55px;
}

.header-actions button {
  background: #4caf50;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  margin-left: 10px;
  font-weight: 600;
  transition: background 0.3s;
}

.header-actions button:hover {
  background: #43a047;
}

/* ===== DARK MODE EXTENDED LOGIC ===== */
body.dark #courses {
  background: #1e1e1e;
}

body.dark .course-card {
  background: #222;
  box-shadow: 0 4px 12px rgba(255,255,255,0.08);
}

body.dark .course-card h3 {
  color: #a5d6a7;
}

body.dark .course-card p {
  color: #ccc;
}

body.dark .enroll-btn {
  background: #388e3c;
}

body.dark #view-programs {
  background: #1b1b1b;
}

body.dark .view-programs-card {
  background: #222;
  color: #eee;
}

body.dark #about-section,
body.dark #mission-section {
  background: #1f1f1f;
  box-shadow: 0 3px 10px rgba(255,255,255,0.05);
}

body.dark #about-section h2,
body.dark #mission-section h2 {
  color: #81c784;
}

body.dark #about-section p,
body.dark #mission-section p {
  color: #ccc;
}

body.dark .read-more-btn {
  background: #388e3c;
}

body.dark .counter-section {
  background: #181818;
}

body.dark .counter-card {
  background: #222;
}

body.dark .counter-card h3 {
  color: #a5d6a7;
}

body.dark #events {
  background: #1a1a1a;
  border-color: #388e3c;
}

body.dark .event-card {
  background: #222;
  box-shadow: 0 4px 12px rgba(255,255,255,0.05);
}

body.dark .event-card h3 {
  color: #81c784;
}

body.dark .event-card p {
  color: #ccc;
}

body.dark footer {
  background: #111;
}

body.dark .cbt-slide {
  background: #1e1e1e;
  box-shadow: 0 6px 20px rgba(255,255,255,0.1);
}

body.dark .cbt-content h3 {
  color: #81c784;
}

body.dark .cbt-content p {
  color: #ccc;
}

body.dark .cbt-btn {
  background: #388e3c;
}

/* ===== MINI SLIDESHOW (1cm height + visible text) ===== */
#slideshow {
  position: relative;
  width: 100%;
  height: 1cm;
  overflow: hidden;
  border-radius: 6px;
  margin: 15px auto;
  border: 2px solid #df0606fd;
  background: #ead938f1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-container {
  display: flex;
  width: 300%;
  height: 100%;
  animation: slideMini 9s infinite;
}

.slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
  letter-spacing: 0.5px;
}

.slide:nth-child(1) { background: #129ba8fd; }
.slide:nth-child(2) { background: #f86b2bf1; }
.slide:nth-child(3) { background: #1219cdf1; }

@keyframes slideMini {
  0%   { transform: translateX(0%); }
  33%  { transform: translateX(0%); }
  38%  { transform: translateX(-100%); }
  66%  { transform: translateX(-100%); }
  71%  { transform: translateX(-200%); }
  100% { transform: translateX(-200%); }
}

@media (max-width: 768px) {
  #slideshow {
    height: 0.9cm;
  }
  .slide {
    font-size: 0.7rem;
  }
}

/* ===== COURSES ===== */
#courses {
  padding: 60px 25px;
  text-align: center;
  background: #fff;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #2e7d32;
}

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

.course-card {
  background: #fdfdfd;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.course-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 3px solid #4caf50;
}

.course-card h3 {
  margin: 15px 0 5px;
  color: #2e7d32;
  font-size: 1.3rem;
}

.course-card p {
  padding: 0 15px;
  flex-grow: 1;
  color: #555;
}

.enroll-btn {
  background: #4caf50;
  color: #fff;
  border: none;
  padding: 12px;
  width: 90%;
  margin: 15px auto 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}

.enroll-btn:hover {
  background: #388e3c;
}

/* ===== VIEW ALL PROGRAMS ===== */
#view-programs {
  background: #b2f3f5;
  text-align: center;
  padding: 60px 20px;
}

.view-programs-card {
  background: #e8abf9;
  padding: 40px 25px;
  border-radius: 15px;
  display: inline-block;
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

#viewProgramsBtn {
  background: #3514d1;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

#viewProgramsBtn:hover {
  background: #100aa3;
}

/* ===== ABOUT & MISSION SECTIONS ===== */
#about-section, #mission-section {
  background: #f8fff8;
  padding: 40px 25px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  margin: 40px auto;
  max-width: 900px;
  text-align: center;
}

#about-section h2, #mission-section h2 {
  color: #2e7d32;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

#about-section p, #mission-section p {
  color: #444;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 750px;
  margin: 0 auto 20px;
}

.read-more-btn {
  display: inline-block;
  background: #4caf50;
  color: #fff;
  padding: 10px 22px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.read-more-btn:hover {
  background: #2e7d32;
}

/* ===== COUNTERS ===== */
.counter-section {
  background: #fff;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 50px 10px;
}

.counter-card {
  flex: 1 1 180px;
  margin: 15px;
  text-align: center;
  background: #e8f5e9;
  border-radius: 10px;
  padding: 25px 10px;
}

.counter-card i {
  color: #388e3c;
  margin-bottom: 10px;
}

.counter-card h3 {
  font-size: 1.6rem;
  color: #2e7d32;
}

/* ===== FOOTER ===== */
footer {
  background: #2e7d32;
  color: #fff;
  text-align: center;
  padding: 20px;
}

footer p {
  margin-bottom: 10px;
}

.social-icons a {
  color: white;
  margin: 0 10px;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #a5d6a7;
}

/* ===== MINI FLOATING CBT SLIDE ===== */
.cbt-slide {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 280px;
  background: #92f1f6;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  overflow: hidden;
  z-index: 1000;
  opacity: 0;
  transform: translateY(120%);
  transition: all 0.8s ease;
}

.cbt-slide.active {
  opacity: 1;
  transform: translateY(0);
}

.cbt-content {
  position: relative;
  padding: 20px 18px 25px;
  text-align: left;
}

.cbt-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: #333;
  transition: color 0.2s;
}

.cbt-close:hover { color: red; }

.cbt-content h3 {
  color: #2e7d32;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.cbt-content p {
  color: #444;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 12px;
}

.cbt-btn {
  display: inline-block;
  background: #e40746;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.cbt-btn:hover { background: #87e6f0; }

@media (max-width: 600px) {
  .cbt-slide {
    width: 85%;
    right: 7%;
    bottom: 15px;
  }
}

/* ===== EVENTS SECTION ===== */
#events {
  background: #2715e7;
  padding: 60px 20px;
  text-align: center;
  border-top: 3px solid #f31637;
  border-bottom: 3px solid #f11717;
}

#events h2 {
  font-size: 2rem;
  color: #eeeaea;
  margin-bottom: 25px;
  font-weight: 700;
}

#events-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto 30px;
}

.event-card {
  background: #f9fff9;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 20px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.event-card h3 {
  color: #2e7d32;
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.event-card p {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 10px;
}

.event-date {
  display: inline-block;
  background: #4caf50;
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

#allEventsBtn {
  background: #c47910;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

#allEventsBtn:hover {
  background: #2e7d32;
}

@media (max-width: 600px) {
  #events h2 {
    font-size: 1.6rem;
  }
  .event-card {
    padding: 15px;
  }
}