/* =====================================================================
   Royal Gold theme (body.th-grad) — gradient gold from the Dr. Awad Alvi logo.
   Works in both light (ivory) and dark (black) modes.
   ===================================================================== */
.th-grad{--gold-text:linear-gradient(120deg,#9A6B12 0%,#C9971E 25%,#E9CC63 50%,#C9971E 75%,#9A6B12 100%)}
.th-grad.mode-dark{--gold-text:var(--gold-grad)}

/* Gold gradient text */
.th-grad .hero h1 em,.th-grad .page-header h1 em,.th-grad .stat strong,.th-grad .hero-stats dt,.th-grad .tr-v,
.th-grad .big-quote figcaption strong,.th-grad .f-tag,.th-grad .ep-no,.th-grad .az-group h3,.th-grad .price{
  background:var(--gold-text);background-size:200% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
.th-grad .hero h1 em{animation:goldSheen 7s linear infinite}
@keyframes goldSheen{to{background-position:-200% 0}}

/* Buttons */
.th-grad .btn-gold{background:var(--gold-grad);background-size:180% 100%;color:#111112!important;border:0;box-shadow:0 10px 28px -12px rgba(201,151,30,.75);transition:background-position .6s,transform .2s,box-shadow .3s}
.th-grad .btn-gold:hover{background-position:100% 0;box-shadow:0 14px 34px -12px rgba(201,151,30,.9)}
.th-grad .btn-primary{background:#111112;color:#F6E58A}
.th-grad .btn-primary:hover{background:#232326;color:#fff}
.th-grad.mode-dark .btn-primary{background:var(--gold-grad);color:#0E0E10!important}
.th-grad .btn-outline{border-color:#C9971E;color:#A87A16}
.th-grad.mode-dark .btn-outline{color:#E8C55E;border-color:#C9971E}
.th-grad .btn-outline:hover{background:var(--gold-grad);color:#111112!important;border-color:transparent}

/* Lines, rules and accents */
.th-grad .eyebrow::before,.th-grad .eyebrow::after{background:var(--gold-grad)}
.th-grad .scroll-progress{background:var(--gold-grad)}
.th-grad .main-nav>ul>li>a::after{background:var(--gold-grad)}
.th-grad .eyebrow{color:#A87A16}
.th-grad.mode-dark .eyebrow,.th-grad .bg-navy .eyebrow,.th-grad .bg-teal .eyebrow{color:#E8C55E}
.th-grad .site-footer{border-top:3px solid transparent;border-image:var(--gold-grad) 1}

/* Cards & icons */
.th-grad .card-icon{background:linear-gradient(#fff8e6,#fff8e6) padding-box,var(--gold-grad) border-box;border:1px solid transparent;color:#A87A16}
.th-grad.mode-dark .card-icon{background:linear-gradient(#1A1A1C,#1A1A1C) padding-box,var(--gold-grad) border-box;color:#E8C55E}
.th-grad .cards-destination .card-icon,.th-grad .grid.cards-bento>.card:nth-child(1) .card-icon{background:var(--gold-grad);color:#111112}
.th-grad a.card:hover,.th-grad .post-card:hover,.th-grad .plan:hover,.th-grad .quote:hover{border-color:#D4A72C;box-shadow:0 26px 50px -30px rgba(201,151,30,.55)}
.th-grad .cards-destination .card::after{background:var(--gold-grad)}
.th-grad .plan.hl{background:linear-gradient(var(--surface),var(--surface)) padding-box,var(--gold-grad) border-box}
.th-grad .plan-flag,.th-grad .lm-badge{background:var(--gold-grad);color:#111112}
.th-grad .tag{background:rgba(212,167,44,.12);color:#8F6210}
.th-grad.mode-dark .tag{background:rgba(232,197,94,.12);color:#E8C55E}
.th-grad .topic .ic,.th-grad .checks .ic,.th-grad .tb-item .ic{color:#B8861F}
.th-grad .tb-item .ic{background:rgba(212,167,44,.12)}
.th-grad .topic:hover{background:#111112;border-color:#111112}
.th-grad .topic:hover .ic{color:#F6E58A}
.th-grad .chip.active,.th-grad .pager a.active{background:var(--gold-grad);color:#111112;border-color:transparent}

/* Hero & dark sections: deep black-brown with a warm gold glow */
.th-grad .sec-hero.bg-navy,.th-grad .sec-page_header.bg-navy,.th-grad .sec-page_header.bg-teal{
  background:radial-gradient(900px 520px at 85% 0%,rgba(232,197,94,.22),transparent 60%),radial-gradient(700px 400px at 0% 100%,rgba(201,151,30,.14),transparent 60%),#0E0E10}
.th-grad .bg-navy,.th-grad .bg-teal{background-color:#0E0E10}
.th-grad .grid.cards-bento>.card:nth-child(1){background:radial-gradient(500px 300px at 100% 0%,rgba(246,229,138,.28),transparent 60%),linear-gradient(150deg,#232326,#0E0E10)}
.th-grad .grid.cards-bento>.card:nth-child(4){background:linear-gradient(120deg,rgba(212,167,44,.16),var(--surface) 70%)}
.th-grad .grid.cards-bento>.card:nth-child(7){background:linear-gradient(120deg,rgba(246,229,138,.18),var(--surface) 70%)}
.th-grad .portrait-frame{background:linear-gradient(160deg,#232326,#0E0E10)}
.th-grad .portrait-frame::after{border-color:rgba(232,197,94,.55)}
.th-grad .mega-feature{background:radial-gradient(400px 220px at 100% 0%,rgba(232,197,94,.3),transparent 60%),linear-gradient(150deg,#232326,#0E0E10)}
.th-grad .ph{background:linear-gradient(135deg,#232326,#0E0E10);color:rgba(246,229,138,.7)}
.th-grad .post-media .ph{background:linear-gradient(135deg,#FBF1D6,#F1DFA9);color:#A87A16}
.th-grad.mode-dark .post-media .ph{background:linear-gradient(135deg,#1A1A1C,#0E0E10);color:#C9971E}
.th-grad .book-mock{background:linear-gradient(90deg,rgba(0,0,0,.25) 0 6px,transparent 6px 10px),linear-gradient(160deg,#232326,#0E0E10)}
.th-grad .bm-author{color:#E8C55E}
.th-grad .side-tab .st-btn{background:var(--gold-grad);color:#111112}
.th-grad .burger{background:#111112}.th-grad .burger span:nth-child(2){background:#E8C55E}
.th-grad.mode-dark .burger{background:var(--gold-grad)}.th-grad.mode-dark .burger span{background:#0E0E10}
.th-grad .m-menu-panel{background:radial-gradient(500px 300px at 100% 0%,rgba(232,197,94,.25),transparent 60%),linear-gradient(170deg,#1A1A1C,#09090A 60%)}
.th-grad .m-has.open .m-acc{background:var(--gold-grad);border-color:transparent}

/* Light mode: warm ivory reading areas */
.th-grad.mode-light .bg-ivory{background:#FBF6EA}
.th-grad.mode-light .site-header{background:rgba(255,253,247,.92)}

/* Dark mode: comfortable contrast */
.th-grad.mode-dark{--muted:#A8A6A0;--line:rgba(232,197,94,.14)}
.th-grad.mode-dark .site-header{background:rgba(10,10,11,.88)}
.th-grad.mode-dark .brand,.th-grad.mode-dark .main-nav>ul>li>a,.th-grad.mode-dark .icon-btn,.th-grad.mode-dark .lang-dd summary{color:#F2F0EA}
.th-grad.mode-dark .mega-inner,.th-grad.mode-dark .lang-menu,.th-grad.mode-dark .search-overlay form,.th-grad.mode-dark .cookie,.th-grad.mode-dark .st-pop{background:#151517;border-color:rgba(232,197,94,.18)}
.th-grad.mode-dark .mega-links a:hover,.th-grad.mode-dark .lang-menu a:hover{background:#1A1A1C}
.th-grad.mode-dark .site-footer{background:#070708}
.th-grad.mode-dark .hero-portrait figcaption{background:rgba(21,21,23,.94);color:#F2F0EA}
.th-grad.mode-dark .tool,.th-grad.mode-dark .doc-card,.th-grad.mode-dark .lead-magnet{background:#151517}
.th-grad.mode-dark .tool-result{background:radial-gradient(400px 260px at 100% 0%,rgba(232,197,94,.25),transparent 60%),linear-gradient(160deg,#1A1A1C,#09090A)}
.th-grad.mode-dark .doc-photo{background:linear-gradient(160deg,#232326,#09090A)}
.th-grad.mode-dark .az-letters{background:#1A1A1C}
.th-grad.mode-dark .az-letters a{background:#151517;color:#F2F0EA}

/* Brand logo image (uploaded calligraphy) sizing in header/footer */
.logo-mark.custom{height:46px;width:auto;max-width:none;object-fit:contain}
.site-footer .logo-mark.custom{height:56px}
.th-grad.mode-light .site-footer .logo-mark.custom,.th-grad .site-footer .logo-mark.custom{filter:drop-shadow(0 2px 8px rgba(232,197,94,.25))}
.logo-mark.custom{height:60px;margin:-6px 0}
body.scrolled .logo-mark.custom{height:50px}
.th-grad.mode-light .site-header .logo-mark.custom{filter:drop-shadow(0 1px 1px rgba(110,75,10,.35)) saturate(1.15) contrast(1.05)}
.m-head .logo-mark.custom{height:52px}
[lang=ar] em,[lang=ar] i{font-style:normal}

/* ---------- Professional buttons (overrides the earlier gradient styles) ---------- */
.th-grad .btn{border-radius:8px;font-weight:600;letter-spacing:.01em;padding:.85em 1.45em;box-shadow:none!important;transform:none!important;
  transition:background-color .2s ease,color .2s ease,border-color .2s ease;background-image:none}
.th-grad .btn::after{display:none}
.th-grad .btn.sm{padding:.6em 1.05em}
.th-grad .btn-gold{background:#C9A13B;color:#0F0F10!important;border:1px solid #C9A13B}
.th-grad .btn-gold:hover{background:#B38E2E;border-color:#B38E2E;color:#0F0F10!important}
.th-grad .btn-primary{background:#111112;color:#FFFFFF!important;border:1px solid #111112}
.th-grad .btn-primary:hover{background:#2A2A2D;border-color:#2A2A2D}
.th-grad .btn-outline{background:transparent;color:#111112!important;border:1px solid rgba(17,17,18,.28)}
.th-grad .btn-outline:hover{background:#111112;color:#fff!important;border-color:#111112}
.th-grad .btn-ghost{background:transparent;color:#fff!important;border:1px solid rgba(255,255,255,.32)}
.th-grad .btn-ghost:hover{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.55)}
/* Dark mode */
.th-grad.mode-dark .btn-primary{background:#F2F0EA;color:#0F0F10!important;border-color:#F2F0EA}
.th-grad.mode-dark .btn-primary:hover{background:#FFFFFF;border-color:#FFFFFF}
.th-grad.mode-dark .btn-outline{color:#F2F0EA!important;border-color:rgba(242,240,234,.3)}
.th-grad.mode-dark .btn-outline:hover{background:rgba(242,240,234,.08);color:#fff!important;border-color:rgba(242,240,234,.55)}
/* Gold accents elsewhere stay flat too */
.th-grad .chip.active,.th-grad .pager a.active,.th-grad .plan-flag,.th-grad .lm-badge,.th-grad .tc-modes .b.on{background:#C9A13B;color:#0F0F10}
.th-grad .side-tab .st-btn{background:#C9A13B;color:#0F0F10;box-shadow:none}
.th-grad .burger{background:#111112}.th-grad.mode-dark .burger{background:#C9A13B}
.th-grad .cards-destination .card-icon,.th-grad .grid.cards-bento>.card:nth-child(1) .card-icon{background:#C9A13B;color:#0F0F10}
.th-grad .sticky-book{background:rgba(10,10,11,.92)}

/* ---------- Footer (Royal Gold) ---------- */
.th-grad .site-footer{background:#0F0F10;color:rgba(242,240,234,.66);border-top:1px solid rgba(201,161,59,.35);border-image:none}
.th-grad.mode-dark .site-footer{background:#070708;border-top-color:rgba(201,161,59,.28)}
.th-grad .site-footer h4{color:#C9A13B;letter-spacing:.16em}
.th-grad .site-footer a{color:rgba(242,240,234,.72)}
.th-grad .site-footer a:hover{color:#D4AF4F}
.th-grad .site-footer .brand strong{color:#F2F0EA}
.th-grad .site-footer .brand small{color:rgba(242,240,234,.5)}
.th-grad .f-tag{background:none;-webkit-text-fill-color:#C9A13B;color:#C9A13B}
.th-grad .f-contact .ic{color:#C9A13B}
.th-grad .f-bottom{border-top-color:rgba(242,240,234,.1);color:rgba(242,240,234,.5)}
.th-grad .f-disclaimer{color:rgba(242,240,234,.38)}
.th-grad .site-footer .socials a{background:rgba(242,240,234,.06);color:rgba(242,240,234,.8);border:1px solid rgba(242,240,234,.08)}
.th-grad .site-footer .socials a:hover{background:#C9A13B;color:#0F0F10;border-color:#C9A13B}
.th-grad .site-footer .nl-form input[type=email]{background:rgba(242,240,234,.05);border:1px solid rgba(242,240,234,.14);color:#F2F0EA;border-radius:8px}
.th-grad .site-footer .nl-form input::placeholder{color:rgba(242,240,234,.4)}
.th-grad .site-footer .nl-form input[type=email]:focus{outline:none;border-color:#C9A13B}
