/* ===========================================================
   YABATECH SITE CSS — Consolidated, Responsive, Sticky Sidebar + CODFeL Chatbot
   Colors: Primary #006633, Deep #004d26, Accent #FFCC00
=========================================================== */

/* ---------------------------
   RESET + BASE
---------------------------- */

/* ============================
   GLOBAL BRAND COLORS (YABATECH)
   ============================ */
:root {
  --yt-primary: #006633;
  --yt-primary-dark: #004d26;
  --yt-accent: #FFCC00;
  --yt-light: #f6fff4;
  --yt-bg-gradient: linear-gradient(135deg,#eaffe8,#fffde7);
  --top-bar-height: 30px;
  --navbar-height: 70px;
  --header-total: calc(var(--top-bar-height) + var(--navbar-height));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  padding-top: 0 !important;
  color: #004d26;
  background: #f8fff8;
}

html, body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100%;
}
section { padding: 60px 0; }

/* ===============================
   HEADER HEIGHT VARIABLES
================================ */

/* Prevent page content hiding behind fixed header */
body::before {
    content: "";
    display: block;
    height: var(--header-total);
}

/* ======================================
   TOP BAR
====================================== */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--top-bar-height);
  background: #ffcc00;
  color: #004d26;
  font-size: 14px;
  padding: 6px 15px;
  z-index: 1050;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-icons a {
  color: #fff;
  margin: 0 5px;
}

/* ======================================
   NAVBAR (sticky below top-bar)
====================================== */
.navbar {
  position: fixed;
  top: var(--top-bar-height);
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1040;
  background: #006633;
  padding: 10px 18px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: top 0.3s ease;
}
.navbar-brand img { height: 55px; }

.navbar-nav .nav-link {
  color: #fff;
  font-weight: 600;
  padding: 10px 14px !important;
}
.navbar-nav .nav-link:hover { color: #ffcc00; }

.donate-btn {
  background: #FFCC00;
  color: #006633 !important;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 700;
  transition: 0.25s;
}
.donate-btn:hover { 
  background: #006633; 
  color: #FFCC00 !important; 
}

/* ---------------------------
   MEGA MENU — BASE
---------------------------- */
.dropdown-menu.mega-menu {
  opacity: 0;
  visibility: hidden;

  /* Desktop width + center align */
  width: 650px;
  left: 70%;
  transform: translateX(-50%) translateY(15px);

  background: #006400;
  border: none;
  border-radius: 8px;

  padding: 20px;
  display: block;

  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
}

/* Heading + items */
.mega-menu h6 {
  color: #FFCC00;
  margin-bottom: 10px;
  font-weight: 700;
}

.mega-menu .dropdown-item {
  color: #fff;
  padding: 6px 0;
}

.mega-menu .dropdown-item:hover {
  background: #FFD700;
  color: #000;
}

/* ---------------------------
   DESKTOP — HOVER
---------------------------- */
@media (min-width: 992px) {
  .nav-item.dropdown:hover > .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .navbar-nav .dropdown-menu {
    max-height: none;
    padding: 1rem;
  }
}

/* ---------------------------
   MOBILE — FULLY RESPONSIVE
---------------------------- */
@media (max-width: 991px) {

  /* Mega menu becomes full width and static */
  .dropdown-menu.mega-menu {
    position: static !important;
    width: 100% !important;

    /* Reset desktop transforms */
    transform: none !important;

    /* Hidden by default (collapsible) */
    opacity: 1 !important;
    visibility: visible !important;

    border-radius: 0;
    padding: 1rem;
    background: #006633; /* darker for better readability */
    box-shadow: none;
  }

  /* Collapsible behavior */
  .navbar-nav .dropdown-menu {
    max-height: 0;
    overflow: hidden;
    padding: 0 1rem;
    transition: max-height 0.45s ease, padding 0.3s ease;
  }

  .navbar-nav .dropdown-menu.active {
    max-height: 900px;   /* enough for 3 columns */
    padding: 1rem;
  }

  /* Mobile spacing fixes */
  .mega-menu .row {
    row-gap: 15px;
  }
}


/* ========================================================
   FIX: Mobile Mega Menu Scroll (Fully Working)
========================================================= */
@media (max-width: 991px) {

    /* Allow the entire dropdown to be scrollable */
    .navbar-nav .dropdown-menu.active {
        max-height: 75vh !important;      /* viewport height */
        overflow-y: auto !important;      /* enable scrolling */
        overflow-x: hidden;
        padding: 1rem !important;
        -webkit-overflow-scrolling: touch; /* smooth iPhone scrolling */
        scrollbar-width: thin;            /* Firefox */
    }

    /* Ensure mega menu content does not break layout */
    .dropdown-menu.mega-menu {
        position: static !important;
        width: 100% !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        border-radius: 0;
        background: #006633;
        padding: 1rem 0.8rem !important;
    }

    /* Fix sticky navbar + dropdown interaction */
    .navbar-collapse {
        max-height: 85vh;      /* makes the whole mobile menu scroll */
        overflow-y: auto;
        padding-bottom: 20px;
    }
}



/* ---------------------------
   HERO / CAROUSEL FIXED
---------------------------- */
.hero {
  position: relative;
  height: calc(100vh - var(--header-total));
  overflow: hidden;
  margin-top: 0; /* FIX: remove extra spacing */
}


/* Make images fill hero correctly */
.hero .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s linear;
}

/* Overlay remains same */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  z-index: 2;
}

/* =============================
   FAQ SIDEBAR (Floating TOC)
   Attractive • Colorful • Sticky
   + Auto Scroll Highlight Support
============================= */
.floating-toc {
    position: sticky;
    top: calc(var(--header-total) + 20px);
    width: 280px;
    z-index: 999;
    background: linear-gradient(135deg, #ffffff, #f4fff4);
    padding: 18px 20px;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-left: 5px solid #00994d;
    transition: all 0.25s ease-in-out;
    max-height: calc(100vh - 140px);
    overflow-y: auto;       /* <-- Sidebar itself scrolls */
    scrollbar-width: thin;  /* Firefox */
}

.floating-toc:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

/* Sidebar scrollbar styling (nice green) */
.floating-toc::-webkit-scrollbar {
    width: 6px;
}
.floating-toc::-webkit-scrollbar-thumb {
    background: #00aa55;
    border-radius: 10px;
}
.floating-toc::-webkit-scrollbar-track {
    background: #dfffe8;
}

.floating-toc h5 {
    font-weight: 800;
    color: #006633;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.floating-toc a {
    display: block;
    padding: 10px 14px;
    background: #eaffea;
    margin-bottom: 10px;
    border-radius: 10px;
    text-decoration: none;
    color: #006600;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    transition: all 0.25s ease;
    border-left: 4px solid #00aa55;
}

.floating-toc a:hover {
    background: #ffcc00;
    color: #7a4c00;
    transform: translateX(6px);
    border-left-color: #ff9900;
}

/* ACTIVE LINK used by JS */
.floating-toc a.active {
    background: #ffcc00 !important;
    color: #7a4c00 !important;
    transform: translateX(6px);
    border-left-color: #ff9900;
}

/* MOBILE */
@media (max-width: 991px) {
    .floating-toc {
        position: static;
        width: 100%;
        margin-bottom: 20px;
        max-height: auto;
        overflow-y: visible;
    }
}


.faq-wrapper { display:flex; gap:32px; align-items:flex-start; }
.faq-sidebar {
  width: 280px; 
  position: sticky; 
  top: calc(var(--header-total) + 20px);
  background:#fff; 
  padding:20px; 
  border-radius:12px;
  box-shadow:0 6px 18px rgba(0,0,0,0.08); 
  border-left:4px solid #006600;
}
.faq-sidebar h4 { color:#006600; font-weight:700; margin-bottom:12px; }
.faq-sidebar a { display:block; padding:10px 12px; margin-bottom:8px; color:#006600; background:#f4fff4; border-radius:8px; text-decoration:none; font-weight:600; }
.faq-sidebar a:hover, .faq-sidebar a.active-link { background:#ffcc00; color:#FFD700; transform: translateX(4px); }
.faq-content { flex:1; }

h3[id]::before, h2[id]::before {
  content: "";
  display:block;
  height: var(--header-total);
  margin-top: calc(-1 * var(--header-total));
  visibility:hidden;
}

/* ---------------------------
   FEATURES, PROGRAMMES, CARDS
---------------------------- */
.features-bar { padding: 80px 0 100px; margin-top: -60px; position: relative; z-index:5; }
.feature-item { background: #fff; color: #004d26; padding: 45px 25px; border-radius: 15px; box-shadow: 0 6px 20px rgba(0,0,0,0.12); transition: all 0.35s ease; cursor:pointer; height:100%; }
.feature-item:hover { transform: translateY(-10px); box-shadow: 0 12px 30px rgba(0,0,0,0.22); }
.feature-item i { font-size: 3rem; color: #FFD700; transition: .45s; }
.feature-item:hover i { transform: rotate(360deg) scale(1.25); color: #f9a825; }
.feature-item h5 { margin-top: 15px; font-weight: 700; color: #004d26; font-size: 1.1rem; }

.program-card { border-radius:20px; background:linear-gradient(135deg,#fff,#f9fbe7); padding:1.8rem; transition: transform .3s, box-shadow .3s; text-align:center; }
.program-card:hover { transform: translateY(-8px); box-shadow:0 8px 25px rgba(0,0,0,0.18); }
.program-icon { width:80px; height:80px; border-radius:50%; display:flex; align-items:center; justify-content:center; margin:0 auto; font-size:36px; animation: rotateIcon 8s linear infinite; }
.program-card:hover .program-icon { transform: scale(1.2); animation-play-state:paused; }

@keyframes rotateIcon { from{transform:rotate(0)} to{transform:rotate(360deg)} }


/* ============================
   GLOBAL BRAND COLORS (YABATECH)
   ============================ */
:root {
  --yt-primary: #006633;
  --yt-primary-dark: #004d26;
  --yt-accent: #FFCC00;
  --yt-light: #f6fff4;
  --yt-bg-gradient: linear-gradient(135deg,#eaffe8,#fffde7);
}

/* ============================
   NOTICE BOARD
   ============================ */
#notice-mission {
  background: var(--yt-bg-gradient);
  padding: 60px 0;
}

/* Notice Title */
#notice-mission h2 {
  color: var(--yt-primary-dark);
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* Notice Card */
.notice-card {
  border-radius: 15px;
  background: #fff;
  border-left: 5px solid var(--yt-primary);
  transition: all .3s ease;
  cursor: pointer;
}

.notice-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  border-left-color: var(--yt-accent);
}

.notice-card i {
  font-size: 2rem;
  animation: pulseIcon 2s infinite;
}



/* Ensure uniform height so cards don’t overlap */
.notice-card {
  min-height: 120px;
  display: flex;
  gap: 12px;
  border-radius: 14px;
}

/* Prevent content spilling */
.notice-card p {
  line-height: 1.3;
  max-height: 45px;
  overflow: hidden;
  text-overflow: ellipsis;
}




/* Icon Pulse Animation */
@keyframes pulseIcon {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: .85; }
  100% { transform: scale(1); opacity: 1; }
}

/* View All Button */
.view-all-btn {
  background: var(--yt-primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  transition: .3s;
}

.view-all-btn:hover {
  background: var(--yt-primary-dark);
  color: #fff;
}


/* ============================
   STUDYING AT CODFEL – CARDS
   ============================ */
.study-card {
  background: #fff;
  border-radius: 18px;
  transition: all .35s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.study-card:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: var(--yt-accent);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

/* Icon Container */
.study-icon {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: var(--yt-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  transition: all .3s ease;
}

/* Icon Style */
.study-icon i {
  font-size: 30px;
  color: #fff;
}

/* Icon Hover Effect */
.study-card:hover .study-icon {
  background: var(--yt-accent);
  color: var(--yt-primary-dark);
  transform: rotate(10deg) scale(1.1);
}

/* Card Title */
.study-card h5 {
  color: var(--yt-primary-dark);
  font-weight: 700;
  margin-top: 15px;
}


/* ==========================================
   YABATECH FAQ SECTION — CLEAN • VIBRANT
========================================== */

#faq {
    background: #f0fdf4;
    position: relative;
    padding: 60px 0 80px;
}

/* To avoid the container looking too stretched */
#faq .container {
    max-width: 1100px !important;  /* Balanced width */
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* ------------------------------------------
   Titles & Description
------------------------------------------ */
#faq h2 {
    color: #006633 !important;
    font-weight: 800;
    letter-spacing: .5px;
    text-align: center;
}

#faq p {
    max-width: 720px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 16px;
    color: #004d26;
}

/* ==========================================
   ACCORDION — MODERN • COLORFUL
========================================== */

.colorful-faq .accordion-item {
    border: none;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 14px;
    background: #ffffff;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
    transition: all .3s ease;
    border-left: 5px solid #00994d;
}

.colorful-faq .accordion-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

.colorful-faq .accordion-button {
    background: #ffffff !important;
    color: #004d26 !important;
    font-weight: 700;
    padding: 16px 20px;
    border: none;
    font-size: 16px;
    transition: all .25s ease;
}

.colorful-faq .accordion-button:hover {
    background: #eaffea !important;
    color: #006600 !important;
    padding-left: 26px;
}

/* Active (opened) FAQ */
.colorful-faq .accordion-button:not(.collapsed) {
    background: #ffcc00 !important;
    color: #7a4c00 !important;
    border-left-color: #ff9900 !important;
    box-shadow: inset 0 -2px 10px rgba(0,0,0,0.1);
}

/* Arrow color change */
.colorful-faq .accordion-button::after {
    filter: invert(24%) sepia(88%) saturate(800%) hue-rotate(90deg) brightness(85%);
    transition: .3s ease;
}

.colorful-faq .accordion-button:not(.collapsed)::after {
    filter: invert(26%) sepia(90%) saturate(900%) hue-rotate(0deg) brightness(65%);
}

/* Body */
.colorful-faq .accordion-body {
    background: #ffffff;
    padding: 18px 22px;
    font-size: 15px;
    color: #003d1f;
}

/* Body links */
.colorful-faq .accordion-body a {
    color: #006633;
    font-weight: 700;
    text-decoration: underline;
}

.colorful-faq .accordion-body a:hover {
    color: #ff9900;
    text-decoration: none;
}

/* ==========================================
   3-COLUMN GRID
========================================== */

.faq-grid {
    justify-content: center !important;
}

.faq-grid .col-lg-4,
.faq-grid .col-md-6 {
    display: flex;
    flex-direction: column;
}

.faq-grid .accordion {
    background: transparent;
}



/* ==========================================
   RESPONSIVE TUNING
========================================== */

@media (max-width: 991px) {
    #faq .container {
        padding-right: 20px !important;
    }

    .colorful-faq .accordion-button {
        font-size: 15px;
        padding: 14px 16px;
    }
}

@media (max-width: 767px) {
    #faq p {
        padding: 0 15px;
    }
}


/* -------------------------------------------------------
   NEWS & EVENTS — Modern Redesign (Calendar + Glass Look)
--------------------------------------------------------- */

.news-events-section {
    background: linear-gradient(135deg, #f6fff8, #ffffff);
    padding: 60px 20px;
}

/* ---------------- NEWS ITEM CARD ---------------- */
.news-item {
    background: #ffffff;
    border-radius: 16px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 18px;
    position: relative;
    overflow: hidden;
    border: 1px solid #e6f4ec;
    transition: transform .35s ease, box-shadow .35s ease;
}

.news-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 102, 51, 0.15);
}
.news-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(0,102,51,0.08), transparent);
    opacity: 0;
    transition: opacity .4s ease;
}
.news-item:hover::before {
    opacity: 1;
}

/* --------------- Side Image ---------------- */
.news-side-img {
    width: 125px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

/* ---------------- CALENDAR BADGE --------------- */
.news-date-badge {
    width: 70px;
    height: 90px;              /* FIXED HEIGHT */
    background: #006633;
    border-radius: 12px;
    color: #fff;
    padding: 10px 0;
    text-align: center;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;       /* Ensures perfect centering */

    flex-shrink: 0;            /* 🔒 Prevent shrinking when text is long */

    box-shadow: 0 6px 15px rgba(0,102,51,0.25);
    position: relative;
    overflow: hidden;
    transition: all .3s ease;
    font-family: "Poppins", sans-serif;
}

.news-date-badge::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100%;
    height: 6px;
    background: #FFCC00;
}

.news-date-badge .day {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.news-date-badge .month {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1.1;
}

.news-item:hover .news-date-badge {
    transform: scale(1.05);
    background: #004d26;
}

/* --------- MOBILE RESPONSIVE BADGE --------- */
@media (max-width: 576px) {
    .news-date-badge {
        width: 55px;       /* smaller */
        height: 75px;      /* smaller height */
        padding: 8px 0;
        border-radius: 10px;
    }

    .news-date-badge .day {
        font-size: 1.4rem;  /* reduce size */
    }

    .news-date-badge .month {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }
}


/* ------------------------------------------------
   UPDATED — NEWS TITLE LINK + HOVER
-------------------------------------------------- */

.news-title {
    color: #004d26;
    font-weight: 800;
    font-size: 1.18rem;
    line-height: 1.3;
    display: inline-block;
    margin-bottom: 6px;
    text-decoration: none;
    position: relative;
    transition: color .35s ease, transform .35s ease;
}

/* Gold underline animation */
.news-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0%;
    height: 3px;
    background: #FFCC00;
    border-radius: 2px;
    transition: width .35s ease;
}

.news-title:hover {
    color: #FFCC00;
    transform: translateX(4px);
}

.news-title:hover::after {
    width: 100%;
}

/* Ensure link inside H5 inherits style */
h5 .news-title {
    text-decoration: none;
    color: inherit;
}

/* ---------------- META ---------------- */
.news-meta {
    font-size: 0.85rem;
    color: #006400;
    margin-bottom: 8px;
}

/* ------------------------------------------------
   ENHANCED — READ MORE LINK
-------------------------------------------------- */
.read-more {
    color: #006633;
    font-weight: 700;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    transition: color .3s ease, transform .25s ease;
}

/* Underline animation */
.read-more::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: #FFCC00;
    transition: width .3s ease;
}

/* Arrow */
.read-more::after {
    content: "→";
    font-weight: 800;
    display: inline-block;
    transition: transform .3s ease, color .3s ease;
}

/* Hover Effects */
.read-more:hover {
    color: #FFCC00;
    transform: translateX(4px);
}

.read-more:hover::before {
    width: 100%;
}

.read-more:hover::after {
    transform: translateX(6px);
    color: #FFCC00;
}

/* Active (click) effect */
.read-more:active {
    transform: scale(0.96) translateX(4px);
    opacity: 0.85;
}




/* ============== VIEW ALL BUTTON ============== */
.view-all-btn {
    background: #006633;
    color: #fff;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: bold;
    transition: background .3s ease, transform .3s ease;
}
.view-all-btn:hover {
    background: #004d26;
    transform: translateY(-3px);
}

/* ============================================
   MOBILE FIX — Stack content & prevent shrinking
=============================================== */
@media (max-width: 576px) {

    .news-item {
        flex-direction: column;       /* stack vertically */
        align-items: flex-start;      /* left align */
    }

    .news-side-img {
        width: 100%;                  /* full width image */
        height: auto;
        margin-bottom: 12px;
    }

    .news-text {
        flex: 1;
        width: 100%;                  /* ensure text fills the width */
    }

    .news-title, 
    .news-meta, 
    .news-content {
        display: block;
        width: 100%;                  /* no squeezing */
        margin-top: 6px;
    }
}


/* -------------------------------------------------------
   PREMIUM EVENTS SIDEBAR — Enhanced Colors, Depth & UI
-------------------------------------------------------- */

.events-column {
    background: linear-gradient(180deg, #006633, #003f20);
    border-radius: 20px;
    color: #fff;
    padding: 28px 22px;
    box-shadow: 0 10px 30px rgba(0, 40, 20, 0.4);
    position: relative;
    overflow: hidden;
}

/* Subtle glossy overlay */
.events-column::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255,255,255,0.08), transparent 70%);
    pointer-events: none;
}

/* ---------- TITLE ---------- */
.events-column h5 {
    color: #FFCC00;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    font-size: 1.1rem;
    position: relative;
}

/* Title underline */
.events-column h5::after {
    content: "";
    width: 60px;
    height: 3px;
    background: #FFCC00;
    border-radius: 6px;
    display: block;
    margin-top: 6px;
}

/* ---------- EVENT BOX ---------- */
.event-box {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(4px);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    gap: 14px;
    border: 1px solid rgba(255,255,255,0.15);
    transition: all .35s ease;
}

.event-box:hover {
    background: rgba(255,255,255,0.18);
    transform: translateX(6px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

/* ---------- EVENT TITLE ---------- */
.event-box h6 a {
    color: #FFCC00 !important;
    font-weight: 700;
    transition: color .3s ease;
}

.event-box h6 a:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

/* ---------- META TEXT ---------- */
.event-box p {
    color: #e7ffe7;
    font-size: 0.82rem;
}

/* ---------- READ MORE ---------- */
.read-more {
    color: #FFCC00;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color .3s ease;
}

.read-more:hover {
    color: #ffffff;
}

/* ---------- EVENT THUMB (unchanged style) ---------- */
.event-date-thumb {
    width: 60px;
    padding: 8px 0;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
    font-family: "Poppins";
    background: #FFCC00 !important;
    color: #006400 !important;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 6px 15px rgba(0, 102, 51, 0.25);
    position: relative;
}

.event-date-thumb .day {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.event-date-thumb .month {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* BUTTON */
.events-column .btn-light {
    background: #ffffff;
    border-radius: 10px;
    border: none;
    font-weight: 700;
    transition: all .3s ease;
}

.events-column .btn-light:hover {
    background: #FFCC00;
    color: #003f20 !important;
    transform: translateY(-2px);
}


/* Responsive */
@media (max-width: 991px) {
    .news-side-img { width: 90px; height: 85px; }
    .news-date-badge { width: 60px; padding: 8px 0; }
    .news-date-badge .day { font-size: 1.4rem; }
}

/* ----------------------------------------------
   RELATED NEWS — STICKY SIDEBAR
----------------------------------------------- */
.related-sidebar {
    position: sticky;
    top: 90px; /* adjust based on your navbar height */
    background: #ffffff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 6px 18px rgba(0, 80, 40, 0.15);
    border-left: 6px solid #006633;
    animation: fadeInUp .6s ease;
}

/* Sidebar Title */
.related-sidebar h5 {
    color: #006633;
    font-weight: 800;
    border-bottom: 2px solid #FFCC00;
    padding-bottom: 6px;
    margin-bottom: 18px;
}

/* Related Links — Card Style */
.related-link {
    background: linear-gradient(135deg, #eafff4, #ffffff);
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #006633;
    text-decoration: none;
    border: 1px solid rgba(0, 102, 51, 0.14);
    box-shadow: 0 3px 10px rgba(0, 102, 51, 0.08);
    transition: all .3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Arrow icon on hover */
.related-link::after {
    content: "→";
    opacity: 0;
    transform: translateX(-6px);
    transition: .3s ease;
    font-size: 1rem;
    font-weight: 700;
    color: #FFCC00;
}

/* Hover Effects */
.related-link:hover {
    background: #006633;
    color: #ffffff;
    transform: translateX(6px);
    box-shadow: 0 6px 18px rgba(0, 102, 51, 0.25);
    border-color: #006633;
}

.related-link:hover::after {
    opacity: 1;
    transform: translateX(4px);
    color: #FFCC00;
}

/* Smooth appearance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----------------------------------------------------
   QUICK LINKS — STICKY SIDEBAR CARD
----------------------------------------------------- */
.sticky-sidebar {
    position: sticky;
    top: 90px;
    border-radius: 18px;
    overflow: hidden;
    border: none !important;
    box-shadow: 0 6px 20px rgba(0, 102, 51, 0.18) !important;
    animation: fadeInRight .6s ease;
}

/* Header */
.sticky-sidebar .card-header {
    background: linear-gradient(135deg, #006633, #00994d);
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    padding: 14px 18px;
    border: none;
    letter-spacing: .5px;
}

/* Quick Links Item */
.sticky-sidebar .list-group-item {
    background: linear-gradient(135deg, #f3fff8, #ffffff);
    color: #006633;
    font-weight: 600;
    border: none;
    padding: 14px 16px;
    margin: 6px 12px;
    border-radius: 12px !important;
    box-shadow: 0 3px 10px rgba(0, 102, 51, 0.10);
    transition: all .3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

/* Arrow on hover */
.sticky-sidebar .list-group-item::after {
    content: "→";
    opacity: 0;
    transform: translateX(-5px);
    position: absolute;
    right: 16px;
    transition: .3s ease;
    color: #FFCC00;
    font-weight: 900;
}

/* Hover effect */
.sticky-sidebar .list-group-item:hover {
    background: #006633;
    color: #ffffff;
    transform: translateX(6px);
    box-shadow: 0 6px 18px rgba(0, 102, 51, 0.25);
}

.sticky-sidebar .list-group-item:hover::after {
    opacity: 1;
    transform: translateX(3px);
}

/* Active page style */
.sticky-sidebar .list-group-item.active {
    background: #004d26 !important;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.15);
    border-left: 5px solid #FFCC00 !important;
}

/* Smooth entry animation */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(25px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* ---------------------------
   MEGA MENU
---------------------------- */
/*
.mega-menu {
  width: 100%;
  left: 0;
  right: 0;
  border-radius: 0;
  border: none;
}

.navbar .dropdown-menu {
  margin-top: 0;
}

.top-bar {
  font-size: 13px;
}

.navbar-brand img {
  height: 55px !important;
}

.dropdown-menu.mega-menu {
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.28s ease;
  padding: 20px;
  background: #006400;
  border-radius: 8px;
  width: 650px;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  border: none;
}
.mega-menu h6 { color: #FFCC00; margin-bottom: 10px; font-weight: 700; }
.mega-menu .dropdown-item { color: #fff; padding: 6px 0; }
.mega-menu .dropdown-item:hover { background: #FFD700; color: #000; }

@media (min-width: 992px) {
  .nav-item.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
  .navbar-nav .dropdown-menu { max-height: none; padding: 1rem; }
}

@media (max-width: 991px) {
  .dropdown-menu.mega-menu { position: static !important; width: 100% !important; transform: none !important; opacity: 1 !important; visibility: visible !important; border-radius: 0; }
  .navbar-nav .dropdown-menu { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; padding: 0 1rem; }
  .navbar-nav .dropdown-menu.active { max-height: 700px; padding: 1rem; }
} */



/* =====================================
   MEGA MENU — CLEAN + OPTIMIZED + ANIMATED
===================================== */

/* Base mega menu container */
/*
.dropdown-menu.mega-menu {
  width: 700px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);

  opacity: 0;
  visibility: hidden;

  background: #006400;
  border-radius: 10px;
  padding: 25px;

  border: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);

  transition: 
      opacity 0.28s ease,
      transform 0.28s ease,
      visibility 0.28s ease;
}

/* Mega menu headings + link styles *
.mega-menu h6 {
  color: #FFCC00;
  font-weight: 700;
  margin-bottom: 12px;
}

.mega-menu .dropdown-item {
  color: #ffffff;
  padding: 6px 0;
  transition: 0.25s;
}

.mega-menu .dropdown-item:hover {
  background: #FFD700;
  color: #000;
}

/* =====================================
   DESKTOP BEHAVIOR (Hover)
===================================== 
@media (min-width: 992px) {
  .nav-item.dropdown {
    position: static; /* ensures mega menu aligns properly 
  }

  .nav-item.dropdown:hover > .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0); /* smooth slide-up 
  }

  .navbar-nav .dropdown-menu {
    padding: 1.2rem;
  }
}

/* =====================================
   MOBILE BEHAVIOR (Click to expand)
===================================== 
@media (max-width: 991px) {
  .dropdown-menu.mega-menu {
    position: static !important;
    width: 100% !important;
    transform: none !important;

    opacity: 1 !important;
    visibility: visible !important;

    border-radius: 0;
    box-shadow: none;
    padding: 1rem;
  }

  /* Collapsible behavior for mobile 
  .navbar-nav .dropdown-menu {
    max-height: 0;
    overflow: hidden;
    padding: 0 1rem;
    transition: max-height 0.45s ease, padding 0.3s ease;
  }

  .navbar-nav .dropdown-menu.active {
    max-height: 700px;  /* Enough for 3 columns 
    padding: 1rem;
  }
}
*/

/* ==========================================
   MISSION & VISION — YABATECH BRAND CARDS
   Modern • Attractive • Professional
========================================== */

.icon-box {
    background: linear-gradient(135deg, #ffffff, #f8fff8);
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.10);
    border-top: 6px solid #006633;
    transition: all 0.35s ease;
    min-height: 330px;
}

.icon-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, #f3fff3, #ffffff);
    border-top-color: #ffcc00;
}

/* ICONS — Bigger, colorful, YABATECH style */
.icon-box i {
    font-size: 55px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #006633, #00994d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: .3s ease-in-out;
}

.icon-box:hover i {
    background: linear-gradient(135deg, #ff9900, #ffcc00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: scale(1.15);
}

/* Titles */
.icon-box h4 {
    font-weight: 800;
    color: #006633;
    font-size: 22px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.icon-box:hover h4 {
    color: #ff9900;
}

/* Body text */
.icon-box p {
    color: #004d26;
    font-size: 15px;
    line-height: 1.6;
    padding: 0 10px;
}

/* Section Title Center */
.section-title h2 {
    color: #006633;
    font-weight: 900;
    text-align: center;
    margin-bottom: 10px;
}

.section-title p {
    text-align: center;
    font-size: 16px;
}

/* Owl Carousel Dot Customization */
.owl-theme .owl-dots .owl-dot span {
    background: #cdebd8 !important;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: .3s;
}

.owl-theme .owl-dots .owl-dot.active span {
    background: #006633 !important;
    transform: scale(1.3);
}

.owl-theme .owl-nav [class*=owl-] {
    color: #006633 !important;
    font-size: 24px !important;
}

/* Responsive tweaks */
@media (max-width: 767px) {
    .icon-box {
        padding: 30px 20px;
        min-height: auto;
    }

    .icon-box i {
        font-size: 50px;
    }
}


/* ---------------------------
   FOOTER
---------------------------- */
footer { background: linear-gradient(135deg,#004d26,#006600); color:#fff; font-size:14px; padding:40px 0 20px; }
footer h5 { color:#FFD700; margin-bottom:15px; font-weight:700; }
.footer-link { color:#fff; display:block; padding:4px 0; transition:.2s; }
.footer-link:hover { color:#FFD700; transform: translateX(3px); text-decoration:underline; }
footer .d-flex a { transition: transform .25s, color .25s; }
footer .d-flex a:hover { color:#FFD700; transform: scale(1.15); }
footer .copyright { color:#FFD700; font-size:13px; }

/* Center social icons on mobile */
@media (max-width: 576px) {
  .footer-social {
      display: flex;
      justify-content: center;
      text-align: center;
      margin-bottom: 1rem;
  }
}


/* ---------------------------
   SCROLL TO TOP BUTTON
---------------------------- */
#topBtn { position: fixed; right:20px; bottom:20px; width:45px; height:45px; border-radius:50%; background:#006600; color:#fff; border:none; cursor:pointer; box-shadow:0 6px 16px rgba(0,0,0,0.25); display:none; z-index:999; transition:.25s; }
#topBtn:hover { background:#FFCC00; color:#004d26; transform: translateY(-3px); }

/* ---------------------------
   CODFeL CHATBOT
---------------------------- */
.whatsapp-float { position: fixed; bottom: 90px; right: 20px; width: 58px; height: 58px; background: #25D366; color: #fff; font-size: 28px; display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 50%; z-index: 99999; box-shadow: 0 3px 10px rgba(0,0,0,0.3); animation: bounceIn 0.5s; transition: transform 0.3s; }
.whatsapp-float:hover { transform: scale(1.1); }

.whatsapp-chatbox { position: fixed; bottom: 160px; right: 20px; width: 330px; max-height: 550px; background: #fff; border-radius: 15px; display: none; flex-direction: column; overflow: hidden; z-index: 99999; box-shadow: 0 5px 20px rgba(0,0,0,0.2); font-family: 'Segoe UI', Tahoma, sans-serif; }
.whatsapp-chatbox.active { display:flex; }

.wa-header { background: linear-gradient(135deg, #004d26, #006600); color:#FFD700; padding:12px; display:flex; align-items:center; gap:10px; }
.wa-avatar { width:38px; height:38px; border-radius:50%; background:#fff; padding:3px; }
.wa-header h6 { margin:0; font-weight:700; }
.wa-header small { color:#f5f5f5; font-size:12px; }
.wa-close { margin-left:auto; font-size:22px; cursor:pointer; color:#FFD700; transition:0.3s; }
.wa-close:hover { color:#fff; }

.wa-body { flex:1; padding:12px; font-size:14px; background:#f7f7f7; color:#ff6400; overflow-y:auto; }
.wa-messages { max-height:250px; overflow-y:auto; display:flex; flex-direction:column; gap:6px; margin-bottom:10px; }

.user-msg, .wa-body p.user { background:#DCF8C6; color:#006400; align-self:flex-end; padding:8px 12px; border-radius:12px 12px 0 12px; max-width:80%; font-size:14px; word-wrap:break-word; margin-bottom:6px; text-align:right; }
.bot-msg, .wa-body p.bot { display:flex; align-items:flex-start; background:#fff; border:1px solid #ddd; padding:8px 12px; border-radius:12px 12px 12px 0; max-width:80%; margin-bottom:6px; font-size:14px; color:#004d26; }
.bot-msg img, .bot-avatar { width:32px; height:32px; border-radius:50%; margin-right:8px; }

.wa-suggestions { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:10px; }
.wa-tag { padding:5px 10px; background:#E0FFE5; border-radius:6px; font-size:13px; cursor:pointer; border:1px solid #b6f3c5; transition:0.3s; }
.wa-tag:hover { background:#25D366; color:#fff; }

.wa-input-box { display:flex; border-top:1px solid #ddd; padding:8px; }
.wa-input-box input, #waUserInput { flex:1; padding:8px 10px; border-radius:6px; border:1px solid #ccc; outline:none; }
.wa-input-box button, #waSendBtn { background:#25D366; color:#fff; border:none; padding:8px 14px; margin-left:6px; border-radius:6px; cursor:pointer; font-weight:600; transition:0.3s; }
.wa-input-box button:hover { background:#128C7E; }

.typing { display:flex; align-items:center; padding:5px 0; }
.typing span { width:8px; height:8px; margin:0 3px; background:#ccc; border-radius:50%; animation: blink 1.4s infinite; }
.typing span:nth-child(2) { animation-delay:0.2s; }
.typing span:nth-child(3) { animation-delay:0.4s; }
.hidden { display:none; }

.wa-button { display:inline-flex; align-items:center; gap:6px; background:#25D366; color:#fff; text-decoration:none; padding:10px 16px; border-radius:8px; font-weight:600; font-size:15px; transition: background 0.3s; }
.wa-button i { font-size:18px; }
.wa-button:hover { background:#128C7E; color:#fff; }

/* ---------------------------
   GENERAL ANIMATIONS
---------------------------- */
@keyframes fadeIn { from { opacity:0; transform: translateY(5px);} to { opacity:1; transform: translateY(0);} }
@keyframes blink { 0%,80% { opacity:0; } 40% { opacity:1; } }
@keyframes bounceIn { 0% { transform: scale(0); } 70% { transform: scale(1.1);} 100% { transform: scale(1); } }
@keyframes rotate { from{transform:rotate(0)} to{transform:rotate(360deg)} }


