/* ════════════════════════════
   BLOGS PAGE
════════════════════════════ */

/* PAGE HERO */
.page-hero {
  min-height: 380px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 140px 6% 80px;
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(201,168,76,0.1) 0%, transparent 70%),
    linear-gradient(180deg, #0a0a0a 0%, #111111 100%);
}
.page-hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.05) 1px, transparent 1px);
  background-size: 50px 50px;
}
.page-hero .section-tag { margin-bottom: 16px; position: relative; z-index: 1; }
.page-hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 16px;
  position: relative; z-index: 1;
}
.page-hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 28px;
  position: relative; z-index: 1;
}
.breadcrumb {
  display: flex; align-items: center; gap: 10px;
  font-size: .82rem;
  color: var(--muted);
  position: relative; z-index: 1;
}
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb span { color: var(--muted); }

/* FILTER TABS */
.blogs-main { padding: 70px 6% 100px; background: var(--bg); }

.blog-filters {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 56px;
}
.bfilter-btn {
  padding: 9px 22px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .25s;
  letter-spacing: .3px;
}
.bfilter-btn:hover {
  border-color: rgba(201,168,76,0.5);
  color: var(--accent);
}
.bfilter-btn.active {
  background: linear-gradient(135deg, #c9a84c, #f0d080);
  border-color: transparent;
  color: #0a0a0a;
  font-weight: 700;
}

/* BLOG CARDS GRID */
.blogs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* INDIVIDUAL CARD */
.bcard {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform .4s cubic-bezier(.23,1,.32,1),
              border-color .3s, box-shadow .4s;
  display: flex; flex-direction: column;
}
.bcard:hover {
  transform: translateY(-8px);
  border-color: rgba(201,168,76,0.45);
  box-shadow: 0 24px 64px rgba(201,168,76,0.1);
}
.bcard.hidden { display: none; }

/* Card image area */
.bcard-img {
  height: 220px;
  position: relative;
  overflow: hidden;
}
.bcard-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.75) 0%, transparent 55%);
}
.bcard-cat {
  position: absolute;
  top: 18px; left: 18px;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.45);
  color: var(--accent);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 50px;
  backdrop-filter: blur(8px);
  z-index: 2;
}

/* 6 unique image backgrounds */
.bimg-1 {
  background-image: url('/img/digital-marketing.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Completely disable old effects */
.bimg-1::before,
.bimg-1::after {
  content: none;
}

.bimg-2 {
  background: radial-gradient(ellipse 70% 80% at 60% 30%, rgba(240,208,128,0.18) 0%, transparent 65%),
              linear-gradient(145deg, #100e00, #231a00, #0d0800);
}
.bimg-2::after {
  content: '📱';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  filter: grayscale(1) sepia(1) saturate(3);
  opacity: 0.35;
}

.bimg-3 {
  background: radial-gradient(ellipse 60% 50% at 70% 60%, rgba(201,168,76,0.2) 0%, transparent 65%),
              linear-gradient(135deg, #080808, #181200, #0a0a0a);
}
.bimg-3::after {
  content: '⚡';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  filter: grayscale(1) sepia(1) saturate(3);
  opacity: 0.35;
}

.bimg-4 {
  background: radial-gradient(ellipse 75% 55% at 40% 50%, rgba(201,168,76,0.18) 0%, transparent 70%),
              linear-gradient(135deg, #0a0800, #1f1600, #0a0800);
}
.bimg-4::after {
  content: '📈';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  filter: grayscale(1) sepia(1) saturate(3);
  opacity: 0.35;
}

.bimg-5 {
  background: radial-gradient(ellipse 65% 70% at 55% 35%, rgba(240,208,128,0.16) 0%, transparent 65%),
              linear-gradient(145deg, #0d0b00, #201800, #0a0900);
}
.bimg-5::after {
  content: '🎯';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  filter: grayscale(1) sepia(1) saturate(3);
  opacity: 0.35;
}

.bimg-6 {
  background: radial-gradient(ellipse 70% 60% at 35% 45%, rgba(201,168,76,0.2) 0%, transparent 68%),
              linear-gradient(135deg, #080808, #141000, #080808);
}
.bimg-6::after {
  content: '🛠️';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  filter: grayscale(1) sepia(1) saturate(3);
  opacity: 0.35;
}

/* Card body */
.bcard-body {
  padding: 28px 28px 24px;
  display: flex; flex-direction: column;
  flex: 1;
}
.bcard-meta {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 14px;
}
.bcard-date {
  font-size: .78rem;
  color: var(--accent);
  font-weight: 500;
}
.bcard-time {
  font-size: .75rem;
  color: var(--muted);
}
.bcard-time::before { content: '· '; }

.bcard-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -.3px;
  transition: color .2s;
}
.bcard:hover .bcard-title { color: var(--accent); }

.bcard-excerpt {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.72;
  margin-bottom: 18px;
}

/* Expandable full content */
.bcard-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .6s cubic-bezier(.23,1,.32,1), opacity .4s;
  opacity: 0;
}
.bcard-content.open {
  max-height: 1200px;
  opacity: 1;
}
.bcard-content p {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.75;
  margin-bottom: 14px;
}
.bcard-content h4 {
  font-family: 'Poppins', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  color: var(--white);
  margin: 22px 0 8px;
  padding-left: 12px;
  border-left: 2px solid var(--accent);
}
.bcard-content strong { color: var(--accent); }

/* Toggle button */
.bcard-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: .85rem;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: .3px;
  margin-top: auto;
  transition: gap .25s;
}
.bcard-toggle span {
  display: inline-block;
  transition: transform .3s cubic-bezier(.23,1,.32,1);
  font-size: 1rem;
}
.bcard-toggle.open span { transform: rotate(180deg); }
.bcard-toggle:hover { gap: 12px; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .blogs-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .blogs-grid { grid-template-columns: 1fr; }
  .blog-filters { gap: 8px; }
  .bfilter-btn { font-size: .8rem; padding: 8px 16px; }
  .blogs-main { padding: 50px 5% 80px; }
}

/* ══════════════════════════════════════════
   STEP 1: style.css ke BILKUL END mein paste karo
   ══════════════════════════════════════════ */

.mega-wrap { position: static !important; }
.dropdown-toggle { cursor: pointer; }
.drop-arrow { font-size: .7rem; opacity: .7; margin-left: 2px; }

/* Bridge: padding-top se gap fill hoti hai takey cursor slip na kare */
.mega-wrap::after {
  content: '';
  position: fixed;
  top: 60px; left: 0; right: 0;
  height: 20px;
  z-index: 997;
  display: none;
}
.mega-wrap:hover::after { display: block; }

.mega-menu {
  display: none;
  position: fixed;
  top: 73px; left: 0; right: 0;
  background: rgba(10,10,10,0.98);
  border-top: 1px solid rgba(201,168,76,0.15);
  border-bottom: 1px solid rgba(201,168,76,0.08);
  backdrop-filter: blur(20px);
  z-index: 998;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  /* Gap fix: padding-top covers the invisible gap */
  padding-top: 8px;
}
.mega-menu.open { display: block; }

.mega-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 260px 1fr;
  min-height: 300px;
}

.mega-cats {
  border-right: 1px solid rgba(201,168,76,0.1);
  padding: 20px 0;
  display: flex; flex-direction: column;
}
.mega-cat-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 22px; cursor: pointer;
  color: var(--muted); font-size: .9rem; font-weight: 500;
  transition: background .2s, color .2s;
  border-left: 2px solid transparent;
}
.mega-cat-item:hover,
.mega-cat-item.active {
  background: rgba(201,168,76,0.07);
  color: var(--white);
  border-left-color: var(--accent);
}
.mega-cat-left { display: flex; align-items: center; gap: 10px; }
.mega-cat-icon { font-size: 1.1rem; }
.mega-cat-arrow { color: var(--accent); font-size: 1rem; opacity: 0; transition: opacity .2s; }
.mega-cat-item:hover .mega-cat-arrow,
.mega-cat-item.active .mega-cat-arrow { opacity: 1; }

.mega-panels { padding: 28px 32px 32px; }
.mega-panel { display: none; }
.mega-panel.active { display: block; }

.mega-panel-title {
  font-family: 'Syne', sans-serif;
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--accent); margin-bottom: 18px;
}
.mega-sub-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.mega-sub-link {
  display: block; padding: 11px 16px;
  color: var(--muted); text-decoration: none;
  font-size: .88rem; font-weight: 400;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: all .2s;
}
.mega-sub-link:hover {
  color: var(--white);
  background: rgba(201,168,76,0.07);
  border-color: rgba(201,168,76,0.18);
  padding-left: 20px;
}
.mega-footer {
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid rgba(201,168,76,0.1);
  display: flex; align-items: center; justify-content: space-between;
}
.mega-footer p { font-size: .83rem; color: var(--muted); }
.mega-footer a {
  font-size: .83rem; font-weight: 700;
  color: var(--accent); text-decoration: none;
}
.mega-footer a:hover { color: var(--gold); }

@media (max-width: 900px) {
  .mega-menu { display: none !important; }
}


/* ════════════════════════════
   MOBILE SERVICES ACCORDION
════════════════════════════ */
.mob-services-wrap { width: 100%; }

.mob-services-toggle {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  font-weight: 800; letter-spacing: -1px;
  color: var(--muted);
  padding: 8px 0; width: 100%; text-align: center;
  cursor: pointer;
  transition: color .2s;
}
.mob-services-toggle:hover { color: var(--accent); }
.mob-services-toggle.open  { color: var(--accent); }

.mob-arrow {
  transition: transform .3s cubic-bezier(.23,1,.32,1);
  flex-shrink: 0; margin-top: 4px;
}
.mob-services-toggle.open .mob-arrow { transform: rotate(180deg); }

.mob-services-list {
  max-height: 0; overflow: hidden;
  transition: max-height .4s cubic-bezier(.23,1,.32,1), opacity .3s;
  opacity: 0;
  display: flex; flex-direction: column; gap: 4px;
  padding: 0 20px;
}
.mob-services-list.open {
  max-height: 400px;
  opacity: 1;
  padding: 8px 20px 12px;
}

.mob-sub-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-size: .95rem; font-weight: 500;
  color: var(--muted);
  border: 1px solid transparent;
  transition: all .2s;
}
.mob-sub-link:hover {
  color: var(--white);
  background: rgba(201,168,76,0.07);
  border-color: rgba(201,168,76,0.2);
}
.mob-sub-icon {
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}