/* ==========================================================
   COLOR PALETTE & GLOBAL SETTINGS
   ========================================================== */
:root {
  --yaba-green: #006837;   /* Deep green */
  --yaba-light: #00a651;   /* Lighter green */
  --accent: #ffd400;       /* Warm gold */
  --muted: #6c757d;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

/* ==========================================================
   HEADER & NAVIGATION
   ========================================================== */

/* Top Bar */
.top-bar {
  background: #004d26;
  color: #fff;
  font-size: 0.9rem;
}
.top-bar .social-icons a {
  color: var(--accent);
  margin-left: 10px;
  transition: color 0.3s ease;
}
.top-bar .social-icons a:hover {
  color: #fff;
}

/* Navbar */
.navbar {
  background: #072d18;
}
.navbar-brand img {
  height: 60px;
  width: auto;
}
.navbar-brand .brand-title {
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
}
.navbar-brand .brand-sub {
  font-size: 0.9rem;
  color: var(--accent);
}
.navbar-nav .nav-link {
  color: #fff !important;
  font-weight: 500;
  margin: 0 6px;
  transition: color 0.3s ease;
}
.navbar-nav .nav-link:hover {
  color: var(--accent) !important;
}
.sticky-top {
  background: linear-gradient(90deg, var(--yaba-green), #005a2b);
}

/* Gold Button */
.btn-gold {
  background: var(--accent);
  color: #004d26;
  font-weight: 600;
  border-radius: 20px;
  transition: all 0.3s ease;
}
.btn-gold:hover {
  background: #e6c200;
}

/* Optional: Active link styling */
.nav-link.active {
  color: #FFD700 !important;
  font-weight: 600;
}

/* ==========================================================
   NOTICE BAR (Continuous Scrolling)
   ========================================================== */
.notice-bar {
  background: #FFD700;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.notice-track {
  display: inline-block;
  white-space: nowrap;
  animation: scrollLeft 25s linear infinite;
}

.notice-track p {
  display: inline-block;
  margin: 0;
  padding: 0 3rem;
  font-size: 15px;
  color: #333;
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ==========================================================
   HERO SECTION
   ========================================================== */
.hero-caption {
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  padding: 1.2rem;
  border-radius: 8px;
}

/* ==========================================================
   SECTIONS & CONTENT
   ========================================================== */
.section-title {
  color: var(--yaba-green);
  font-weight: 700;
}

/* Services */
.service-card {
  border-radius: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Why Choose Us Animated Cards */
.animated-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 8px 30px rgba(2, 48, 32, 0.08);
}
.animated-card:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 0 18px 40px rgba(2, 48, 32, 0.18);
}

/* Testimonials */
.testimonial-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
  transition: all 0.5s ease;
  animation: fadeInUp 1s;
}
.testimonial-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}
.testimonial-card .quote {
  font-size: 1.1rem;
  font-style: italic;
  color: #444;
}
.avatar img {
  border: 4px solid var(--accent);
  width: 100px;
  height: 100px;
  object-fit: cover;
}
.text-yaba {
  color: var(--yaba-green);
}

/* News Cards */
.news-card {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  animation: fadeInUp 0.9s ease both;
}
.news-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
}
.news-img-wrapper {
  overflow: hidden;
  max-height: 200px;
}
.news-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.news-card:hover .news-img {
  transform: scale(1.1);
}
.read-more {
  color: var(--yaba-green);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.25s;
}
.read-more:hover {
  color: var(--accent);
}

/* Fade-in Animation (Shared) */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================
   FOOTER
   ========================================================== */
footer {
  background: linear-gradient(135deg, var(--yaba-green), #004d26);
  color: #e9f7ef;
  padding: 60px 0 30px;
  position: relative;
}
footer h5 {
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--accent);
}
footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
footer ul li {
  margin-bottom: 0.6rem;
}
footer ul li a {
  color: #e9f7ef;
  text-decoration: none;
  transition: all 0.3s ease;
}
footer ul li a:hover {
  color: var(--accent);
  text-decoration: underline;
}
footer .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  margin-right: 10px;
  transition: all 0.3s ease;
}
footer .social-icons a:hover {
  background: var(--accent);
  color: #072d18;
  transform: translateY(-3px);
}
footer .subscribe-form input {
  border-radius: 30px 0 0 30px;
  border: none;
  padding: 0.6rem 1rem;
  outline: none;
}
footer .subscribe-form button {
  border-radius: 0 30px 30px 0;
  border: none;
  padding: 0.6rem 1.2rem;
  background: var(--accent);
  color: #072d18;
  font-weight: 600;
  transition: background 0.3s ease;
}
footer .subscribe-form button:hover {
  background: #f7c600;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 40px;
  padding-top: 20px;
  font-size: 0.9rem;
  color: #bcdac6;
  text-align: center;
}

/* ==========================================================
   MISCELLANEOUS
   ========================================================== */
.text-gold { color: var(--accent); }

#scrollTopBtn {
  position: fixed;
  right: 20px;
  bottom: 24px;
  display: none;
  z-index: 9999;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
}

/* Responsive Tweaks */
@media (max-width: 575px) {
  .hero-caption { padding: 0.8rem; }
}

/* WhatsApp Floating Button */
#whatsapp-btn {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background-color: #25D366;
  color: #fff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  cursor: pointer;
  z-index: 9999;
  transition: transform 0.2s;
}
#whatsapp-btn:hover {
  transform: scale(1.1);
}

/* WhatsApp Chatbox */
#whatsapp-chatbox {
  position: fixed;
  bottom: 100px;
  right: 25px;
  width: 300px;
  background: #fff;
  border-radius: 12px;
  display: none;
  flex-direction: column;
  z-index: 9999;
  overflow: hidden;
  border: 1px solid #ddd;
}
#whatsapp-chatbox .chat-header {
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
#whatsapp-chatbox .chat-body {
  font-size: 14px;
}

#vision-mission .card {
    min-height: 260px; /* Adjust this to set consistent height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  #vision-mission .owl-carousel .card {
    height: 100%;
  }

  .vm-carousel .owl-stage,
  .values-carousel .owl-stage {
    display: flex;
  }

  .vm-carousel .owl-item,
  .values-carousel .owl-item {
    display: flex;
    align-items: stretch;
  }
  
  /* Make carousel items stretch properly */
  .vm-carousel .owl-stage,
  .values-carousel .owl-stage {
    display: flex;
  }

  .vm-carousel .owl-item,
  .values-carousel .owl-item {
    display: flex;
    align-items: stretch;
  }

  /* Card styling */
  #vision-mission .card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 1.5rem;
  }

  /* Responsive heights (no rigid fixed height) */
  @media (min-width: 992px) {
    #vision-mission .card {
      min-height: 280px;
    }
  }

  @media (max-width: 991px) {
    #vision-mission .card {
      min-height: 240px;
    }
  }

  @media (max-width: 576px) {
    #vision-mission .card {
      min-height: auto; /* Let content define height on small screens */
    }
  }

  /* Improve spacing on small devices */
  @media (max-width: 768px) {
    #vision-mission h3 {
      text-align: center;
    }
  }

  /* ==========================================================
   ROBOTICS PROMO SECTIONS (NEW - NON-DESTRUCTIVE)
   ========================================================== */

/* Container override (only for this section if needed) */
.container {
  max-width: 1100px;
}

/* HERO SECTION */
.hero {
  background: linear-gradient(135deg, var(--yaba-green), var(--yaba-light));
  color: #fff;
  padding: 50px 20px;
  text-align: center;
  border-radius: 5px;
  margin-bottom: 25px;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 800;
}

.hero p {
  font-size: 1.2rem;
  color: var(--accent);
}

/* GENERAL SECTION CARD */
.section {
  background: #ffffff;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: 0.3s ease;
}

.section:hover {
  transform: translateY(-4px);
}

/* SECTION HEADINGS */
.section h2 {
  color: var(--yaba-green);
  font-weight: 700;
  margin-bottom: 15px;
}

/* LIST STYLING */
.steps li,
.section ul li {
  margin-bottom: 10px;
  font-size: 15px;
}

.cta-section {
    background: linear-gradient(135deg, #ffefba, #ffd3a5);
    padding: 50px 20px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    margin: 30px auto;
    max-width: 1000px;
    transition: transform 0.3s ease;
}

.cta-section:hover {
    transform: translateY(-5px);
}

.cta-section h2 {
    font-size: 2rem;
    color: #ff5722;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.1rem;
    color: #333;
}

.btn-cta {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    background: #00a651;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background: #006837;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* FLYERS GRID */
.flyers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.flyer {
  background: #f9fdfb;
  padding: 10px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(0, 104, 55, 0.08);
  transition: 0.3s;
}

.flyer:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.flyer img {
  width: 100%;
  border-radius: 10px;
}

/* DOWNLOAD BUTTON */
.flyer .btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 15px;
  background: linear-gradient(135deg, var(--accent), #ffb300);
  color: #072d18;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: 0.3s;
}

.flyer .btn:hover {
  background: #f7c600;
}

/* SHARE BUTTONS */
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.share-buttons a {
  padding: 10px 16px;
  border-radius: 25px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: 0.3s;
}

.share-buttons a:hover {
  transform: translateY(-2px);
}

/* BRAND-CONSISTENT COLORS */
.whatsapp { background: #25D366; }
.facebook { background: #1877f2; }
.twitter { background: #1da1f2; }

/* SMALL DEVICES */
@media (max-width: 576px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .hero {
    padding: 35px 15px;
  }
}

/* Ensure modal content fits nicely */
#courseAdvertModal .modal-dialog {
  max-width: 800px; /* adjust as needed */
}

#courseAdvertModal .modal-body {
  padding: 0;
}

/* Owl Carousel images fit fully */
.advert-carousel img {
  width: 100%;           /* stretch to modal width */
  max-height: 550px;     /* adjust this height as needed */
  object-fit: contain;    /* ensures whole image is visible */
  display: block;
  margin: 0 auto;
}


/* FLEX LAYOUT */
.side-by-side {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;  /* allows stacking on small screens */
  justify-content: center;
  margin: 20px 0;
}

/* CARD STYLING */
.side-by-side .card {
  background: linear-gradient(135deg, #e0f7fa, #b2ebf2);
  border-radius: 15px;
  padding: 25px;
  flex: 1 1 300px; /* responsive: min 300px each */
  min-width: 400px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

/* HOVER ANIMATION */
.side-by-side .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

/* LIST STYLING */
.steps li, .card ul li {
  margin: 10px 0;
  font-weight: 500;
}

/* HIGHLIGHTS */
.highlight-orange { color: #ff5722; }
.highlight-green { color: #0f9b0f; }
.highlight-red { color: #e53935; }

/* FADE-IN ANIMATION */
.animate {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards;
  animation-delay: 0.3s;
}

.side-by-side .card:nth-child(2) {
  animation-delay: 0.6s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .side-by-side {
    flex-direction: column;
    align-items: center;
  }
}

/* Mobile-specific tweaks */
@media (max-width: 768px) {
  .side-by-side .card {
    flex: 1 1 100%; /* stack cards on small screens */
    min-width: auto; /* remove min-width to fit screen */
    padding: 20px;
  }
}

.referral-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.referral-post {
    background: linear-gradient(135deg, #fdf1e1, #ffe0b2);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.referral-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

.share-buttons {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.share-buttons a {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.share-buttons a.whatsapp { background: #25d366; }
.share-buttons a.facebook { background: #3b5998; }
.share-buttons a.twitter { background: #1da1f2; }

.share-buttons a:hover {
    opacity: 0.85;
}

/* Optional fade-in animation */
.referral-post {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.referral-post:nth-child(1) { animation-delay: 0.2s; }
.referral-post:nth-child(2) { animation-delay: 0.4s; }
.referral-post:nth-child(3) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}