:root {
  --rpm-accent: #ff3c00;
  --rpm-accent-dark: #d93200;
  --rpm-ink: #17181b;
  --rpm-muted: #6a6f78;
  --rpm-surface: #ffffff;
  --rpm-canvas: #f4f5f7;
  --rpm-border: #e6e8ec;
  --rpm-radius: 10px;
  --rpm-shadow: 0 10px 30px rgba(20, 24, 31, 0.08);
  --rpm-shadow-hover: 0 16px 38px rgba(20, 24, 31, 0.14);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--rpm-canvas);
  color: var(--rpm-ink);
  text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  text-underline-offset: 0.16em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(255, 60, 0, 0.35);
  outline-offset: 3px;
}

.rpm-skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100000;
  padding: 10px 16px;
  color: #fff;
  background: var(--rpm-ink);
  border-radius: 6px;
  transform: translateY(-160%);
}

.rpm-skip-link:focus {
  color: #fff;
  transform: translateY(0);
}

#page-content-wrapper {
  background: var(--rpm-canvas);
}

.container {
  width: min(100% - 32px, 1240px);
}

.brand-wrapper,
.navbar-default,
.site-footer {
  box-shadow: 0 1px 0 rgba(20, 24, 31, 0.06);
}

.brand-wrapper,
.navbar-default {
  background: rgba(255, 255, 255, 0.98);
}

.navbar-default .navbar-nav > li > a {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.navbar-default .navbar-nav > li > a::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 9px;
  left: 16px;
  height: 2px;
  background: var(--rpm-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.navbar-default .navbar-nav > li > a:hover::after,
.navbar-default .navbar-nav > li.current-menu-item > a::after,
.navbar-default .navbar-nav > li.current-menu-ancestor > a::after {
  transform: scaleX(1);
}

.page-content-wrapper,
.single-news-wrapper,
.blog-wrapper,
.archive-wrapper,
.search-wrapper {
  min-width: 0;
}

.recent-news,
.related-post,
.single-news-wrapper,
.widget,
.post-wrapper .recent-news {
  border-color: var(--rpm-border);
  border-radius: var(--rpm-radius);
}

.recent-news,
.related-post,
.post-wrapper .recent-news {
  overflow: hidden;
  background: var(--rpm-surface);
  box-shadow: 0 1px 2px rgba(20, 24, 31, 0.04);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.recent-news:hover,
.related-post:hover,
.post-wrapper .recent-news:hover {
  border-color: rgba(255, 60, 0, 0.28);
  box-shadow: var(--rpm-shadow-hover);
  transform: translateY(-3px);
}

.recent-news .entry-thumb,
.featured-news .entry-thumb,
.post-thumbnail {
  overflow: hidden;
}

.recent-news .entry-thumb img,
.featured-news .entry-thumb img,
.post-thumbnail img {
  width: 100%;
  height: auto;
  transition: transform 320ms ease;
}

.recent-news:hover .entry-thumb img,
.featured-news:hover .entry-thumb img {
  transform: scale(1.025);
}

.entry-title,
.page-title,
.single-news-title {
  text-wrap: balance;
}

.single-news-title,
.entry-header h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
}

.single-news-wrapper .entry-content {
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: 1.78;
}

.entry-content > p,
.entry-content > ul,
.entry-content > ol,
.entry-content > blockquote {
  max-width: 76ch;
}

.entry-content img,
.entry-content video,
.entry-content iframe,
.entry-content embed,
.entry-content object,
.wpb_video_wrapper iframe {
  max-width: 100%;
}

.entry-content iframe,
.wpb_video_wrapper iframe {
  border: 0;
}

.entry-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.entry-content pre,
.entry-content code {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.widget {
  padding: 22px;
  background: var(--rpm-surface);
  box-shadow: 0 1px 2px rgba(20, 24, 31, 0.04);
}

.widget-title,
.section-title,
.element-title h2 {
  position: relative;
  padding-bottom: 10px;
}

.widget-title::after,
.section-title::after,
.element-title h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 42px;
  height: 3px;
  border-radius: 99px;
  background: var(--rpm-accent);
}

.btn,
button,
input[type="button"],
input[type="submit"],
.loadmore-btn,
.entry-content .more-link,
.entry-content a.readmore {
  border-radius: 7px;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.btn:hover,
button:hover,
input[type="submit"]:hover,
.loadmore-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(255, 60, 0, 0.2);
}

.rpm-ad-slot {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  overflow: hidden;
  text-align: center;
}

.rpm-ad-slot__content,
.rpm-ad-slot ins.adsbygoogle,
.rpm-ad-slot iframe {
  display: block;
  width: 100%;
  max-width: 100%;
}

.rpm-ad-slot--header,
.rpm-ad-slot--footer,
.rpm-ad-slot--article-top,
.rpm-ad-slot--article-bottom {
  min-height: 90px;
}

.rpm-ad-slot--sidebar-left,
.rpm-ad-slot--sidebar-right {
  min-height: 250px;
}

.rpm-ad-slot .promo-title {
  display: block;
  width: 100%;
  margin-bottom: 5px;
  color: var(--rpm-muted);
  font: 600 10px/1.3 system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rpm-ad-slot__image {
  margin-inline: auto;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 991px) {
  .container { width: min(100% - 28px, 940px); }

  .brand-wrapper .row {
    display: flex;
    align-items: center;
  }

  .post-wrapper.trendymag-half .entry-thumb,
  .post-wrapper.trendymag-one-fourth .entry-thumb,
  .post-wrapper.trendymag-one-third .entry-thumb,
  .post-wrapper.trendymag-two-third .entry-thumb,
  .featured-news .entry-thumb {
    height: auto;
    min-height: 220px;
  }

  .post-wrapper .entry-thumb img,
  .featured-news .entry-thumb img {
    min-height: 220px;
    object-fit: cover;
  }
}

@media (max-width: 767px) {
  body.menu-open {
    overflow: hidden;
  }

  .container { width: min(100% - 24px, 720px); }

  .brand-wrapper {
    min-height: 72px;
  }

  .brand-wrapper .row {
    display: block;
  }

  .navbar-toggle,
  .menu-close {
    display: grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
  }

  .main-menu-wrapper {
    width: min(88vw, 380px);
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: 12px 0 30px rgba(0, 0, 0, 0.22);
  }

  .navbar-default .navbar-nav > li > a {
    min-height: 48px;
    padding: 13px 22px;
  }

  .navbar-default .navbar-nav > li > a::after {
    display: none;
  }

  .dropdown-menu-trigger {
    min-width: 44px;
    min-height: 44px;
  }

  .single-news-title,
  .entry-header h1 {
    font-size: clamp(1.75rem, 8vw, 2.45rem);
  }

  .single-news-wrapper .entry-content {
    font-size: 1rem;
    line-height: 1.72;
  }

  .post-wrapper.style-four .recent-news .post-contents,
  .post-wrapper.style-seven .recent-news .post-contents,
  .post-wrapper.style-two .recent-news .post-contents {
    right: 0;
  }

  .widget {
    padding: 18px;
  }

  .rpm-ad-slot--header,
  .rpm-ad-slot--footer,
  .rpm-ad-slot--article-top,
  .rpm-ad-slot--article-bottom,
  .rpm-ad-slot--sidebar-left,
  .rpm-ad-slot--sidebar-right {
    min-height: 50px;
  }

  .post-share ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .post-share ul li {
    margin: 0;
  }
}

@media (max-width: 420px) {
  .container { width: min(100% - 18px, 400px); }
  .recent-news .post-contents,
  .category-news .post-contents,
  .related-post .post-contents { padding: 16px; }
  #toTop { right: 14px; bottom: 14px; }
}

