/* =====================================================================
   HaberPro – theme.css
   All colors / fonts / sizes come from CSS variables printed by
   inc/dynamic-css.php (:root). No hard-coded brand colors here.
   ===================================================================== */

/* ---------- Base ---------- */
:root {
	--primary: #008EC2;
	--primary-dark: #00719B;
	--body-bg: #EEEEEE;
	--card-bg: #FFFFFF;
	--text: #222222;
	--heading: #212121;
	--muted: #777777;
	--border: #E5E5E5;
	--footer-bg: #121026;
	--footer-text: #FFFFFF;
	--shadow: 0 1px 3px 0 rgba(0,0,0,.15);
	--overlay-dark: rgba(0,0,0,.55);
	--font-body: "Inter", sans-serif;
	--font-heading: "Montserrat", sans-serif;
	--body-size: 16px;
	--body-lh: 30px;
	--container-pad: 48px;
	--hero-height: 475px;
	--header-height: 140px;
	--header-overlay: .4;
	--radius: 3px;
	--dark-body-bg: #121212;
	--dark-card-bg: #1E1E1E;
	--dark-text: #DDDDDD;
	--dark-heading: #FFFFFF;
	--dark-border: #333333;
	--dark-footer-bg: #0B0A16;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	font-family: var(--font-body);
	font-size: var(--body-size);
	line-height: var(--body-lh);
	color: var(--text);
	background: var(--body-bg);
	margin: 0;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .site-title, .hp-404-code {
	font-family: var(--font-heading);
	font-weight: 700;
	color: var(--heading);
	line-height: 1.3;
	margin: 0 0 .5em;
}
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
h4 { font-size: var(--h4); }
h5 { font-size: var(--h5); }
h6 { font-size: var(--h6); }
a { color: var(--link); text-decoration: none; transition: color .2s; }
a:hover { color: var(--link-hover); text-decoration: none; }
img { max-width: 100%; height: auto; }
.container-fluid { padding-left: var(--container-pad); padding-right: var(--container-pad); }
.wrapper { background: var(--body-bg); min-height: 100vh; }
.hp-layout-boxed .wrapper { max-width: 1400px; margin: 0 auto; box-shadow: 0 0 25px rgba(0,0,0,.15); }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; left: 8px; top: 8px; z-index: 100000; background: var(--card-bg); padding: 10px 16px; box-shadow: var(--shadow); }
.mr-bot30 { margin-bottom: 30px; }
.mr-bot40 { margin-bottom: 40px; }
.btn.hp-btn, .hp-btn, .search-submit, .comment-form .submit, .hp-loadmore {
	background: var(--primary); color: #fff !important; font-family: var(--font-body); font-weight: 700; font-size: 16px;
	padding: 5px 15px; border: 0; border-radius: var(--radius); display: inline-block; line-height: 28px; transition: background .2s;
}
.hp-btn:hover, .search-submit:hover, .comment-form .submit:hover, .hp-loadmore:hover { background: var(--primary-dark); color: #fff; }
.hp-btn.btn-sm { font-size: 13px; padding: 2px 12px; line-height: 24px; }
.hp-admin-hint { background: #fff8e1; border: 1px dashed #e6c200; padding: 10px 15px; font-size: 14px; }
.hp-empty { padding: 10px; color: var(--muted); font-size: 14px; }

/* Line clamp */
.hp-clamp { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.hp-clamp-1 { -webkit-line-clamp: 1; }
.hp-clamp-2 { -webkit-line-clamp: 2; }
.hp-clamp-3 { -webkit-line-clamp: 3; }
.hp-clamp-4 { -webkit-line-clamp: 4; }
.hp-clamp-5 { -webkit-line-clamp: 5; }

/* Preloader */
#hp-preloader { position: fixed; inset: 0; background: var(--body-bg); z-index: 99999; display: flex; align-items: center; justify-content: center; transition: opacity .4s; }
#hp-preloader.hp-hide { opacity: 0; pointer-events: none; }
.hp-spinner { width: 48px; height: 48px; border: 4px solid rgba(0,0,0,.1); border-top-color: var(--primary); border-radius: 50%; animation: hp-spin .8s linear infinite; }
@keyframes hp-spin { to { transform: rotate(360deg); } }

/* ---------- Top bar ---------- */
.mg-head-detail { background: var(--topbar-bg); color: var(--topbar-text); min-height: 60px; padding: 8px 0; font-size: 13px; }
.mg-head-detail ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; min-height: 44px; }
.mg-head-detail .info-left li { display: inline-flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.mg-head-detail a { color: var(--topbar-text); }
.hp-topbar-links { display: inline-flex; gap: 12px; }
.hp-topbar-links a { text-transform: none; font-weight: 500; opacity: .9; }
.hp-topbar-widgets .widget { margin: 0; padding: 0; background: transparent; }
.mg-social { display: inline-flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.mg-social li a { width: 35px; height: 35px; display: inline-flex; align-items: center; justify-content: center; color: #fff !important; font-size: 15px; border-radius: 2px; transition: transform .2s, opacity .2s; }
.mg-social li a:hover { transform: translateY(-2px); opacity: .9; }
.hp-social-round li a { border-radius: 50%; }
.hp-social-plain li a { background: transparent !important; color: var(--text) !important; }
.hp-social-widget { flex-wrap: wrap; }
.info-right { gap: 14px; }

/* Dark toggle button */
.hp-dark-toggle { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.35); color: inherit; width: 36px; height: 30px; border-radius: var(--radius); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; transition: background .2s; }
.hp-dark-toggle:hover { background: rgba(255,255,255,.28); }
.hp-dark-toggle .hp-icon-light { display: none; }
html.dark-mode .hp-dark-toggle .hp-icon-light { display: inline; }
html.dark-mode .hp-dark-toggle .hp-icon-dark { display: none; }
.hp-dark-floating { position: fixed; bottom: 30px; width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; box-shadow: 0 3px 10px rgba(0,0,0,.3); z-index: 999; font-size: 18px; }
.hp-dark-floating.hp-pos-left { left: 25px; }
.hp-dark-floating.hp-pos-right { right: 25px; }

/* ---------- Header banner ---------- */
.mg-nav-widget-area-back { background: var(--header-bg); background-size: cover; background-position: center; background-repeat: no-repeat; position: relative; }
.mg-nav-widget-area-back .overlay { background: rgba(0,0,0,var(--header-overlay)); }
.mg-nav-widget-area-back .inner { min-height: var(--header-height); display: flex; align-items: center; padding: 15px 0; }
.mg-nav-widget-area { width: 100%; }
.site-title { font-size: 34px; margin: 0; line-height: 1.2; letter-spacing: -.5px; }
.site-title a { color: #fff; }
.site-description { color: rgba(255,255,255,.85); font-size: 14px; margin: 4px 0 0; }
.site-logo img { max-height: 80px; width: auto; }
.header-ads { text-align: right; }
.header-ads .widget { margin: 0; padding: 0; background: transparent; }
.header-ads img { max-width: 728px; max-height: 90px; width: 100%; height: auto; }
.hp-header-layout-2 .site-title { font-size: 44px; }

/* ---------- Menu ---------- */
.mg-menu-full { background: var(--menu-bg); min-height: 52px; position: relative; z-index: 1000; }
.mg-menu-full.is-sticky { position: fixed; top: 0; left: 0; right: 0; box-shadow: 0 2px 10px rgba(0,0,0,.25); animation: hp-slide-down .3s; }
body.admin-bar .mg-menu-full.is-sticky { top: 32px; }
.hp-sticky-placeholder { height: 52px; }
@keyframes hp-slide-down { from { transform: translateY(-100%); } to { transform: none; } }
.navbar-wp { padding: 0; }
.navbar-wp .container-fluid { display: flex; align-items: center; }
.navbar-wp .navbar-nav { flex-direction: row; flex-wrap: wrap; }
.navbar-wp .navbar-nav > li > a.nav-link { font-family: var(--font-heading); font-size: var(--menu-size); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--menu-text); padding: 14px 22px; line-height: 24px; display: block; transition: background .2s; }
.navbar-wp .navbar-nav > li > a.nav-link:hover, .navbar-wp .navbar-nav > li.current-menu-item > a, .navbar-wp .navbar-nav > li.current-menu-ancestor > a { background: rgba(0,0,0,.15); color: var(--menu-text); }
.navbar-wp .dropdown-menu { border: 0; border-radius: 0; border-top: 3px solid var(--primary); box-shadow: 0 6px 18px rgba(0,0,0,.18); padding: 0; min-width: 220px; margin: 0; background: var(--card-bg); }
.navbar-wp .dropdown-menu li a.dropdown-item { font-family: var(--font-heading); font-size: 13px; font-weight: 600; padding: 10px 18px; color: var(--text); border-bottom: 1px solid var(--border); white-space: nowrap; }
.navbar-wp .dropdown-menu li:last-child a { border-bottom: 0; }
.navbar-wp .dropdown-menu li a.dropdown-item:hover, .navbar-wp .dropdown-menu li a.dropdown-item.active { background: var(--primary); color: #fff; }
.navbar-wp .dropdown-toggle::after { margin-left: 6px; }
.hp-home-icon { color: var(--menu-text); font-size: 18px; padding: 14px 18px; line-height: 24px; display: flex; align-items: center; border-right: 1px solid rgba(255,255,255,.15); }
.hp-home-icon:hover { background: rgba(0,0,0,.15); color: var(--menu-text); }
.hp-nav-extras { margin-left: auto; gap: 10px; }
.mg-search-box .msearch, .m-header .msearch { background: transparent; border: 0; color: var(--menu-text); font-size: 17px; padding: 12px 14px; cursor: pointer; }
.mg-search-box .msearch:hover { background: rgba(0,0,0,.15); }
.hp-searchinner { position: absolute; right: var(--container-pad); top: 100%; width: 320px; background: var(--card-bg); padding: 15px; box-shadow: 0 6px 18px rgba(0,0,0,.2); border-top: 3px solid var(--primary); border-radius: 0; margin: 0; display: none; float: none; }
.hp-searchinner.show { display: block; }
.hp-menu-with-logo .hp-menu-brand .site-title { font-size: 24px; padding-right: 20px; }
.hp-menu-with-logo .site-logo img { max-height: 40px; }
.hp-menu-with-logo .site-description { display: none; }
.hp-menu-brand .navbar-header { display: flex; align-items: center; }

/* Mobile header */
.m-header { display: none; width: 100%; justify-content: space-between; align-items: center; gap: 6px; min-width: 0; }
.mobilehomebtn { color: var(--menu-text); font-size: 20px; padding: 12px 14px; }
.navbar-toggler { color: var(--menu-text); border: 1px solid rgba(255,255,255,.35); font-size: 18px; padding: 6px 12px; border-radius: var(--radius); flex: 0 0 auto; }
.navbar-wp .container-fluid { flex-wrap: wrap; }

/* Search form */
.hp-search-form .form-control { border: 1px solid var(--border); border-radius: var(--radius) 0 0 var(--radius); background: var(--card-bg); color: var(--text); height: 42px; box-shadow: none; }
.hp-search-form .search-submit { border-radius: 0 var(--radius) var(--radius) 0; padding: 0 16px; height: 42px; }

/* ---------- Top tags ---------- */
.mg-tpt-tag-area { background: var(--card-bg); border-bottom: 1px solid var(--border); }
.hp-tags-inner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 34px; padding: 4px 0; font-size: 13px; }
.hp-tags-label { font-family: var(--font-heading); font-weight: 700; color: var(--heading); white-space: nowrap; }
.hp-tags-list { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.hp-top-tag { color: var(--primary); font-size: 12px; font-weight: 600; }
.hp-top-tag:hover { color: var(--primary-dark); text-decoration: underline; }

/* ---------- Ticker ---------- */
.mg-latest-news-sec { background: var(--card-bg); border-bottom: 1px solid var(--border); }
.mg-latest-news { display: flex; align-items: center; min-height: 44px; overflow: hidden; }
.bn_title { flex: 0 0 auto; background: var(--primary); color: #fff; padding: 0 16px; height: 44px; display: flex; align-items: center; position: relative; z-index: 2; }
.bn_title .title { font-size: 14px; font-weight: 700; margin: 0; color: #fff; text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.effect-ripple { position: relative; display: inline-flex; }
.effect-ripple::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); animation: hp-ripple 1.6s infinite; }
@keyframes hp-ripple { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.mg-latest-news-slider { flex: 1 1 auto; min-width: 0; position: relative; overflow: hidden; white-space: nowrap; padding: 0 15px; }
.hp-ticker-item { display: inline-flex; align-items: center; gap: 8px; margin-right: 40px; font-size: 14px; font-weight: 600; color: var(--text); }
.hp-ticker-item i { color: var(--primary); font-size: 12px; }
.hp-ticker-item:hover { color: var(--primary); }

/* ---------- Full width widget areas ---------- */
.hp-full-area { padding-top: 30px; }
.hp-full-area + #content.home { padding-top: 0; }
.hp-section-hero + .hp-full-area { padding-top: 30px; }
.hp-full-area .widget { margin-bottom: 30px; }
.hp-full-plain .widget { background: transparent; box-shadow: none; padding: 0; }
.hp-full-area .hp-hv-big .hp-card-featured { --card-h: 520px; }
.hp-full-cols-1 .mg-posts-modul-1 .hp-hv-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.hp-full-cols-1 .mg-posts-modul-2 .row > [class*="col-"] { flex: 0 0 25%; max-width: 25%; }
@media (max-width: 991px) {
	.hp-full-cols-1 .mg-posts-modul-1 .hp-hv-list { grid-template-columns: 1fr; }
	.hp-full-cols-1 .mg-posts-modul-2 .row > [class*="col-"] { flex: 0 0 50%; max-width: 50%; }
}

/* ---------- Ad slots ---------- */
.hp-ad-slot { text-align: center; margin: 0 0 30px; position: relative; }
.hp-ad-slot .hp-ad-widget { margin: 0 auto 10px; padding: 0; background: transparent; box-shadow: none; display: inline-block; max-width: 100%; }
.hp-ad-slot .hp-ad-widget:last-child { margin-bottom: 0; }
.hp-ad-slot .hp-ads, .hp-ad-slot .widget_custom_html, .hp-ad-slot .textwidget { margin: 0; }
.hp-ad-slot img { display: inline-block; height: auto; }
.hp-ad-label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 6px; }
.hp-ad-section { padding-top: 10px; }
.hp-section-ads + #content.home { padding-top: 20px; }
.hp-ad-archive-top { margin-bottom: 30px; }
.hp-ad-archive-between { margin: 0 0 30px; }
.hp-ad-single-before { margin: 0 0 25px; }
.hp-ad-incontent { margin: 25px 0; }
.hp-ad-single-after { margin: 25px 0 0; }
.hp-ad-before-footer { padding: 0 var(--container-pad) 30px; }
body.hp-ads-hide-mobile .hp-ad-slot { }

/* ---------- Section title ---------- */
.mg-sec-title { height: 42px; border-bottom: 2px solid var(--primary); margin-bottom: 20px; position: relative; }
.mg-sec-title h4 { display: inline-block; background: var(--primary); color: #fff; padding: 0 15px; line-height: 40px; font-size: var(--h4); margin: 0; text-transform: uppercase; letter-spacing: .3px; }
.mg-sec-title h4 a { color: #fff; }

/* ---------- Widgets ---------- */
.mg-widget, .widget { background: var(--card-bg); padding: 10px 20px 20px; margin-bottom: 30px; box-shadow: var(--shadow); }
.mg-sidebar .widget ul { list-style: none; padding: 0; margin: 0; }
.mg-sidebar .widget ul li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.mg-sidebar .widget ul li:last-child { border-bottom: 0; }
.mg-sidebar .widget ul li a { color: var(--text); }
.mg-sidebar .widget ul li a:hover { color: var(--primary); }
.mg-sidebar .widget_tag_cloud a, .tagcloud a { display: inline-block; background: var(--primary); color: #fff !important; font-size: 12px !important; padding: 3px 10px; margin: 0 4px 6px 0; border-radius: var(--radius); }
.mg-sidebar .widget_tag_cloud a:hover, .tagcloud a:hover { background: var(--primary-dark); }
.widget select { width: 100%; padding: 8px; border: 1px solid var(--border); background: var(--card-bg); color: var(--text); }
.widget_categories li { display: flex; justify-content: space-between; }
.hp-ads img { margin: 0 auto; display: inline-block; }
.hp-sticky-sidebar .sidebar-sticky .mg-sidebar { position: sticky; top: 20px; }
body.admin-bar.hp-sticky-sidebar .sidebar-sticky .mg-sidebar { top: 52px; }
.hp-sticky-menu.hp-sticky-sidebar .sidebar-sticky .mg-sidebar { top: 72px; }

/* Post modules */
.mg-posts-sec { margin-bottom: 30px; }
.mg-widget .mg-posts-sec { margin-bottom: 0; }
.mg-posts-sec .mg-sec-title { margin-bottom: 20px; }
.hp-hv-list .small-post { margin-bottom: 15px; }
.hp-dbl-small { margin-top: 15px; }
.hp-dbl-col .mg-blog-post-box { margin-bottom: 0; }

/* ---------- Cards: overlay ---------- */
.back-img { background-size: cover; background-position: center; background-repeat: no-repeat; position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.back-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0) 30%, var(--overlay-dark) 100%); transition: background .3s; }
.back-img:hover::before { background: linear-gradient(to bottom, rgba(0,0,0,.1) 20%, rgba(0,0,0,.75) 100%); }
.back-img .link-div { position: absolute; inset: 0; z-index: 1; }
.back-img article.bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px; z-index: 2; }
.back-img .title, .back-img .title a { color: #fff; text-shadow: 1px 1px 1px rgba(0,0,0,.3); }
.back-img .title a:hover { color: var(--primary); }
.hp-card-overlay { height: 223px; }
.hp-card-overlay.hp-size-side { height: calc((var(--hero-height) - 30px) / 2); margin-bottom: 30px; }
.hp-card-overlay.hp-size-side:last-child { margin-bottom: 0; }
.hp-card-overlay.hp-size-side .title { font-size: 22px; }
.hp-card-overlay.hp-size-sm { height: 260px; }
.hp-card-overlay.hp-size-sm .title { font-size: 18px; }
.hp-card-overlay.hp-size-md { height: calc((var(--hero-height) - 30px) / 2); }
.hp-card-overlay.hp-size-md .title { font-size: 22px; }
.hp-card-overlay.hp-size-lg { height: var(--hero-height); }
.hp-card-overlay.hp-size-lg .title { font-size: var(--hero-title); }
.hp-card-overlay.hp-size-slider { height: var(--slider-h, 400px); margin-bottom: 0; }
.hp-card-overlay.hp-size-slider .title { font-size: 26px; }
.hp-hero-grid .hp-grid-small .col-md-6 .hp-card-overlay { height: calc((var(--hero-height) - 30px) / 2); }
.mg-format-badge { position: absolute; left: 20px; bottom: 20px; width: 38px; height: 38px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; z-index: 3; border-radius: var(--radius); pointer-events: none; }
.back-img .mg-format-badge { bottom: auto; top: 20px; }
.mg-blog-thumb { position: relative; overflow: hidden; border-radius: var(--radius); }
.mg-blog-thumb .mg-format-badge { left: 15px; bottom: 15px; }

/* Card zoom / hover */
.hp-zoom img, .hp-zoom.back-img { transition: transform .4s ease, background-size .4s ease; }
.hp-zoom .mg-blog-thumb img, .hp-zoom .small-post-img img { transform: scale(1); transition: transform .4s ease; display: block; width: 100%; }
.hp-zoom:hover .mg-blog-thumb img, .hp-zoom:hover .small-post-img img { transform: scale(1.05); }
.hp-zoom.back-img { background-size: cover; }
.hp-zoom.back-img:hover { background-size: 105% auto; }
.hp-card-overlay .title a:hover, .hp-card-small .title a:hover, .hp-card-vertical .title a:hover, .hp-card-horizontal .title a:hover { color: var(--primary); }

/* Slider */
.hp-hero-slider .hp-card-slider { height: var(--hero-height); border-radius: var(--radius); }
.hp-card-slider .hp-lcp-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hp-card-slider article.bottom { padding: 25px 30px; }
.hp-card-slider .hp-hero-title { font-size: var(--hero-title); line-height: 1.25; margin-bottom: 8px; }
.hp-hero-full .hp-card-slider { height: var(--hero-height); }
.hp-hero-full .hp-card-slider article.bottom { max-width: 900px; }
.hp-owl .owl-nav button.owl-prev, .hp-owl .owl-nav button.owl-next { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; background: var(--primary) !important; color: #fff !important; font-size: 26px !important; line-height: 40px; border-radius: var(--radius); opacity: 0; transition: opacity .3s; margin: 0; }
.hp-owl .owl-nav button.owl-prev { left: 12px; }
.hp-owl .owl-nav button.owl-next { right: 12px; }
.hp-owl:hover .owl-nav button { opacity: 1; }
.hp-owl .owl-nav button:hover { background: var(--primary-dark) !important; }
.hp-owl .owl-dots { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; }
.hp-owl .owl-dots .owl-dot span { background: rgba(255,255,255,.5); }
.hp-owl .owl-dots .owl-dot.active span { background: var(--primary); }
.hp-hero-main { padding-right: 10px; }
.hp-posts-slider .hp-card-overlay { height: var(--slider-h, 400px); }
.mg-sidebar .hp-posts-slider .hp-card-overlay { height: 470px; }
.hp-carousel-item .hp-card-overlay { height: 260px; }

/* Hero tabs box */
.top-right-area { padding-left: 10px; }
.hp-tabs { background: var(--card-bg); box-shadow: var(--shadow); border-radius: var(--radius); height: 100%; }
.hp-hero-tabs .hp-tabs { height: var(--hero-height); display: flex; flex-direction: column; }
.hp-hero-tabs .tab-content { overflow: auto; flex: 1 1 auto; }
.hp-tabs .nav-tabs { border-bottom: 2px solid var(--primary); display: flex; }
.hp-tabs .nav-tabs .nav-item { flex: 1 1 0; text-align: center; }
.hp-tabs .nav-tabs .nav-link { border: 0; border-radius: 0; font-family: var(--font-heading); font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--text); padding: 10px 6px; }
.hp-tabs .nav-tabs .nav-link.active { background: var(--primary); color: #fff; }
.hp-tabs .tab-content { padding: 10px; }
.hp-tabs .small-post { margin-bottom: 10px; box-shadow: none; border-bottom: 1px solid var(--border); border-radius: 0; padding: 8px 0; }
.hp-tabs .small-post:last-child { border-bottom: 0; }

/* Small card */
.small-post { display: flex; gap: 12px; align-items: flex-start; background: var(--card-bg); padding: 8px; box-shadow: var(--shadow); border-radius: var(--radius); margin-bottom: 15px; min-height: 104px; }
.small-post-img { flex: 0 0 88px; width: 88px; height: 88px; overflow: hidden; border-radius: var(--radius); }
.small-post-img img { width: 88px; height: 88px; object-fit: cover; }
.small-post-content { flex: 1 1 auto; min-width: 0; }
.small-post .title { font-size: var(--card-title); line-height: 1.3; margin: 4px 0 4px; }
.small-post .title a { color: var(--heading); }
.small-post .mg-blog-meta { font-size: 11px; }

/* Vertical card */
.mg-blog-post-box { background: var(--card-bg); padding: 20px; margin-bottom: 30px; box-shadow: var(--shadow); border-radius: var(--radius); }
.hp-card-vertical { padding: 0; overflow: hidden; }
.hp-card-vertical .mg-blog-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hp-card-vertical .mg-blog-inner { padding: 15px 18px 18px; }
.hp-card-vertical .title { font-size: 18px; line-height: 1.35; margin: 8px 0 6px; }
.hp-card-vertical .title a, .hp-card-horizontal .title a { color: var(--heading); }
.mg-blog-excerpt { font-size: 14px; line-height: 22px; color: var(--muted); margin: 8px 0 12px; }

/* Horizontal card */
.hp-card-horizontal { background: var(--card-bg); box-shadow: var(--shadow); border-radius: var(--radius); margin-bottom: 30px; overflow: hidden; padding: 0; }
.hp-card-horizontal .mg-blog-thumb { height: 100%; min-height: 200px; border-radius: 0; }
.hp-card-horizontal .mg-blog-thumb img { width: 100%; height: 100%; min-height: 200px; object-fit: cover; }
.hp-card-horizontal .mg-blog-inner { padding: 18px 22px; }
.hp-card-horizontal .title { font-size: 20px; line-height: 1.35; margin: 8px 0 6px; }
.hp-archive-item .title { font-size: 24px; }
.hp-archive-item .mg-blog-thumb img { min-height: 290px; }

/* Featured card */
.hp-card-featured { height: var(--card-h, 460px); margin-bottom: 15px; }
.hp-card-featured .title { font-size: 24px; margin-bottom: 6px; }
.hp-featured-excerpt { color: rgba(255,255,255,.85); font-size: 14px; line-height: 22px; margin: 6px 0 0; }

/* Category badges */
.mg-blog-category { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.newsup-categories { font-family: var(--font-body); font-size: 10px; font-weight: 700; text-transform: uppercase; color: #fff !important; padding: 4px 6px; border-radius: 3px; line-height: 1.2; letter-spacing: .3px; display: inline-block; }
.newsup-categories:hover { opacity: .85; }
.category-color-1 { background: var(--cat-1); }
.category-color-2 { background: var(--cat-2); }
.category-color-3 { background: var(--cat-3); }
.category-color-4 { background: var(--cat-4); }

/* Meta */
.mg-blog-meta { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; line-height: 1.6; }
.mg-blog-meta a { color: inherit; }
.mg-blog-meta a:hover { color: var(--primary); }
.mg-blog-meta i { color: var(--primary); margin-right: 3px; }
.hp-meta-light, .hp-meta-light a { color: rgba(255,255,255,.85); }
.hp-meta-light i { color: #fff; }

/* ---------- Content area ---------- */
#content.home { padding-top: 60px; }
.hp-inner { padding-top: 30px; padding-bottom: 20px; }
.hp-masonry { column-count: 2; column-gap: 30px; }
.hp-masonry-item { break-inside: avoid; margin-bottom: 30px; }
.hp-posts-wrap.row .hp-grid-item { margin-bottom: 0; }

/* Breadcrumb band */
.mg-breadcrumb-section { background: var(--card-bg); border-bottom: 1px solid var(--border); }
.mg-breadcrumb-title { min-height: 90px; display: flex; flex-direction: column; justify-content: center; padding: 18px 0; }
.mg-breadcrumb-title h1 { font-size: 28px; margin: 0 0 6px; }
.hp-breadcrumb { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hp-breadcrumb a { color: var(--primary); }
.hp-breadcrumb .sep { color: var(--muted); font-size: 11px; }

/* Single */
.mg-header .title.single { font-size: var(--h1); line-height: 1.3; margin: 10px 0 15px; }
.mg-info-author-block { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.mg-info-author-block .mg-author-pic img { border-radius: 50%; }
.mg-info-author-block .media-heading { font-size: 15px; margin-bottom: 4px; }
.mg-info-author-block .media-heading a { color: var(--heading); }
.hp-single-meta { text-transform: none; letter-spacing: 0; font-size: 13px; }
.mg-blog-tags { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; display: block; margin-top: 4px; }
.mg-blog-tags i { color: var(--primary); }
.hp-single-image { margin: 0 0 20px; border-radius: var(--radius); overflow: hidden; }
.hp-single-image img { width: 100%; }
.page-content-single { font-size: var(--body-size); }
.page-content-single p { margin-bottom: 1.2em; }
.page-content-single img { border-radius: var(--radius); }
.page-content-single blockquote { border-left: 4px solid var(--primary); padding: 10px 20px; background: var(--body-bg); font-style: italic; margin: 20px 0; }
.page-content-single h2, .page-content-single h3 { margin-top: 1.4em; }
.page-content-single .wp-block-image figcaption, .wp-caption-text { font-size: 13px; color: var(--muted); text-align: center; }
.page-links { margin: 20px 0; font-weight: 700; }
.page-links a { display: inline-block; background: var(--primary); color: #fff; padding: 2px 10px; border-radius: var(--radius); margin: 0 3px; }
.alignleft { float: left; margin: 5px 20px 15px 0; }
.alignright { float: right; margin: 5px 0 15px 20px; }
.aligncenter { display: block; margin: 15px auto; }
.hp-author-bio-box { background: var(--card-bg); padding: 20px; box-shadow: var(--shadow); border-radius: var(--radius); }
.hp-author-bio-box p { font-size: 14px; margin: 0; color: var(--muted); }
.hp-author-box { gap: 20px; }
.hp-author-avatar img { border-radius: 50%; }
.hp-author-name { font-size: 24px; }
.mg-share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 25px; padding-top: 18px; border-top: 1px solid var(--border); }
.mg-share-label { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; margin-right: 4px; }
.hp-share { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius); color: #fff !important; background: var(--primary); transition: transform .2s; }
.hp-share:hover { transform: translateY(-2px); }
.hp-share-facebook { background: #3B5998; } .hp-share-x { background: #000; } .hp-share-linkedin { background: #0077B5; } .hp-share-whatsapp { background: #25D366; } .hp-share-telegram { background: #0088CC; } .hp-share-pinterest { background: #BD081C; } .hp-share-reddit { background: #FF4500; } .hp-share-email { background: #555; }
.post-navigation { margin-bottom: 30px; }
.post-navigation .nav-links { display: flex; gap: 20px; }
.post-navigation .nav-links > div { flex: 1 1 50%; background: var(--card-bg); padding: 15px 20px; box-shadow: var(--shadow); border-radius: var(--radius); }
.post-navigation .nav-next { text-align: right; }
.hp-nav-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 4px; }
.hp-nav-title { font-family: var(--font-heading); font-weight: 700; font-size: 15px; color: var(--heading); }
.post-navigation a:hover .hp-nav-title { color: var(--primary); }
.hp-related { background: var(--card-bg); box-shadow: var(--shadow); border-radius: var(--radius); }
.hp-related .mg-blog-post-box { box-shadow: none; border: 1px solid var(--border); margin-bottom: 15px; }

/* Comments */
.comments-area .comment-list { list-style: none; padding: 0; margin: 0 0 30px; }
.comments-area .comment-list .children { list-style: none; padding-left: 50px; }
.comments-area .comment { padding: 15px 0; border-bottom: 1px solid var(--border); }
.comments-area .comment.media { display: flex; gap: 14px; }
.comment-avatar img { border-radius: 50%; }
.comment-meta { font-size: 13px; margin-bottom: 6px; }
.comment-author { font-weight: 700; font-family: var(--font-heading); }
.comment-date { color: var(--muted); margin-left: 10px; font-size: 12px; }
.comment-text { font-size: 15px; }
.comment-reply a { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--primary); }
.comment-awaiting { font-size: 13px; color: #c0392b; }
.comment-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; border: 1px solid var(--border); padding: 8px 12px; border-radius: var(--radius); background: var(--card-bg); color: var(--text); }
.comment-form .comment-form-cookies-consent label { display: inline; font-weight: 400; }
.comment-form .comment-form-cookies-consent input { width: auto; margin-right: 6px; }
.comment-notes { font-size: 13px; color: var(--muted); }

/* Pagination */
.pagination, .navigation.pagination { margin: 10px 0 30px; }
.navigation.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; background: var(--card-bg); color: var(--text); font-weight: 700; border-radius: var(--radius); box-shadow: var(--shadow); }
.page-numbers.current, .page-numbers:hover { background: var(--primary); color: #fff; }
.page-numbers.dots { box-shadow: none; background: transparent; }
.posts-navigation .nav-links { display: flex; justify-content: space-between; margin-bottom: 30px; }
.posts-navigation a { background: var(--card-bg); padding: 10px 18px; box-shadow: var(--shadow); border-radius: var(--radius); font-weight: 700; }
.hp-loadmore-wrap { text-align: center; margin: 10px 0 30px; }
.hp-loadmore-wrap .hp-loader { display: inline-block; width: 26px; height: 26px; border: 3px solid rgba(0,0,0,.1); border-top-color: var(--primary); border-radius: 50%; animation: hp-spin .8s linear infinite; vertical-align: middle; margin-left: 10px; }
.hp-loadmore[disabled] { opacity: .6; }

/* 404 */
.hp-404-box { padding: 60px 20px; }
.hp-404-code { font-size: 150px; line-height: 1; margin-bottom: 10px; display: flex; justify-content: center; align-items: center; gap: 10px; }
.hp-404-zero { color: var(--primary); font-size: 120px; display: inline-flex; }
.hp-404-search { max-width: 480px; margin: 20px auto 25px; }
.hp-none { padding: 30px; }
.hp-none .hp-search-form { max-width: 480px; }

/* You missed */
.hp-youmissed { padding-top: 10px; }
.hp-youmissed .hp-card-overlay { height: 260px; }

/* ---------- Footer ---------- */
footer.hp-footer { background: var(--footer-bg); color: var(--footer-text); }
footer.hp-footer .overlay { background: rgba(0,0,0,.25); }
.mg-footer-widget-area { padding: 60px 0 20px; }
.mg-footer-widget-area .widget, .mg-footer-widget-area .mg-widget { background: transparent; box-shadow: none; padding: 0; color: rgba(255,255,255,.75); margin-bottom: 30px; }
.mg-footer-widget-area .widget a { color: rgba(255,255,255,.85); }
.mg-footer-widget-area .widget a:hover { color: #fff; }
.mg-footer-widget-area .widget ul { list-style: none; padding: 0; margin: 0; }
.mg-footer-widget-area .widget ul li { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 14px; }
.mg-footer-widget-area .mg-sec-title { border-bottom-color: var(--primary); }
.mg-footer-widget-area .small-post { background: rgba(255,255,255,.05); box-shadow: none; }
.mg-footer-widget-area .small-post .title a { color: #fff; }
.mg-footer-widget-area .mg-blog-meta { color: rgba(255,255,255,.6); }
.mg-footer-widget-area .hp-search-form .form-control { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff; }
.mg-footer-site-title { text-align: center; padding: 20px 0 30px; }
.mg-footer-site-title a { font-family: var(--font-heading); font-size: 56px; font-weight: 800; color: #fff; letter-spacing: -1px; opacity: .95; }
.hp-footer-social { text-align: center; padding-bottom: 25px; }
.hp-footer-social .mg-social { justify-content: center; }
.mg-footer-bottom-area { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: 13px; color: rgba(255,255,255,.7); }
.mg-footer-bottom-area a { color: #fff; }
.hp-footer-links { list-style: none; margin: 0; padding: 0; display: flex; justify-content: flex-end; gap: 18px; flex-wrap: wrap; }
.hp-footer-links a { font-weight: 600; text-transform: uppercase; font-size: 12px; letter-spacing: .5px; }

/* Scroll to top */
.hp-to-top { position: fixed; bottom: 30px; width: 44px; height: 44px; background: var(--primary); color: #fff !important; display: none; align-items: center; justify-content: center; font-size: 22px; border-radius: var(--radius); z-index: 998; box-shadow: 0 3px 10px rgba(0,0,0,.3); }
.hp-to-top.hp-visible { display: flex; }
.hp-to-top.hp-pos-right { right: 25px; }
.hp-to-top.hp-pos-left { left: 25px; }
.hp-to-top:hover { background: var(--primary-dark); }

/* ---------- Dark mode ---------- */
html.dark-mode body, html.dark-mode .wrapper { background: var(--dark-body-bg); color: var(--dark-text); }
html.dark-mode { --body-bg: var(--dark-body-bg); --card-bg: var(--dark-card-bg); --text: var(--dark-text); --heading: var(--dark-heading); --border: var(--dark-border); --muted: #9a9a9a; --footer-bg: var(--dark-footer-bg); }
html.dark-mode .mg-widget, html.dark-mode .widget, html.dark-mode .mg-blog-post-box, html.dark-mode .small-post, html.dark-mode .hp-tabs, html.dark-mode .hp-card-horizontal, html.dark-mode .page-numbers, html.dark-mode .post-navigation .nav-links > div { background: var(--dark-card-bg); color: var(--dark-text); box-shadow: 0 1px 3px rgba(0,0,0,.5); }
html.dark-mode .mg-tpt-tag-area, html.dark-mode .mg-latest-news-sec, html.dark-mode .mg-breadcrumb-section { background: var(--dark-card-bg); border-color: var(--dark-border); }
html.dark-mode .hp-ticker-item, html.dark-mode .hp-tags-label { color: var(--dark-text); }
html.dark-mode .navbar-wp .dropdown-menu { background: var(--dark-card-bg); }
html.dark-mode .navbar-wp .dropdown-menu li a.dropdown-item { color: var(--dark-text); border-color: var(--dark-border); }
html.dark-mode .hp-search-form .form-control, html.dark-mode .comment-form input, html.dark-mode .comment-form textarea, html.dark-mode .widget select { background: #2a2a2a; border-color: var(--dark-border); color: var(--dark-text); }
html.dark-mode .page-content-single blockquote { background: #2a2a2a; }
html.dark-mode .hp-admin-hint { background: #3a3200; border-color: #8a7a00; }
html.dark-mode .hp-spinner { border-color: rgba(255,255,255,.1); border-top-color: var(--primary); }
html.dark-mode .hp-related .mg-blog-post-box { border-color: var(--dark-border); }
html.dark-mode .hp-tabs .nav-tabs .nav-link { color: var(--dark-text); }
html.dark-mode .mg-footer-widget-area .widget { background: transparent; box-shadow: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
	body { font-size: calc(var(--body-size) * .95); }
	.site-title { font-size: 30px; }
	.hp-card-slider .hp-hero-title { font-size: calc(var(--hero-title) * .9); }
	.navbar-wp .navbar-nav > li > a.nav-link { padding: 14px 14px; font-size: calc(var(--menu-size) * .95); }
}
@media (max-width: 991px) {
	.container-fluid { padding-left: 20px; padding-right: 20px; }
	.hp-searchinner { left: 20px; right: 20px; }
	.hp-hero-row .hp-hero-side { order: 2; display: flex; gap: 20px; flex: 0 0 100%; max-width: 100%; margin-top: 20px; }
	.hp-hero-row .hp-hero-side .hp-card-overlay { flex: 1 1 50%; margin-bottom: 0; height: 223px; }
	.hp-hero-row .hp-hero-main { flex: 0 0 100%; max-width: 100%; order: 1; padding-right: 0; }
	.hp-hero-row .hp-hero-tabs { flex: 0 0 100%; max-width: 100%; order: 3; padding-left: 0; margin-top: 20px; }
	.hp-hero-tabs .hp-tabs { height: auto; }
	.sidebar-sticky { margin-top: 20px; }
	.hp-sticky-sidebar .sidebar-sticky .mg-sidebar { position: static; }
	.hp-card-horizontal .hp-card-h-img { flex: 0 0 40%; max-width: 40%; }
	.hp-card-horizontal .hp-card-h-body { flex: 0 0 60%; max-width: 60%; }
	.hp-masonry { column-count: 2; }
	.mg-footer-site-title a { font-size: 40px; }
	.hp-header-layout-1 .header-ads { text-align: center; margin-top: 10px; }
	.hp-header-layout-1 .row > .col-md-3, .hp-header-layout-1 .row > .col-md-9 { flex: 0 0 100%; max-width: 100%; text-align: center; }
	.hp-header-layout-1 .navbar-header { text-align: center; }
	.m-header { display: flex; }
	.navbar-collapse { background: var(--menu-bg); width: 100%; }
	.navbar-wp .navbar-nav { flex-direction: column; }
	.navbar-wp .navbar-nav > li > a.nav-link { padding: 12px 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
	.navbar-wp .dropdown-menu { position: static !important; float: none; box-shadow: none; border-top: 0; background: rgba(0,0,0,.15); }
	.navbar-wp .dropdown-menu li a.dropdown-item { color: var(--menu-text); border-color: rgba(255,255,255,.08); padding-left: 32px; }
	.hp-nav-extras { display: none !important; }
	.hp-searchinner { left: var(--container-pad); right: var(--container-pad); width: auto; }
	.mg-menu-full.hp-menu-with-logo .hp-menu-brand { display: none; }
}
@media (max-width: 767px) {
	.mg-head-detail.hidden-xs { display: none; }
	body.hp-ads-hide-mobile .hp-ad-slot, body.hp-ads-hide-mobile .hp-ad-section { display: none !important; }
	.hp-hero-row .hp-hero-side { flex-direction: column; }
	.hp-hero-row .hp-hero-side .hp-card-overlay { height: 200px; }
	.hp-hero-slider .hp-card-slider, .hp-hero-full .hp-card-slider, .hp-card-overlay.hp-size-lg, .hp-hero-tabs .hp-tabs { height: 300px; }
	.hp-hero-tabs .hp-tabs { height: auto; }
	.hp-card-slider .hp-hero-title { font-size: 22px; }
	.hp-card-slider article.bottom { padding: 15px; }
	.hp-card-horizontal .hp-card-h-img, .hp-card-horizontal .hp-card-h-body { flex: 0 0 100%; max-width: 100%; }
	.hp-card-horizontal .mg-blog-thumb img { min-height: 0; aspect-ratio: 16/9; }
	.hp-archive-item .mg-blog-thumb img { min-height: 0; }
	.hp-archive-item .title { font-size: 20px; }
	.mg-header .title.single { font-size: calc(var(--h1) * .8); }
	.hp-masonry { column-count: 1; }
	.mg-footer-bottom-area .row > div { text-align: center; }
	.hp-footer-links { justify-content: center; margin-top: 10px; }
	.hp-404-code { font-size: 100px; }
	.hp-404-zero { font-size: 80px; }
	.post-navigation .nav-links { flex-direction: column; }
	.post-navigation .nav-next { text-align: left; }
	.mg-latest-news-slider { padding: 0 10px; }
	.bn_title { padding: 0 10px; }
	.bn_title .title { font-size: 12px; }
	.comments-area .comment-list .children { padding-left: 20px; }
}
@media (max-width: 575px) {
	.hp-hero-slider .hp-card-slider, .hp-hero-full .hp-card-slider { height: 260px; }
	#content.home { padding-top: 30px; }
	.hp-youmissed .col-sm-6 { flex: 0 0 100%; max-width: 100%; }
	.hp-hv-big, .hp-hv-list { flex: 0 0 100%; max-width: 100%; }
	.hp-card-featured { --card-h: 320px; }
	.hp-card-overlay.hp-size-lg { height: 300px; }
	.site-title { font-size: 26px; }
	.mg-footer-site-title a { font-size: 30px; }
	.hp-tabs .nav-tabs .nav-link { font-size: 11px; padding: 8px 4px; }
	.hp-hero-grid .hp-grid-small .col-md-6 .hp-card-overlay, .hp-card-overlay.hp-size-md { height: 200px; margin-bottom: 20px; }
}

/* Print */
@media print {
	.mg-head-detail, .mg-menu-full, .mg-latest-news-sec, .mg-tpt-tag-area, footer.hp-footer, .hp-to-top, .hp-dark-floating, .sidebar-sticky, .mg-share, .hp-related, .hp-youmissed { display: none !important; }
}
