/*
Theme Name: Olivin Child
Description: Child theme for Olivin. You can now safely customize it and not risk losing your customizations.
Author: Shentaweb
Author URI: https://shentaweb.com
Template: olivin
Version: 1.8
*/

/* =====================================================================
   DEFENSE AND TECH — "Navy & Brass" edition
   Palette: navy #13294B · deep #0B1A30 · brass #B8892B · brass-light #D9B15C
   gunmetal #101720 · paper #F3F4F6 · ink #1C2433
   ===================================================================== */

:root{
  --dat-navy:#13294B;
  --dat-navy-2:#1F3E6E;
  --dat-deep:#0B1A30;
  --dat-brass:#B8892B;
  --dat-brass-2:#D9B15C;
  --dat-gun:#101720;
  --dat-ink:#1C2433;
  --dat-muted:#6B7280;
  --dat-line:#E3E6EB;
  --dat-paper:#F3F4F6;
  --dat-display:'Barlow Condensed','Noto Sans',sans-serif;
}

/* ---------- Typography: condensed display face for headlines ---------- */
.h2-title,.h3-title,.h1-title,
.oli-post-group-2-item-title,.oli-postlist-5-title,
.oli-postlist-3-item-title,.oli-postlist-6-item-title,
.oli-post-group-3-item-title,.oli-post-group-4-item-title,
.oli-headline-2-title,.single-post .entry-title,.single h1,
.email-subs-title,.archive h1,.page h1{
  font-family:var(--dat-display)!important;
  font-weight:700!important;
  letter-spacing:.01em;
  line-height:1.18!important;
}
.single h1,.single-post .entry-title{font-size:clamp(28px,3.2vw,42px)!important}
.oli-post-group-2-item-title{font-size:clamp(20px,1.6vw,26px)!important}

/* body text slightly darker for readability */
body{color:var(--dat-ink)}
p{color:var(--dat-ink)}

/* ---------- Section / widget titles ---------- */
.oli-widget-title-container{
  border-bottom:1px solid var(--dat-line);
  padding-bottom:10px;
  margin-bottom:18px;
  position:relative;
}
.oli-widget-title-container::after{
  content:"";position:absolute;left:0;bottom:-1px;width:64px;height:2px;
  background:var(--dat-brass);
}
.oli-widget-title{
  font-family:var(--dat-display)!important;
  font-size:20px!important;
  font-weight:700!important;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--dat-navy)!important;
}
.oli-widget-title::before{background:var(--dat-brass)!important;width:4px!important}
/* dual-list column titles */
.widget-section-title{
  font-family:var(--dat-display)!important;font-size:19px!important;font-weight:700!important;
  text-transform:uppercase;letter-spacing:.08em;color:var(--dat-navy)!important;
  border-left:4px solid var(--dat-brass)!important;padding-left:10px;
}
.oli-widget-title-icon{color:var(--dat-brass)!important}

/* ---------- Category badges ---------- */
a.oli-post-category,
.oli-post-category,
.oli-post-group-4-category,
.pl-5-category{
  background:var(--dat-navy)!important;
  color:#fff!important;
  font-family:var(--dat-display)!important;
  font-weight:600!important;
  font-size:12px!important;
  text-transform:uppercase;
  letter-spacing:.09em;
  border-radius:3px!important;
  padding:3px 9px!important;
  transition:background .2s ease;
}
a.oli-post-category:hover,.oli-post-category:hover{background:var(--dat-brass)!important;color:#fff!important}
/* text-style category labels (no background) */
.op6ric-top a.oli-post-category,
.oli-postlist-3-item a.oli-post-category:not([style]){
  background:transparent!important;
  color:var(--dat-brass)!important;
  padding:0!important;
}

/* ---------- Breaking news ticker ---------- */
.oli-news-ticker-container{border:1px solid var(--dat-line);border-left:4px solid var(--dat-brass);background:#fff}
.oli-news-ticker-label{background:var(--dat-navy)!important;font-family:var(--dat-display);text-transform:uppercase;letter-spacing:.08em;font-size:15px!important}
.oli-news-ticker-item a:hover{color:var(--dat-brass)!important}

/* ---------- Cards & lists ---------- */
.oli-postlist-5-item,.oli-postlist-3-item,.oli-postlist-6-item,
.oli-post-group-2-item,.oli-post-group-3-item,.oli-post-group-4-item{
  transition:transform .2s ease,box-shadow .2s ease;
}
.oli-postlist-5-item:hover,.oli-post-group-4-item:hover,.oli-post-group-3-item:hover{transform:translateY(-2px)}
.oli-postlist-3-item{border:1px solid var(--dat-line)!important;border-radius:6px}
.oli-postlist-3-item:hover{border-color:var(--dat-brass)!important;box-shadow:0 10px 24px -14px rgba(11,26,48,.45)}
a:hover .h3-title,a:hover .h2-title,.h3-title a:hover,.h2-title a:hover{color:var(--dat-navy-2)}

/* meta rows (lists only; overlay cards keep white icons) */
.oli-postlist-3-item [class*="meta"] i,.oli-postlist-6-item [class*="meta"] i{color:var(--dat-muted)}

/* ---------- Pagination ---------- */
.pagination .page-numbers{
  background:#fff!important;border:1px solid var(--dat-line)!important;color:var(--dat-navy)!important;
  border-radius:4px!important;font-weight:600;
}
.pagination .page-numbers.current,.pagination .page-numbers:hover{
  background:var(--dat-navy)!important;color:#fff!important;border-color:var(--dat-navy)!important;
}

/* ---------- Tabs ---------- */
.oli-dual-tab .nav-link.active,.oli-tabs .active,[class*="tab"] .nav-link.active{
  background:var(--dat-navy)!important;color:#fff!important;
}

/* ---------- Sidebar: category list ---------- */
.oli-categorylist-2 li a:hover,.oli-category-list li a:hover{color:var(--dat-brass)}
.oli-categorylist-2 .count,.oli-category-list .count{background:var(--dat-paper);color:var(--dat-navy);font-weight:600}

/* ---------- Newsletter box ---------- */
.email-subs-widget-box{background:linear-gradient(160deg,var(--dat-navy) 0%,var(--dat-deep) 100%)!important;border:1px solid rgba(255,255,255,.08)}
.email-subs-title{color:#fff!important;font-size:30px!important}
.email-subs-desc{color:#C9D3E3!important}
.email-subs-btn{background:linear-gradient(90deg,var(--dat-brass),var(--dat-brass-2))!important;color:#fff!important;font-weight:700;border:0!important}
.email-subs-btn:hover{filter:brightness(1.08)}

/* ---------- Buttons ---------- */
.btn-primary,button.btn-primary,.wp-block-button__link,input[type="submit"]{
  background:var(--dat-navy)!important;border-color:var(--dat-navy)!important;color:#fff!important;
}
.btn-primary:hover,.wp-block-button__link:hover,input[type="submit"]:hover{background:var(--dat-brass)!important;border-color:var(--dat-brass)!important}

/* ---------- Single post ---------- */
.single .entry-content a,.single .post-content a{color:var(--dat-navy-2);text-decoration:underline;text-decoration-color:rgba(184,137,43,.55);text-underline-offset:3px}
.single .entry-content a:hover,.single .post-content a:hover{color:var(--dat-brass)}
.single .entry-content h2,.single .post-content h2{
  font-family:var(--dat-display)!important;font-weight:700!important;font-size:30px!important;
  margin-top:1.6em;padding-left:14px;border-left:4px solid var(--dat-brass);line-height:1.2!important;
}
.single .entry-content h3,.single .post-content h3{font-family:var(--dat-display)!important;font-weight:700!important;font-size:24px!important}
.single .entry-content blockquote,.single .post-content blockquote{
  border-left:4px solid var(--dat-brass);background:var(--dat-paper);padding:16px 20px;font-style:normal;color:var(--dat-ink);
}
.single .entry-content p,.single .post-content p{font-size:17.5px;line-height:1.75}
.single .entry-content img,.single .post-content img{border-radius:6px}
/* table of contents */
[class*="toc"] .oli-widget-title,[class*="toc-title"]{color:var(--dat-navy)!important}
[class*="toc"] a:hover{color:var(--dat-brass)!important}
/* author box */
[class*="author-box"] h3,[class*="author-box"] h4,[class*="authorbox"] h3{font-family:var(--dat-display);font-size:22px;text-transform:uppercase;letter-spacing:.05em}
[class*="author-box"]{border-top:3px solid var(--dat-brass)}
/* hide role badge */
.oli-author-role,[class*="author-role"],[class*="user-role"]{display:none!important}

/* ---------- Footer ---------- */
footer.site-footer,.footer-3-wrap{
  background:var(--dat-gun)!important;
  background-image:none!important;
  border-top:3px solid var(--dat-brass);
}
.footer-3 h3,.footer-3 h4,.footer-3 h5,.footer-3 .title,.footer-3 .widget-title,.footer-3 [class*="title"]{
  font-family:var(--dat-display)!important;text-transform:uppercase;letter-spacing:.1em;font-size:18px!important;color:#fff!important;
}
.footer-3 h3::after,.footer-3 h4::after,.footer-3 h5::after{content:"";display:block;width:36px;height:2px;background:var(--dat-brass);margin-top:8px}
.footer-3 a:hover{color:var(--dat-brass-2)!important}
.footer-3 .icon-list-item i{color:var(--dat-brass-2)!important}
.footer-3 .desc{color:#AEB7C5!important}
.footer-bottom,.footer-3-bottom{border-top:1px solid rgba(255,255,255,.08)}

/* ---------- Scroll-to-top & misc ---------- */
.oli-scroll-top,.scroll-to-top,[class*="scroll-top"]{background:var(--dat-navy)!important}
::selection{background:var(--dat-brass);color:#fff}

/* ---------- Small screens ---------- */
@media (max-width:767px){
  .oli-widget-title{font-size:18px!important}
  .single h1,.single-post .entry-title{font-size:26px!important}
  .single .entry-content p,.single .post-content p{font-size:16.5px}
}

/* =====================================================================
   HEADER — soft editorial masthead (white, rounded, calm)
   ===================================================================== */
html body{overflow-x:clip!important}
html body .site-header{position:sticky;top:0;z-index:900}
.admin-bar .site-header{top:32px}
@media (max-width:782px){.admin-bar .site-header{top:46px}}

html body .header-4-wrap{
  background:#fff!important;background-image:none!important;
  border-bottom:1px solid #E8EBF0!important;
  box-shadow:0 8px 28px -22px rgba(16,23,32,.35);
  position:relative;
}
html body .header-4-wrap::after{content:none!important;display:none!important}
html body .header-4-nav,
html body .header-4-nav .container,
html body .header-4{background:transparent!important}

/* logo: dark-on-light version */
html body .header-4-logo .header-logo.dark{display:none!important}
html body .header-4-logo .header-logo.light{display:block!important}
html body .header-4-logo img.header-logo{width:auto!important;height:auto!important;max-height:46px;object-fit:contain}

/* ---- slim navy strip ---- */
html body .header-4-top{
  background:var(--dat-navy)!important;
  border-bottom:0!important;min-height:36px;
}
html body .header-4-top .container{display:flex;align-items:center;justify-content:space-between;min-height:36px}
html body .header-4-top .col{display:flex;align-items:center;gap:12px}
html body .header-4-top,
html body .header-4-top a,
html body .header-4-top span,
html body .header-4-top button{color:#C7D2E3!important}
html body .dat-topbar-left{display:flex;align-items:center;gap:16px;min-height:36px}
html body .dat-tagline{
  font-family:'Noto Sans',sans-serif;font-size:12.5px;font-weight:500;letter-spacing:.01em;
  text-transform:none;color:#AEBCD2!important;white-space:nowrap;
}
html body .dat-langs{display:flex;align-items:center;gap:3px;padding-left:14px;border-left:1px solid rgba(255,255,255,.14)}
html body .dat-langs .dat-lang{
  font-family:'Noto Sans',sans-serif;font-size:11.5px;font-weight:600;letter-spacing:.06em;
  padding:3px 9px;border-radius:999px;color:#AEBCD2!important;text-decoration:none;transition:.2s;
}
html body .dat-langs .dat-lang:hover{color:#fff!important;background:rgba(255,255,255,.1)}
html body .dat-langs .dat-lang.is-current{background:rgba(255,255,255,.14);color:#fff!important}
html body .header-4-top .oli-ajax-search-button,
html body .header-4-top .oli-mode-switcher{color:#C7D2E3!important}
html body .header-4-top .oli-ajax-search-button:hover{color:#fff!important}

/* ---- main row ---- */
html body .header-4{display:flex;align-items:center;min-height:72px}
html body .header-4 > .col:first-child{flex:0 0 auto}
html body .header-4 > .col:nth-child(2){flex:1 1 auto;display:flex;justify-content:center}

@media (min-width:1200px){
html body .oli-nav-menu-wrap{position:static!important;background:transparent!important}
html body .oli-nav-menu-wrap > ul{display:flex;justify-content:center;align-items:center;gap:4px;margin:0;padding:0}
html body .oli-nav-menu-wrap > ul > li{position:relative!important;list-style:none}
html body .oli-nav-menu-wrap > ul > li.dropdown{position:relative!important}
html body .oli-nav-menu-wrap > ul > li::before{display:none!important}
html body .oli-nav-menu-wrap > ul > li > a,
html body .header-4 .navmenu a,
html body .header-4 .navmenu a:focus{
  font-family:'Noto Sans',sans-serif!important;font-size:15px!important;font-weight:600!important;
  letter-spacing:0;text-transform:none;color:#333F50!important;
  padding:9px 15px!important;line-height:1.3!important;height:auto;display:flex;align-items:center;gap:7px;
  background:transparent!important;border-radius:999px!important;position:relative;transition:background .2s,color .2s;
}
html body .oli-nav-menu-wrap > ul > li > a::before,
html body .oli-nav-menu-wrap > ul > li > a::after{display:none!important;content:none!important}
html body .oli-nav-menu-wrap > ul > li:hover > a,
html body .oli-nav-menu-wrap > ul > li.current-menu-item > a,
html body .oli-nav-menu-wrap > ul > li.current-menu-ancestor > a{
  background:#F1F3F7!important;color:var(--dat-navy)!important;
}
html body .oli-nav-menu-wrap > ul > li > a > i{
  font-size:.55rem!important;opacity:.45;width:auto!important;height:auto!important;
  background:none!important;margin:0!important;transition:transform .2s;color:inherit!important;
}
html body .oli-nav-menu-wrap > ul > li:hover > a > i{transform:rotate(180deg);opacity:.8}
html body.dat-lang-moved .oli-nav-menu-wrap > ul > li.dt-lang{display:none!important}

/* dropdown */
html body .oli-nav-menu-wrap > ul > li.dropdown > ul.dropdown-menu,
html body .navmenu .dropdown ul{
  position:absolute!important;top:calc(100% + 8px)!important;left:0!important;right:auto!important;
  width:auto!important;min-width:240px;max-width:none!important;margin:0!important;
  display:block!important;grid-template-columns:none!important;
  padding:8px!important;background:#fff!important;background-image:none!important;
  border:1px solid #E8EBF0!important;border-radius:14px!important;
  box-shadow:0 24px 48px -24px rgba(16,23,32,.28)!important;
  transition:opacity .18s ease,visibility .18s ease!important;
}
html body .oli-nav-menu-wrap > ul > li.dropdown::after{
  content:"";position:absolute;left:0;right:0;top:100%;height:10px;
}
html body .navmenu .dropdown ul a,
html body .navmenu .dropdown ul.dropdown-menu a{
  display:block!important;padding:9px 13px!important;border:0!important;border-radius:9px!important;
  font-family:'Noto Sans',sans-serif!important;font-size:14.5px!important;font-weight:500!important;
  letter-spacing:0;text-transform:none;color:#3A4557!important;background:transparent!important;
  line-height:1.4!important;white-space:nowrap;transition:.15s;justify-content:flex-start!important;
}
html body .navmenu .dropdown ul a::before{display:none!important;content:none!important}
html body .navmenu .dropdown ul a:hover{
  color:var(--dat-navy)!important;background:#F1F3F7!important;transform:none!important;
}
html[dir="rtl"] .oli-nav-menu-wrap > ul > li.dropdown > ul.dropdown-menu{left:auto!important;right:0!important}

/* subscribe pill */
html body .dat-subscribe-btn{
  display:inline-flex;align-items:center;gap:8px;margin-left:12px;flex:0 0 auto;
  font-family:'Noto Sans',sans-serif;font-size:14px;font-weight:600;letter-spacing:0;text-transform:none;
  color:#fff!important;background:var(--dat-navy);
  padding:10px 19px;border-radius:999px;text-decoration:none;
  box-shadow:0 10px 22px -12px rgba(19,41,75,.55);transition:.2s;
}
html body .dat-subscribe-btn:hover{background:var(--dat-navy-2);transform:translateY(-1px)}
html body .dat-subscribe-btn i{font-size:13px;color:var(--dat-brass-2)}
html body .dat-mobile-search{display:none!important}
}

/* ---- tablet & mobile: light app chrome ---- */
@media (max-width:1199px){
/* slim language bar on mobile */
html body .header-4-top{display:block!important;border-bottom:0!important;min-height:40px}
html body .header-4-top .container{justify-content:center;min-height:40px;padding:0 10px}
html body .header-4-top .col.right{display:none!important}
html body .header-4-top .col:not(.right){width:100%;justify-content:center}
html body .dat-topbar-left{min-height:40px;justify-content:center;width:100%;gap:0}
html body .dat-tagline{display:none!important}
html body .dat-langs{border-left:0!important;padding-left:0!important;gap:7px;justify-content:center;width:100%}
html body .dat-langs .dat-lang{font-size:12.5px;padding:4px 13px;background:rgba(255,255,255,.08);color:#C7D2E3!important}
html body .dat-langs .dat-lang.is-current{background:#D9B15C!important;color:#13294B!important;font-weight:700}
html body .dat-subscribe-btn{display:none!important}
html body .header-4{min-height:58px;position:relative;justify-content:center}
html body .header-4 > .col:first-child{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:1}
html body .header-4-logo img.header-logo{max-height:34px}
html body .header-4 > .col:nth-child(2){flex:1 1 auto;justify-content:flex-start}
html body .oli-mobile-toggle{
  position:absolute!important;left:12px;top:50%;transform:translateY(-50%);
  color:#333F50!important;width:42px;height:42px;display:flex!important;align-items:center;justify-content:center;
  border-radius:12px;background:#F1F3F7!important;z-index:2;
}
html body .oli-mobile-toggle svg,
html body .oli-mobile-toggle svg use{fill:#333F50!important;stroke:#333F50!important}
html body .dat-mobile-search{
  position:absolute;right:12px;top:50%;transform:translateY(-50%);
  width:42px;height:42px;border:0;border-radius:12px;background:#F1F3F7;color:#333F50;
  display:flex;align-items:center;justify-content:center;font-size:16px;z-index:2;
}
html[dir="rtl"] .oli-mobile-toggle{left:auto;right:12px}
html[dir="rtl"] .dat-mobile-search{right:auto;left:12px}

/* drawer: light & calm */
html body .oli-nav-menu-wrap{background:#fff!important;background-image:none!important;border-right:1px solid #E8EBF0}
html body .oli-nav-menu-wrap .oli-mobile-toggle-close{color:#333F50!important}
html body .header-4 .navmenu a,
html body .header-4 .navmenu a:focus,
html body .navmenu a,
html body .navmenu a:focus{
  color:#2E3948!important;font-family:'Noto Sans',sans-serif!important;font-size:16px!important;font-weight:600!important;
  letter-spacing:0;text-transform:none;border-radius:10px;
}
html body .navmenu > ul > li::before,
html body .navmenu a::before{display:none!important;content:none!important}
html body .navmenu a:hover{color:var(--dat-navy)!important;background:#F1F3F7}
html body .navmenu a i,
html body .navmenu a:focus i{background:#F1F3F7!important;color:#333F50!important}
html body .navmenu .dropdown ul{background:#F7F8FA!important;border:1px solid #E8EBF0!important;border-radius:12px}
html body .navmenu .dropdown ul a{font-size:15px!important;font-weight:500!important;color:#4A5568!important}

/* bottom app bar — light, iOS-like */
html body.dat-has-appbar{padding-bottom:calc(62px + env(safe-area-inset-bottom,0px))}
html body .dat-appbar{
  position:fixed;left:0;right:0;bottom:0;z-index:950;
  display:grid;grid-template-columns:repeat(5,1fr);
  height:calc(58px + env(safe-area-inset-bottom,0px));padding-bottom:env(safe-area-inset-bottom,0px);
  background:rgba(255,255,255,.94);backdrop-filter:saturate(1.4) blur(14px);-webkit-backdrop-filter:saturate(1.4) blur(14px);
  border-top:1px solid #E8EBF0;box-shadow:0 -10px 30px -22px rgba(16,23,32,.4);
}
html body .dat-appbar a,
html body .dat-appbar button{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
  color:#8B94A3;text-decoration:none;background:none;border:0;
  font:500 10.5px/1 'Noto Sans',sans-serif;letter-spacing:.01em;text-transform:none;
  -webkit-tap-highlight-color:transparent;
}
html body .dat-appbar i{font-size:18px}
html body .dat-appbar .is-active,
html body .dat-appbar a:active,
html body .dat-appbar button:active{color:var(--dat-navy)}
html body .oli-scroll-top,
html body .scroll-to-top,
html body [class*="scroll-top"]{bottom:calc(74px + env(safe-area-inset-bottom,0px))!important}
}
@media (min-width:1200px){html body .dat-appbar{display:none!important}}

html body .dat-pulse{animation:datPulse 1.4s ease-out 1}
@keyframes datPulse{0%{box-shadow:0 0 0 0 rgba(19,41,75,.55)}100%{box-shadow:0 0 0 22px rgba(19,41,75,0)}}

/* dat-hover-fix: keep menu text readable on hover */
@media (min-width:1200px){
html body .header-4 .navmenu a:hover,
html body .header-4 .navmenu > ul > li:hover > a,
html body .header-4 .navmenu > ul > li:hover > a i{color:var(--dat-navy)!important;opacity:1}
html body .header-4 .navmenu > ul > li:hover > a{background:#EEF1F6!important}
html body .header-4 .navmenu .dropdown ul a:hover{color:var(--dat-navy)!important;background:#F1F3F7!important}
}
@media (max-width:1199px){
html body .header-4 .navmenu a:hover{color:var(--dat-navy)!important}
}

/* dat-id-fix: the parent theme paints hovered links white; force readable colours */
html body #navmenu a:hover,
html body #navmenu li:hover > a,
html body #navmenu li:hover > a i{color:var(--dat-navy)!important;opacity:1}
@media (min-width:1200px){
html body #navmenu > .oli-nav-menu-wrap > ul > li:hover > a{background:#EEF1F6!important}
html body #navmenu .dropdown ul a{color:#3A4557!important}
html body #navmenu .dropdown ul a:hover{color:var(--dat-navy)!important;background:#F1F3F7!important}
}
@media (max-width:1199px){
html body #navmenu a:hover{background:#F1F3F7!important}
}

/* dat-sticky-sidebar: the article rail follows the reader */
@media (min-width:992px){
html body .oli-single-post-sidebar{display:flex;flex-direction:column}
html body .oli-single-post-sidebar > .oli-single-post-sidebar-item:last-child{position:sticky;top:120px}
}
