/*
 * Fort Smith Metro Daily News — Page Template Styles
 * Template: page-fort-smith.php
 */

/* ===== Fort Smith Sub-Navigation ===== */
.fsm-nav-wrapper {
  background-color: #f5f5f5;
  border-bottom: 3px solid #c20f28;
  padding: 12px 0;
  margin-bottom: 0;
}

.fsm-nav-wrapper .category-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fsm-nav-wrapper .category-menu li a {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #22221e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fsm-nav-wrapper .category-menu li a:hover {
  color: #c20f28;
  text-decoration: none;
}

/* ===== Tame ad-center-wrapper spacing inside our template ===== */
.fsm-page .ad-center-wrapper {
  margin: 15px auto !important;
}

.fsm-page > .container > .ad-center-wrapper {
  margin: 20px auto !important;
}

.fsm-sidebar .ad-center-wrapper {
  margin: 10px auto !important;
}

/* ===== Hero Section ===== */
.fsm-hero {
  margin-bottom: 25px;
  padding: 25px 0;
  border-bottom: 1px solid #ddd;
}

.fsm-hero .lead-story {
  margin-bottom: 0;
}

.fsm-hero .lead-story .lead-image {
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
  border-radius: 2px;
}

.fsm-hero .lead-story .lead-image img {
  width: 100%;
  height: auto;
  display: block;
}

.fsm-hero .lead-story .lead-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #c20f28;
  margin-bottom: 4px;
}

.fsm-hero .lead-story .lead-cat a {
  color: #c20f28;
}

.fsm-hero .lead-story h2 {
  font-family: "Roboto", sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  margin: 6px 0 8px;
}

.fsm-hero .lead-story h2 a {
  color: #22221e;
}

.fsm-hero .lead-story h2 a:hover {
  color: #c20f28;
  text-decoration: none;
}

.fsm-hero .lead-story .lead-excerpt {
  font-family: "Roboto", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #555;
  margin-bottom: 6px;
}

.fsm-hero .lead-story .lead-meta {
  margin-top: 6px;
}

.fsm-hero .lead-story .lead-meta .simple-share {
  color: #999;
  font-size: 13px;
}

.fsm-hero .lead-story .lead-meta .simple-share a {
  color: #555;
}

.fsm-hero .secondary-stories {
  border-left: 1px solid #eee;
  padding-left: 20px;
}

.fsm-hero .secondary-story {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  overflow: hidden;
}

.fsm-hero .secondary-story:first-child {
  padding-top: 0;
}

.fsm-hero .secondary-story:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.fsm-hero .secondary-story .sec-thumb {
  float: left;
  width: 90px;
  height: 68px;
  overflow: hidden;
  margin-right: 12px;
  border-radius: 2px;
}

.fsm-hero .secondary-story .sec-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fsm-hero .secondary-story h4 {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 4px;
  overflow: hidden;
}

.fsm-hero .secondary-story h4 a {
  color: #22221e;
}

.fsm-hero .secondary-story h4 a:hover {
  color: #c20f28;
  text-decoration: none;
}

.fsm-hero .secondary-story .sec-meta {
  font-size: 12px;
  color: #999;
}

/* ===== Section Spacing & Headings ===== */
.fsm-section {
  margin-bottom: 30px;
}

.fsm-section .block-title {
  margin-bottom: 15px;
}

.fsm-section .block-title a {
  color: inherit;
}

.fsm-section .block-title a:hover {
  text-decoration: none;
}

/* ===== More News Grid (2-column) — Custom card layout, NOT overlay ===== */
.fsm-news-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

.fsm-news-grid .news-grid-item {
  width: 50%;
  padding: 0 10px;
  margin-bottom: 20px;
}

.fsm-news-grid .fsm-card {
  background: #fff;
  height: auto;
  position: relative;
  overflow: visible;
}

.fsm-news-grid .fsm-card .fsm-card-image {
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 10px;
}

.fsm-news-grid .fsm-card .fsm-card-image img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}

.fsm-news-grid .fsm-card .fsm-card-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #c20f28;
  margin-bottom: 3px;
}

.fsm-news-grid .fsm-card .fsm-card-cat a {
  color: #c20f28;
}

.fsm-news-grid .fsm-card h4 {
  font-family: "Roboto", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 5px;
}

.fsm-news-grid .fsm-card h4 a {
  color: #22221e;
}

.fsm-news-grid .fsm-card h4 a:hover {
  color: #c20f28;
  text-decoration: none;
}

.fsm-news-grid .fsm-card .fsm-card-meta {
  font-size: 12px;
  color: #999;
}

.fsm-news-grid .fsm-card .fsm-card-meta a {
  color: #777;
}

/* ===== Newsletter CTA ===== */
.fsm-newsletter-cta {
  background-color: #a62529;
  padding: 25px 30px;
  margin: 25px 0;
  color: #fff;
  border-radius: 4px;
}

.fsm-newsletter-cta h3 {
  color: #fff !important;
  font-family: "Roboto Slab", serif;
  font-size: 22px;
  margin-top: 0;
  margin-bottom: 5px;
}

.fsm-newsletter-cta p {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 15px;
  margin-bottom: 12px;
}

/* Override Gravity Forms colors inside the CTA */
.fsm-newsletter-cta .gform_wrapper {
  --gf-color-primary: #000 !important;
  --gf-color-out-ctrl-dark: #fff !important;
  --gf-color-out-ctrl-dark-darker: #fff !important;
  --gf-color-out-ctrl-dark-lighter: rgba(255, 255, 255, 0.7) !important;
  --gf-ctrl-label-color-primary: #fff !important;
  --gf-ctrl-label-color-secondary: rgba(255, 255, 255, 0.8) !important;
}

.fsm-newsletter-cta .gform_wrapper label,
.fsm-newsletter-cta .gform_wrapper .gfield_label,
.fsm-newsletter-cta .gform_wrapper .gfield_description,
.fsm-newsletter-cta .gform_wrapper .gform_description,
.fsm-newsletter-cta .gform_wrapper .gsection_description,
.fsm-newsletter-cta .gform_wrapper .gfield_consent_description {
  color: #fff !important;
}

.fsm-newsletter-cta .gform_wrapper input[type="submit"],
.fsm-newsletter-cta .gform_wrapper button[type="submit"],
.fsm-newsletter-cta .gform_wrapper .gform_button,
.fsm-newsletter-cta .gform_wrapper .gform-theme-button {
  background-color: #000 !important;
  color: #fff !important;
  border: none !important;
  padding: 10px 25px !important;
  font-weight: 600 !important;
  cursor: pointer;
}

.fsm-newsletter-cta .gform_wrapper input[type="submit"]:hover,
.fsm-newsletter-cta .gform_wrapper button[type="submit"]:hover,
.fsm-newsletter-cta .gform_wrapper .gform_button:hover,
.fsm-newsletter-cta .gform_wrapper .gform-theme-button:hover {
  background-color: #333 !important;
}

.fsm-newsletter-cta .gform_wrapper .gform_validation_errors,
.fsm-newsletter-cta .gform_wrapper .validation_message {
  color: #ffcccc !important;
}

/* ===== Post Lists (Sports, Opinions) ===== */
.fsm-post-list .list-item {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  overflow: hidden;
}

.fsm-post-list .list-item:first-child {
  padding-top: 0;
}

.fsm-post-list .list-item:last-child {
  border-bottom: none;
}

.fsm-post-list .list-item .list-thumb {
  float: left;
  width: 100px;
  height: 75px;
  overflow: hidden;
  margin-right: 12px;
  border-radius: 2px;
}

.fsm-post-list .list-item .list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fsm-post-list .list-item .list-content {
  overflow: hidden;
}

.fsm-post-list .list-item h4 {
  font-family: "Roboto", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 4px;
}

.fsm-post-list .list-item h4 a {
  color: #22221e;
}

.fsm-post-list .list-item h4 a:hover {
  color: #c20f28;
  text-decoration: none;
}

.fsm-post-list .list-item .list-meta {
  font-size: 12px;
  color: #999;
}

.fsm-post-list .list-item .list-meta a {
  color: #777;
}

/* ===== Obituaries Grid ===== */
.fsm-obits-grid {
  display: flex;
  flex-wrap: wrap;
}

.fsm-obits-grid .obit-item {
  width: 50%;
  padding: 4px 10px 4px 0;
  box-sizing: border-box;
}

.fsm-obits-grid .obit-item a {
  font-family: "Roboto", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: #22221e;
  display: block;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
}

.fsm-obits-grid .obit-item a:hover {
  color: #c20f28;
  text-decoration: none;
}

.fsm-obits-grid .obit-item .obit-date {
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  color: #999;
  display: block;
  margin-top: 2px;
}

/* ===== Sidebar ===== */
.fsm-sidebar .widget {
  margin-bottom: 20px;
}

.fsm-sidebar .compass-promo {
  display: block;
}

.fsm-sidebar .compass-promo img {
  width: 100%;
  max-width: 300px;
  display: block;
  margin: 0 auto;
  border: 1px solid #ccc;
}

.fsm-sidebar .compass-promo:hover img {
  opacity: 0.9;
}

/* ===== Ad Spacing ===== */
.fsm-ad-block {
  margin: 20px 0;
  text-align: center;
}

.fsm-ad-block .ad-center-wrapper {
  margin: 0 auto !important;
}

/* ===== Responsive ===== */

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
  .fsm-hero .lead-story h2 {
    font-size: 22px;
  }

  .fsm-hero .secondary-stories {
    border-left: none;
    border-top: 1px solid #eee;
    padding-left: 0;
    padding-top: 15px;
    margin-top: 15px;
  }
}

/* Mobile (below 768px) */
@media (max-width: 767px) {
  .fsm-nav-wrapper .category-menu li {
    display: block;
    padding: 5px 0;
  }

  .fsm-nav-wrapper .category-menu li + li {
    padding-left: 0;
  }

  .fsm-nav-wrapper .category-menu li + li:before {
    display: none;
  }

  .fsm-hero .lead-story h2 {
    font-size: 20px;
  }

  .fsm-hero .secondary-stories {
    border-left: none;
    border-top: 1px solid #eee;
    padding-left: 0;
    padding-top: 15px;
    margin-top: 15px;
  }

  .fsm-news-grid .news-grid-item {
    width: 100%;
  }

  .fsm-obits-grid .obit-item {
    width: 100%;
    padding-right: 0;
  }

  .fsm-newsletter-cta {
    padding: 20px 15px;
  }

  .fsm-newsletter-cta h3 {
    font-size: 19px;
  }

  .fsm-post-list .list-item .list-thumb {
    width: 80px;
    height: 60px;
  }
}
