/* =====================================================
   DEFENCE KARATE CLUB — MAIN STYLESHEET
   কালার স্কিম লোগো থেকে নেওয়া
===================================================== */
:root {
  --clr-primary: #1B7FC4;   /* নীল */
  --clr-red: #D62828;       /* লাল */
  --clr-purple: #5B2A86;    /* বেগুনি */
  --clr-dark: #1A1A1A;      /* কালো */
  --clr-bg: #F5F1EA;        /* ক্রিম ব্যাকগ্রাউন্ড */
  --clr-white: #FFFFFF;
  --gradient-brand: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-purple) 55%, var(--clr-red) 100%);
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

body {
  font-family: var(--font-body);
  background-color: var(--clr-bg);
  color: var(--clr-dark);
}

h1, h2, h3, h4, h5, .navbar-brand, .btn {
  font-family: var(--font-heading);
  font-weight: 700;
}

a { text-decoration: none; }

/* ---------- TOP UTILITY BAR ---------- */
.topbar {
  background: var(--clr-dark);
  color: var(--clr-white);
  font-size: 0.85rem;
  padding: 6px 0;
}
.topbar a { color: var(--clr-white); opacity: .85; }
.topbar a:hover { opacity: 1; color: var(--clr-primary); }
.topbar .topbar-icon { margin-right: 6px; }
.topbar .social-icons a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.08); margin-left: 6px;
  transition: background .2s;
}
.topbar .social-icons a:hover { background: var(--clr-primary); }

/* ---------- MAIN NAVBAR ---------- */
.main-navbar {
  background: var(--clr-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  padding: 10px 0;
}
.main-navbar .navbar-brand img { height: 55px; }
.main-navbar .navbar-brand .brand-text {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--clr-dark);
  margin-left: 10px;
  line-height: 1.1;
}
.main-navbar .nav-link {
  color: var(--clr-dark) !important;
  font-weight: 600;
  padding: 10px 14px !important;
  position: relative;
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
  color: var(--clr-primary) !important;
}
.dropdown-menu { border: none; box-shadow: 0 8px 24px rgba(0,0,0,0.12); border-radius: 10px; }
.dropdown-item:hover { background: var(--clr-bg); color: var(--clr-primary); }

.btn-brand-login {
  background: var(--gradient-brand);
  color: var(--clr-white) !important;
  border: none;
  padding: 8px 22px;
  border-radius: 30px;
  font-weight: 700;
}
.btn-brand-login:hover { opacity: .9; color: var(--clr-white) !important; }

/* ---------- HERO SLIDER ---------- */
.hero-slider { position: relative; }
.hero-slider .carousel-item {
  height: 88vh; min-height: 480px;
  background-size: cover; background-position: center;
  display: flex; align-items: center;
}
.hero-slider .carousel-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(26,26,26,0.75) 0%, rgba(26,26,26,0.35) 60%, rgba(27,127,196,0.25) 100%);
}
.hero-slider .hero-caption {
  position: relative; z-index: 2; color: var(--clr-white); max-width: 650px;
}
.hero-slider .hero-caption h2 {
  font-size: 3rem; font-weight: 800; margin-bottom: 15px;
}
.hero-slider .hero-caption p { font-size: 1.15rem; margin-bottom: 25px; }
.hero-slider .btn-hero {
  background: var(--gradient-brand); color: var(--clr-white); border: none;
  padding: 12px 32px; border-radius: 30px; font-weight: 700;
}
.hero-slider .carousel-indicators [data-bs-target] { background-color: var(--clr-white); }

/* ---------- SUMMARY / SECTION CARDS ---------- */
.section-title {
  text-align: center; margin-bottom: 45px;
}
.section-title span {
  color: var(--clr-primary); text-transform: uppercase; letter-spacing: 2px; font-weight: 700; font-size: .85rem;
}
.section-title h2 { font-size: 2.2rem; margin-top: 6px; }
.section-title h2::after {
  content: ''; display: block; width: 70px; height: 4px; margin: 14px auto 0;
  background: var(--gradient-brand); border-radius: 4px;
}

.summary-card {
  background: var(--clr-white); border-radius: 16px; overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06); transition: transform .25s, box-shadow .25s;
  height: 100%;
}
.summary-card:hover { transform: translateY(-8px); box-shadow: 0 14px 30px rgba(0,0,0,0.12); }
.summary-card .card-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--gradient-brand); color: var(--clr-white);
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
  margin: 20px auto 0;
}
.summary-card .card-body { text-align: center; }
.summary-card img { height: 190px; width: 100%; object-fit: cover; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--clr-dark); color: rgba(255,255,255,0.75); padding: 60px 0 20px;
}
.site-footer h5 { color: var(--clr-white); margin-bottom: 20px; }
.site-footer a { color: rgba(255,255,255,0.65); }
.site-footer a:hover { color: var(--clr-primary); }
.site-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; padding-top: 20px;
  text-align: center; font-size: .85rem;
}

/* ---------- FLOATING CHAT ---------- */
.chat-toggle-btn {
  position: fixed; bottom: 24px; right: 24px; z-index: 1050;
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--gradient-brand); color: var(--clr-white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; border: none; box-shadow: 0 8px 22px rgba(0,0,0,0.25);
}
.chat-window {
  position: fixed; bottom: 100px; right: 24px; z-index: 1050;
  width: 340px; max-width: 90vw; height: 460px;
  background: var(--clr-white); border-radius: 16px; overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25); display: none; flex-direction: column;
}
.chat-window.active { display: flex; }
.chat-window .chat-header {
  background: var(--gradient-brand); color: var(--clr-white); padding: 14px 16px; font-weight: 700;
}
.chat-window .chat-body { flex: 1; overflow-y: auto; padding: 12px; background: var(--clr-bg); }
.chat-window .chat-input { display: flex; border-top: 1px solid #eee; }
.chat-window .chat-input input { flex: 1; border: none; padding: 12px; outline: none; }
.chat-window .chat-input button {
  background: var(--clr-primary); color: var(--clr-white); border: none; padding: 0 18px;
}
.chat-bubble { max-width: 80%; padding: 8px 12px; border-radius: 12px; margin-bottom: 8px; font-size: .9rem; }
.chat-bubble.visitor { background: var(--clr-primary); color: #fff; margin-left: auto; border-bottom-right-radius: 2px; }
.chat-bubble.admin { background: #fff; border: 1px solid #eee; border-bottom-left-radius: 2px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .hero-slider .carousel-item { height: 70vh; }
  .hero-slider .hero-caption h2 { font-size: 2rem; }
  .main-navbar .navbar-brand img { height: 42px; }
  .chat-window { width: 92vw; right: 4vw; }
}
