/* ==========================================================================
   Ankit Digital Blog — Global Stylesheet
   Extracted from header.php inline <style> + UI/UX + Mobile Responsive Fixes
   ========================================================================== */

:root{
  --brand-primary:#0d6efd;
  --brand-success:#198754;
  --text-dark:#1a1a1a;
  --text-muted:#6c757d;
  --bg-body:#f8f9fa;
  --radius-lg:14px;
  --radius-md:12px;
  --radius-sm:8px;
  --shadow-soft:0 4px 18px rgba(0,0,0,.06);
  --shadow-hover:0 14px 30px rgba(0,0,0,.12);
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:'Poppins',sans-serif;
  background:var(--bg-body);
  color:var(--text-dark);
  font-size:16px;
  line-height:1.6;
  animation:fadeIn .5s ease both;
  overflow-x:hidden; /* stops horizontal scroll on small screens */
}

a{
  text-decoration:none;
}

img{
  max-width:100%;
  height:auto;
}

.card{
  border:0;
  border-radius:var(--radius-lg);
  animation:fadeInUp .6s ease both;
  transition:transform .35s ease, box-shadow .35s ease;
}

.card:hover{
  transform:translateY(-6px);
  box-shadow:var(--shadow-hover) !important;
}

.card img{
  transition:transform .5s ease;
  overflow:hidden;
}

.card:hover img{
  transform:scale(1.06);
}

.card-img-top{
  overflow:hidden;
}

.section-title{
  font-size:28px;
  font-weight:700;
  margin-bottom:20px;
}

/* ==========================================================================
   Navbar — improved UI/UX + responsive behaviour
   ========================================================================== */

.navbar{
  animation:slideDown .5s ease both;
  transition:box-shadow .3s ease, padding .3s ease, background-color .3s ease;
  padding-top:.6rem;
  padding-bottom:.6rem;
}

.navbar.scrolled{
  box-shadow:var(--shadow-soft);
}

.navbar-brand img{
  height:42px;
  width:auto;
}

.navbar .nav-link{
  position:relative;
  font-weight:500;
  padding:.55rem .9rem !important;
  transition:color .25s ease;
}

.navbar .nav-link::after{
  content:"";
  position:absolute;
  left:.9rem;
  right:.9rem;
  bottom:0;
  width:0;
  height:2px;
  background:currentColor;
  transition:width .3s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after{
  width:calc(100% - 1.8rem);
}

.navbar .dropdown-menu{
  border:0;
  border-radius:var(--radius-sm);
  box-shadow:var(--shadow-soft);
}

/* Search + CTA row inside collapse */
.navbar form.d-flex{
  flex:1 1 220px;
  max-width:260px;
}

/* ==========================================================================
   Sidebar widgets
   ========================================================================== */

.list-group-item{
  transition:background-color .25s ease, padding-left .25s ease;
}

.list-group-item:hover{
  background:#f1f5ff;
  padding-left:1.5rem;
}

.btn{
  border-radius:var(--radius-sm);
  transition:transform .25s ease, box-shadow .25s ease;
}

.btn:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 18px rgba(13,110,253,.25);
}

.badge{
  animation:pulse 2.2s ease-in-out infinite;
}

/* WhatsApp floating CTA (mobile-friendly, always accessible) */
.whatsapp-float{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:1050;
  background:var(--brand-success);
  color:#fff;
  width:56px;
  height:56px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:26px;
  box-shadow:0 8px 20px rgba(25,135,84,.35);
  animation:pulse 2.4s ease-in-out infinite;
}

.whatsapp-float:hover{
  color:#fff;
  transform:scale(1.08);
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeInUp{
  from{opacity:0; transform:translateY(24px);}
  to{opacity:1; transform:translateY(0);}
}

@keyframes fadeIn{
  from{opacity:0;}
  to{opacity:1;}
}

@keyframes slideDown{
  from{opacity:0; transform:translateY(-16px);}
  to{opacity:1; transform:translateY(0);}
}

@keyframes pulse{
  0%{transform:scale(1);}
  50%{transform:scale(1.08);}
  100%{transform:scale(1);}
}

@keyframes shimmer{
  0%{background-position:-200% 0;}
  100%{background-position:200% 0;}
}

/* Stagger card entrance in a row */
.row .col-md-6:nth-child(1) .card{animation-delay:.05s;}
.row .col-md-6:nth-child(2) .card{animation-delay:.10s;}
.row .col-md-6:nth-child(3) .card{animation-delay:.15s;}
.row .col-md-6:nth-child(4) .card{animation-delay:.20s;}
.row .col-md-6:nth-child(5) .card{animation-delay:.25s;}
.row .col-md-6:nth-child(6) .card{animation-delay:.30s;}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce){
  *{
    animation:none !important;
    transition:none !important;
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablets & small laptops */
@media (max-width: 991.98px){
  .navbar-collapse{
    background:#fff;
    margin-top:.75rem;
    padding:1rem;
    border-radius:var(--radius-md);
    box-shadow:var(--shadow-soft);
  }

  .navbar .nav-link::after{
    display:none; /* underline effect only makes sense on desktop hover */
  }

  .navbar-nav{
    margin-bottom:.5rem;
  }

  .navbar form.d-flex{
    max-width:100%;
    margin:0 0 .75rem 0 !important;
  }

  .navbar .btn.btn-primary{
    width:100%;
    margin:.25rem 0 !important;
  }
}

/* Large phones / small tablets */
@media (max-width: 767.98px){
  .section-title{
    font-size:22px;
    margin-bottom:14px;
  }

  .container{
    padding-left:16px;
    padding-right:16px;
  }

  .card-body{
    padding:1rem;
  }

  h1{
    font-size:1.5rem;
  }

  .navbar-brand img{
    height:36px;
  }
}

/* Small phones */
@media (max-width: 575.98px){
  body{
    font-size:15px;
  }

  .card-header{
    font-size:.95rem;
    padding:.75rem 1rem;
  }

  .card .list-group-item .d-flex img{
    width:56px !important;
    height:56px !important;
  }

  .whatsapp-float{
    width:50px;
    height:50px;
    font-size:22px;
    right:14px;
    bottom:14px;
  }

  /* Stack lead-form select/buttons a bit tighter */
  .card-body .mb-3{
    margin-bottom:.75rem !important;
  }
}

/* Extra-small / very old devices */
@media (max-width: 360px){
  .navbar-brand img{
    height:30px;
  }

  .section-title{
    font-size:19px;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

:root{
  --footer-bg:#0a1a3c;
  --footer-bg-2:#0d2050;
  --brand-orange:#f7941d;
}

.text-orange{
  color:var(--brand-orange);
}

.btn-orange{
  background:var(--brand-orange);
  color:#fff;
  font-weight:600;
  border:0;
}

.btn-orange:hover{
  background:#e07f00;
  color:#fff;
}

.site-footer{
  background:var(--footer-bg);
  color:rgba(255,255,255,.85);
  margin-top:4rem;
}

.footer-heading{
  color:#fff;
  font-weight:700;
  position:relative;
  padding-bottom:.6rem;
  margin-bottom:1rem;
}

.footer-heading::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:36px;
  height:3px;
  background:var(--brand-orange);
  border-radius:2px;
}

.footer-about-text{
  color:rgba(255,255,255,.7);
  font-size:.95rem;
}

.footer-contact-list li{
  margin-bottom:.65rem;
  color:rgba(255,255,255,.8);
  font-size:.95rem;
}

.footer-contact-list li a{
  color:rgba(255,255,255,.8);
}

.footer-contact-list li a:hover{
  color:var(--brand-orange);
}

.footer-contact-list i{
  color:var(--brand-orange);
  width:20px;
  margin-right:.5rem;
  text-align:center;
}

.footer-social a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.25);
  color:#fff;
  margin-right:.5rem;
  transition:background .25s ease, border-color .25s ease, transform .25s ease;
}

.footer-social a:hover{
  background:var(--brand-orange);
  border-color:var(--brand-orange);
  transform:translateY(-3px);
}

.footer-link-list li,
.footer-service-list li{
  margin-bottom:.6rem;
  font-size:.95rem;
  color:rgba(255,255,255,.8);
}

.footer-link-list a{
  color:rgba(255,255,255,.8);
  transition:color .2s ease, padding-left .2s ease;
}

.footer-link-list a i{
  font-size:.75rem;
  margin-right:.4rem;
  color:var(--brand-orange);
}

.footer-link-list a:hover{
  color:var(--brand-orange);
  padding-left:4px;
}

.footer-service-list li i{
  color:var(--brand-orange);
  width:20px;
  margin-right:.5rem;
  text-align:center;
}

.footer-help-box{
  display:flex;
  gap:.85rem;
  align-items:flex-start;
  background:var(--footer-bg-2);
  border-radius:var(--radius-md);
  padding:1rem;
}

.footer-help-icon{
  width:42px;
  height:42px;
  border-radius:50%;
  background:rgba(255,255,255,.08);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}

.footer-help-number{
  display:block;
  color:var(--brand-orange);
  font-weight:700;
}

.footer-help-time{
  font-size:.85rem;
  color:rgba(255,255,255,.6);
}

.footer-trust-strip{
  background:var(--footer-bg-2);
  border-radius:var(--radius-md);
  padding:1.75rem 1rem;
  margin-top:2.5rem;
}

.footer-trust-strip i{
  font-size:1.6rem;
  color:var(--brand-orange);
  margin-bottom:.5rem;
  display:block;
}

.footer-trust-strip small{
  color:rgba(255,255,255,.6);
}

.footer-bottom{
  background:#081633;
  border-top:1px solid rgba(255,255,255,.08);
  padding:1rem 0;
  font-size:.9rem;
  color:rgba(255,255,255,.65);
}

.footer-payment-badges{
  display:flex;
  gap:.5rem;
  flex-wrap:wrap;
}

.pay-badge{
  background:#fff;
  color:#0a1a3c;
  font-weight:700;
  font-size:.7rem;
  letter-spacing:.02em;
  border-radius:4px;
  padding:.35rem .6rem;
}

.pay-visa{color:#1a1f71;}
.pay-mc{color:#eb001b;}
.pay-rupay{color:#0d6efd;}
.pay-upi{color:#198754;}

/* ==========================================================================
   Back to top button
   ========================================================================== */

.back-to-top-btn{
  display:none;
  align-items:center;
  justify-content:center;
  position:fixed;
  bottom:100px;
  right:30px;
  width:46px;
  height:46px;
  border-radius:50%;
  border:0;
  background:var(--brand-primary);
  color:#fff;
  box-shadow:var(--shadow-soft);
  z-index:999;
  transition:opacity .25s ease, transform .25s ease, background .2s ease;
}

.back-to-top-btn:hover{
  background:#0b5ed7;
}

.back-to-top-btn.show{
  display:flex;
}

/* ==========================================================================
   Mobile-only sticky bottom CTA bar (Contact Now + WhatsApp)
   ========================================================================== */

.mobile-sticky-cta{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:1060;
  display:flex;
  box-shadow:0 -4px 18px rgba(0,0,0,.15);
  padding-bottom:env(safe-area-inset-bottom, 0);
}

.sticky-cta-btn{
  flex:1 1 50%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  padding:.85rem .5rem;
  font-weight:600;
  font-size:.92rem;
  color:#fff;
}

.sticky-cta-contact{
  background:var(--brand-primary);
}

.sticky-cta-contact:hover{
  background:#0b5ed7;
  color:#fff;
}

.sticky-cta-whatsapp{
  background:var(--brand-success);
}

.sticky-cta-whatsapp:hover{
  background:#157347;
  color:#fff;
}

@media (max-width: 767.98px){
  /* keep page content clear of the fixed sticky bar */
  body{
    padding-bottom:60px;
  }

  /* nudge back-to-top up so it never overlaps the sticky CTA bar */
  .back-to-top-btn{
    bottom:78px;
    right:16px;
    width:42px;
    height:42px;
  }

  .footer-bottom .container{
    justify-content:center;
    text-align:center;
  }
}