/* ==========================================================================
   DMD247: golden444.in layout, recoloured with dmd247.com's palette.
   The button and highlight colours can be changed in Admin → Settings → Brand.
   ========================================================================== */
:root {
  --page: #16245A;        /* page background (deep DMD navy) */
  --header: #20327B;      /* header (DMD navy) */
  --card: #1C2D70;        /* cards */
  --card-dark: #18265F;   /* sports cards */
  --band: #276AA5;        /* alternate sections (DMD blue) */
  --footer: #101A44;      /* footer and darkest bands */
  --title: #FFFFFF;
  --muted: #C3D1EA;
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .2);
  --btn: #03B37F;         /* buttons (DMD teal-green) */
  --btn-hover: #0E684E;   /* button hover (DMD green) */
  --hl: #72BBEF;          /* highlighted words and icons (DMD light blue) */
  --radius: 12px;
  --fast: .2s ease-in-out;
  --normal: .3s ease-in-out;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: clip; }
body { margin: 0; background: var(--page); color: var(--muted); font: 400 16px/1.6 var(--font); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--hl); text-decoration: none; transition: all var(--fast); }
h1, h2, h3, h4 { color: var(--title); font-weight: 700; margin: 0 0 15px; line-height: 1.25; }
p { margin: 0 0 1em; }
.hl { color: var(--hl); }
.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--btn); color: #fff; padding: 8px 14px; }
.skip:focus { left: 8px; top: 8px; }
.hp { position: absolute; left: -9999px; }
[data-band="alt"] { background: var(--band); }
[data-band="dark"] { background: var(--footer); }
@media (max-width: 767px) { [data-hide="mobile"] { display: none !important; } }
@media (min-width: 768px) { [data-hide="desktop"] { display: none !important; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 6px; border: 0; font: 600 16px/1.2 var(--font); cursor: pointer; transition: all var(--fast); }
.btn--primary { background: var(--btn); color: #fff; }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--btn-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 14px rgba(3, 179, 127, .35); }
.btn--lg { padding: 16px 32px; font-size: 18px; font-weight: 700; }
.btn--outline { background: transparent; color: var(--hl); border: 2px solid var(--hl); padding: 14px 28px; }
.btn--outline:hover { background: var(--hl); color: #0b1440; box-shadow: 0 4px 15px rgba(114, 187, 239, .4); }

/* Sections */
.sec { padding: 80px 0; }
.sec-head { text-align: center; margin: 0 auto 45px; max-width: 820px; }
.sec-title { font-size: 36px; font-weight: 800; margin-bottom: 20px; }
.sec-sub { font-size: 18px; margin: 0 auto; }
.sec-foot { text-align: center; margin-top: 45px; }
.prose p { margin-bottom: 15px; }
.prose a { text-decoration: underline; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--header); padding: 15px 0; box-shadow: 0 4px 20px rgba(0, 0, 0, .2); }
.hdr { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: block; max-width: 220px; }
.brand img { width: 100%; height: auto; }
/* DMD247's logo is dark blue (made for a light background): brighten it on the navy header and footer.
   Turn this off in Settings → Brand if you upload a logo made for dark backgrounds. */
body:not(.no-logo-boost) .brand img { filter: brightness(2.1) saturate(1.15) drop-shadow(0 1px 6px rgba(0, 0, 0, .35)); }
.brand__text { font: 800 26px var(--font); color: var(--title); }
.menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.menu a { display: block; padding: 10px 15px; color: var(--title); font-weight: 500; }
.menu a:hover { color: var(--hl); }
.menu .menu__cta { margin-left: 15px; }
.menu .menu__cta .btn { padding: 12px 24px; color: #fff; }
.burger { display: none; width: 44px; height: 40px; border: 1px solid var(--line-2); border-radius: 6px; background: transparent; padding: 9px 10px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform var(--normal), opacity var(--normal); }
.nav-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: 650px; display: flex; align-items: center; background: var(--hero-bg, none) center / cover no-repeat, var(--page); text-align: center; }
.hero__overlay { position: absolute; inset: 0; background: rgba(22, 36, 90, .86); }
.hero__inner { position: relative; z-index: 2; padding: 80px 0; }
.hero__title { font-size: 56px; font-weight: 800; line-height: 1.3; margin: 0 auto 20px; max-width: 900px; }
.hero__text { font-size: 20px; color: #dbe5f5; margin: 0 auto 35px; max-width: 920px; }
.hero__cta { margin-bottom: 40px; }
.hero__badges { display: flex; justify-content: center; align-items: center; gap: 25px; flex-wrap: wrap; color: #e6edf8; font-weight: 500; }
.badge-pill { display: inline-flex; align-items: center; gap: 10px; background: rgba(32, 50, 123, .6); padding: 8px 16px; border-radius: 30px; border: 1px solid var(--line); }
.badge-pill__icon { width: 30px; height: 30px; border-radius: 50%; background: var(--hl); color: #0b1440; display: grid; place-items: center; font-size: 14px; }
.hero__divider { width: 1px; height: 20px; background: var(--line-2); }

/* Stats */
.stats { background: var(--footer); border-bottom: 1px solid var(--line); }
.stats[data-band] { background: var(--footer); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 25px 20px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--hl); box-shadow: 0 5px 15px rgba(0, 0, 0, .2); transition: transform var(--normal), box-shadow var(--normal); }
.stat:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0, 0, 0, .3); }
.stat__value { font-size: 32px; margin-bottom: 8px; }
.stat__label { margin: 0; font-size: 14px; letter-spacing: 1.5px; color: var(--hl); font-weight: 600; text-transform: uppercase; }

/* About */
.about__row { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about--right .about__media { order: 2; }
.about__media { padding: 10px; }
.about__media img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 15px 30px rgba(0, 0, 0, .4); }
.about__text .btn { margin-top: 10px; }

/* Sports */
.pcard { position: relative; display: flex; overflow: hidden; height: 100%; background: var(--card-dark); border: 1px solid rgba(255, 255, 255, .05); border-radius: var(--radius); box-shadow: 0 8px 20px rgba(0, 0, 0, .2); color: inherit; transition: all var(--normal); }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 12px 25px rgba(0, 0, 0, .4); border-color: rgba(114, 187, 239, .35); color: inherit; }
.pcard__title { color: var(--title); text-transform: uppercase; position: relative; z-index: 2; margin: 0; }
.pcard__icon { position: absolute; z-index: 1; color: var(--hl); filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .5)); transition: transform var(--normal); }
.pcard:hover .pcard__icon { transform: scale(1.08) rotate(-6deg); }
.pcard--lg { min-height: 200px; padding: 30px; align-items: flex-end; }
.pcard--lg .pcard__body { max-width: 60%; position: relative; z-index: 2; }
.pcard--lg .pcard__title { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.pcard__text { margin: 0; font-size: 14px; line-height: 1.4; color: #b4c3de; }
.pcard--lg .pcard__icon { right: 20px; bottom: 50%; transform: translateY(50%); font-size: 100px; opacity: .9; }
.pcard--lg:hover .pcard__icon { transform: translateY(50%) scale(1.08) rotate(-6deg); }
.pcard--sm { height: 120px; padding: 20px; }
.pcard--sm .pcard__title { font-size: 18px; }
.pcard--sm .pcard__icon { right: 15px; bottom: 10px; font-size: 65px; opacity: .85; }
.sports__featured { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.sports__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Steps */
.steps__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; overflow: hidden; height: 100%; padding: 40px 25px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); transition: all var(--normal); }
.step:hover { border-color: var(--hl); transform: translateY(-5px); }
.step__num { position: absolute; top: -10px; right: 10px; font-size: 120px; font-weight: 800; line-height: 1; color: rgba(114, 187, 239, .07); z-index: 0; }
.step__title { position: relative; font-size: 22px; margin-bottom: 12px; }
.step__text { position: relative; margin: 0; font-size: 15px; }

/* Features */
.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature { height: 100%; padding: 30px 25px; background: var(--page); border: 1px solid var(--line); border-radius: 8px; transition: all var(--normal); }
.feature:hover { transform: translateY(-5px); border-color: var(--hl); }
.feature__icon { display: block; font-size: 32px; color: var(--hl); margin-bottom: 20px; }
.feature__title { font-size: 20px; }
.feature__text { margin: 0; font-size: 15px; }

/* Testimonials */
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review { margin: 0; height: 100%; padding: 40px 30px; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 8px; transition: transform var(--normal); }
.review:hover { transform: translateY(-5px); }
.review__stars { color: var(--hl); font-size: 18px; margin-bottom: 20px; display: flex; justify-content: center; gap: 4px; }
.review__text { margin: 0 0 25px; font-style: italic; color: #fff; }
.review__name { font-weight: 600; color: var(--hl); }

/* FAQ */
.faq__wrap { max-width: 760px; }
.faq__item { background: var(--card); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 15px; overflow: hidden; }
.faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 25px; color: var(--title); font-size: 18px; font-weight: 600; transition: color var(--fast); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item[open] summary { color: var(--hl); border-bottom: 1px solid var(--line); }
.faq__chev { font-size: 14px; transition: transform var(--normal); }
.faq__item[open] .faq__chev { transform: rotate(180deg); }
.faq__a { padding: 20px 25px; }
.faq__a p:last-child { margin: 0; }

/* Call to action */
.cta-sec { background: var(--footer); }
.cta-sec[data-band] { background: var(--footer); }
.cta { position: relative; overflow: hidden; text-align: center; padding: 70px 30px; background: var(--card); border: 2px solid var(--hl); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(114, 187, 239, .12) 0%, transparent 60%); pointer-events: none; }
.cta__title { position: relative; font-size: 42px; font-weight: 800; }
.cta__text { position: relative; font-size: 20px; font-weight: 500; margin-bottom: 30px; }

.rich--center { text-align: center; }

/* Footer */
.site-footer { background: var(--footer); padding: 80px 0 30px; border-top: 1px solid var(--line); }
.fgrid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
.brand--footer { max-width: 200px; }
.fcol__text { font-size: 15px; margin-top: 20px; }
.fcol__title { position: relative; font-size: 20px; padding-bottom: 10px; margin-bottom: 25px; }
.fcol__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--hl); }
.flinks, .fcontact { list-style: none; margin: 0; padding: 0; }
.flinks li, .fcontact li { margin-bottom: 15px; font-size: 15px; }
.flinks a { color: var(--muted); }
.flinks a:hover { color: var(--hl); padding-left: 5px; }
.fcontact i { color: var(--hl); margin-right: 6px; }
.fcontact a { color: var(--muted); }
.fbottom { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 25px; text-align: center; }
.fbottom p { margin: 0; font-size: 14px; }

/* Floating WhatsApp / Telegram, back to top */
.floating { position: fixed; right: 30px; bottom: 30px; z-index: 99; display: flex; flex-direction: column; gap: 15px; }
.floating__btn { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 30px; box-shadow: 0 4px 15px rgba(0, 0, 0, .3); transition: transform var(--fast); }
.floating__btn:hover { transform: scale(1.1); color: #fff; }
.floating__btn--wa { background: #25d366; }
.floating__btn--tg { background: #0088cc; }
.to-top { position: fixed; left: 24px; bottom: 30px; z-index: 98; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--header); color: #fff; font-size: 16px; display: grid; place-items: center; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all var(--normal); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--btn); }

/* Popup form (Admin → Settings → Popup form; off by default) */
.popup { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; }
.popup[hidden] { display: none; }
.popup__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .7); opacity: 0; transition: opacity .35s; }
.popup__box { position: relative; width: min(460px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 28px; opacity: 0; transform: scale(.9); transition: opacity .4s, transform .4s; }
.popup.is-open .popup__backdrop { opacity: 1; }
.popup.is-open .popup__box { opacity: 1; transform: none; }
.popup__close { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; display: grid; place-items: center; font-size: 18px; }
.popup__media { display: none; }
.popup__card { border: 0; padding: 0; }
.popup__title { color: var(--title); font-size: 22px; margin-bottom: 12px; }
.popup__wa-img { display: inline-block; width: 160px; }
.popup__or { display: flex; align-items: center; gap: 10px; margin: 12px 0; color: var(--muted); }
.popup__or::before, .popup__or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.popup__form { display: flex; flex-direction: column; gap: 14px; }
.pfield { display: flex; flex-direction: column; gap: 5px; color: var(--title); font-size: 14px; }
.pfield input { height: 44px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--page); color: #fff; font: inherit; }
.pfield.is-invalid input { border-color: #e5484d; }
.popup__submit { height: 48px; border: 0; border-radius: 6px; background: var(--btn); color: #fff; font: 700 16px var(--font); cursor: pointer; }
.popup__submit:hover { background: var(--btn-hover); }
.popup__msg { margin: 0; font-size: 13px; color: #ff8a8a; }
.popup__done { text-align: center; padding: 20px 0; color: var(--title); }
.popup__done-ico { width: 60px; height: 60px; margin: 0 auto 12px; border-radius: 50%; background: var(--btn); color: #fff; display: grid; place-items: center; font-size: 30px; }
body.popup-open { overflow: hidden; }

/* Entrance animations */
.js [data-anim] { opacity: 0; transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0ms); }
.js [data-anim="fadeInUp"] { transform: translateY(30px); }
.js [data-anim="fadeInLeft"] { transform: translateX(-40px); }
.js [data-anim="fadeInRight"] { transform: translateX(40px); }
.js [data-anim="zoomIn"] { transform: scale(.94); }
.js [data-anim].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-anim] { transform: none !important; transition: opacity .4s ease; }
}

/* Responsive (golden444.in's breakpoints) */
@media (max-width: 1199px) {
  .menu a { padding: 10px 11px; }
}
@media (max-width: 991px) {
  .burger { display: flex; }
  .mainnav { position: absolute; left: 0; right: 0; top: 100%; background: var(--header); max-height: 0; overflow: hidden; transition: max-height .35s ease; box-shadow: 0 12px 20px rgba(0, 0, 0, .25); }
  .nav-open .mainnav { max-height: 480px; }
  .menu { flex-direction: column; align-items: stretch; padding: 8px 16px 18px; }
  .menu a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .menu .menu__cta { margin: 14px 0 0; }
  .menu .menu__cta .btn { width: 100%; border: 0; }
  .hero { min-height: 560px; }
  .hero__title { font-size: 42px; }
  .stats__grid, .steps__grid, .features__grid { grid-template-columns: repeat(2, 1fr); }
  .sports__grid { grid-template-columns: repeat(2, 1fr); }
  .about__row { grid-template-columns: 1fr; gap: 30px; }
  .about--right .about__media { order: 0; }
  .reviews__grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .fgrid { grid-template-columns: 1fr 1fr; }
  .fcol--about { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .sec { padding: 60px 0; }
  .sec-title { font-size: 28px; }
  .sec-sub { font-size: 16px; }
  .brand { max-width: 170px; }
  .hero { min-height: 0; }
  .hero__inner { padding: 70px 0; }
  .hero__title { font-size: 32px; }
  .hero__text { font-size: 17px; }
  .hero__badges { gap: 10px; }
  .hero__divider { display: none; }
  .sports__featured { grid-template-columns: 1fr; }
  .pcard--lg .pcard__icon { font-size: 80px; }
  .cta { padding: 50px 20px; }
  .cta__title { font-size: 30px; }
  .cta__text { font-size: 17px; }
  .fgrid { grid-template-columns: 1fr; }
  .floating { right: 18px; bottom: 18px; }
  .floating__btn { width: 52px; height: 52px; font-size: 26px; }
}
@media (max-width: 480px) {
  .stats__grid, .steps__grid, .features__grid { grid-template-columns: 1fr; }
  .stat__value { font-size: 28px; }
}

/* ==========================================================================
   Spin wheel popup (Admin → Spin Wheel)
   ========================================================================== */
.spin { position: fixed; inset: 0; z-index: 320; display: grid; place-items: center; padding: 16px; }
.spin[hidden] { display: none; }
.spin__backdrop { position: absolute; inset: 0; background: rgba(5, 10, 35, .78); opacity: 0; transition: opacity .35s; }
.spin__box { position: relative; width: min(440px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; text-align: center; padding: 28px 24px 26px; border-radius: 18px; background: radial-gradient(circle at 50% 0%, #2a4a9a 0%, var(--header) 45%, var(--page) 100%); border: 2px solid var(--hl); box-shadow: 0 20px 60px rgba(0, 0, 0, .6), 0 0 40px rgba(114, 187, 239, .25); opacity: 0; transform: scale(.85) translateY(20px); transition: opacity .45s ease, transform .45s cubic-bezier(.2, .9, .3, 1.2); }
.spin.is-open .spin__backdrop { opacity: 1; }
.spin.is-open .spin__box { opacity: 1; transform: none; }
.spin__close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 16px; cursor: pointer; display: grid; place-items: center; transition: background .2s, transform .3s; }
.spin__close:hover { background: rgba(255, 255, 255, .25); transform: rotate(90deg); }
.spin__title { font-size: 26px; font-weight: 800; margin: 0 0 6px; }
.spin__sub { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.spin-wheel { position: relative; width: min(300px, 78vw); aspect-ratio: 1; margin: 0 auto 18px; }
.spin-wheel__rotor { width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 0 6px rgba(114, 187, 239, .25), 0 10px 30px rgba(0, 0, 0, .5); will-change: transform; }
.spin-wheel__svg { width: 100%; height: 100%; display: block; }
.spin-wheel__pointer { position: absolute; top: -6px; left: 50%; z-index: 2; width: 0; height: 0; transform: translateX(-50%); border-left: 15px solid transparent; border-right: 15px solid transparent; border-top: 30px solid #fff; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .5)); }
.spin-wheel__hub { position: absolute; top: 50%; left: 50%; z-index: 2; width: 46px; height: 46px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--btn); color: #fff; display: grid; place-items: center; font-size: 18px; box-shadow: 0 0 0 4px var(--page), 0 4px 10px rgba(0, 0, 0, .4); }
.spin__form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.spin__form[hidden], .spin__result[hidden], .spin__go[hidden], .spin__msg[hidden] { display: none !important; }
.spin__field { display: flex; flex-direction: column; gap: 6px; color: var(--title); font-size: 14px; font-weight: 600; }
.spin__field input { height: 48px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .25); color: #fff; font: 500 16px var(--font); }
.spin__field input:focus { outline: 2px solid var(--hl); outline-offset: 1px; }
.spin__field input.is-invalid { border-color: #ff6b6b; }
.spin__btn { width: 100%; letter-spacing: 1px; }
.spin__btn[disabled] { opacity: .65; cursor: wait; transform: none; }
.spin__msg { margin: 0; color: #ff9b9b; font-size: 14px; }
.spin__result { padding-top: 4px; }
.spin__won { font-size: 22px; font-weight: 800; color: var(--title); margin: 0 0 14px; animation: spinWin .6s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes spinWin { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.spin__go { background: #25d366; }
.spin__go:hover { background: #1ebe5b; }
@media (max-width: 480px) {
  .spin__box { padding: 24px 16px 20px; }
  .spin__title { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .spin__box, .spin__won { transition: none; animation: none; } }

/* ---------- Blog (layout follows blog.golden444.in, DMD247 colours) ---------- */
.blog-banner { padding: 100px 0; background: var(--header) var(--blog-banner, none) center / cover no-repeat; text-align: center; position: relative; }
.blog-banner::before { content: ""; position: absolute; inset: 0; background: rgba(22, 36, 90, .55); }
.blog-banner .container { position: relative; }
.blog-banner__title { margin: 0; color: #fff; font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
.blog-wrap { background: #fff; color: #616161; padding: 50px 0; }
.blog-wrap--single { padding-top: 40px; }
.blog-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.blog-wrap a { color: #276AA5; }
.blog-wrap a:hover { color: #03B37F; }

.post-card { padding-bottom: 30px; margin-bottom: 30px; border-bottom: 1px dashed #ccc; }
.post-card:last-of-type { border-bottom: 0; }
.post-card__title { margin: 0 0 15px; font-size: 24px; line-height: 1.3; font-weight: 700; }
.blog-wrap .post-card__title a { color: #1c1b1b; }
.blog-wrap .post-card__title a:hover { color: #276AA5; }
.post-card__thumb { display: block; margin-bottom: 15px; }
.post-card__thumb img, .post__image img { display: block; width: 100%; height: auto; border-radius: 4px; }
.post-card__excerpt { margin: 0 0 18px; font-size: 15px; line-height: 1.7; color: #616161; }
.blog-wrap .post-card__more { color: #fff; }

.post-meta { list-style: none; margin: 0 0 15px; padding: 5px 10px; background: rgb(229, 229, 229); border-radius: 4px; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: #555; }
.post-meta i { color: #276AA5; margin-right: 3px; }

.blog-pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.blog-pagination a, .blog-pagination span { display: inline-block; min-width: 40px; padding: 8px 12px; border: 1px solid #616161; border-radius: 3px; text-align: center; font-weight: 600; color: #616161; text-decoration: none; }
.blog-wrap .blog-pagination a { color: #616161; }
.blog-pagination a:hover { border-color: #276AA5; color: #276AA5; }
.blog-pagination .current { background: #276AA5; border-color: #276AA5; color: #fff; }
.blog-pagination .dots { border-color: transparent; }
.blog-empty { padding: 30px; text-align: center; background: #f5f7fb; border-radius: 6px; }
.blog-wrap .blog-empty .btn { color: #fff; }

.blog-side { display: grid; gap: 30px; }
.blog-search { display: flex; border: 2px solid #276AA5; border-radius: 4px; overflow: hidden; }
.blog-search input { flex: 1; min-width: 0; border: 0; padding: 12px 14px; font: inherit; color: #333; background: #fff; outline: none; }
.blog-search button { border: 0; padding: 0 18px; background: var(--btn); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.blog-search button:hover { background: var(--btn-hover); }
.blog-widget--banner img { display: block; width: 100%; height: auto; border-radius: 4px; }
.blog-widget__title { margin: 0 0 15px; padding-bottom: 10px; font-size: 24px; font-weight: 700; color: #1c1b1b; border-bottom: 2px solid #eaeaea; position: relative; }
.blog-widget__title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 60px; height: 2px; background: #276AA5; }
.blog-widget__list { list-style: none; margin: 0; padding: 0; }
.blog-widget__list li { padding: 10px 0; border-bottom: 1px dashed #cdcdcd; font-size: 15px; }
.blog-widget__list li:last-child { border-bottom: 0; }
.blog-wrap .blog-widget__list a { color: #1c1b1b; }
.blog-wrap .blog-widget__list a:hover { color: #276AA5; }
.blog-widget__count { color: #999; }
.blog-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-tags a, .post__tags a { display: inline-block; padding: 5px 12px; border: 1px solid #ddd; border-radius: 3px; font-size: 13px; text-decoration: none; }
.blog-wrap .blog-tags a, .blog-wrap .post__tags a { color: #616161; }
.blog-wrap .blog-tags a:hover, .blog-wrap .post__tags a:hover { background: #276AA5; border-color: #276AA5; color: #fff; }

.post__crumbs { font-size: 14px; margin-bottom: 12px; color: #999; }
.post__title { margin: 0 0 15px; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.25; color: #1c1b1b; font-weight: 800; }
.post__image { margin: 0 0 25px; }
.post__content { font-size: 15px; line-height: 1.8; color: #616161; overflow-wrap: anywhere; }
.post__content p { margin: 0 0 16px; }
.post__content h2 { font-size: 28px; color: #1c1b1b; margin: 30px 0 14px; line-height: 1.3; }
.post__content h3 { font-size: 22px; color: #1c1b1b; margin: 26px 0 12px; padding-left: 12px; border-left: 4px solid #276AA5; line-height: 1.3; }
.post__content h4 { font-size: 18px; color: #1c1b1b; margin: 22px 0 10px; }
.post__content ul, .post__content ol { margin: 0 0 16px; padding-left: 22px; }
.post__content li { margin-bottom: 6px; }
.post__content img { max-width: 100%; height: auto; border-radius: 4px; }
.post__content blockquote { margin: 0 0 16px; padding: 12px 18px; border-left: 4px solid #03B37F; background: #f5f7fb; }
.post__content table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 14px; display: block; overflow-x: auto; }
.post__content th, .post__content td { border: 1px solid #ddd; padding: 10px 12px; text-align: left; }
.post__content th { background: #276AA5; color: #fff; }
.post__content tr:nth-child(even) td { background: #f7f9fc; }
.post__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 25px 0; padding-top: 20px; border-top: 1px dashed #ccc; }
.post__tags > span { font-weight: 600; color: #1c1b1b; }
.post__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 25px; }
.post__nav a { display: block; padding: 14px 16px; border: 1px solid #e5e5e5; border-radius: 4px; text-decoration: none; }
.post__nav a small { display: block; color: #999; margin-bottom: 4px; }
.blog-wrap .post__nav a span { color: #1c1b1b; font-weight: 600; }
.post__nav-next { text-align: right; grid-column: 2; }
.post__nav a:hover { border-color: #276AA5; }

@media (max-width: 991px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-banner { padding: 60px 0; }
}
@media (max-width: 575px) {
  .blog-wrap { padding: 30px 0; }
  .post-card__title { font-size: 20px; }
  .post__nav { grid-template-columns: 1fr; }
  .post__nav-next { grid-column: 1; }
}
@media (min-width: 768px) { .post__content table { display: table; } }
