/* ============================================================================
   BSMGLB — Modern landing stylesheet
   Replaces jb.css / style.css / news.css on the home page. Same content &
   images; modern, responsive treatment.
============================================================================ */

:root {
  --green: #0d5c3a;
  --green-dark: #094229;
  --green-600: #0f7146;
  --gold: #c8a13a;
  --gold-dark: #a9862a;
  --ink: #15211b;
  --muted: #5c6b63;
  --line: #e6ebe7;
  --bg: #f5f7f5;
  --surface: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(13, 40, 26, .06), 0 18px 40px -24px rgba(13, 60, 40, .35);
  --shadow-sm: 0 6px 20px -12px rgba(13, 60, 40, .3);
  --container: 1200px;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4 { font-family: var(--sans); line-height: 1.2; font-weight: 700; color: var(--ink); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }

/* Section rhythm + headings */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
section > .container > h2,
.section-heading,
.ads-header h2,
.news-title h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  text-align: center;
  letter-spacing: -.02em;
  position: relative;
}
.section-heading { text-transform: none; }
section > .container > h2::after,
.ads-header h2::after,
.news-title h2::after {
  content: ""; display: block; width: 68px; height: 4px; border-radius: 4px;
  margin: .9rem auto 0; background: linear-gradient(90deg, var(--green), var(--gold));
}

/* ============================ NAVBAR ============================ */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  display: flex; align-items: center; gap: 1.2rem;
  padding: .7rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 24px -18px rgba(0, 0, 0, .5);
}
.navbar .logo img { height: 52px; width: auto; }

.nav-links { list-style: none; display: flex; align-items: center; gap: .3rem; margin-left: auto; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: block; padding: .6rem .85rem; font-family: var(--sans); font-weight: 600;
  font-size: .9rem; color: var(--ink); border-radius: 8px; transition: .2s;
  white-space: nowrap;
}
.nav-links > li > a:hover { color: var(--green); background: rgba(13, 92, 58, .07); }

/* Dropdowns */
.dropdown-menu, .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 210px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); list-style: none; padding: .4rem;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .18s; z-index: 1200;
}
.dropdown:hover > .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li a, .sub-menu li a {
  display: block; padding: .55rem .7rem; border-radius: 8px; font-size: .86rem;
  font-weight: 500; color: var(--ink); transition: .15s;
}
.dropdown-menu li a:hover, .sub-menu li a:hover { background: rgba(13, 92, 58, .08); color: var(--green); }
.sub-dropdown { position: relative; }
.sub-menu { top: 0; left: 100%; }
.sub-dropdown:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }

/* Portal CTA buttons */
.nav-cta { display: flex; gap: .55rem; }
.btn-portal {
  display: inline-flex; align-items: center; font-family: var(--sans); font-weight: 700;
  font-size: .82rem; padding: .6rem 1rem; border-radius: 999px; transition: .2s; white-space: nowrap;
}
.btn-portal-outline { color: var(--green); border: 1.5px solid var(--green); }
.btn-portal-outline:hover { background: var(--green); color: #fff; }
.btn-portal-solid { color: #fff; background: linear-gradient(135deg, var(--green), var(--green-600)); box-shadow: var(--shadow-sm); }
.btn-portal-solid:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(13, 92, 58, .7); }
.nav-cta-mobile { display: none; }

.menu-btn { display: none; font-size: 1.7rem; cursor: pointer; color: var(--green); line-height: 1; }

/* ============================ HERO SLIDER ============================ */
.hero-slider { position: relative; height: clamp(460px, 78vh, 720px); overflow: hidden; }
.hero-slider .slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  display: flex; align-items: center;
  opacity: 0; transform: scale(1.06); transition: opacity 1s ease, transform 6s ease;
}
.hero-slider .slide.active { opacity: 1; transform: scale(1); z-index: 2; }
.hero-slider .slide::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(6, 40, 25, .9) 0%, rgba(9, 66, 41, .72) 42%, rgba(9, 40, 26, .35) 100%);
}
.slide-content { position: relative; z-index: 3; max-width: 720px; padding: 0 clamp(1.2rem, 6vw, 5rem); color: #fff; }
.slide-content h1 {
  color: #fff; font-size: clamp(1.9rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .35); animation: heroUp .7s ease both;
}
.slide-content p {
  margin: 1.1rem 0 1.8rem; font-size: clamp(1rem, 2vw, 1.2rem); max-width: 56ch; color: rgba(255, 255, 255, .92);
  animation: heroUp .7s .1s ease both;
}
.slider-btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.7rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: #1c1400;
  font-family: var(--sans); font-weight: 700; border-radius: 999px; transition: .25s;
  box-shadow: 0 14px 30px -14px rgba(200, 161, 58, .8); animation: heroUp .7s .2s ease both;
}
.slider-btn:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -16px rgba(200, 161, 58, .9); }
@keyframes heroUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

.slider-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255, 255, 255, .18); color: #fff; font-size: 1.2rem; backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .3); transition: .2s;
}
.slider-nav:hover { background: rgba(255, 255, 255, .32); }
.slider-nav.prev { left: 18px; } .slider-nav.next { right: 18px; }

/* ============================ SERVICES ============================ */
.page-section { background: var(--surface); }
.text-center { text-align: center; }
.section-subheading { color: var(--muted); font-weight: 400; margin-bottom: 2.5rem; font-family: var(--body); }
.row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem;
}
.col-md-4 {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.5rem; text-align: center; transition: .25s; box-shadow: var(--shadow-sm);
}
.col-md-4:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(13, 92, 58, .25); }
.col-md-4 h4, .col-md-4 h3 { font-size: 1.05rem; margin: .4rem 0; }
.col-md-4 p, .text-muted { color: var(--muted); font-size: .93rem; }
.service-icon .fa-circle { color: var(--green) !important; }
.service-icon { color: var(--green); margin-bottom: .4rem; }
.col-md-4 .icon {
  width: 66px; height: 66px; margin: 0 auto .6rem; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.5rem; color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-600));
}
.my-3 { margin: .75rem 0; }

/* ============================ ABOUT ============================ */
.about-section { background: var(--bg); }
.about-content { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.about-text > h2 { text-align: left; font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: 1.2rem; }
.about-text > h2::after { margin: .8rem 0 0; }
.about-item { margin-bottom: 1.3rem; }
.about-item h4 { color: var(--green); font-size: 1.05rem; margin-bottom: .3rem; }
.about-item p { color: var(--muted); }
.core-values { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.core-values li {
  background: rgba(13, 92, 58, .08); color: var(--green-dark); font-weight: 600;
  padding: .35rem .85rem; border-radius: 999px; font-size: .85rem;
}
.about-btn {
  display: inline-block; margin-top: .8rem; padding: .8rem 1.6rem; border-radius: 999px;
  background: linear-gradient(135deg, var(--green), var(--green-600)); color: #fff;
  font-family: var(--sans); font-weight: 700; box-shadow: var(--shadow-sm); transition: .2s;
}
.about-btn:hover { transform: translateY(-2px); }
.about-image {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1rem 1.5rem; text-align: center; box-shadow: var(--shadow);
}
.about-image img { width: 100%; height: 340px; object-fit: cover; border-radius: 12px; margin-bottom: .8rem; }
.about-image h3 { font-size: 1.05rem; }
.about-image p { color: var(--muted); font-size: .9rem; }

/* ============================ LAW / QUICK LINKS / OPERATORS ============================ */
.lslga-section { background: var(--surface); }
.top-row, .bottom-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.bottom-row { margin-top: 1.5rem; }
.law-box, .quick-links, .operators, .operations {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem;
}
.law-box { background: linear-gradient(150deg, var(--green-dark), var(--green)); color: #fff; }
.law-box h2 { color: #fff; text-align: left; }
.law-box h2::after { margin: .7rem 0 0; background: var(--gold); }
.law-box p { color: rgba(255, 255, 255, .9); margin: 1rem 0 1.4rem; }
.download-btn, .view-btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.4rem; border-radius: 999px;
  background: var(--gold); color: #1c1400; font-family: var(--sans); font-weight: 700; transition: .2s;
}
.download-btn:hover, .view-btn:hover { transform: translateY(-2px); background: var(--gold-dark); }
.lslga-section h2 { text-align: left; font-size: 1.35rem; }
.lslga-section h2::after { margin: .6rem 0 0; }
.links-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1.2rem; }
.links-grid a {
  padding: .7rem .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  font-weight: 600; font-size: .88rem; color: var(--ink); transition: .18s;
}
.links-grid a:hover { color: var(--green); border-color: var(--green); transform: translateX(3px); }
.operator-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-top: 1.2rem; }
.operator-card {
  display: flex; align-items: center; gap: .7rem; padding: .8rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; font-size: .85rem; font-weight: 600; transition: .18s;
}
.operator-card i { color: var(--green); width: 20px; text-align: center; }
.operator-card:hover { border-color: var(--green); box-shadow: var(--shadow-sm); }
/* Accordion */
.accordion { margin-top: 1.2rem; display: flex; flex-direction: column; gap: .6rem; }
.accordion-item { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.accordion-header {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: .9rem 1rem; font-family: var(--sans); font-weight: 600; font-size: .92rem; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center;
}
.accordion-header::after { content: "+"; color: var(--green); font-size: 1.3rem; }
.accordion-item.active .accordion-header::after { content: "\2013"; }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height .3s ease; padding: 0 1rem; color: var(--muted); }
.accordion-item.active .accordion-content { max-height: 240px; padding: 0 1rem 1rem; }
.accordion-content ul { padding-left: 1.1rem; }

/* ============================ UNLICENSED BANNER ============================ */
.unlicensed-operators {
  position: relative; background: url('/assets/img/lotteryballs.jpg') center/cover fixed;
  color: #fff; text-align: center;
}
.unlicensed-operators .overlay { position: absolute; inset: 0; background: linear-gradient(rgba(9, 40, 26, .88), rgba(9, 66, 41, .82)); }
.unlicensed-operators .content { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; }
.unlicensed-operators h2 { color: #fff; }
.unlicensed-operators h2::after { background: var(--gold); }
.unlicensed-operators p { color: rgba(255, 255, 255, .9); margin: 1.2rem 0 1.6rem; }

/* ============================ ADS (3 SLOTS) ============================ */
.ads-section { background: var(--bg); }
.ads-header { text-align: center; max-width: 680px; margin: 0 auto 2.6rem; }
.eyebrow {
  display: inline-block; font-family: var(--sans); font-weight: 700; font-size: .72rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dark);
  background: rgba(200, 161, 58, .13); padding: .3rem .8rem; border-radius: 999px; margin-bottom: .8rem;
}
.ads-header p { color: var(--muted); margin-top: .6rem; }
.ads-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.ad-slot {
  position: relative; background: var(--surface); border: 1.5px dashed var(--line); border-radius: var(--radius);
  min-height: 300px; display: flex; align-items: center; justify-content: center; text-align: center;
  overflow: hidden; transition: .25s;
}
.ad-slot::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: .25s;
  background: linear-gradient(150deg, rgba(13, 92, 58, .06), rgba(200, 161, 58, .08));
}
.ad-slot:hover { border-color: var(--green); border-style: solid; transform: translateY(-6px); box-shadow: var(--shadow); }
.ad-slot:hover::before { opacity: 1; }
.ad-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2; font-family: var(--sans); font-weight: 700;
  font-size: .68rem; letter-spacing: .05em; color: var(--green-dark);
  background: rgba(13, 92, 58, .1); padding: .28rem .6rem; border-radius: 999px;
}
.ad-body { position: relative; z-index: 2; padding: 2rem 1.5rem; }
.ad-icon {
  font-size: 2rem; color: var(--gold-dark); background: rgba(200, 161, 58, .14);
  width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1rem;
}
.ad-body h3 { font-size: 1.15rem; }
.ad-body p { color: var(--muted); font-size: .9rem; margin: .5rem 0 1.2rem; }
.ad-cta {
  display: inline-block; padding: .6rem 1.3rem; border-radius: 999px; font-family: var(--sans);
  font-weight: 700; font-size: .85rem; color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-600)); transition: .2s;
}
.ad-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.ads-note { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 1.8rem; }

/* ============================ FEATURE ============================ */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
  max-width: var(--container); margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2.5rem);
}
.feature img { width: 100%; height: 380px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.feature-text h4 { color: var(--gold-dark); text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; }
.feature-text h2 { text-align: left; font-size: clamp(1.5rem, 3vw, 2.1rem); margin: .5rem 0 1rem; }
.feature-text h2::after { margin: .7rem 0 0; }
.feature-text p { color: var(--muted); margin-bottom: 1.3rem; }
.feature-text a { color: var(--green); font-weight: 700; font-family: var(--sans); }
.feature-text a:hover { color: var(--gold-dark); }

/* ============================ NEWS ============================ */
.news-section { background: var(--surface); }
.news-title { text-align: center; margin-bottom: 2.6rem; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.news-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: .25s; box-shadow: var(--shadow-sm);
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.news-card img { width: 100%; height: 210px; object-fit: cover; }
.news-content { padding: 1.3rem; }
.news-content span { color: var(--gold-dark); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.news-content h3 { font-size: 1.1rem; margin: .4rem 0 .5rem; }
.news-content p { color: var(--muted); font-size: .9rem; margin-bottom: .8rem; }
.news-content a { color: var(--green); font-weight: 700; font-family: var(--sans); font-size: .9rem; }

/* ============================ FOOTER ============================ */
.modern-footer { background: var(--green-dark); color: #d9e6df; padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.5rem; }
.footer-container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-logo img { height: 60px; width: auto; background: #fff; padding: 6px; border-radius: 10px; }
.footer-text { margin-top: 1rem; color: rgba(255, 255, 255, .75); font-size: .9rem; max-width: 34ch; }
.footer-heading { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-links a { color: rgba(255, 255, 255, .78); font-size: .9rem; transition: .15s; }
.footer-links a:hover { color: var(--gold); padding-left: 4px; }
.footer-socials { display: flex; gap: .6rem; margin-bottom: 1.2rem; }
.footer-socials a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .1); color: #fff; transition: .2s;
}
.footer-socials a:hover { background: var(--gold); color: #1c1400; transform: translateY(-3px); }
.social-logo-container img { width: 120px; height: auto; border-radius: 8px; }
.footer-bottom { text-align: center; margin-top: 2.5rem; padding-top: 1.3rem; border-top: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .7); font-size: .85rem; }

/* ============================ WHATSAPP ============================ */
.whatsapp-chat-btn {
  position: fixed; right: 20px; bottom: 20px; z-index: 999; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.6rem; cursor: pointer;
  box-shadow: 0 10px 30px -8px rgba(37, 211, 102, .7); transition: .2s;
}
.whatsapp-chat-btn:hover { transform: scale(1.08); }
.whatsapp-popup {
  position: fixed; right: 20px; bottom: 88px; z-index: 999; width: 300px; max-width: calc(100vw - 40px);
  background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 1.2rem; display: none;
  border: 1px solid var(--line);
}
.whatsapp-popup-header { display: flex; align-items: center; gap: .7rem; margin-bottom: .6rem; }
.whatsapp-popup-header img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.whatsapp-popup p { color: var(--muted); font-size: .88rem; margin-bottom: .9rem; }
.whatsapp-popup a {
  display: block; text-align: center; background: #25d366; color: #fff; font-weight: 700;
  padding: .7rem; border-radius: 10px; font-family: var(--sans);
}

/* ============================ REVEAL ANIMATIONS ============================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }
.about-section { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.about-section.show { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .about-section { opacity: 1; transform: none; transition: none; }
  .hero-slider .slide { transition: opacity .4s ease; transform: none; }
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 992px) {
  .nav-cta { display: none; }
  .menu-btn { display: block; margin-left: auto; }
  .nav-links {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); margin: 0;
    padding: .5rem; max-height: 0; overflow: hidden; box-shadow: var(--shadow);
    transition: max-height .35s ease; overflow-y: auto;
  }
  .nav-links.active { max-height: calc(100vh - 64px); }
  .nav-links > li > a { padding: .85rem 1rem; }
  .nav-cta-mobile { display: block; }
  .nav-cta-mobile a {
    margin: .35rem .5rem; text-align: center; background: linear-gradient(135deg, var(--green), var(--green-600));
    color: #fff !important; border-radius: 999px; font-weight: 700;
  }
  .nav-cta-mobile:last-child a { background: var(--gold); color: #1c1400 !important; }
  /* dropdowns become click-to-open (JS toggles .open) */
  .dropdown-menu, .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: none; background: rgba(13, 92, 58, .04); display: none; min-width: 0;
  }
  .dropdown.open > .dropdown-menu, .sub-dropdown.open > .sub-menu { display: block; }
  .about-content, .top-row, .bottom-row, .feature { grid-template-columns: 1fr; }
  .row, .ads-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .unlicensed-operators { background-attachment: scroll; }
}

@media (max-width: 640px) {
  .row, .ads-grid, .news-grid, .links-grid, .operator-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-slider { height: 78vh; min-height: 440px; }
  .slider-nav { width: 40px; height: 40px; }
  .about-image img, .feature img { height: 260px; }
  .footer-grid { text-align: center; }
  .footer-text { margin-inline: auto; }
  .footer-socials { justify-content: center; }
  .core-values { justify-content: center; }
}
