:root {
  --primary: #007bff;
  --light-bg: #f2f2f7;
  --light-card: #fff;
  --dark-bg: #1e1e2f;
  --dark-card: #2a2a3d;
  --text-light: #333;
  --text-dark: #eee;
  --dark-toggle-bg: #44475a;
  --dark-toggle-text: #eee;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background-color: #f7f7f7;
  color: #333;
}

:root {
  --primary: #1a73e8;
  --secondary: #edf5ef;
  --dark: #202124;
  --light: #f8f9fa;
  --accent: #fbbc05;
  --danger: #ea4335;
    --news-item-height: 80px; /* Adjust to resize news cards */
  --news-item-padding: 20px 20px;
}

/* ==== Header General Styles ==== */
header {
  position: relative;
  width: 100%;
  top: 0;
  z-index: 500;
}

/* ==== Top Bar ==== */
.top-bar {
  background: linear-gradient(90deg, #1a73e8, #1e5113);
  color: white;
  font-size: 16px;
  padding: 5px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar span {
  color: white;
}

/* ==== Call Request Button ==== */
.call-request-btn {
  background-color: #ff5722;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  animation: glowPulse 1s infinite alternate;
}

@keyframes glowPulse {
  0% {
    background-color: #ff5722;
    box-shadow: 0 0 10px #ff5722, 0 0 20px #ff5722;
  }
  100% {
    background-color: #f9e803;
    box-shadow: 0 0 10px #00bcd4, 0 0 20px #00bcd4;
  }
}

.call-request-btn:hover {
  background-color: #e64a19;
  box-shadow: 0 0 15px #00bcd4, 0 0 25px #00bcd4;
}

/* ==== Middle Bar ==== */
.middle-bar {
  background: white;
  text-align: left;
  padding: 10px 20px;
  transition: transform 0.8s ease, opacity 0.8s ease;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.logo-container img {
  height: 65px;
  transition: transform 0.3s ease;
}

.logo-container img:hover {
  transform: scale(1.1);
}

h5.animated-h5 {
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: none;
  font-family: 'Decorative', sans-serif;
  margin-top: 30px;
  text-align: left;
  padding-left: 50px;

  background: linear-gradient(90deg, #011832, #ab1d26, #270a22);
  background-size: auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: slideGradient 4s ease-in-out infinite;

  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  letter-spacing: 1px;
}

@keyframes slideGradient {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}


@keyframes gradientFlow {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

/* ==== Social Links ==== */
.social-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.social-links span {
  font-weight: bold;
  font-size: 18px;
  background: linear-gradient(45deg, #ff0000, #00ff00, #0000ff, #ff00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 300% 300%;
  animation: gradientShift 3s infinite linear;
}

.social-links img {
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease;
}

.social-links img:hover {
  transform: scale(1.3);
}

/* ==== Menu Bar ==== */
.menu-bar {
  background: var(--primary);
}

.menu-bar ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.menu-bar ul li a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: white;
}

.menu-bar ul li a:hover {
  background-color: #6b0dbe;
  color: #fff;
}

/* ==== Sticky Menu Bar on Scroll ==== */
.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  animation: slideDown 0.3s ease-in-out;
}

@keyframes slideDown {
  from { top: -60px; opacity: 0; }
  to { top: 0; opacity: 1; }
}

/* ==== Responsive (Optional) ==== */
@media (max-width: 768px) {
  .logo-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-bar ul {
    flex-direction: column;
    width: 100%;
  }

  .menu-bar ul li a {
    padding: 12px;
  }
}

.menu-bar {
  background: var(--primary);
}

.menu-bar ul {
  list-style: none;
  display: flex;
}

.menu-bar ul li a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  padding: 16px 20px;
  display: block;
}

.menu-bar ul li a:hover {
  background: #012243;
  border-radius: 12px;
}

.menu-bar.sticky {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--primary);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

.hide-top {
  transform: translateY(-100%);
  opacity: 0;
}

.tabs {
  display: flex;
  justify-content: left;
  padding: 40px;
  gap: 20px;
  margin: 0px 0px 0px;
}

.tab-btn {
  padding: 15px 30px;
  font-size: 20px;
  font-weight: 500;
  border: 2px solid var(--primary);
  background: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn.active,
.tab-btn:hover {
  background-color: var(--primary);
  color: #fff;
}

/* Main wrapper for two-column layout */
/* Main wrapper for two-column layout */
.main-wrapper {
  display: flex;
  max-width: 1300px;
  margin: auto;
  padding: 20px;
  gap: 30px;
  flex-wrap: wrap;
}

/* Course Section: 65% */
.course-section {
  flex: 1 1 60%;
}

/* Grid layout */
.course-grid {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.course-grid.active {
  display: grid;
}

/* Course card with animation */
.course-card {
  background-color: #f6eef3;
  border: 2px solid #b154e3; /* Pink border */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(233, 30, 99, 0.1); /* subtle pink shadow */
  transition: all 0.4s ease, transform 0.3s ease;
  cursor: pointer;
  text-align: center;
  transform: translateY(30px);
  opacity: 0;
  animation: fadeSlideUp 0.8s ease forwards;
}

/* Glow effect on hover */
.course-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow:
    0 0 10px #f06090,
    0 0 20px #e8b1c3,
    0 0 30px #f48fb1;
  border-color: #e8b7c7;
}


/* Staggered delay for smooth load-in */
.course-card:nth-child(1) { animation-delay: 0.1s; }
.course-card:nth-child(2) { animation-delay: 0.3s; }
.course-card:nth-child(3) { animation-delay: 0.5s; }
.course-card:nth-child(4) { animation-delay: 0.7s; }
.course-card:nth-child(5) { animation-delay: 0.9s; }
.course-card:nth-child(6) { animation-delay: 1.1s; }
.course-card:nth-child(7) { animation-delay: 1.3s; }
.course-card:nth-child(8) { animation-delay: 1.5s; }
.course-card:nth-child(9) { animation-delay: 1.7s; }
.course-card:nth-child(10) { animation-delay: 1.9s; }
.course-card:nth-child(11) { animation-delay: 2.1s; }
.course-card:nth-child(12) { animation-delay: 2.3s; }
.course-card:nth-child(13) { animation-delay: 2.5s; }
.course-card:nth-child(14) { animation-delay: 2.7s; }

@keyframes fadeSlideUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}.badge-new {
  position: absolute;
  top: 8px;
  right: 8px; /* Changed from left to right */
  background: linear-gradient(45deg, #e94e0b, #ff0000); /* Yellow to Red */
  color: #fefdfd;
  padding: 4px 6px;
  font-size: 8px;
  font-weight: 700;
  font-family: 'Segoe UI', sans-serif;
  border-radius: 20px;
  box-shadow: 0 0 15px rgba(240, 148, 19, 0.8), 0 0 30px rgba(255, 0, 0, 0.7);
  animation: pulse-glow 1s infinite alternate;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@keyframes pulse-glow {
  0% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(255, 235, 59, 0.7), 0 0 20px rgba(255, 0, 0, 0.5);
  }
  100% {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 235, 59, 1), 0 0 40px rgba(255, 0, 0, 0.9);
  }
}


/* Course image styling */
.course-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 2px solid #db81f9;
}

/* Course title styling */
.course-card h4 {
  font-size: 17px;
  padding: 14px 10px;
  font-weight: 600;
  color: #333;
  transition: color 0.3s ease;
}

/* Hover color change */
.course-card:hover h4 {
  color: #007acc;
}

/* Remove dark mode styles completely */

/* ==== Online Enquiry ==== */

.enquiry-container {
  width: 35%;
  background: linear-gradient(to right, #e8e1d1, #f7ebf0);
  height: 550px;
  padding: 30px 30px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(248, 116, 200, 0.2);
  font-family: 'Segoe UI', sans-serif;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: slideInRight 0.8s ease forwards;
}

.enquiry-container:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(230, 62, 168, 0.4);
}

.enquiry-container h2 {
  margin-bottom: 20px;
  font-size: 28px;
  background: linear-gradient(to right, #e91e63, #3633f5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

.enquiry-container label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
  color: #8013ab;
  font-size: 14px;
}

.enquiry-container input,
.enquiry-container select {
  width: 100%;
  padding: 12px 10px;
  margin-top: 6px;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  font-size: 14px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: #fdfbff;
}

.enquiry-container input:focus,
.enquiry-container select:focus {
  border-color: #e91e63;
  box-shadow: 0 0 8px rgba(233, 29, 158, 0.3);
  outline: none;
}

.form-buttons {
  margin-top: 25px;
  display: flex;
  gap: 15px;
}

.form-buttons button {
  flex: 1;
  padding: 12px 0;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  color: white;
  background: linear-gradient(135deg, #7e4ae5, #8e24aa);
  transition: background 0.3s ease, transform 0.2s ease;
}

.form-buttons button[type="reset"] {
  background: linear-gradient(135deg, #9a7bee, #8e24aa);
}

.form-buttons button:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.form-message {
  margin-top: 20px;
  font-weight: bold;
  color: #27ae60;
  font-size: 18px;
  text-align: center;
  animation: fadeIn 0.6s ease;
}

/* Animations */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



.course-card.coming-soon {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}

.course-card .coming-label {
  background-color: #ff4d4d;
  color: #fff;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 20px;
  display: inline-block;
  margin: 10px 0;
}


/* ==== Footer ==== */
footer {
  background: linear-gradient(to bottom, #1a73e8, white, white, #1a73e8);
  color: #a90202; /* Choose either this or rgb(234, 6, 6) */
  font-family: Arial, sans-serif;
  text-align: center;
  padding: 40px 20px 20px;
}


.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-section {
  flex: 1 1 220px;
  text-align: justify;
}

.footer-section h3 {
  font-size: 20px;
  margin-bottom: 15px;
  border-bottom: 4px solid #cfef02;
  display: inline-block;
  
}

.footer-section p,
.footer-section a,
.footer-section li {
  font-size: 16px;
  line-height: 1.6;
  color: #171313;
  text-decoration: none;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  margin-bottom: 8px;
}

.footer-section a:hover {
  text-decoration:underline;
  color: #19b501;
}

.designed-by {
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
  color: #4e410b;
}
.footer-bottom {
  text-align: center;
  border-top: 1px solid #130f0f;
  padding-top: 15px;
  margin-top: 20px;
  font-size: 17px;
  color:#0f0189;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.footer-section.social a {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 5px 0;
  color: rgb(20, 18, 18);
  text-decoration: none;
}
.footer-section.social a:hover {
  text-decoration:underline;
  color: #19b501;
}


.footer-section.social a img {
  width: 30px;
  height: 30px;
}