@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* =====================================================
   🔱 UNIFORM LAYOUT & TITLES
===================================================== */

/* ডানে ও বামে একই প্যাডিং (১০%) */
.services, .puja-section {
    padding: 100px 10%; 
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* টাইটেল স্টাইল (UltraAstro Inspired Golden Gradient) */
.section-title, .puja-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

:root {
    --bg-dark: #120529;
    --gold: #c5a059;
    --card-bg: #1a0a36;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; background: var(--bg-dark); color: var(--white); overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gold-text { color: var(--gold); }

/* Header */
.main-header { background: rgba(18, 5, 41, 0.95); padding: 10px 0; position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid rgba(197, 160, 89, 0.3); }
.logo-area { display: flex; align-items: center; }
.logo-area img { height: 60px; margin-right: 15px; }
.logo-text h1 { font-size: 20px; color: var(--gold); }
.logo-text p { font-size: 11px; letter-spacing: 2px; color: #fff; }
.nav-menu ul { display: flex; list-style: none; }
.nav-menu ul li a { color: #fff; text-decoration: none; padding: 10px 15px; font-weight: 500; transition: 0.3s; }
.nav-menu ul li a:hover { color: var(--gold); }

/* Hero Slider */
.hero-slider { position: relative; height: 75vh; overflow: hidden; }
.slide { position: absolute; width: 100%; height: 100%; background-size: cover; background-position: center; display: flex; align-items: center; opacity: 0; transition: 1s ease; }
.slide.active { opacity: 1; }
.hero-content { padding: 0 10%; }
.hero-content h2 { font-size:3.5rem; margin-bottom: 15px; }

/* About Section Updated */
.about-section { padding: 80px 0; background: #0d041d; }
.about-flex { display: flex; gap: 60px; align-items: center; }
.about-img-container { position: relative; }
.gold-border-frame { border: 4px solid var(--gold); padding: 15px; border-radius: 10px; background: rgba(197, 160, 89, 0.05); }
.gold-border-frame img { width: 350px; display: block; border-radius: 5px; }
.exp-badge { position: absolute; bottom: -20px; right: -20px; background: var(--gold); color: #000; padding: 12px 25px; font-weight: bold; border-radius: 5px; box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.about-text-content h2 { font-size: 2.5rem; margin: 10px 0; }
.about-text-content p { margin-bottom: 20px; color: #ccc; }
.feature-list { list-style: none; }
.feature-list li { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; font-weight: 600; }
.feature-list li i { color: var(--gold); }

/* ===== Our Services – Golden Border + Hover ===== */

.s-box {
  position: relative;
  background: linear-gradient(180deg, #1a0a36, #120529);
  border-radius: 16px;
  padding: 30px;

  /* 🔱 Golden Border 🔱 */
  border: 1.5px solid rgba(197, 160, 89, 0.65);

  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.35);

  transition: all 0.35s ease;
}

/* soft outer glow layer */
.s-box::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(197,160,89,0.75),
    rgba(197,160,89,0.15),
    rgba(197,160,89,0.75)
  );
  opacity: 0;
  z-index: -1;
  transition: opacity 0.35s ease;
}

/* hover effect */
.s-box:hover {
  transform: translateY(-8px);
  border-color: #f5d76e; /* brighter gold on hover */
  box-shadow:
    0 18px 45px rgba(197, 160, 89, 0.35),
    0 0 32px rgba(197, 160, 89, 0.25);
}

/* glow visible on hover */
.s-box:hover::before {
  opacity: 1;
}

/* Updated: Service Card Icons (Bigger & Golden) */
.s-box i {
    font-size: 3.5rem !important; /* সাইজ অনেক বাড়ানো হলো */
    margin-bottom: 20px;
    display: inline-block;
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728); /* গোল্ডেন লুক */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.35s ease, color 0.35s ease;
}

.s-box:hover i {
    transform: scale(1.1) translateY(-5px) !important; /* হোভারে একটু উপরে উঠবে */
}

/* title highlight */
.s-box h3 {
  transition: color 0.35s ease;
}

.s-box:hover h3 {
  color: #f5d76e;
}



/* Service Section Styling */
.services { padding: 40px 0; text-align: center; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* এক লাইনে ৪টি কার্ড */
  gap: 20px;
  justify-content: center;
}

/* Service Section Styling */
.services { 
    padding: 40px 0; 
    text-align: center; 
}

.service-grid {
    display: grid;
    /* এক লাইনে ৪টি কার্ড থাকবে */
    grid-template-columns: repeat(4, 1fr); 
    
    /* গ্যাপ কমানোর জন্য নিচের লাইনটি পরিবর্তন করুন  */
    gap: 10px; /* ২০ থেকে কমিয়ে ১০ করা হলো, আপনি চাইলে ৫ বা আরও কমাতে পারেন */
    
    justify-content: center;
    max-width: 1200px; /* গ্রিডটিকে খুব বেশি চওড়া হতে বাধা দেয় */
    margin: 0 auto;
}

.s-box {
    background: var(--card-bg);
    padding: 20px; /* ভেতরের প্যাডিং একটু কমানো হয়েছে যাতে কার্ড খুব বড় না লাগে */
    border-radius: 12px;
    border: 1.5px solid rgba(197, 160, 89, 0.65);
    
    min-height: 250px; /* উচ্চতা কিছুটা কমানো হয়েছে যাতে ব্যালেন্স থাকে */
    width: 100%;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: 0.3s;
}

/* মোবাইলে যাতে গ্যাপ আবার ঠিক থাকে */
@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr); /* মোবাইলে এক লাইনে ২টি কার্ড */
        gap: 8px;
    }
}

/* =====================================================
    ৫. TEXT CONSULTATION (ডার্ক প্রিমিয়াম লুক)
==================================================== */
.consultation-container { display: flex; gap: 40px; max-width: 900px; margin: 0 auto; padding: 20px; color: #fff; }
.instruction-side { flex: 1; background: rgba(255,255,255,0.05); padding: 25px; border-radius: 15px; border: 1px solid rgba(255,215,0,0.2); }
.step-num { background: gold; color: #000; width: 25px; height: 25px; display: inline-flex; justify-content: center; align-items: center; border-radius: 50%; font-weight: bold; margin-right: 10px; }
.step-item { display: flex; align-items: center; margin-bottom: 15px; font-size: 14px; }
.qr-img { width: 100%; max-width: 180px; border-radius: 10px; margin: 10px 0; border: 4px solid #fff; }

.widget-card { background: #1a1a2e; padding: 30px; border-radius: 20px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.upload-btn { background: transparent; border: 2px dashed #444; padding: 15px; display: block; border-radius: 10px; cursor: pointer; transition: 0.3s; }
.upload-btn:hover { border-color: gold; color: gold; }
.action-btn { width: 100%; background: gold; color: #000; border: none; padding: 12px; border-radius: 8px; font-weight: bold; cursor: pointer; margin-top: 20px; }

.waiting-screen { padding: 40px 20px; text-align: center; }
.spinner { width: 30px; height: 30px; border: 3px solid rgba(255,215,0,0.3); border-top: 3px solid gold; border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 15px; }
@keyframes spin { 100% { transform: rotate(360deg); } }
.pulse { height: 10px; width: 10px; background-color: #44ff44; border-radius: 50%; display: inline-block; margin-right: 5px; box-shadow: 0 0 8px #44ff44; animation: blink 1s infinite; }
@keyframes blink { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } }


/* ================= PUROHIT ON DEMAND STYLES ================= */
/* Purohit Section Enhancements */
.purohit-intro p {
    color: #e0e0e0;
    font-size: 1.1rem;
}

.contact-box-mini {
    background: rgba(197, 160, 89, 0.15);
    padding: 10px;
    border-radius: 5px;
    margin: 15px 0;
    border-left: 3px solid var(--gold);
    text-align: center;
}

.purohit-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 15px;
}

.purohit-mini-grid span {
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px;
    border-radius: 4px;
    border: 1px solid rgba(197, 160, 89, 0.2);
}

/* নিশ্চিত করা যে কার্ডগুলো সমান উচ্চতার হয় */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    align-items: stretch;
}

.puja-slide {
    height: 100%;
    display: flex;
    flex-direction: column;
}


/* ===== Monthly Puja Subscription Slider ===== */

.puja-section {
  padding: 50px 0;
  background: radial-gradient(circle at top, #1a0a36, #120529);
}

.puja-slider-wrapper {
  display: flex;
  align-items: center;
  gap: 18px;
}

.puja-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #d4af37, #f5d76e);
  color: #120529;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(212,175,55,.4);
}

.puja-viewport {
  overflow: hidden;
  width: 100%;
}

.puja-track {
  display: flex;
  gap: 28px;
  transition: transform 0.6s ease;
}

.puja-slide {
  min-width: 340px;
  background: linear-gradient(180deg, #1a0a36, #120529);
  border: 1.5px solid rgba(212,175,55,.6);
  border-radius: 18px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 28px rgba(0,0,0,.45);
  transition: transform .3s, box-shadow .3s;
}

.puja-slide:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 45px rgba(212,175,55,.35);
}

.puja-slide.featured {
  border: 3px solid #f5d76e;
}

.price {
  font-size: 22px;
  font-weight: 600;
  margin: 8px 0;
}

.subtitle {
  color: #f5d76e;
  margin-bottom: 10px;
}

.puja-slide ul {
  padding-left: 18px;
}

.yantra {
  margin-top: auto;
  font-size: 14px;
  opacity: .9;
}

/* Subscribe Button */
.subscribe-btn {
  margin-top: 18px;
  padding: 12px;
  border-radius: 30px;
  background: linear-gradient(135deg, #d4af37, #f5d76e);
  color: #120529;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
}


@media (max-width: 992px) {
    .about-flex { flex-direction: column; text-align: center; }
    .gold-border-frame img { width: 100%; max-width: 400px; }
    .plan-card { min-width: calc(50% - 10px); }
}

/* ================= FOOTER (PREMIUM) ================= */

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  padding: 60px 20px 40px;
}

.footer-about h3 {
  color: #d4af37;
  font-size: 1.7rem;
  margin-bottom: 15px;
}

.footer-about p {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* SOCIAL ICONS */
.social-icons {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}

.social-icons a {
  width: 44px;
  height: 44px;
  background: radial-gradient(circle at top, #d4af37, #b8942f);
  color: #120529;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 18px;
  box-shadow: 0 6px 18px rgba(212,175,55,0.45);
  transition: all 0.3s ease;
}

.social-icons a:hover {
  transform: translateY(-4px) scale(1.12);
  box-shadow: 0 12px 30px rgba(212,175,55,0.65);
}

/* CONTACT */
.footer-contact h4,
.footer-map h4 {
  color: #d4af37;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.footer-contact p {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

/* MAP */
.footer-map iframe {
  width: 100%;
  height: 220px;
  border-radius: 14px;
  border: 2px solid rgba(212,175,55,0.35);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

/* BOTTOM BAR */
.footer-bottom {
  background: #030008;
  text-align: center;
  padding: 15px 10px;
  font-size: 0.9rem;
  border-top: 1px solid rgba(212,175,55,0.25);
}
/* ===== FULL WIDTH FOOTER FIX ===== */

.footer-premium {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: linear-gradient(180deg, #05000d, #120529);
  border-top: 2px solid rgba(212,175,55,0.45);
  color: #eaeaea;
  margin-top: 100px;
}

/* container থাকবে কিন্তু max-width control করবে */
.footer-premium .container {
  max-width: 1300px;   /* চাইলে 1400px দিতে পারেন */
  margin: 0 auto;
  padding: 60px 20px;
}

/* footer bottom full width */
.footer-bottom {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: #030008;
  text-align: center;
  padding: 15px 10px;
}

/* =================================================
   🔱 FULL RESPONSIVE PATCH – ALL DEVICES
   (ADD ONLY – DO NOT DELETE EXISTING CSS)
================================================= */

/* ---------- LARGE TABLET & BELOW ---------- */
@media (max-width: 992px) {

  /* HEADER */
  .flex-between {
    flex-direction: column;
    gap: 10px;
  }

  .nav-menu ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* HERO */
  .hero-content {
    text-align: center;
    padding: 0 6%;
  }

  .hero-content h2 {
    font-size: 2.4rem;
  }

  /* ABOUT */
  .about-flex {
    flex-direction: column;
    text-align: center;
  }

  .exp-badge {
    position: static;
    margin-top: 15px;
    display: inline-block;
  }

  /* PUJA CARD */
  .puja-slide {
    min-width: 320px;
  }
}

/* ---------- MOBILE & SMALL TABLET ---------- */
@media (max-width: 768px) {

  /* HEADER */
  .logo-area {
    flex-direction: column;
    text-align: center;
  }

  .logo-area img {
    margin-bottom: 8px;
  }

  .nav-menu ul li a {
    padding: 8px 10px;
    font-size: 14px;
  }

  /* HERO */
  .hero-slider {
    height: 60vh;
  }

  .hero-content h2 {
    font-size: 1.9rem;
    line-height: 1.3;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  /* SERVICES */
  .service-grid {
    grid-template-columns: 1fr;
  }

  /* PUJA SLIDER */
  .puja-slide {
    min-width: 85vw;       /* 🔑 mobile perfect */
    padding: 24px;
  }

  .puja-arrow {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  /* FOOTER */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-contact p {
    justify-content: center;
  }

  .social-icons {
    justify-content: center;
  }

  .footer-map iframe {
    height: 200px;
  }
}

/* ---------- SMALL MOBILE ---------- */
@media (max-width: 480px) {

  .hero-content h2 {
    font-size: 1.6rem;
  }

  .puja-title {
    font-size: 1.7rem;
  }

  .price {
    font-size: 20px;
  }

  .subscribe-btn {
    padding: 12px 18px;
    font-size: 14px;
  }
}
/* ================= HAMBURGER MENU ================= */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;   /* 🔥 এটাতেই right side এ যাবে */
  z-index: 2000;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: #c5a059;
  border-radius: 2px;
  transition: 0.3s;
}

/* MOBILE NAV */
@media (max-width: 768px) {

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #120529;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    border-top: 1px solid rgba(212,175,55,0.25);
  }

  .nav-menu ul {
    flex-direction: column;
    padding: 20px 0;
  }

  .nav-menu ul li a {
    display: block;
    padding: 12px;
    text-align: center;
  }

  .nav-menu.active {
    max-height: 600px;
  }
}

/* ================= HAMBURGER POSITION FIX ================= */

/* Mobile header layout fix */
@media (max-width: 768px) {

  .main-header .flex-between {
    flex-direction: row;          /* 🔥 column নয় */
    justify-content: space-between;
    align-items: center;
  }

  .logo-area {
    flex-direction: row;
    text-align: left;
  }

  .hamburger {
    margin-left: auto;
  }
}

/* ================= PUJA SLIDER FIX ================= */

/* ১. সব কার্ডের উচ্চতা সমান করার জন্য */
.puja-track {
    display: flex;
    align-items: stretch; /* এটি সব কার্ডকে সমান লম্বা করবে */
    gap: 28px;
    padding-bottom: 20px; /* নিচের শ্যাডোর জন্য কিছু জায়গা */
}

.puja-slide {
    min-width: 340px;
    height: auto; /* কন্টেন্ট অনুযায়ী অ্যাডজাস্ট হবে কিন্তু stretch এর কারণে সব সমান থাকবে */
    display: flex;
    flex-direction: column; /* বাটনগুলো নিচে রাখার জন্য */
    justify-content: flex-start;
}

/* ২. বাটনগুলোকে সবসময় কার্ডের একদম নিচে রাখার জন্য */
.puja-slide .subscribe-btn {
    margin-top: auto; 
    display: block;
    width: 100%;
}

/* ৩. কার্ডের ভিতরের লিস্ট স্টাইল ঠিক করা */
.puja-slide ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    flex-grow: 1; /* কন্টেন্ট কম থাকলেও জায়গা দখল করে রাখবে */
}

.puja-slide ul li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* ৪. মোবাইল রেসপন্সিভ ফিক্স */
@media (max-width: 768px) {
    .puja-slide {
        min-width: 280px; /* মোবাইলে কার্ড একটু ছোট হবে যাতে স্ক্রিনে ধরে */
    }
}

/* ১. বর্ডার ফিক্স (কারোরই মোটা বর্ডার থাকবে না ডিফল্টভাবে) */
.puja-slide, .puja-slide.featured {
    border: 2px solid rgba(212, 175, 55, 0.6) !important;
}

/* ২. পুরোহিত লিস্ট স্টাইল */
.purohit-list { list-style: none; padding: 0 !important; margin: 15px 0; text-align: left; }
.purohit-list li { margin-bottom: 10px; font-size: 0.9rem; }

/* ৩. চেক বক্স গ্রিড ডিজাইন */
.purohit-checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.cb-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(197, 160, 89, 0.2);
    transition: 0.3s;
}

.cb-item:hover { border-color: var(--gold); background: rgba(197, 160, 89, 0.1); }

.cb-item input[type="checkbox"] {
    accent-color: var(--gold);
    transform: scale(1.2);
}

.contact-box-purohit {
    background: rgba(197, 160, 89, 0.1);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-weight: 600;
}




/* ================= GOLDEN RECOMMENDED PLAN ================= */

.puja-slide.golden-plan {
  background: linear-gradient(
    135deg,
    #f5d76e 0%,
    #e6b84f 40%,
    #cfa437 100%
  );
  color: #2b1a05;
  border: 2px solid #ffdd88;
  box-shadow: 0 0 25px rgba(245, 215, 110, 0.6);
  position: relative;
}

/* Text adjustments to stay readable */
.puja-slide.golden-plan h3,
.puja-slide.golden-plan .price {
  color: #2b1a05;
  font-weight: 800;
}

.puja-slide.golden-plan .subtitle,
.puja-slide.golden-plan p,
.puja-slide.golden-plan li {
  color: #3b2508;
}

/* Button premium look */
.puja-slide.golden-plan .subscribe-btn {
  background: #2b1a05;
  color: #f5d76e;
  border: none;
}

.puja-slide.golden-plan .subscribe-btn:hover {
  background: #1a0f03;
}


/* ================= RECOMMENDED BADGE (FIXED VISIBILITY) ================= */

.recommended-badge {
  position: absolute;
  top: -10px;
  right: 16px;

  background: linear-gradient(135deg, #2b1a05, #000);
  color: #ffd166;

  padding: 6px 16px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;

  border-radius: 14px;
  border: 1.5px solid #ffd166;

  box-shadow:
    0 4px 12px rgba(0,0,0,0.5),
    0 0 8px rgba(255, 209, 102, 0.6);

  z-index: 10;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Adjusted for better responsiveness */
    gap: 20px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns for tablets */
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .service-grid {
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 8px;
    }
}

/* =====================================================
   🔱 MOBILE HEADER RE-OPTIMIZATION (FINAL FIX)
   (এটি আপনার ডেস্কটপ ভিউ পরিবর্তন করবে না)
===================================================== */

@media screen and (max-width: 768px) {
    /* ১. মেইন কন্টেইনার ফিক্স */
    .main-header .container.flex-between {
        display: flex !important;
        flex-direction: row !important; /* কলাম থেকে রো-তে পরিবর্তন */
        justify-content: space-between !important;
        align-items: center !important;
        padding: 5px 15px !important;
        height: 60px !important; /* হেডারের উচ্চতা নির্দিষ্ট করা হলো */
    }

    /* ২. লোগো এবং নাম পাশাপাশি রাখা */
    .logo-area {
        display: flex !important;
        flex-direction: row !important; /* ইমেজ ও নাম পাশাপাশি */
        align-items: center !important;
        text-align: left !important;
        gap: 10px !important;
        flex: 1 !important;
    }

    /* ৩. লোগো সাইজ ছোট করা */
    .logo-area img {
        height: 35px !important; 
        width: auto !important;
        margin: 0 !important;
    }

    /* ৪. কোম্পানির নাম এক লাইনে ছোট করা */
    .logo-text h1 {
        font-size: 0.95rem !important; 
        line-height: 1 !important;
        margin: 0 !important;
        white-space: nowrap !important; /* টেক্সট যাতে নিচে না নামে */
        color: var(--gold) !important;
    }

    /* ৫. ট্যাগলাইন হাইড করা (জায়গা বাঁচানোর জন্য) */
    .logo-text p {
        display: none !important;
    }

    /* ৬. হ্যামবার্গার মেনু বাটন ফিক্স */
    .hamburger {
        display: flex !important;
        margin-left: auto !important;
        padding: 5px !important;
        z-index: 2001 !important;
    }

    /* ৭. মোবাইল নেভিগেশন মেনু ওপেনিং ফিক্স */
    .nav-menu {
        position: fixed !important;
        top: 60px !important; /* হেডারের ঠিক নিচে */
        left: 0 !important;
        width: 100% !important;
        background: var(--bg-dark) !important;
        max-height: 0;
        transition: max-height 0.4s ease-in-out !important;
    }
}

/* Floating Feedback Button Style */
.floating-feedback {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg); /* বাটনটিকে উলম্বভাবে বা খাড়াভাবে দেখাবে */
    transform-origin: right bottom;
    background: linear-gradient(to right, #bf953f, #aa771c); /* গোল্ডেন থিম */
    color: #fff;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px 5px 0 0;
    z-index: 9999;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.floating-feedback:hover {
    background: #1a0b2e; /* হোভার করলে আপনার সাইটের ডার্ক কালার হবে */
    color: #ffd700;
    padding-right: 30px; /* হোভার করলে সামান্য বেরিয়ে আসবে */
}

.floating-feedback i {
    transform: rotate(90deg); /* আইকনটিকে সোজা রাখার জন্য */
}

/* মোবাইলের জন্য ছোট সাইজ */
@media (max-width: 768px) {
    .floating-feedback {
        padding: 8px 15px;
        font-size: 12px;
    }
}

/* ============= Appointment Section ============== */
.appointment-section {
    padding: 80px 0;
    background: var(--bg-dark);
}

.appointment-grid {
    display: flex;
    gap: 30px;
    justify-content: center; /* সেন্টারে রাখার জন্য */
    flex-wrap: wrap;
    margin-top: 40px;
}

.booking-card {
    background: #1a0a36;
    padding: 40px;
    border-radius: 16px;
    border: 1.5px solid rgba(197, 160, 89, 0.6);
    text-align: center;
    width: 300px;
    transition: 0.3s;
}

.booking-card:hover {
    transform: translateY(-10px);
    border-color: #f5d76e;
}

.booking-card h3 { color: #fff; margin-bottom: 10px; }
.booking-card .price { font-size: 1.8rem; color: var(--gold); font-weight: bold; margin-bottom: 25px; }

/* Modal Design Fix */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: #120529;
    padding: 40px;
    border-radius: 20px;
    border: 2px solid var(--gold);
    text-align: center;
    max-width: 450px;
    width: 100%;
    position: relative;
    box-shadow: 0 0 30px rgba(197, 160, 89, 0.2);
}

.qr-container {
    margin: 25px 0;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    display: inline-block;
}

.qr-container img {
    width: 220px;
    height: auto;
    display: block;
}

.modal-instruction {
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--gold);
    font-size: 30px;
    cursor: pointer;
}

/* Fix for Button overlapping text */
.confirm-btn {
    display: block;
    background: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728);
    color: #000;
    text-decoration: none;
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    transition: 0.3s;
    margin-top: 10px;
}

.confirm-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.4);
}


#booking-panel {
    width: 320px;
    background: #0c0416;
    border-left: 1px solid #333;
    padding: 15px;
    overflow-y: auto;
}

#booking-box {
    background: #1a0b2e;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #333;
}

#confirmed-list {
    margin-top: 10px;
    font-size: 12px;
    color: #ccc;
}

.btn-wa {
    background: #25D366;
    color: white;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
}

.modal-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 4px;
    border: 1px solid #444;
    background: #0c0416;
    color: white;
}

/* ===== BOOK APPOINTMENT ===== */

/* FIXING THE BOOKING LAYOUT */
.appointment-layout { display: flex; gap: 40px; margin-top: 40px; align-items: flex-start; text-align: left; }
.appointment-info { flex: 1; background: rgba(255, 215, 0, 0.05); padding: 30px; border-radius: 15px; border-left: 4px solid #ffd700; }
.appointment-info h4 { color: #ffd700; margin-bottom: 20px; }
.appointment-info ul { list-style: none; padding: 0; }
.appointment-info li { margin-bottom: 12px; color: #ccc; font-size: 14px; }
.appointment-cards { flex: 1.5; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.booking-card { background: #1a0b2e; border: 1px solid #333; padding: 25px; border-radius: 15px; text-align: center; }
.qr-box { background: #fff; padding: 10px; border-radius: 10px; margin: 15px 0; color: #000; font-weight: bold; }
.qr-box img { width: 100%; height: auto; }
.book-btn { background: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728); border: none; padding: 12px; width: 100%; border-radius: 8px; font-weight: bold; cursor: pointer; }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 10000; display: flex; justify-content: center; align-items: center; }
.appointment-card-modal { background: #1a0b2e; padding: 30px; border-radius: 20px; border: 1px solid #ffd700; width: 90%; max-width: 500px; position: relative; }
.form-grid { display: grid; gap: 15px; margin-top: 20px; }
.form-grid input, .form-grid select { padding: 12px; background: #0c0416; border: 1px solid #333; color: white; border-radius: 5px; }
.submit-booking-btn { background: #ffd700; color: black; border: none; padding: 15px; width: 100%; border-radius: 10px; font-weight: bold; cursor: pointer; }
@media (max-width: 992px) { .appointment-layout { flex-direction: column; } .appointment-cards { grid-template-columns: 1fr; } }




.appointment-wrap {
  padding: 100px 0;
  background: radial-gradient(circle at top, #1a0a36, #120529);
}

.appointment-title {
  text-align: center;
  font-size: 2.2rem;
  letter-spacing: 4px;
  color: #d4af37;
  margin-bottom: 10px;
}

.appointment-sub {
  text-align: center;
  color: #ccc;
  margin-bottom: 60px;
}

.appointment-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
}

.guideline-box {
  border: 1.5px solid rgba(212,175,55,.5);
  border-radius: 16px;
  padding: 30px;
  background: rgba(255,255,255,0.04);
}

.guideline-box h3 {
  color: #f5d76e;
  margin-bottom: 20px;
}

.guideline-box ul li {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.card-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.consult-card {
  background: linear-gradient(180deg,#1a0a36,#120529);
  border: 1.5px solid rgba(212,175,55,.6);
  border-radius: 18px;
  padding: 25px;
  text-align: center;
}

.consult-card h4 {
  color: #fff;
  margin-bottom: 5px;
}

.price {
  color: #f5d76e;
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.qr-img {
  width: 180px;
  margin: 10px auto;
  display: block;
  background: #fff;
  padding: 10px;
  border-radius: 12px;
}

.book-btn {
  background: linear-gradient(135deg,#d4af37,#f5d76e);
  border: none;
  padding: 12px 25px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
}

/* MODAL */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.modal-box {
  background: #120529;
  padding: 30px;
  width: 360px;
  border-radius: 16px;
  position: relative;
}

.modal-box input,
.modal-box select {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  background: #0c0416;
  border: 1px solid #444;
  color: #fff;
}

.confirm-btn {
  width: 100%;
  padding: 12px;
  background: #f5d76e;
  border: none;
  font-weight: bold;
}

.close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 22px;
  cursor: pointer;
}

function startAppointment(type) {
  document.getElementById('appointmentModal').style.display = 'flex';
  document.getElementById('a_type').value = type;
  toggleChamberSelect();
}

function toggleChamberSelect() {
  const t = document.getElementById('a_type').value;
  document.getElementById('a_chamber_div').style.display =
    (t === 'offline') ? 'block' : 'none';
}

function closeModal(id) {
  document.getElementById(id).style.display = 'none';
}

function submitAppointment() {
  const name = a_name.value.trim();
  const phone = a_phone.value.trim();
  const type = a_type.value;
  const chamber = a_chamber.value;
  const date = a_date.value;
  const time = a_time.value;

  if (!name || !phone || !type || !date || !time) {
    alert("সব তথ্য পূরণ করুন");
    return;
  }

  firebase.database().ref('requests').push({
    type: 'booking',
    name, phone, date, time,
    consultType: type,
    chamber: type === 'offline' ? chamber : 'Online',
    status: 'pending',
    createdAt: Date.now()
  }).then(() => {
    alert("Appointment request sent successfully");
    closeModal('appointmentModal');
  });
}
