/* Hero Slideshow */
.hero {
  position: relative;
  height: 518px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

/* Slides background */
.slides img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  top: 0;
  left: 0;
}

.slides img.active {
  opacity: 1;
}

/* Overlay for readability */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

/* Text content */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  padding: 40px;
  animation: fadeIn 1.5s ease-in-out;
}

/* Stylish heading */
.hero-content h1 {
  font-size: 3.2rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-weight: 600;
}

.hero-content h1 span {
  color: #FF6F0A;
  text-shadow: 0 0 8px rgba(44, 44, 44, 0.8);
}

/* Paragraph styling */
.hero-content p {
  font-size: 1rem;
  line-height: 1.8;
  
  color: #f1f1f1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* welcome card */
.welcome-card {
  max-width: 800px;            /* card width */
  background: #ffffff;          /* card background */
  padding: 30px;
  margin: 40px 0 40px 40px;     /* left side alignment */
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  text-align: left;
  font-family: 'Poppins', sans-serif;
}

.welcome-card h1 {
  font-size: 40px;
  color: #ff7a00;              /* orange accent */
  margin-bottom: 10px;
}

.welcome-card h3 {
  font-size: 22px;
  color: #333;
  margin-bottom: 15px;
}

.welcome-card p {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
}




/* Section Titles */
section h2 {
  text-align: center;
  margin: 80px 0 40px;
  color: #ff6600;
  position: relative;
  font-size: 2rem; /* font size wadi karanna */
}
section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #ff6600;
  margin: 10px auto;
}

/* 📱 Mobile (<= 768px) */
@media (max-width: 768px) {
  section h2 {
    font-size: 1.9rem;
    margin: 60px 0 30px;
  }

  section h2::after {
    width: 50px;
    height: 3px;
  }
}


/* 📱 Extra Small (<= 480px) */
@media (max-width: 480px) {
  section h2 {
    font-size: 1.6rem;
    margin: 50px 0 25px;
  }

  section h2::after {
    width: 40px;
    height: 2.5px;
  }
}
/* SERVICES SECTION */
.services {
  padding:20px 20px;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}



/* grid setup */
.service-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: stretch; /* ensures all cards stretch to same height */
}

/* make each card a flex column to push button down */
.card {
  display: flex;
  flex-direction: column;
  background: #ffcd8c;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%; /* important: stretch to same height */
}

/* image stays fixed height */
.card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  flex-shrink: 0;
}

/* card-text flex column + fill remaining space */
.card-text {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto; /* grow to fill remaining height */
  padding: 20px 24px;
}


/* push button to bottom */
.service-btn {
  margin-top: auto;     /* takes all remaining vertical space above button */
  align-self: flex-end; /* button to right */
  background-color: #ff7b00;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.3s ease, transform 0.12s ease;
  text-decoration: none;   /* remove underline */
  display: inline-block;   /* makes the link behave like a button */
}

.service-btn:hover {
  background-color: #00376d;
  transform: translateY(-2px);
}

/* responsive for mobile */
@media (max-width: 768px) {
  .service-cards {
    grid-template-columns: 1fr;
  }

  .card img {
    height: 200px;
  }

  .service-btn {
    font-size: 13px;
    padding: 8px 14px;
  }
}


/* event */
/* event btn */
.eventnew-btn {
  position: absolute;       /* make it stick to bottom-right */
  bottom: 15px;
  right: 15px;
  background-color: #ff7b00;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.3s ease, transform 0.12s ease;
  text-decoration: none;   /* remove underline */
  display: inline-block;   /* makes the link behave like a button */
}

.eventnew-btn:hover {
  background-color: #00376d;
  transform: translateY(-2px);
}

.events {
  padding: px 0;
}

.events .event-slider {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.events .event-slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.events .event-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  margin-right: 20px;
  width: 500px;
  height: 470px;
  flex-shrink: 0;
  text-align: left;
  padding: 15px;
  transition: transform 0.3s;
  position: relative; /* Required for button positioning */
}

.events .event-card:hover {
  transform: translateY(-6px);
}

.events .event-card img {
  width: 100%;
  height: 350px; /* Fixed image height */
  object-fit: cover; /* Ensures the image keeps aspect ratio and fills the box */
  border-radius: 8px;
  margin-bottom: 10px;
}

.events .event-card h3 {
  color: #0077b6;
  font-size: 18px;
  margin-bottom: 6px;
}

.events .event-card p {
  font-size: 12px;
  color: #555;
}

/* Navigation buttons */
.events .event-prev,
.events .event-next {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  font-size: 22px;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s;
}

.events .event-prev:hover,
.events .event-next:hover {
  background: rgba(0,0,0,0.85);
}

.events .event-prev {
  left: 10px;
}

.events .event-next {
  right: 10px;
}


/* staff */
.staff {
  max-width: 1400px;
  margin: 60px auto;
  text-align: center;
}

.staff-title {
  font-size: 2rem;
  color: #ff6600;
  margin-bottom: 30px;
}

/* Cards container */
.staff-cards {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

/* Individual card */
.staff-card {
  background: #fff;
  border: 2px solid #00376d;
  border-radius: 12px;
  padding: 22px;
  width: 250px;
  height: 360px;                /* fixed height */
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;             /* hide overflow if content is too long */
  display: flex;
  flex-direction: column;       /* make vertical layout */
  align-items: center;
  justify-content: space-between; /* distribute evenly (image, text, button) */
}

.staff-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.staff-card img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  border: 3px solid #00376d;
  flex-shrink: 0;
}

.staff-card h3 {
  margin: 5px 0;
  font-size: 1.1rem;
  color: #333;
}

.staff-card p {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 10px;
  flex-grow: 1;                /* text takes available space but won't expand card */
}

/* Button */
.view-btn {
  background: #00376d;
  color: #ffffff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s;
  flex-shrink: 0;
}

.view-btn:hover {
  background: #e05500;
}

/* non staff */
.non-staff {
  max-width: 1400px;
  margin: 60px auto;
  text-align: center;
  
  
 
}

.non-staff-title {
  font-size: 1.8rem;
  color: #ff6600;
  margin-bottom: 30px;
}

.non-staff-cards {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.non-staff-card {
  background: #fff;
  border: 2px solid #00376d;
  border-radius: 12px;
  padding: 8px;
  width: 220px;
  height: 250px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.non-staff-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.non-staff-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  border: 3px solid #00376d;
  flex-shrink: 0;
}

.non-staff-card h3 {
  margin: 5px 0;
  font-size: 1rem;
  color: #333;
}

.non-staff-card p {
  color: #666;
  font-size: 0.8rem;
  margin-bottom: 10px;
  flex-grow: 1;
}

.non-view-btn {
  background: #00376d;
  color: #ffffff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s;
  flex-shrink: 0;
}

.non-view-btn:hover {
  background: #e05500;
}




/* Popup Modal */
.profile-popup {
  display: none; /* hidden by default */
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.popup-content {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  width: 350px;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.popup-content img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-bottom: 10px;
  border: 3px solid #ff6600;
}

.close-btn {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 1.5rem;
  color: #333;
  cursor: pointer;
}



.welcome-section {
  display: flex;
  gap: 40px; /* space between left & right */
  padding: 40px;
  flex-wrap: wrap; /* responsive for small screens */
}

.welcome-card {
  flex: 2; /* left side takes more space */
  min-width: 200px;
}

/* new newa */
.news-box {
  flex: 1;
  min-width: 200px;
  text-align: center;
  background: #faa763; /* soft background */
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.news-title {
  font-weight: 700;           /* bold */
  font-size: 20px;            /* slightly bigger */
  color: #ff0000;             /* accent color */
  margin-bottom: 12px;        /* space below title */
  text-transform: uppercase;  /* all caps */
  letter-spacing: 2px;        /* spacing between letters */
  border-bottom: 2px solid #ff6600; /* underline */
  display: inline-block;      /* underline only under text */
  padding-bottom: 4px;
  font-family: 'Poppins', sans-serif; /* modern font */
}

.news-box .caption {
  font-size: 14px;
  color: #555;
}

.news-box img {
  width: 300px;
  border-radius: 10px;
  margin-bottom: 10px;
}

/* new news div */
.news-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 80px;
  padding: 30px;
  font-family: "Poppins", sans-serif;
  height: 580px;
}

.news-left {
  position: relative;
  max-width: 400px;
  height: 588px;
  background: #ffd49b;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  text-align: center;
  padding-bottom: 20px;
}

.news-left .news-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #fd0202;
  color: #fff;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 1rem;
  margin: 0;
}

.news-left img {
  width: 70%;          
  margin-top: 60px;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.news-left img:hover {
  transform: scale(1.05);
}

.news-left .quote {
  font-size: 1rem;
  color: #00376d;
  margin: 20px 15px 10px;
  line-height: 1.5;
  text-align: justify;
}

.news-left .name {
  display: block;
  font-weight: bold;
  color: #f81d1d;
  font-family: Arial, Helvetica, sans-serif;
}

.news-right {
  max-width: 600px;
}

.news-right h1 {
  font-size: 2rem;
  color: #fffefd;
  margin-bottom: 8px;
  text-align: center;
  background-color: #00376d;
}

.news-right p {
  font-size: 1rem;
  color: #00376d;
  line-height: 1.3;
  margin-bottom: 30px;
  text-align: justify;
}



.stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 23px;
}

/* Individual Stat Boxes */
.stat-box {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 25px 35px;
  width: 160px;
  backdrop-filter: blur(5px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 5px 15px rgba(255, 204, 0, 0.4);
}

/* Icon */
.stat-box i {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

/* Number */
.stat-box h3 {
  font-size: 1.7rem;
  font-weight: 700;
  color: #ffcc00;
  margin-bottom: 6px;
}

/* Text */
.stat-box p {
  font-size: 0.9rem;
  color: #f1f1f1;
  opacity: 0.9;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .stats {
    flex-direction: column;
    gap: 20px;
  }

  .stat-box {
    width: 80%;
    padding: 20px;
  }

  .welcomeh1 {
    font-size: 2rem;
  }
}


/* ===== Scroll reveal (base) ===== */
.news-left, .news-right, .stat {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.news-left.show, .news-right.show, .stat.show {
  opacity: 1;
  transform: translateY(0);
}

.news-right img {
  width: 55%;   /* desktop default */
  margin-top: 60px;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

/* video container */
.news-right .news-video {
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.news-right video {
  width: 100%;
  height: 265px;
  display: block;
  object-fit: cover;
}

/* ===== Responsive adjustments ===== */

/* Large tablets / small desktops */
@media (max-width: 1024px) {
  .news-right img {
    width: 65%;
    margin-top: 50px;
  }

  .news-right video {
    height: 240px;
  }

  .news-left, .news-right, .stat {
    transition: all 0.7s ease-out;
  }
}

/* Tablets & larger phones */
@media (max-width: 768px) {
  /* Stack news-left and news-right vertically */
  .news-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 18px;
  }

  .news-left, .news-right {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 16px;
    box-sizing: border-box;
  }

  /* Make the image smaller and centered */
  .news-right img {
    width: 60%;
    margin: 18px auto 12px;
    display: block;
  }

  /* Reduce translate for nicer mobile reveal */
  .news-left, .news-right, .stat {
    transform: translateY(24px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(.2,.8,.2,1);
  }

  .news-left.show, .news-right.show, .stat.show {
    transform: translateY(0);
    opacity: 1;
  }

  /* Video responsive height */
  .news-right video {
    height: auto; /* let width control height */
    max-height: 360px;
  }

  /* Ensure stat boxes don't overflow */
  .stat-box {
    width: 90%;
    margin: 12px auto;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .news-section {
    padding: 12px;
    gap: 12px;
  }

  .news-right img {
    width: 80%;
    margin-top: 14px;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

  .news-right h1 {
    font-size: 1.3rem; /* ensure headings fit */
  }

  .news-right p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .news-left {
    padding: 14px;
  }

  .news-right {
    padding: 10px 8px;
  }

  .news-right video {
    height: auto;
    max-height: 260px;
    width: 100%;
  }

  /* Reduce reveal movement for very small screens to avoid jank */
  .news-left, .news-right, .stat {
    transform: translateY(14px);
    transition: all 0.48s cubic-bezier(.25,.8,.25,1);
  }

  /* If .news-left had fixed height previously, make it auto on mobile */
  .news-left {
    height: auto !important;
  }
}




/* ---------- Sponsor Section (base) ---------- */
.sponsor-section {
  max-width: 1340px;
  margin: 50px auto;
  text-align: center;
 
}

.sponsor-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: #ff6600;
 
}

/* Slider */
.sponsor-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* Track */
.sponsor-track {
  display: flex;
  align-items: center;
  gap: 60px;
  will-change: transform;
  white-space: nowrap;               /* keep single row */
  -webkit-overflow-scrolling: touch; /* smooth on iOS */
  padding: 10px 4px;
}

/* Card / image */
.sponsor-card {
  
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sponsor-card img {
  height: 120px;     /* default desktop size */
  width: auto;
  display: block;
  transition: filter 0.25s ease, transform 0.25s ease;
 
  user-select: none;
  pointer-events: auto;
}

.sponsor-card img:hover {
 
  transform: translateY(-3px);
}

/* ---------- Responsive tweaks ---------- */
/* Tablets */
@media (max-width: 1024px) {
  .sponsor-track { gap: 30px; }
  .sponsor-card img { height: 120px; }
  .sponsor-title { font-size: 2rem; }
}

/* Small tablets / large phones */
@media (max-width: 768px) {
  .sponsor-track { gap: 24px; padding: 10px; }
  .sponsor-card img { height: 100px; }
  .sponsor-title { font-size: 2rem; margin-bottom: 22px; }
}

/* Mobile (narrow) */
@media (max-width: 480px) {
  .sponsor-track { gap: 18px; padding: 15px; }
  .sponsor-card img { height: 80px; }
  .sponsor-title { font-size: 2rem; margin-bottom: 20px; }
}

/* If you want a subtle dark mode fallback */
@media (prefers-color-scheme: dark) {

  .sponsor-title { color: #ff6600; }
}





/* Section header */
.courses {
  padding: 30px 30px;
  text-align: center;
}

.courses-header {
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.courses-header h2 {
  font-size: 2rem;
}

/* Slider */
.slider-container {
  position: relative;
  margin-top: 40px;
  overflow: hidden;
}

.slider {
  display: flex;
  transition: transform 0.5s ease;
  gap: 20px;
  scroll-behavior: smooth;
  overflow-x: auto;
  scrollbar-width: none; /* works in Firefox */
}

/* Course Cards */
.course-card {
  width: 300px;
  height: 420px; /* fixed height for all cards */
  border-radius: 10px;
  overflow: hidden;
  background: #00376d;
  color: #fff;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.course-card:hover {
  transform: translateY(-5px);
}

.course-card img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  flex-shrink: 0;
  
  border-radius: 10px; /* smooth corners */
  display: block; /* removes tiny gaps under images */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Optional: subtle hover effect */
.course-card img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}


.course-info {
  padding: 8px;
  text-align: left;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative; /* needed for fade overlay */
}

/* Title */
.course-info h3 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 10px 0;
  /* Allow wrapping but limit space using max-height */
  overflow: hidden;
  display: block;
  line-height: 1.4em;
  max-height: calc(1.4em * 2); /* approx 2 lines */
  text-align: center;
}

/* Paragraph: fallback clamp using max-height + fade */
.course-info p {
  font-size: 12px;
  color: #eee;
  margin: 0 0 10px 0;
  line-height: 1.4em;
  overflow: hidden;
  display: block;
  max-height: calc(1.4em * 3); /* show ~3 lines */
  /* keep relative for pseudo fade */
  position: relative;
  padding-bottom: 6px; /* space for fade */
  text-align: center;
}

/* Fade overlay to indicate truncated text (works without webkit) */
.course-info p::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.6em; /* size of the fading area */
  pointer-events: none;
  /* Gradient that fades from transparent to the card background color,
     tweak rgba color if you change card background */
  
}

/* Read More Button */
.read-more-btn {
  background: #ffffff;
  color: #ff6701;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  transition: 0.3s;
  align-self: center;
  margin-top: 10px;
  text-decoration: none;   /* remove underline */
  display: inline-block;   /* makes the link behave like a button */
}

.read-more-btn:hover {
  background: #1463ff;
  color: #ffffff;
}

/* Arrows */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  color: #000;
  border: none;
  padding: 8px 12px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: background 0.3s;
  z-index: 10;
}

.prev:hover,
.next:hover {
  background: #ff6701;
  color: #fff;
}

.prev {
  left: 0;
}

.next {
  right: 0;
}

/* =============================
   RESPONSIVE COURSE CARD STYLES
   ============================= */

/* 💻 Tablet size (~1000px and below) */
@media (max-width: 1000px) {
  .slider {
    gap: 12px;
  }

  .course-card {
    width: 230px;       /* medium size for tablets */
    height: 320px;
    margin-inline: 8px;
  }

  .course-card img {
    height: 120px;
  }

  .course-info {
    padding: 12px;
  }

  .course-info h3 {
    font-size: 15px;
  }

  .course-info p {
    font-size: 12px;
    line-height: 1.45;
  }

  .read-more-btn {
    padding: 9px 14px;
    font-size: 14px;
  }

  .prev, .next {
    padding: 8px 12px;
    font-size: 16px;
  }
}

@media (max-width: 900px) {
  .slider {
    gap: 10px;
  }

  .course-card {
    width: 220px;       /* medium size for tablets */
    height: 300px;
    margin-inline: 6px;
  }

  .course-card img {
    height: 110px;
  }

  .course-info {
    padding: 12px;
  }

  .course-info h3 {
    font-size: 14px;
  }

  .course-info p {
    font-size: 12px;
    line-height: 1.45;
  }

  .read-more-btn {
    padding: 9px 14px;
    font-size: 14px;
  }

  .prev, .next {
    padding: 8px 12px;
    font-size: 16px;
  }
}


/* 📱 Mobile (<= 768px) */
@media (max-width: 800px) {
  .slider {
    gap: 10px;
  }

  .course-card {
    width: 240px;      /* smaller for phones */
    height: 400px;
    margin-inline: 6px;
  }

  .course-card img {
    height: 230px;
    object-fit: cover;
  }

  .course-info {
    padding: 10px;
  }

  .course-info h3 {
    font-size: 15px;
  }

  .course-info p {
    font-size: 14px;
    line-height: 1.35;
    max-height: calc(1.35em * 3);
    background: none;       /* remove dark overlay */
    position: static;
  }

  .course-info p::after {
    display: none !important;  /* remove the pseudo overlay */
    content: none !important;
  }

  .read-more-btn {
    padding: 8px 12px;
    font-size: 13px;
  }

  .prev, .next {
    padding: 6px 10px;
    font-size: 14px;
  }
}

/* 💡 Main mobile optimization (<= 700px) */
@media (max-width: 750px) {
  .slider {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-inline: 10px;
  }

  .course-card {
    width: 30%;
    max-width: 220px;
    height: 120px;
    margin-bottom: 10px;
  }

  .course-card img {
    height: 100px;
    object-fit: cover;
  }

  .course-info h3 {
    font-size: 15px;
  }

  .course-info p {
    font-size: 13px;
    line-height: 1.45;
    max-height: calc(1.45em * 4);
    background: none;       /* remove dark overlay */
    position: static;
  }

  .course-info p::after {
    display: none !important;
    content: none !important;
  }

  .read-more-btn {
    width: auto;
    font-size: 12px;
    padding: 10px 10px;
  }

  .prev, .next {
    display: none; /* hide nav arrows on mobile */
  }
}

/* 💡 Main mobile optimization (<= 700px) */
@media (max-width: 750px) {
  .slider {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-inline: 10px;
  }

  .course-card {
    width: 30%;
    max-width: 220px;
    height: 120px;
    margin-bottom: 10px;
  }

  .course-card img {
    height: 100px;
    object-fit: cover;
  }

  .course-info h3 {
    font-size: 15px;
  }

  .course-info p {
    font-size: 13px;
    line-height: 1.45;
    max-height: calc(1.45em * 4);
    background: none;       /* remove dark overlay */
    position: static;
  }

  .course-info p::after {
    display: none !important;
    content: none !important;
  }

  .read-more-btn {
    width: auto;
    font-size: 12px;
    padding: 10px 10px;
  }

  .prev, .next {
    display: none; /* hide nav arrows on mobile */
  }
}

/* 💡 Main mobile optimization (<= 700px) */
@media (max-width: 700px) {
  .slider {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-inline: 10px;
  }

  .course-card {
    width: 30%;
    max-width: 220px;
    height: 120px;
    margin-bottom: 10px;
  }

  .course-card img {
    height: 100px;
    object-fit: cover;
  }

  .course-info h3 {
    font-size: 15px;
  }

  .course-info p {
    font-size: 13px;
    line-height: 1.45;
    max-height: calc(1.45em * 4);
    background: none;       /* remove dark overlay */
    position: static;
  }

  .course-info p::after {
    display: none !important;
    content: none !important;
  }

  .read-more-btn {
    width: auto;
    font-size: 12px;
    padding: 10px 10px;
  }

  .prev, .next {
    display: none; /* hide nav arrows on mobile */
  }
}

/* 📱 Extra small phones (<= 480px) */
@media (max-width: 480px) {
  .course-card {
    width: 20%;
    max-width: 200px;
    height: 80px;
    margin: 0 auto 10px;
  }

  .course-card img {
    height: 100px;
    object-fit: cover;
  }

  .course-info h3 {
    font-size: 14px;
  }

  .course-info p {
    font-size: 13px;
    max-height: calc(1.4em * 4);
    color: #ffffff; /* clean text color */
    background: none; /* no dark overlay */
    position: static;
  }

  /* ✂️ Remove the black patch (gradient/overlay) */
  .course-info p::after {
    display: none !important;
    background: none !important;
    content: none !important;
  }

  .read-more-btn {
    width: auto;
    padding: 10px 14px;
  }
}

/* sylabuss */
h1.new {
  padding: 40px;
  font-size: 2rem;
  color: #ff6600; /* blue color */
  margin-bottom: 5px;
  text-align: center; /* optional: center it */
  font-weight: 700;    /* optional: make it slightly bold */
  
}

  .card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    
  }

  /* sylabuscard */
  .grade-card {
    background: #00376d;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    width: 180px;
    text-align: center;
    transition: transform 0.3s;
    cursor: pointer;
  }

  .grade-card:hover {
    transform: translateY(-5px);
  }

  .grade-card img {
    width: 100%;
    height: 130px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    object-fit: cover;
  }

  .card-content {
    padding: 15px;
  }

  .card-content h2 {
    margin-bottom: 10px;
    color: #ffffff;
  }

  .subjects {
    display: none;
    text-align: left;
    margin-top: 10px;
    color: #555;
  }

  .subjects li {
    margin-bottom: 5px;
  }

  .syllabus-btn {
    margin-top: 10px;
    background: #ff6600;
    color: #fff;
    border: none;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700px;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;   /* remove underline */
  display: inline-block;   /* makes the link behave like a button */
  }

  .syllabus-btn:hover {
    background: #0085f1;
  }


/* ================= MOBILE RESPONSIVE FIX ================== */
@media (max-width: 768px) {

  /* Hero Section */
  .hero {
    height: 800px;
    padding: 20px 15px;
  }

  .hero-content h1 {
    font-size: 1.6rem;
    text-align: center;
  }

  .hero-content p {
    font-size: 0.9rem;
    text-align: center;
  }

  .stats {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  /* Welcome card & news box */
  .welcome-section {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }
  .welcome-card, .news-box {
    width: 100%;    /* ganata full */
    margin: 0 auto; /* center */
  }

  /* Services cards */
  .service-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .card img {
    height: 180px;
  }

  /* Event cards */
  .events .event-card {
    width: 90%;
    height: auto;
    margin: 0 auto 20px;
  }
  .events .event-card img {
    height: auto;
    max-height: 220px;
  }

  /* Staff cards */
  .staff-cards, .non-staff-cards {
    flex-direction: column;
    gap: 20px;
  }
  .staff-card, .non-staff-card {
    width: 90%;
    margin: 0 auto;
    height: auto;
  }

  /* News left + right */
  .news-section {
    flex-direction: column;
    height: auto;
    gap: 20px;
    padding: 15px;
  }
  .news-left, .news-right {
    width: 100%;
    height: auto;
  }
  .news-left img, .news-right img {
    width: 80%;
    height: auto;
  }

  /* Sponsor slider */
  .sponsor-card {
    flex: 0 0 120px;
    height: 80px;
  }

  /* Courses cards */
  .course-card {
    width: 90%;
    height: auto;
  
    
  }
  .course-card img {
    height: 200px;
  }
}
  

 /* Section */
.feedback-section {
  background: #fdfcfb;
  text-align: center;
  max-width: 1350px;
  margin: auto;
  position: relative;
  padding: 10px;
 
}

.feedback-section h2 {
  font-size: 2rem;
  color: #ff6600;
  font-weight: 700;
    text-align: center;
    margin: 10px 0 10px;
    position: relative;
  
}

.feedback-slider {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.feedback-track {
  display: flex;
  gap: 20px;
  overflow-x: hidden;
  scroll-behavior: smooth;
  padding: 30px;
}

.feedback-card {
  flex: 0 0 calc(33.333% - 20px);
  background: #fff;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: left;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.feedback-card:hover {
  transform: translateY(-6px);
}

.feedback-top {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.feedback-top img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
  border: 2px solid #ff8c00;
}

.feedback-top h4 {
  margin: 0;
  font-size: 1.1rem;
  color: #222;
}
.feedback-top p {
  font-size: 0.9rem;
  color: #777;
}

.feedback-text {
  font-style: italic;
  color: #444;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Desktop (large) — 4 cards per row-ish (depending on container) */
@media (min-width: 1201px) {
  .feedback-card { flex: 0 0 calc(25% - 24px); }
}

/* Small desktop / large tablet — 3 cards per row */
@media (min-width: 901px) and (max-width: 1200px) {
  .feedback-card { flex: 0 0 calc(33.333% - 20px); }
}

/* Tablet / phablet — 2 cards per row (bigger than your old 900 breakpoint) */
@media (min-width: 601px) and (max-width: 900px) {
  .feedback-card { flex: 0 0 calc(50% - 18px); }
}

/* Mobile — single column, full width with side padding */
/* This makes cards look bigger on small phones */
@media (max-width: 600px) {
  .feedback-card {
    flex: 0 0 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 16px;   /* optional — gives breathing room inside card */
    padding-right: 16px;  /* optional */
    box-sizing: border-box;
  }

  /* if you use a container with side padding, consider removing extra gap */
  .feedback-track { gap: 12px; }
}

/* Extra small phones — slightly taller cards for readability */
@media (max-width: 420px) {
  .feedback-card { padding-top: 18px; padding-bottom: 18px; }
}


  