body {margin:0;font-family:Arial,sans-serif;}
/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 5px 30px; /* reduces navbar height */
  z-index: 1000;
  transition: background 0.4s ease, box-shadow 0.4s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(50, 50, 50, 0.95);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.navbar .logo img {
  height: 100px;
  width: auto; 
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: #1f8f82;
}

.login-btn {
  background: #1f8f82;
  color: #fff;
  padding: 6px 12px;
  border-radius: 5px;
}

/* Hero Video Section */
.hero-video-section {
  position: relative;
  width: 100%;
  height: 100vh; /* full viewport height */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.hero-content h1 {
  font-size: 3.5rem; /* bigger headline */
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 30px;
}

/* Our Courses Button on Video */
.hero-content .btn-primary {
  display: inline-block;
  background: #1f8f82;
  color: #fff;
  padding: 15px 30px;
  font-size: 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s;
}

.hero-content .btn-primary:hover {
  background: #166e63;
}

/* Prevent horizontal scroll */
body, html {
  overflow-x: hidden;
}


/* Courses */
.courses{
    padding:60px 0;
    text-align:center;
}

.courses-grid{
    display:flex;
    flex-wrap:wrap;
    gap:30px;
    justify-content:center;
}

.course-link{
    text-decoration:none;
    color:inherit;
    display:block;
}

.course-card{
    width:200px;
    height:200px;
    border-radius:50%;
    background-size:cover;
    background-position:center;
    position:relative;
    overflow:hidden;
    cursor:pointer;
}

.course-card .overlay{
    position:absolute;
    top:100%;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.7);
    color:#fff;
    display:flex;
    justify-content:center;
    align-items:center;
    transition:top 0.5s;
}

.course-card:hover .overlay{
    top:0;
}

/* Services */
.services{padding:60px 0;background:#f9f9f9;text-align:center;}
.services-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.service-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  width: 280px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform .3s;
}
.service-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.service-card:hover {
  transform: translateY(-6px);
}
.service-card h3 {
  margin: 15px 0 8px;
  font-size: 18px;
}
.service-card p {
  padding: 0 15px 20px;
  font-size: 14px;
  color: #555;
}

/* Counters */
.counters{padding:60px 0;background:#1f8f82;color:#fff;text-align:center;}
.counter-grid{display:flex;justify-content:center;gap:80px;}
.counter{position:relative;}
.counter-icon{font-size:60px;opacity:0.2;position:absolute;top:-30px;left:50%;transform:translateX(-50%);}
.counter h3 { font-size: 2.5rem; margin: 20px 0 5px; }

/* Counter */
.counter h3 {
  font-size: 2.5rem;
  margin: 20px 0 5px;
}
.news {
  position: relative; /* for overlay */
  padding: 60px 0;
  text-align: center;
  background: url('../images/news_back.jpg') no-repeat center center; /* correct relative path */
  background-size: cover;
  background-attachment: fixed; /* optional parallax */
  color: #fff; /* text color over image */
}

/* Overlay for better readability */
.news::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* semi-transparent dark overlay */
  z-index: 1;
}

.news .container {
  position: relative;
  z-index: 2; /* content appears above overlay */
}

.news-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.news-card {
  background: rgba(255, 255, 255, 0.95); /* slightly transparent for blending with bg */
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  width: 280px;
  transition: transform 0.3s;
  color: #333;
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.full-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease;
  color: #555;
  padding-top: 0;
  margin-top: 0;
}

.readmore-btn {
  background: #1f8f82;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.3s;
}

.readmore-btn:hover {
  background: #166e63;
}

.view-all-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #333;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s;
  margin-top: 20px;
}

.view-all-btn:hover {
  background: #1f8f82;
}

/* Feedback Header */
.feedback-header {
  background: #e0e0e0; /* grey section */
  padding: 40px 0;
  text-align: center;
}

.feedback-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: #333;
}

/* Feedback Section */
.feedback {
  padding: 80px 20px; /* more vertical space */
  text-align: center;
  position: relative;
}

.faq-section {
    padding: 80px 20px; /* increase top and bottom padding */
    background: url('../images/faq_back.jpg') center/cover no-repeat fixed;
    color: #fff;
}

.faq-section h2 {
    text-align: center;  
    font-size: 36px;
    margin-bottom: 40px;
    font-weight: 700;
}

.feedback .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4); /* dark overlay */
  z-index: 1;
}

.feedback .container {
  position: relative;
  z-index: 2;
}

.feedback-grid {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.feedback-card {
  background: rgba(255,255,255,0.95); /* stand out from bg */
  border-radius: 15px;
  padding: 30px 20px;
  width: 320px; /* increased size */
  margin: 15px;
  color: #333;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feedback-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.feedback-card p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 15px;
 
}

.feedback-card .name i {
  margin-right: 5px;
  color: #1f8f82; /* optional color for the icon */
}

.feedback-card h4 {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
}

.feedback-card .stars i {
  color: #f5c518; /* gold color */
  margin-right: 2px;
  font-size: 18px;
}

.faq-container {
  max-width: 800px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: 0.3s;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 15px 20px;
  background: #387d69;
  color: white;
  font-size: 20px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.faq-question.active {
  background: #2f6555;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  background: #f9f9f9;
  color: #333;
  transition: max-height 0.5s ease, padding 0.5s ease;
}

.faq-answer.open {
  max-height: 400px;
  padding: 15px 20px;
}
/* Footer */
.footer {
  background: #222;
  color: #ccc;
  padding: 50px 20px;
  text-align: left;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-left, .footer-right {
  flex: 1;
  min-width: 250px;
}

.footer h5 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 18px;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer ul li {
  margin-bottom: 12px;
  font-size: 14px;
}

.footer ul li i {
  margin-right: 10px;
  color: #1f8f82;
}

.footer .social-links {
  display: flex;
  gap: 15px;
}

.footer .social-links a {
  color: #ccc;
  font-size: 18px;
  transition: color 0.3s;
}

.footer .social-links a:hover {
  color: #1f8f82;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid #444;
  padding-top: 15px;
  font-size: 13px;
  color: #aaa;
}
