
:root{
  --main:#171c5a;        /* navy  */
  --other-main:#f68b1e;  /* orange */
  --green:#02b900;       /* login */
  --text:#2c2d3f;
  --bg:#ffffff;
  --line:#e4e6f1;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:var(--text);background:var(--bg);line-height:1.6;-webkit-font-smoothing:antialiased}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}
.container{width:100%;max-width:80rem;margin-inline:auto;padding-inline:.75rem}
.capitalize{text-transform:capitalize}

/* ---------- HEADER / NAV ---------- */
header{position:sticky;top:0;z-index:50;background:var(--main);box-shadow:0 1px 0 rgba(255,255,255,.06)}
.nav{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:nowrap;min-height:72px}
.brand{display:flex;align-items:center;gap:.75rem;padding:.5rem 0;flex:none;white-space:nowrap}
.brand img{height:52px;width:52px;object-fit:contain;flex:none}
.brand h2{font-weight:800;font-size:1.5rem;color:#fff;line-height:1.1}
.brand small{display:block;font-size:.8rem;color:#fff;margin-top:-3px;letter-spacing:.04em}
.nav-right{display:flex;align-items:center;gap:1rem;flex:none}
.links{display:flex;align-items:center;gap:.25rem;white-space:nowrap}
.links a{padding:.6rem .65rem;flex:none}
.links a p{font-size:.94rem;color:#fff;white-space:nowrap;display:flex;align-items:center;gap:.3rem}
.links a:hover p{color:var(--other-main)}
.links a.active p{color:var(--other-main);font-weight:600}
.caret{width:13px;height:13px;flex:none}
/* About-us dropdown */
.has-drop{position:relative}
.has-drop .drop{position:absolute;top:100%;left:0;background:#fff;border-radius:8px;box-shadow:0 12px 30px rgba(0,0,0,.18);min-width:170px;padding:6px;display:none;z-index:60}
.has-drop:hover .drop,.has-drop:focus-within .drop{display:block}
.has-drop .drop a{display:block;padding:.55rem .8rem;border-radius:6px}
.has-drop .drop a p{color:var(--text)}
.has-drop .drop a:hover{background:#f4f5fb}
.actions{display:flex;align-items:center;gap:.75rem;flex:none}
.btn{display:inline-flex;align-items:center;justify-content:center;font-size:.85rem;font-weight:600;padding:.62rem 1.5rem;border-radius:6px;border:0;cursor:pointer;color:#fff;white-space:nowrap;transition:.2s}
.btn-orange{background:var(--other-main)}
.btn-orange:hover{background:#dd7a10}
.btn-green{background:var(--green)}
.btn-green:hover{background:#039f00}
.menu-toggle{display:none;background:none;border:0;cursor:pointer;flex:none;padding:6px}
.menu-toggle span{display:block;width:26px;height:2px;background:#fff;margin:5px 0;border-radius:2px}

/* ---------- INNER PAGE HERO BAND ---------- */
.band{background:var(--main)}
.band .inner{padding:3rem .75rem;max-width:80rem;margin-inline:auto}
.band h1{color:#fff;font-size:1.9rem;font-weight:700;margin-bottom:.25rem}
.band p{color:#fff;font-size:1.05rem;margin-top:1rem;opacity:.95}

/* ---------- HOME HERO ---------- */
.home-bg{background-image:url("assets/bg.jpg");background-position:center;background-size:cover}
.overlay{background:#171c5aee}
.hero-inner{max-width:48rem;margin-inline:auto;text-align:center;padding:6rem 1rem 5rem}
.hero-inner h1{color:#fff;font-size:2rem;font-weight:800;margin-bottom:2rem}
.hero-inner p{color:#fff;font-size:1.05rem;margin-bottom:2.5rem;line-height:1.9}
@media(min-width:768px){.hero-inner h1{font-size:2.4rem}}

/* search bar */
.search{max-width:42rem;margin:0 auto;display:flex;border:1px solid #fff;border-radius:8px;overflow:hidden;background:#fff}
.search .field{display:flex;width:100%}
.search input{flex:1;min-width:0;border:0;outline:none;font-size:.9rem;padding:1rem 1.25rem;color:var(--text)}
.search select{border:0;border-left:1px solid var(--line);outline:none;font-size:.9rem;padding:0 1rem;color:var(--text);background:#fff;cursor:pointer}
.search button{border:0;cursor:pointer;background:var(--other-main);color:#fff;font-weight:600;font-size:.9rem;padding:0 2rem;white-space:nowrap}
.search button:hover{background:#dd7a10}

/* ---------- CARDS ---------- */
.cards{max-width:72rem;margin-inline:auto;padding:5rem 1rem;display:grid;gap:1.5rem;grid-template-columns:1fr}
@media(min-width:768px){.cards{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1024px){.cards{grid-template-columns:repeat(4,1fr)}}
.card{display:block;padding:1.5rem;border:1px solid var(--line);border-radius:8px;box-shadow:0 1px 3px rgba(0,0,0,.06);transition:transform .25s,box-shadow .25s}
.card:hover{transform:translateY(-5px);box-shadow:0 14px 30px rgba(23,28,90,.12)}
.card .thumb{position:relative;aspect-ratio:3/2;display:flex;align-items:center;justify-content:center;margin-top:.5rem}
.card .thumb img{max-height:100%;width:auto;object-fit:contain}
.card h3{text-align:center;font-size:1.1rem;font-weight:600;margin-top:1.5rem;color:var(--text)}
.card .desc{margin-top:.75rem;font-size:.94rem;text-align:center;color:var(--text);
  display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}

/* ---------- PARTNERS ---------- */
.partners{background:#f4f5fb;border-block:1px solid var(--line);padding:3rem 0;overflow:hidden}
.partners .label{text-align:center;color:#7a7f93;font-weight:600;font-size:.78rem;letter-spacing:.14em;text-transform:uppercase;margin-bottom:2rem}
.marquee-mask{overflow:hidden}
.marquee{display:flex;gap:4.5rem;align-items:center;width:max-content;animation:scroll 26s linear infinite}
.marquee img{height:56px;width:auto;object-fit:contain;filter:grayscale(1);opacity:.7;transition:.3s}
.marquee img:hover{filter:grayscale(0);opacity:1}
.marquee-mask:hover .marquee{animation-play-state:paused}
@keyframes scroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* ---------- CONTENT (about / terms / faq) ---------- */
.content{max-width:80rem;margin-inline:auto;padding:3rem .75rem}
.content .narrow{max-width:64rem;margin-inline:auto}
.prose{display:flex;flex-direction:column;gap:1rem;padding-inline:.5rem}
.prose h2{font-weight:600;font-size:1.05rem;margin-top:.5rem}
.prose h3{font-weight:500}
.prose .num{display:flex;gap:.6rem}
.prose .num span{font-weight:600;color:var(--other-main)}
.prose a{color:#2967ca;word-break:break-word}
.terms h2{font-weight:600;font-size:1.15rem;margin-top:1rem;color:var(--main)}
.terms h1{font-weight:700;font-size:1.2rem}
.terms h3{font-weight:500}
.terms b{font-weight:600}
.terms ul{margin-left:1.25rem;list-style:disc;display:flex;flex-direction:column;gap:.4rem}
.terms ul ul{margin-top:.4rem;list-style:circle}

/* FAQ accordion */
.faq{max-width:64rem;margin-inline:auto;padding:1rem 0}
.faq details{background:#fff;border:1px solid var(--line);border-radius:10px;margin-bottom:1rem;overflow:hidden;box-shadow:0 1px 3px rgba(0,0,0,.05)}
.faq summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:.6rem;padding:1.1rem 1.25rem;font-weight:500;color:var(--other-main)}
.faq summary::-webkit-details-marker{display:none}
.faq summary .ic{color:var(--other-main);font-size:1.1rem;flex:none}
.faq summary .ar{margin-left:auto;transition:transform .2s;color:var(--other-main)}
.faq details[open] summary .ar{transform:rotate(-90deg)}
.faq .body{padding:0 1.25rem 1.25rem;color:var(--text)}
.faq .body ul,.faq .body ol{margin-left:1.25rem;display:flex;flex-direction:column;gap:.35rem}
.faq .body ul{list-style:disc}.faq .body ol{list-style:decimal}
.faq .body a{color:#2967ca}
.faq .body b{font-weight:600}

/* ---------- FOOTER ---------- */
footer{background:rgba(0,0,0,.95)}
footer .grid{max-width:80rem;margin-inline:auto;padding:4rem 1.5rem;display:grid;gap:1.5rem;grid-template-columns:1fr}
@media(min-width:768px){footer .grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1024px){footer .grid{grid-template-columns:repeat(3,1fr)}}
footer h2{color:#fff;font-size:1.125rem;font-weight:500}
footer p,footer a{color:#fff}
footer .line{height:2px;background:#fff;width:3rem;margin:.75rem 0 2.5rem}
footer .socials{display:flex;gap:1rem;margin-top:1.5rem}
footer .socials a{display:grid;place-items:center;width:38px;height:38px;border:1px solid #fff;border-radius:50%;font-size:.95rem}
footer .socials a:hover{background:var(--other-main);border-color:var(--other-main)}
footer .ql{display:flex;flex-direction:column;gap:.5rem}
footer .ql a{display:flex;align-items:center;gap:.4rem}
footer .ql a:hover{color:var(--other-main)}
footer .news .row{display:flex;margin-top:.75rem}
footer .news input{flex:1;min-width:0;border:1px solid #fff;background:#fff;border-radius:6px 0 0 6px;padding:.75rem;font-size:.85rem;outline:none;color:var(--text)}
footer .news button{border:0;background:var(--other-main);color:#fff;padding:0 1.5rem;border-radius:0 6px 6px 0;cursor:pointer;font-size:.85rem}
footer .bottom{background:#000;padding:1.5rem}
footer .bottom p{text-align:center;font-size:.85rem}

/* ---------- RESPONSIVE NAV (collision-proof) ---------- */
@media(max-width:1180px){
  .links{display:none}
  .menu-toggle{display:block}
}
@media(max-width:560px){
  .search{flex-wrap:wrap}
  .search .field{flex:1 1 100%}
  .search button{flex:1 1 100%;padding:.9rem}
}
@media(prefers-reduced-motion:reduce){.marquee{animation:none}*{scroll-behavior:auto}}

/* mobile dropdown panel injected by JS */
.mobile-menu{display:none;flex-direction:column;background:#11154a;padding:.5rem 1rem 1rem}
.mobile-menu a{padding:.7rem .25rem;color:#fff;font-size:1rem}
.mobile-menu a.active{color:var(--other-main)}
.mobile-menu .sub{padding-left:1rem;font-size:.92rem;opacity:.9}
.mobile-menu.show{display:flex}

/* ---------- LIVE LISTING (API) ---------- */
.results-head{font-weight:600;font-size:1.15rem;margin-bottom:1.25rem;padding-inline:.25rem}
.results-grid{display:grid;gap:1rem;grid-template-columns:1fr}
@media(min-width:768px){.results-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1024px){.results-grid{grid-template-columns:repeat(3,1fr)}}
@media(min-width:1280px){.results-grid{grid-template-columns:repeat(4,1fr)}}
.results-grid.two{grid-template-columns:1fr}
@media(min-width:1024px){.results-grid.two{grid-template-columns:repeat(2,1fr)}}
.rcard{border:1px solid var(--line);border-radius:8px;overflow:hidden;display:block;background:#fff;transition:box-shadow .3s,transform .3s}
.rcard:hover{box-shadow:0 12px 26px rgba(23,28,90,.12);transform:translateY(-3px)}
.rcard.row{display:flex}
.rcard.row .img{width:13rem;min-width:13rem;flex:none}
.rcard .img{aspect-ratio:3/2;overflow:hidden;background:#eef0f7}
.rcard.row .img{aspect-ratio:auto}
.rcard .img img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.rcard:hover .img img{transform:scale(1.08)}
.rcard .info{padding:1rem}
.rcard h4{font-weight:500;font-size:1rem;color:var(--text);display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.rcard .d{font-size:.85rem;color:var(--text);margin:.5rem 0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.rcard .meta{font-size:.82rem;margin:.25rem 0}.rcard .meta b{font-weight:600}
.chip{display:inline-block;background:#eee;border-radius:999px;padding:.4rem 1rem;font-size:.8rem;text-transform:capitalize;margin-top:.6rem;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pager{display:flex;gap:.4rem;justify-content:center;flex-wrap:wrap;margin-top:2.5rem}
.pager button{border:1px solid var(--line);background:#fff;color:var(--text);padding:.5rem .9rem;border-radius:6px;cursor:pointer;font-size:.88rem}
.pager button:hover:not(:disabled){border-color:var(--main)}
.pager button.active{background:var(--main);color:#fff;border-color:var(--main)}
.pager button:disabled{opacity:.4;cursor:default}
.state{text-align:center;padding:3rem 1rem;color:#9aa0b4}
.state.err{color:#c0392b}

/* ---- clickable cards + detail modal ---------------------------------- */
.rcard{cursor:pointer}
.rcard:focus-visible{outline:2px solid var(--other-main);outline-offset:2px}

.tm-modal{position:fixed;inset:0;z-index:1000;display:none}
.tm-modal.show{display:block}
.tm-modal-backdrop{position:absolute;inset:0;background:rgba(23,28,90,.55)}
.tm-modal-card{position:relative;max-width:760px;width:calc(100% - 2rem);max-height:88vh;overflow:auto;
  margin:5vh auto;background:#fff;border-radius:12px;box-shadow:0 24px 60px rgba(23,28,90,.35);
  padding:1.75rem;animation:tmIn .18s ease}
@keyframes tmIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
.tm-modal-x{position:absolute;top:.6rem;right:.9rem;border:none;background:transparent;font-size:1.8rem;
  line-height:1;color:#9aa0b4;cursor:pointer}
.tm-modal-x:hover{color:var(--main)}
.tm-hd{display:flex;gap:1.1rem;align-items:flex-start;margin-bottom:1.1rem}
.tm-hd-img{width:120px;min-width:120px;height:90px;border-radius:8px;overflow:hidden;background:#eef0f7}
.tm-hd-img img{width:100%;height:100%;object-fit:cover}
.tm-hd h3{font-size:1.25rem;color:var(--main);margin:.1rem 0 .5rem;font-weight:600}
.tm-meta{display:grid;grid-template-columns:1fr 1fr;gap:.5rem 1.5rem;border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);padding:1rem 0;margin-bottom:1rem}
.tm-row{display:flex;flex-direction:column;font-size:.9rem}
.tm-row span{color:#9aa0b4;font-size:.78rem;text-transform:uppercase;letter-spacing:.02em}
.tm-row b{color:var(--text);font-weight:600;word-break:break-word}
.tm-block{margin-bottom:.9rem}
.tm-block h5{font-size:.82rem;text-transform:uppercase;letter-spacing:.02em;color:#9aa0b4;margin:0 0 .25rem}
.tm-block p{font-size:.92rem;color:var(--text);line-height:1.55;margin:0;white-space:pre-line}
.tm-link{display:inline-block;margin-top:.4rem;color:var(--other-main);font-weight:600;text-decoration:none}
.tm-link:hover{text-decoration:underline}
@media(max-width:560px){
  .tm-meta{grid-template-columns:1fr}
  .tm-hd{flex-direction:column}
  .tm-hd-img{width:100%;height:150px}
}
