/* ================================================================
   J17 Basketball — Modern Visual Refresh  |  style-dp-modern.css
   Loaded last — overrides theme defaults without touching layout.
   ================================================================ */

/* ── Global polish ──────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
    color: #1e1e1e;
    font-size: 15px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection      { background: #f69e45; color: #fff; }
::-moz-selection { background: #f69e45; color: #fff; }

::-webkit-scrollbar             { width: 6px; }
::-webkit-scrollbar-track       { background: #f0f0f0; }
::-webkit-scrollbar-thumb       { background: #f69e45; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #e08830; }

/* ── Headings ───────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6,
.heading-1, .heading-2, .heading-3,
.heading-4, .heading-5, .heading-6 {
    font-family: 'Kanit', sans-serif;
    font-weight: 800;
    letter-spacing: .02em;
    color: #0d0d14;
    line-height: 1.2;
}

h1, .heading-1 { font-size: clamp(34px, 5vw, 58px);  letter-spacing: .01em; }
h2, .heading-2 { font-size: clamp(26px, 4vw, 42px); }
h3, .heading-3 { font-size: clamp(20px, 3vw, 30px); }
h4, .heading-4 { font-weight: 700; }
h5, .heading-5 { font-weight: 700; }

/* ── Links ──────────────────────────────────────────────────── */
a { transition: color .18s ease; }
a:not([class]):hover { color: #f69e45; }

/* ── Buttons ────────────────────────────────────────────────── */
.button, .btn {
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: 7px;
    transition: background .22s ease, border-color .22s ease,
                color .22s ease, box-shadow .22s ease, transform .15s ease;
}

/* — Primary — */
.button-primary,
.btn-primary,
a.button-primary,
button.button-primary {
    background:   #f69e45 !important;
    border-color: #f69e45 !important;
    color: #fff !important;
    box-shadow: 0 4px 20px rgba(246,158,69,.3) !important;
}
.button-primary:hover, .button-primary:focus,
.btn-primary:hover,    .btn-primary:focus {
    background:   #e08830 !important;
    border-color: #e08830 !important;
    color: #fff !important;
    box-shadow: 0 8px 28px rgba(246,158,69,.52) !important;
    transform: translateY(-2px);
}

/* — Secondary — */
.button-secondary, .btn-secondary {
    background:   #1a1a22;
    border-color: #1a1a22;
    color: #fff;
}
.button-secondary:hover, .btn-secondary:hover {
    background:   #f69e45;
    border-color: #f69e45;
    color: #fff;
    box-shadow: 0 6px 22px rgba(246,158,69,.42);
    transform: translateY(-2px);
}

/* — Gray outline — */
.button-gray-outline, .btn-outline-secondary {
    border: 2px solid rgba(255,255,255,.3);
    color: #fff;
    background: transparent;
    transition: border-color .22s, background .22s, color .22s, transform .15s;
}
.button-gray-outline:hover, .btn-outline-secondary:hover {
    border-color: #f69e45;
    background: #f69e45;
    color: #fff;
    transform: translateY(-2px);
}

/* ── Navbar ─────────────────────────────────────────────────── */
.rd-navbar-nav > li > a {
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
    letter-spacing: .07em;
    transition: color .2s ease;
}
.rd-navbar-nav > li:hover > a { color: #f69e45; }

.rd-navbar-dropdown,
.rd-navbar-megamenu {
    border-radius: 10px;
    box-shadow: 0 16px 48px rgba(0,0,0,.16);
    border: 1px solid rgba(0,0,0,.07);
    overflow: hidden;
}

/* ── Forms ──────────────────────────────────────────────────── */
.form-input,
input[type="text"],    input[type="email"],
input[type="tel"],     input[type="password"],
input[type="search"],  input[type="number"],
input[type="url"],
select,
textarea {
    border-radius: 7px;
    border: 1.5px solid #ddd;
    font-size: 14px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.form-input:focus,
input[type="text"]:focus,    input[type="email"]:focus,
input[type="tel"]:focus,     input[type="password"]:focus,
input[type="search"]:focus,  input[type="number"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
    border-color: #f69e45 !important;
    box-shadow: 0 0 0 3px rgba(246,158,69,.18) !important;
    outline: none;
}

/* ── Cards / Boxes ──────────────────────────────────────────── */
.box, .box-minimal {
    border-radius: 12px;
    transition: transform .28s cubic-bezier(.34,1.56,.64,1),
                box-shadow .28s ease;
}
.box:hover, .box-minimal:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0,0,0,.12);
}

/* ── Tables ─────────────────────────────────────────────────── */
.table-custom thead th,
.table-standings thead th {
    background: #0f0f18;
    color: #fff;
    font-family: 'Kanit', sans-serif;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    border-color: transparent;
    padding: 14px 16px;
}
.table-custom tbody tr,
.table-standings tbody tr {
    transition: background .18s ease;
}
.table-custom tbody tr:hover,
.table-standings tbody tr:hover {
    background: rgba(246,158,69,.06);
}
.table-custom tbody td,
.table-standings tbody td {
    padding: 12px 16px;
    border-color: rgba(0,0,0,.06);
}

/* ── Icon accents ───────────────────────────────────────────── */
.icon-primary  { color: #f69e45; }
.icon.icon-secondary { color: #f69e45; }

/* ── Heading decorators (underline/dividers) ─────────────────── */
.heading-decorated::after,
.heading-default::after {
    background: linear-gradient(90deg, #f69e45, #e49a4f);
}

/* ── Dark-background sections ───────────────────────────────── */
.bg-gray-dark    { background: #16161e !important; }
.bg-gray-darker  { background: #0e0e16 !important; }

/* ── Hero / banner text contrast ───────────────────────────── */
.section-cover h1,
.section-cover h2,
.section-cover .heading-1,
.section-cover .heading-2 {
    text-shadow: 0 2px 20px rgba(0,0,0,.45);
}

/* ── Pagination ─────────────────────────────────────────────── */
.pagination .page-item.active .page-link {
    background: #f69e45;
    border-color: #f69e45;
    color: #fff;
    box-shadow: 0 4px 14px rgba(246,158,69,.35);
}
.pagination .page-link {
    border-radius: 6px;
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
    transition: background .18s, color .18s, box-shadow .18s;
}
.pagination .page-link:hover {
    background: #f69e45;
    border-color: #f69e45;
    color: #fff;
}

/* ── Badges / pills ─────────────────────────────────────────── */
.badge-primary, .label-primary {
    background: #f69e45;
    border-radius: 99px;
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
    letter-spacing: .06em;
}

/* ── Footer ─────────────────────────────────────────────────── */
.page-footer, footer.page-footer {
    background: #0e0e16;
}

/* ── Active state — orange text only, no purple background ─── */
.active { color: #f69e45 !important; background: transparent !important; }


/* ================================================================
   Navbar — modern dark redesign
   ================================================================ */

/* ── Whole header wrapper ───────────────────────────────────── */
header.page-header,
.rd-navbar-darker {
    background: #5b3991 !important;
}

/* ── Top utility bar (phone / email / social) ───────────────── */
.rd-navbar-panel {
    background: rgba(255,255,255,.04);
    border-bottom: 1px solid rgba(255,255,255,.07);
}

/* Fix the barely-visible link-light color inside the dark navbar */
.rd-navbar-darker .link-light,
.rd-navbar-dark .link-light,
.rd-navbar-panel .link-light {
    color: rgba(255,255,255,.65) !important;
    font-family: 'Kanit', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .04em;
    transition: color .18s ease;
}
.rd-navbar-darker .link-light:hover,
.rd-navbar-dark .link-light:hover,
.rd-navbar-panel .link-light:hover {
    color: #f69e45 !important;
}

/* Top-bar icons */
.rd-navbar-panel .icon,
.rd-navbar-panel [class*="fl-"] {
    color: #f69e45 !important;
    font-size: 14px;
}

/* ── Main nav area ──────────────────────────────────────────── */
.rd-navbar-main.rd-navbar-dark,
.rd-navbar-dark {
    background: #5b3991 !important;
    border-bottom: 1px solid rgba(246,158,69,.18);
    box-shadow: 0 4px 32px rgba(0,0,0,.45);
}

/* ── Sticky / scrolled state ────────────────────────────────── */
.rd-navbar--is-stuck .rd-navbar-main,
.rd-navbar--is-clone .rd-navbar-main,
.rd-navbar-static.rd-navbar--is-stuck {
    background: rgba(62,26,120,.95) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 4px 28px rgba(0,0,0,.5);
}

/* ── Desktop nav links ──────────────────────────────────────── */
.rd-navbar-static .rd-nav-link {
    font-family: 'Kanit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.7) !important;
    padding-bottom: 6px;
    transition: color .2s ease;
}

/* Animated orange underline on hover/active */
.rd-navbar-static .rd-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 0; height: 2px;
    background: #f69e45;
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width .25s ease;
}
.rd-navbar-static .rd-nav-link:hover,
.rd-navbar-static .rd-nav-item.active .rd-nav-link,
.rd-navbar-static .rd-nav-item.focus .rd-nav-link,
.rd-navbar-static .rd-nav-item.opened .rd-nav-link {
    color: #fff !important;
    background: transparent !important;
}
.rd-navbar-static .rd-nav-link:hover::after,
.rd-navbar-static .rd-nav-item.active .rd-nav-link::after,
.rd-navbar-static .rd-nav-item.focus .rd-nav-link::after,
.rd-navbar-static .rd-nav-item.opened .rd-nav-link::after {
    width: 100%;
}

/* Cancel the broad .active purple-bg rule for all navbar items */
.rd-navbar-static .rd-nav-item.active,
.rd-navbar-fixed .rd-nav-item.active {
    background: transparent !important;
    color: inherit !important;
}

/* Slightly more breathing room between nav items */
.rd-navbar-static .rd-nav-item + .rd-nav-item {
    margin-left: 16px;
}

/* ── Dropdown menus ─────────────────────────────────────────── */
.rd-navbar-static .rd-navbar-dropdown,
.rd-navbar-static .rd-navbar-megamenu {
    background: #16161e;
    border: 1px solid rgba(246,158,69,.15);
    border-top: 2px solid #f69e45;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,.45);
    margin-top: 10px;
}
.rd-navbar-static .rd-navbar-dropdown .rd-nav-link,
.rd-navbar-static .rd-navbar-megamenu .rd-nav-link {
    color: rgba(255,255,255,.7) !important;
    font-size: 13px;
    padding: 8px 18px;
    transition: color .18s, background .18s;
    border-radius: 6px;
}
.rd-navbar-static .rd-navbar-dropdown .rd-nav-link:hover,
.rd-navbar-static .rd-navbar-megamenu .rd-nav-link:hover {
    color: #f69e45 !important;
    background: rgba(246,158,69,.08) !important;
}

/* ── Mobile toggle button ───────────────────────────────────── */
.rd-navbar-toggle {
    outline: none;
    border: none;
    background: transparent;
}
.rd-navbar-toggle span,
.rd-navbar-toggle span::before,
.rd-navbar-toggle span::after {
    background: rgba(255,255,255,.85);
    border-radius: 2px;
    transition: background .2s, transform .25s;
}
.rd-navbar-toggle.active span,
.rd-navbar-toggle.active span::before,
.rd-navbar-toggle.active span::after {
    background: #f69e45;
}

/* ── Mobile collapsed nav panel ────────────────────────────── */
.rd-navbar-fixed .rd-navbar-main {
    background: #5b3991 !important;
    border-bottom: 1px solid rgba(246,158,69,.2);
}
.rd-navbar-fixed .rd-navbar-nav-wrap,
.rd-navbar-fixed .rd-navbar-submenu {
    background: #4a2d7a;
    border-right: 1px solid rgba(246,158,69,.12);
}
.rd-navbar-fixed .rd-nav-link {
    color: rgba(255,255,255,.8) !important;
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
    letter-spacing: .08em;
}
.rd-navbar-fixed .rd-nav-link:hover {
    color: #f69e45 !important;
}
.rd-navbar-fixed .rd-nav-item.active > .rd-nav-link {
    color: #f69e45 !important;
    background: rgba(246,158,69,.18) !important;
    border-radius: 6px;
}
