* {
  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: 4px;
}

.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;
}

.course-highlight-box {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  background: linear-gradient(135deg, #e0f0ff, #e59de0);
  border-radius: 15px;
  padding: 20px 20px;
  margin: 20px 0 20px 0;        /* Remove auto centering */
  box-shadow: 0 8px 16px rgba(0, 85, 255, 0.15);
  border-left: 8px solid #007bff;
  border-right: 8px solid #007bff;
  
  transition: all 0.3s ease;
  max-width: 800px;             /* Smaller on large screens */
  width: 60%;       
   animation: slideLeftToRight 4s reverse infinite;
  position: relative;            /* Takes 60% width */
}

@keyframes slideLeftToRight {
  0% { left: 100px; opacity: .8; }
  50% { left: 0; opacity: 1; }
  100% { left: 100px; opacity: .8; }
}

.course-highlight-item {
  display: flex;
  align-items: center;
  flex: 1 1 200px;
  min-width: 220px;
  background: #fff;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.course-highlight-item:hover {
  transform: scale(1.03);
}

.course-highlight-item .icon {
  font-size: 30px;
  margin-right: 15px;
  color: #007bff;
  flex-shrink: 0;
}

.course-highlight-item h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.course-highlight-item p {
  margin: 3px 0 0;
  font-size: 15px;
  color: #555;
}

/* ✅ Mobile Responsive */
@media (max-width: 768px) {
  .course-highlight-box {
    width: 90%;              /* Slightly wider on mobile */
    padding: 15px;
  }

  .course-highlight-item {
    flex: 1 1 100%;
    justify-content: flex-start;
    padding: 12px 15px;
  }

  .course-highlight-item .icon {
    font-size: 26px;
    margin-right: 12px;
  }

  .course-highlight-item h4 {
    font-size: 16px;
  }

  .course-highlight-item p {
    font-size: 14px;
  }
}

.main-content-wrapper {
  display: flex;
  gap: 20px;
  margin: 40px 20px;
}

.topics-container {
  width: 60%;
  margin: 0px 0 0px 0px;
    background: linear-gradient(to right, #ece9ec, #e1dedb);
  padding: 30px 30px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.1);
  font-family: 'Segoe UI', sans-serif;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: slideInLeft 0.8s ease forwards;
}
  
.topics-container:hover {
  transform: scale(1.01);
  box-shadow: 0 10px 30px rgba(195, 2, 95, 0.2);
}

/* Responsive */  
@media (max-width: 768px) {
  .topics-container {
    width: 90%;
    margin: 20px auto;
  }
}

.topic {
  border-bottom: 1px solid #ddd;
  cursor: pointer;
  padding: 15px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s ease;
  background-color: #fefefe;
  border-radius: 10px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.topic:hover {
  background-color: #e3f2fd;
  transform: translateX(5px);
}

.topic h3 {
  margin: 0;
  font-size: 18px;
  color: #007BFF;
  font-weight: 600;
  transition: color 0.3s ease;
}

.icon {
  font-weight: bold;
  font-size: 16px;
  color: #007BFF;
  transition: transform 0.3s ease;
}

.active .icon {
  transform: rotate(90deg);
}

.subtopics {
  display: none;
  background: #f4f9ff;
  padding: 15px 25px;
  border-left: 5px solid #007BFF;
  border-radius: 10px 10px 10px 10px;
  animation: fadeIn 0.4s ease-in-out;
}

.subtopics ul {
  margin: 0;
  padding: 0;
  list-style: disc;
  padding-left: 20px;
}

.subtopics li {
  margin: 10px 0;
  color: #444;
  font-size: 16px;
  transition: color 0.5s;
}
.subtopics li:hover {
  color: #007BFF;
  cursor: pointer;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}


/* ==== 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);
  }
}


/* ==== 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;
}