/* Generic recovery stylesheet for ColorMag-based site (theme assets absent from archive).
   Targets ColorMag/ThemeGrill DOM so content renders coherently. Accent from source: #d3572a. */

:root { --accent: #d3572a; --ink: #2b2b2b; --muted: #6b6b6b; --line: #e6e6e6; --bg: #f4f1ea; }

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container, .tg-container, .inner-wrap { width: 94%; max-width: 1140px; margin: 0 auto; }
#page { max-width: 1200px; margin: 0 auto; background: #fff; box-shadow: 0 0 8px rgba(0,0,0,.14); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---- Header ---- */
#masthead, .site-header { background: #fff; }
#header-text-nav-wrap { min-height: 105px; padding: 22px 0; }
.header-main, .header-text-nav-wrap { padding: 14px 0; }
.site-title, .site-title a { font-family: "Trajan Pro", Georgia, serif; font-size: 30px; font-weight: 700; color: var(--ink); letter-spacing: .02em; }
.site-description { color: var(--muted); font-size: 14px; margin: 2px 0 0; }
#header-text.screen-reader-text { position: static !important; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal; }
#site-title { margin: 0; padding: 0; line-height: 1.15; }
#site-title a { color: var(--accent); font-size: 38px; font-weight: 700; }
#site-description { margin: 4px 0 0; color: var(--muted); }
.news-bar { min-height: 36px; border-bottom: 1px solid var(--line); background: #fafafa; font-family: Arial, sans-serif; font-size: 13px; }
.breaking-news { float: left; display: flex; align-items: center; height: 36px; max-width: calc(100% - 90px); overflow: hidden; }
.breaking-news-latest { flex: 0 0 auto; margin-right: 14px; color: #333; }
.newsticker { list-style: none; margin: 0; padding: 0; }
.newsticker li { display: none; white-space: nowrap; }
.newsticker li:first-child { display: block; }
.social-links { float: right; }
.social-links ul { list-style: none; margin: 0; padding: 5px 0; }
.social-links li { display: inline-block; margin-left: 12px; }

/* ---- Primary navigation ---- */
.main-navigation, #site-navigation { background: #1c1c1c; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.main-navigation .container ul, .main-navigation ul.menu { max-width: 1100px; margin: 0 auto; }
.main-navigation li { position: relative; }
.main-navigation li a {
  display: block; padding: 12px 15px; color: #f2f2f2; font-family: Arial, sans-serif;
  font-size: 14px; text-transform: uppercase; letter-spacing: .03em;
}
.main-navigation li a:hover, .main-navigation .current-menu-item > a { background: var(--accent); color: #fff; text-decoration: none; }
.main-navigation ul.sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 200px; background: #262626; z-index: 50; flex-direction: column; }
.main-navigation li:hover > ul.sub-menu { display: block; }
.main-navigation ul.sub-menu li a { text-transform: none; }
.menu-toggle { display: none; }
.home-icon { float: left; }
.home-icon a { display: block; width: 44px; height: 44px; background: var(--accent); }
.home-icon a::before { content: "\2302"; display: block; color: #fff; font: 24px/42px Arial, sans-serif; text-align: center; }
.main-navigation .menu-primary-container { float: left; }
.main-navigation .menu { min-height: 44px; }
.main-navigation li a { padding-top: 11px; padding-bottom: 11px; }
.search-top { float: right; width: 44px; height: 44px; color: #fff; cursor: pointer; }
.search-form-top { display: none; position: absolute; right: 0; top: 44px; z-index: 100; padding: 10px; background: #fff; border: 1px solid var(--line); }

/* ---- Layout: content + sidebar ---- */
.main-content-section, #main { padding: 24px 0; background: #f7f5f0; }
#primary, .tg-content-wrapper { }
.tg-one-half { width: 48%; float: left; margin-right: 4%; }
.tg-one-half-last { margin-right: 0; }
@media (max-width: 720px){ .tg-one-half, .tg-one-half-last { width: 100%; float: none; margin-right: 0; } }

/* ---- ColorMag front page ---- */
.front-page-top-section { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; margin-bottom: 24px; }
.widget_slider_area, .widget_beside_slider { min-width: 0; }
.widget_slider_area .widget, .widget_beside_slider .widget { padding: 0; border: 0; overflow: hidden; }
.widget_slider_area_rotate { position: relative; min-height: 330px; background: #2b2b2b; }
.single-slide { position: absolute; inset: 0; }
.single-slide.displaynone { display: none; }
.single-slide.displayblock { display: block; }
.slider-featured-image, .slider-featured-image a { display: block; width: 100%; height: 330px; }
.slide-content { position: absolute; left: 0; right: 0; bottom: 0; padding: 65px 24px 20px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.88)); }
.slide-content .entry-title { margin: 8px 0 0; font-size: 25px; text-transform: none; }
.slide-content .entry-title a { color: #fff; }
.above-entry-meta .cat-links a { display: inline-block; margin: 0 4px 4px 0; padding: 3px 8px; background: var(--accent); color: #fff; font: 11px Arial, sans-serif; text-transform: uppercase; }
.widget_beside_slider .widget_highlighted_posts { background: transparent; }
.widget_highlighted_posts .single-article { position: relative; min-height: 154px; margin-bottom: 22px; overflow: hidden; background: #333; }
.widget_highlighted_posts .article-content { position: absolute; right: 0; bottom: 0; left: 0; z-index: 2; padding: 42px 15px 13px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.widget_highlighted_posts .entry-title { margin: 4px 0 0; font-size: 17px; }
.widget_highlighted_posts .entry-title a { color: #fff; }
.main-content-section { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 28px; }
#primary { min-width: 0; }
#secondary { min-width: 0; }
.widget_featured_posts .widget-title, #secondary .widget-title { border-bottom: 2px solid var(--accent); border-left: 0; padding-left: 0; }
.widget_featured_posts .widget-title span, #secondary .widget-title span { display: inline-block; padding: 7px 12px; background: var(--accent); color: #fff; }
.widget_featured_posts .single-article { margin-bottom: 22px; }
.widget_featured_posts .article-content { margin-top: 0; }
.widget_featured_posts .entry-title { font-size: 20px; }

/* ---- Articles / posts ---- */
article, .article { background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 22px 26px; margin-bottom: 26px; }
.article-content, .entry-content { margin-top: 10px; }
.entry-title, .article-title, h1.entry-title { font-family: Georgia, serif; line-height: 1.25; margin: 0 0 .4em; }
.entry-title a, .article-title a { color: var(--ink); }
.entry-title a:hover { color: var(--accent); }
.entry-meta, .below-entry-meta { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
h1 { font-size: 30px; } h2 { font-size: 24px; } h3 { font-size: 20px; }
.entry-content p { margin: 0 0 1.1em; }
.entry-content img { border-radius: 2px; }

/* ---- Widgets ---- */
.widget { background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 16px 18px; margin-bottom: 22px; }
.widget-title, .widget h3 { font-size: 16px; text-transform: uppercase; letter-spacing: .03em; border-left: 4px solid var(--accent); padding-left: 10px; margin: 0 0 12px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { border-bottom: 1px dashed var(--line); padding: 8px 0; }

/* ---- Footer ---- */
.footer-widgets-wrapper { background: #1c1c1c; color: #cfcfcf; padding: 34px 0; margin-top: 30px; }
.footer-widgets-wrapper a { color: #fff; }
.footer-widgets-wrapper .widget-title, .footer-widgets-wrapper .widget h3 { color: #fff; }
.footer-widgets-wrapper .widget { background: transparent; border: 0; padding: 0 18px 0 0; }
.tg-first-footer-widget, .tg-second-footer-widget, .tg-third-footer-widget, .tg-fourth-footer-widget { width: 24%; float: left; }
@media (max-width: 720px){ .tg-first-footer-widget,.tg-second-footer-widget,.tg-third-footer-widget,.tg-fourth-footer-widget { width: 100%; float: none; } }
.footer-socket-wrapper { background: #141414; color: #9a9a9a; padding: 14px 0; font-size: 13px; }
.footer-socket-wrapper a { color: var(--accent); }

/* ---- Utility ---- */
.clearfix::after, .clear { content: ""; display: table; clear: both; }
.button, button, input[type="submit"] { background: var(--accent); color: #fff; border: 0; border-radius: 3px; padding: 10px 18px; cursor: pointer; font-size: 15px; }

@media (max-width: 900px) {
  #page { width: 100%; }
  .front-page-top-section, .main-content-section { grid-template-columns: 1fr; }
  .widget_beside_slider { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  #header-text-nav-wrap { min-height: 76px; }
  .social-links { display: none; }
  .breaking-news { max-width: 100%; }
  .home-icon, .search-top { display: none; }
  .menu-toggle {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    min-height: 48px; margin: 0; padding: 0 16px; border: 0; color: #fff;
    background: #1c1c1c; cursor: pointer; font: 600 14px/1 Arial, sans-serif;
    text-transform: uppercase; letter-spacing: .04em;
  }
  .menu-toggle::before { content: "Menu"; }
  .menu-toggle::after { content: "\2630"; font-size: 25px; font-weight: 400; line-height: 1; }
  .main-navigation.menu-open .menu-toggle::after { content: "\00d7"; font-size: 31px; }
  .main-navigation .menu-primary-container { float: none; }
  .main-navigation ul.menu { display: none; width: 100%; border-top: 1px solid #353535; }
  .main-navigation.menu-open ul.menu { display: block; }
  .main-navigation li { float: none; width: 100%; text-align: left; }
  .main-navigation li a { padding: 12px 16px; border-bottom: 1px solid #303030; font-size: 13px; }
  .main-navigation ul.sub-menu { display: block; position: static; width: 100%; min-width: 0; background: #272727; }
  .main-navigation ul.sub-menu li a { padding-left: 30px; color: #ddd; }
  .widget_beside_slider { grid-template-columns: 1fr; }
  .widget_slider_area_rotate, .slider-featured-image, .slider-featured-image a { min-height: 250px; height: 250px; }
}
