/* ============================================
   GLLogic Technologies - Main Stylesheet
   ============================================ */
:root {
  --primary:    #e8222b;
  --primary-dk: #b51920;
  --secondary:  #1a2a6c;
  --accent:     #ff9800;
  --dark:       #0d0d1a;
  --light-bg:   #f8f9fc;
  --white:      #ffffff;
  --text:       #333344;
  --muted:      #6c757d;
  --radius:     10px;
  --shadow:     0 8px 32px rgba(26,42,108,.12);
  --trans:      all .3s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Poppins', sans-serif; color: var(--text); background: #fff; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ---- Topbar ---- */
.topbar { background: var(--secondary); color: #ccd; padding: 7px 0; font-size: .8rem; }
.topbar a { color: #aac; transition: var(--trans); }
.topbar a:hover { color: #fff; }

/* ---- Navbar ---- */
#mainNav { background: #fff; box-shadow: 0 2px 16px rgba(0,0,0,.08); padding: 12px 0; transition: var(--trans); }
#mainNav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.15); }
.logo-text { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.7rem; color: var(--secondary); letter-spacing: 1px; }
.logo-text span { color: var(--primary); }
.navbar-nav .nav-link { font-weight: 500; color: var(--secondary) !important; padding: 8px 14px; border-radius: 6px; transition: var(--trans); }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--primary) !important; }
.dropdown-menu { border: none; box-shadow: var(--shadow); border-radius: var(--radius); padding: 10px 0; min-width: 220px; }
.dropdown-item { font-size: .9rem; padding: 8px 20px; transition: var(--trans); }
.dropdown-item:hover { background: var(--light-bg); color: var(--primary); }
.nav-cta { background: var(--primary); color: #fff !important; font-weight: 600; padding: 9px 22px !important; border-radius: 50px; }
.nav-cta:hover { background: var(--primary-dk); transform: translateY(-2px); }

/* ---- Hero Carousel ---- */
.hero-carousel { position: relative; }
.hero-slide { min-height: 88vh; display: flex; align-items: center; position: relative; overflow: hidden; }
.hero-slide-1 { background: linear-gradient(135deg, var(--secondary) 0%, #2d3a8c 60%, #1a2a6c 100%); }
.hero-slide-2 { background: linear-gradient(135deg, #0f2027, #203a43, #2c5364); }
.hero-slide-3 { background: linear-gradient(135deg, #1a0a2e, #16213e, #0f3460); }
.hero-bg-pattern {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,.04) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(232,34,43,.15) 0%, transparent 40%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }
.hero-badge { display: inline-block; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff; padding: 6px 18px; border-radius: 50px; font-size: .82rem; font-weight: 500; margin-bottom: 20px; backdrop-filter: blur(4px); }
.hero-title { font-family: 'Montserrat', sans-serif; font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: 16px; }
.hero-title span { color: var(--accent); }
.hero-subtitle { font-size: 1.1rem; color: rgba(255,255,255,.8); margin-bottom: 32px; }
.hero-btns .btn { padding: 13px 30px; border-radius: 50px; font-weight: 600; font-size: 1rem; transition: var(--trans); }
.btn-hero-primary { background: var(--primary); color: #fff; border: none; }
.btn-hero-primary:hover { background: var(--primary-dk); color: #fff; transform: translateY(-3px); box-shadow: 0 8px 24px rgba(232,34,43,.4); }
.btn-hero-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); }
.btn-hero-outline:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; }
.hero-stat-num { font-size: 2rem; font-weight: 800; color: var(--accent); font-family: 'Montserrat', sans-serif; }
.hero-stat-label { font-size: .78rem; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: 1px; }
.hero-img-wrap { position: relative; }
.hero-img-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 20px; padding: 24px; backdrop-filter: blur(10px); }
.carousel-indicators button { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.5); border: none; }
.carousel-indicators .active { background: var(--primary); width: 28px; border-radius: 5px; }

/* ---- Register Form ---- */
.register-float {
  position: fixed; right: -350px; top: 50%; transform: translateY(-50%);
  background: #fff; width: 320px; border-radius: 16px 0 0 16px;
  box-shadow: -8px 0 40px rgba(0,0,0,.2); z-index: 1050; transition: right .4s ease;
  padding: 28px 24px;
}
.register-float.open { right: 0; }
.register-toggle-btn {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  background: var(--primary); color: #fff; border: none; border-radius: 8px 0 0 8px;
  padding: 14px 8px; writing-mode: vertical-rl; font-weight: 700; font-size: .85rem;
  cursor: pointer; z-index: 1051; letter-spacing: 2px;
}

/* ---- Sections ---- */
.section { padding: 80px 0; }
.section-alt { background: var(--light-bg); }
.section-tag { color: var(--primary); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px; }
.section-title { font-family: 'Montserrat', sans-serif; font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; color: var(--secondary); margin-bottom: 12px; }
.section-subtitle { color: var(--muted); font-size: 1rem; max-width: 560px; }

/* ---- What We Do ---- */
.service-card { background: #fff; border-radius: 16px; padding: 40px 32px; box-shadow: var(--shadow); transition: var(--trans); border-top: 4px solid transparent; height: 100%; }
.service-card:hover { transform: translateY(-8px); border-top-color: var(--primary); }
.service-icon { width: 64px; height: 64px; background: linear-gradient(135deg, var(--primary), var(--primary-dk)); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: #fff; margin-bottom: 20px; }
.service-card h4 { font-weight: 700; color: var(--secondary); margin-bottom: 12px; }

/* ---- Course Cards ---- */
.course-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,.08); transition: var(--trans); height: 100%; }
.course-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,.14); }
.course-card img { width: 100%; height: 200px; object-fit: cover; }
.course-img-placeholder { width: 100%; height: 200px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 700; color: #fff; }
.course-body { padding: 20px; }
.course-body h5 { font-weight: 700; color: var(--secondary); margin-bottom: 10px; }
.course-body p { font-size: .88rem; color: var(--muted); margin-bottom: 16px; }
.btn-course { display: inline-block; background: var(--secondary); color: #fff; padding: 8px 22px; border-radius: 50px; font-size: .85rem; font-weight: 600; transition: var(--trans); }
.btn-course:hover { background: var(--primary); color: #fff; }

/* ---- Events ---- */
.event-card { background: #fff; border-radius: 16px; padding: 28px; box-shadow: var(--shadow); border-left: 5px solid var(--primary); transition: var(--trans); }
.event-card:hover { transform: translateY(-4px); }
.event-date-badge { display: inline-block; background: var(--primary); color: #fff; padding: 4px 16px; border-radius: 50px; font-size: .8rem; font-weight: 600; margin-bottom: 14px; }
.event-card h5 { font-weight: 700; color: var(--secondary); margin-bottom: 12px; }
.event-meta { font-size: .85rem; color: var(--muted); }
.event-meta i { color: var(--primary); width: 18px; }

/* ---- Stats Counter ---- */
.stats-section { background: linear-gradient(135deg, var(--secondary), #2d3a8c); padding: 70px 0; }
.stat-box { text-align: center; padding: 20px; }
.stat-number { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; color: var(--accent); font-family: 'Montserrat', sans-serif; }
.stat-label { color: rgba(255,255,255,.75); font-size: .9rem; margin-top: 6px; font-weight: 500; }

/* ---- Testimonials ---- */
.testimonial-card { background: #fff; border-radius: 16px; padding: 32px; box-shadow: var(--shadow); position: relative; height: 100%; }
.testimonial-card::before { content: '\201C'; font-size: 5rem; color: var(--primary); opacity: .12; position: absolute; top: 10px; left: 20px; font-family: Georgia; line-height: 1; }
.testimonial-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary); }
.testimonial-name { font-weight: 700; color: var(--secondary); }
.testimonial-college { font-size: .8rem; color: var(--muted); }
.stars { color: var(--accent); font-size: .9rem; }

/* ---- CTA Section ---- */
.cta-section { background: linear-gradient(135deg, var(--primary), var(--primary-dk)); padding: 80px 0; }
.cta-section h2 { font-family: 'Montserrat', sans-serif; font-weight: 800; color: #fff; }
.cta-section p { color: rgba(255,255,255,.85); }

/* ---- Footer ---- */
.site-footer { background: var(--dark); color: #aab; padding: 70px 0 0; }
.footer-logo { font-size: 2rem; }
.footer-logo span { color: var(--primary); }
.site-footer p { color: #8899aa; font-size: .9rem; }
.footer-heading { color: #fff; font-weight: 700; margin-bottom: 18px; font-size: 1rem; position: relative; }
.footer-heading::after { content: ''; display: block; width: 30px; height: 3px; background: var(--primary); margin-top: 8px; border-radius: 2px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #8899aa; font-size: .9rem; transition: var(--trans); }
.footer-links a:hover { color: var(--primary); padding-left: 6px; }
.footer-contact { list-style: none; padding: 0; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; font-size: .87rem; color: #8899aa; }
.footer-contact li i { color: var(--primary); margin-top: 3px; flex-shrink: 0; }
.footer-contact a { color: #8899aa; transition: var(--trans); }
.footer-contact a:hover { color: var(--primary); }
.footer-hr { border-color: rgba(255,255,255,.08); margin: 40px 0 20px; }
.footer-bottom { padding-bottom: 24px; font-size: .87rem; color: #556; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: rgba(255,255,255,.08); border-radius: 50%; color: #aab; font-size: .85rem; margin-right: 8px; transition: var(--trans); }
.social-links a:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }

/* ---- WhatsApp Float ---- */
.whatsapp-float { position: fixed; bottom: 28px; left: 24px; background: #25d366; color: #fff; width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; box-shadow: 0 6px 24px rgba(37,211,102,.4); z-index: 1000; transition: var(--trans); }
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }

/* ---- Buttons ---- */
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dk); border-color: var(--primary-dk); }
.btn-secondary-outline { border: 2px solid var(--secondary); color: var(--secondary); border-radius: 50px; padding: 10px 28px; font-weight: 600; transition: var(--trans); }
.btn-secondary-outline:hover { background: var(--secondary); color: #fff; }
.btn-view-all { background: var(--secondary); color: #fff; border-radius: 50px; padding: 12px 32px; font-weight: 600; display: inline-block; transition: var(--trans); }
.btn-view-all:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

/* ---- Page Hero ---- */
.page-hero { background: linear-gradient(135deg, var(--secondary), #2d3a8c); padding: 80px 0 60px; }
.page-hero h1 { font-family: 'Montserrat', sans-serif; font-weight: 800; color: #fff; }
.page-hero .breadcrumb-item, .page-hero .breadcrumb-item a { color: rgba(255,255,255,.7); font-size: .9rem; }
.page-hero .breadcrumb-item.active { color: var(--accent); }
.page-hero .breadcrumb-divider { color: rgba(255,255,255,.4); }

/* ---- Form Styles ---- */
.form-control, .form-select { border-radius: 8px; border: 2px solid #e0e4ee; padding: 12px 16px; font-size: .95rem; transition: var(--trans); }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(232,34,43,.15); }

/* ---- Animations ---- */
@keyframes fadeInUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
.fade-in-up { animation: fadeInUp .7s ease both; }
.delay-1 { animation-delay: .15s; }
.delay-2 { animation-delay: .3s; }
.delay-3 { animation-delay: .45s; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--light-bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .register-float { right: -100%; width: 90%; border-radius: 0; top: auto; bottom: 0; transform: none; transition: bottom .4s ease; }
  .register-float.open { right: auto; bottom: 0; }
  .register-toggle-btn { writing-mode: horizontal-tb; border-radius: 8px 8px 0 0; right: 20px; top: auto; bottom: 0; transform: none; padding: 8px 16px; }
}

/* ===== EVENT CARD ===== */
.event-card-wrap {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  background: #fff;
}

/* Image column */
.event-img-col {
  min-height: 350px;
  overflow: hidden;
}

.event-main-img {
  width: 100%;
  height: 100%;
  min-height: 350px;
  object-fit: cover;
  display: block;
}

.event-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 350px;
  background: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Date badge overlay (top-right of image) */
.event-date-overlay {
  position: absolute;
  top: 20px;
  right: 0;
  background: #1a2a6c;        /* dark navy — matches your site theme */
  color: #fff;
  text-align: center;
  padding: 10px 18px 12px;
  min-width: 90px;
  border-radius: 4px 0 0 4px;
  z-index: 2;
}

.event-date-overlay .event-day {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: #f0a500;             /* gold/amber number */
}

.event-date-overlay .event-month-year {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #fff;
  margin-top: 4px;
}

/* Detail box */
.event-detail-box {
  padding: 2rem 2rem 2rem 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.event-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a2a6c;
  margin-bottom: 1rem;
}

/* Info row: date / time / mode in one line */
.event-info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 0.75rem;
}

.event-info-row span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.event-info-row i {
  color: #1a2a6c;
}

.event-resource {
  font-size: 0.85rem;
  color: #444;
  margin-bottom: 0;
}

.event-divider {
  border-color: #e0e0e0;
  margin: 1rem 0;
}

.event-desc {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.7;
  flex: 1;
}

/* Book Now button */
.btn-event-book {
  display: inline-flex;
  align-items: center;
  background: #1a2a6c;
  color: #fff !important;
  border: none;
  padding: 10px 28px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-top: 1rem;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-event-book:hover {
  background: #e8222b;
  color: #fff !important;
}

/* Mobile: stack vertically */
@media (max-width: 767px) {
  .event-main-img,
  .event-img-placeholder,
  .event-img-col {
    min-height: 220px;
  }

  .event-detail-box {
    padding: 1.25rem;
  }

  .event-date-overlay {
    top: 12px;
    padding: 8px 12px 10px;
    min-width: 72px;
  }

  .event-date-overlay .event-day {
    font-size: 1.5rem;
  }
}
