/* =============================
   GLOBAL STYLES
============================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", "Segoe UI", sans-serif;
  line-height: 1.6;
  background: #fdfdfd;
  color: #222;
}

a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3, h4 {
  font-weight: 700;
  margin-bottom: 15px;
}

p {
  margin-bottom: 15px;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* =============================
   HEADER & NAVBAR
============================= */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #111;
  color: #fff;
  padding: 15px 40px;
  position: sticky;
  top: 0;
  z-index: 999;
}

header .logo img {
  height: 100px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links li a {
  color: #fff;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: #00aaff;
}

.hamburger {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 0;
    background: #111;
    width: 220px;
    padding: 20px;
  }
  .nav-links.show {
    display: flex;
  }
  .hamburger {
    display: block;
  }
}

/* =============================
   HERO SECTION
============================= */
.hero {
  background: url("images/hero-bg.jpg") center/cover no-repeat;
  padding: 120px 20px;
  color: #fff;
  text-align: center;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.55);
}

.hero h2, .hero p, .hero .cta-buttons {
  position: relative;
  z-index: 2;
}

.hero h2 {
  font-size: 2.8rem;
  margin-bottom: 15px;
}

.hero p {
  max-width: 600px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.cta {
  background: #00aaff;
  padding: 12px 25px;
  border-radius: 8px;
  color: #fff;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
}

.cta:hover {
  background: #008ecc;
  transform: scale(1.05);
}

/* =============================
   ABOUT SECTION
============================= */
.about {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 60px 20px;
  gap: 40px;
}

.about-text {
  flex: 1;
}

.about-img {
  flex: 1;
}

.about-img img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.media-logo img {
  width: 10%;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.institute-logo img {
  width: 10%;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* =============================
   PROGRAMS SECTION
============================= */
.programs {
  padding: 60px 20px;
  text-align: center;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.program-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  padding: 20px;
  transition: transform 0.3s ease;
}

.program-card:hover {
  transform: translateY(-6px);
}

.program-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
}

/* =============================
   BLOG LIST
============================= */
.blog {
  padding: 60px 20px;
  background: #fafafa;
}

.blog h3 {
  text-align: center;
  margin-bottom: 40px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.blog-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-card h4 {
  padding: 15px;
  font-size: 1.2rem;
}

.blog-card p {
  padding: 0 15px 15px;
  color: #e05707;
}

.blog-card a {
  display: block;
  padding: 12px 15px;
  background: #00aaff;
  color: #fff;
  text-align: center;
  font-weight: bold;
  transition: background 0.3s ease;
}

.blog-card a:hover {
  background: #008ecc;
}

/* =============================
   SINGLE BLOG POST
============================= */
.single-post {
  padding: 60px 20px;
  max-width: 800px;
  margin: auto;
}

.post img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 20px;
}

.post h2 {
  margin-bottom: 20px;
  font-size: 2rem;
}

.post-body p {
  margin-bottom: 20px;
  color: #e05707;
}

.share-buttons {
  margin: 30px 0;
}

.share-buttons p {
  font-weight: bold;
  margin-bottom: 10px;
}

.share-buttons a {
  margin-right: 10px;
  padding: 8px 15px;
  background: #eee;
  border-radius: 6px;
  transition: background 0.3s;
}

.share-buttons a:hover {
  background: #ddd;
}

.back-link {
  display: inline-block;
  margin-top: 20px;
  color: #00aaff;
  font-weight: bold;
}

/* =============================
   LOAD MORE BUTTON
============================= */
.load-more {
  text-align: center;
  margin-top: 30px;
}

.load-more .cta {
  background: #00aaff;
  padding: 12px 25px;
  border-radius: 8px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.load-more .cta:hover {
  background: #008ecc;
  transform: scale(1.05);
}


/* =============================
   CONTACT FORM
============================= */
.contact {
  padding: 60px 20px;
  text-align: center;
  background: #f9f9f9;
}

.contact h3 {
  margin-bottom: 30px;
}

.contact-form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-top: 3px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.success-message {
  color: green;
  margin-top: 15px;
  font-weight: bold;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* =============================
   ENROLL CTA
============================= */
.enroll-cta {
  text-align: center;
  padding: 60px 20px;
  background: #00aaff;
  color: #fff;
}

.enroll-cta h3 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.enroll-cta p {
  margin-bottom: 20px;
}


/* =============================
   FOOTER (Dark Version)
============================= */
.footer {
  background: #000;
  color: #fff;
  padding: 50px 20px 20px;
  margin-top: 50px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}

.footer-column {
  flex: 1;
  min-width: 250px;
}

.footer-column h4 {
  margin-bottom: 15px;
  font-size: 1.2rem;
  color: #0077cc; /* Accent orange */
}

.footer-column p,
.footer-column li,
.footer-column a {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column li {
  margin-bottom: 8px;
}

.footer-column a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: #00aaff;
}

.footer-column i {
  margin-right: 10px;
  color: #00aaff;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  margin-top: 40px;
  padding-top: 15px;
  font-size: 0.9rem;
  color: #888;
}

/* =============================
   FLOATING WHATSAPP BUTTON
============================= */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%; /* ensures perfect circle */
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease-in-out;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* =============================
   BACK TO TOP BUTTON
============================= */
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 80px; /* moved left so it doesn’t overlap WhatsApp */
  background: #00aaff;
  color: #fff;
  padding: 12px 16px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: opacity 0.3s ease, visibility 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 999; /* just below WhatsApp */
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
}

/* =============================
   FLOATING BUTTONS TOOLTIP
============================= */
.floating-btn {
  position: relative;
}

.floating-btn span.tooltip {
  position: absolute;
  right: 70px; /* tooltip on the left side */
  top: 50%;
  transform: translateY(-50%);
  background: #111;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.floating-btn:hover span.tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(-5px);
}

/* ===== ADMISSION FORM MESSAGES ===== */
.success-message {
  display: none;
  margin-top: 20px;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  background: #e6ffed;
  color: #0f9d58; /* green shade */
  border: 1px solid #b7e4c7;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.error-message {
  display: none;
  margin-top: 20px;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  background: #ffe6e6;
  color: #d93025; /* red shade */
  border: 1px solid #f5b5b5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}


.success-message, .error-message {
  position: relative;
  margin-top: 10px;
  padding: 12px 40px 12px 12px;
  border-radius: 8px;
  font-size: 14px;
  animation: fadeIn 0.5s ease-in;
}

.success-message {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  cursor: pointer;
  font-weight: bold;
  color: inherit;
  font-size: 18px;
}

/* Blog Section */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.blog-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-card h4 {
  font-size: 18px;
  margin: 15px;
}

.blog-card p {
  margin: 0 15px 15px;
  font-size: 14px;
  color: #444;
}

.blog-card a {
  display: inline-block;
  margin: 0 15px 15px;
  color: #0077cc;
  text-decoration: none;
  font-weight: bold;
}

.blog-card:hover {
  transform: translateY(-5px);
}

/* Hidden posts */
.blog-card.hidden {
  display: none;
}

/* Load More button */
.load-more {
  text-align: center;
  margin-top: 20px;
}

.load-more .cta {
  padding: 10px 20px;
  font-size: 16px;
}

/* ===== BLOG GRID RESPONSIVENESS ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.blog-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 15px;
  text-align: center;
  transition: transform 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* Tablets */
@media (max-width: 992px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-card {
    padding: 10px;
  }

  .load-more {
    text-align: center;
    margin-top: 20px;
  }

  .load-more button {
    width: 100%;
    max-width: 250px;
  }
}

/* ===== NAVIGATION ===== */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

/* ===== MOBILE MENU ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #222;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 20px;
  }

  .nav-links li {
    margin: 15px 0;
  }

  .nav-links li a {
    color: #fff;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }
}
