/* ============================================
   SPORTSWIRE.PH — Custom News Layout CSS
   Colors: Navy #0d1b2a | Orange #f47c20
   Fonts: Roboto / Roboto Condensed (matching newsbytes)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Roboto+Condensed:wght@400;700&display=swap');

* { box-sizing: border-box; }
.sw-homepage { font-family: 'Roboto', Arial, sans-serif; color: #111; font-size: 14px; }
.sw-homepage a { text-decoration: none; color: inherit; }
.sw-homepage a:hover { color: #f47c20; }
.sw-homepage img { display: block; width: 100%; height: auto; object-fit: cover; }
.content-container { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.sw-page-wrap { max-width: 1140px; margin: 0 auto; padding: 20px 16px 40px; }

/* --- Site Header --- */
.sw-site-header { background: #f2f2f1; border-bottom: 1px solid #e8e8e8; }
.sw-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 20px; padding-bottom: 16px;
}
.sw-header-date {
  font-family: 'Roboto Condensed', Arial Narrow, sans-serif;
  font-size: 12px; font-weight: 400; text-transform: uppercase;
  letter-spacing: 0.5px; color: #000; flex: 1;
}
.sw-header-logo { flex: 1; text-align: center; }
.sw-logo-img { max-width: 280px; height: auto; display: inline-block; }
.sw-header-right { flex: 1; display: flex; justify-content: flex-end; align-items: center; }
.sw-header-social { display: flex; gap: 8px; align-items: center; }
.sw-social-item {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.2); background: #fff;
  color: #0d1b2a; font-size: 10px; font-weight: 700;
  text-decoration: none; font-style: normal;
  transition: background 0.2s, color 0.2s;
}
.sw-social-item:hover { background: #0d1b2a; color: #fff; }
.sw-social-item svg { width: 14px; height: 14px; }

/* --- Ticker --- */
.sw-ticker {
  display: flex; align-items: center;
  background: #0d1b2a; overflow: hidden; height: 36px;
}
.sw-ticker-label {
  background: #f47c20; color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: 1.5px;
  padding: 0 14px; white-space: nowrap; flex-shrink: 0;
  height: 100%; display: flex; align-items: center; text-transform: uppercase;
}
.sw-ticker-wrap { flex: 1; overflow: hidden; margin: 0 12px; }
.sw-ticker-scroll {
  display: inline-flex; gap: 0;
  animation: ticker 40s linear infinite;
  white-space: nowrap;
}
.sw-ticker-scroll a { color: #bbb; font-size: 12px; padding: 0 6px; }
.sw-ticker-scroll a:hover { color: #f47c20; }
.sw-sep { color: #444; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- Shared --- */
.sw-meta { font-size: 11px; color: #999; display: block; margin-top: 4px; }
.sw-author-date { font-size: 12px; color: #aaa; margin-top: 5px; }
.sw-author-name a { color: #777; font-weight: 600; text-decoration: none; }
.sw-author-name a:hover { color: #f47c20; }
.sw-post-date time { color: #aaa; }
.sw-meta-sep { color: #ccc; margin: 0 2px; }
.sw-cat-label {
  display: inline-block; background: #f47c20; color: #fff;
  font-size: 9px; font-weight: 800; letter-spacing: 1.5px;
  padding: 2px 8px; text-transform: uppercase; margin-bottom: 5px;
}
.sw-cat-label:hover { background: #0d1b2a; color: #fff; }

/* --- Blocks --- */
.sw-block { margin-bottom: 30px; padding-bottom: 24px; border-bottom: 1px solid #e0e0e0; }
.sw-block:last-child { border-bottom: none; }

/* --- Block A --- */
.sw-block-a { display: grid; grid-template-columns: 1fr 366px; gap: 24px; }

/* Ad */
.sw-ad-728 { margin-bottom: 16px; }
.sw-ad-placeholder {
  background: #f5f5f5; border: 1px dashed #ccc; color: #aaa;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; text-transform: uppercase; letter-spacing: 1px;
}
.sw-ad-728 .sw-ad-placeholder { height: 90px; }
.sw-ad-300 .sw-ad-placeholder { height: 250px; margin-bottom: 16px; }

/* Featured post */
.sw-featured-post { margin-bottom: 16px; }
.sw-featured-body { margin-bottom: 10px; }
.sw-featured-img { display: block; margin-bottom: 10px; }
.sw-featured-img img { width: 728px; height: 328px; object-fit: cover; }
.sw-featured-title {
  font-family: 'Roboto Condensed', Arial Narrow, sans-serif;
  font-size: 45px; font-weight: 900; line-height: 1.1;
  letter-spacing: -0.25px; margin: 15px 0 15px;
}
.sw-featured-title a { color: #0d1b2a; }
.sw-featured-title a:hover { color: #f47c20; }
.sw-featured-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #888; margin-bottom: 4px; }
.sw-author { font-weight: 600; color: #555; }
.sw-meta-sep { color: #ccc; }
.sw-featured-excerpt { font-family: 'Roboto', sans-serif; font-size: 15px; color: #555; line-height: 1.3; margin: 5px 0 0; }

/* Sub posts (2nd and 3rd) */
.sw-sub-posts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sw-sub-post { display: flex; gap: 10px; align-items: flex-start; border-top: 1px solid #e8e8e8; padding-top: 12px; }
.sw-sub-text { flex: 1; }
.sw-sub-title { font-family: 'Roboto Condensed', Arial Narrow, sans-serif; font-size: 15px; font-weight: 700; line-height: 1.1; margin: 4px 0 0; }
.sw-sub-title a { color: #0d1b2a; }
.sw-sub-title a:hover { color: #f47c20; }
.sw-sub-thumb { width: 90px; flex-shrink: 0; }
.sw-sub-thumb img { width: 90px; height: 68px; object-fit: cover; }

/* Side column (Block A col 2) */
.sw-col-side { border-left: 1px solid #e8e8e8; padding-left: 20px; }
.sw-side-header {
  border-top: 3px solid #0d1b2a; padding-top: 8px; margin-bottom: 12px;
}
.sw-side-header h3 {
  font-family: 'Roboto Condensed', Arial Narrow, sans-serif;
  font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin: 0;
}
.sw-side-header h3 a { color: #0d1b2a; }
.sw-side-header h3 a:hover { color: #f47c20; }
.sw-side-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 9px 0; border-bottom: 1px solid #f0f0f0;
}
.sw-side-item:last-child { border-bottom: none; }
.sw-side-text { flex: 1; }
.sw-side-title { font-size: 15px; font-weight: 700; line-height: 1.3; margin: 0 0 4px; font-family: 'Roboto', sans-serif; }
.sw-side-title a { color: #0d1b2a; }
.sw-side-title a:hover { color: #f47c20; }
.sw-side-thumb { width: 115px; flex-shrink: 0; }
.sw-side-thumb img { width: 115px; height: 75px; object-fit: cover; }
.sw-side-item .sw-meta { font-size: 12px; }

/* --- Block B --- */
.sw-block-b { display: grid; grid-template-columns: 1fr 366px; gap: 24px; }
.sw-col-b1 { }
.sw-col-b2 { border-left: 1px solid #e8e8e8; padding-left: 20px; }

.sw-b1-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid #f0f0f0;
}
.sw-b1-item:first-of-type { padding-top: 0; }
.sw-b1-item:last-child { border-bottom: none; }
.sw-b1-thumb { width: 290px; flex-shrink: 0; position: relative; display: block; }
.sw-b1-thumb img { width: 290px; height: 178px; object-fit: cover; display: block; }
.sw-b1-thumb .sw-cat-label { position: absolute; bottom: 0; left: 0; margin: 0; }
.sw-b1-text { flex: 1; }
.sw-b1-excerpt { font-family: 'Roboto', sans-serif; font-size: 15px; color: #555; line-height: 1.3; margin: 5px 0 0; }

/* Force Block B columns to start at same top */
.sw-block-b { align-items: start; }
.sw-col-b2 { display: flex; flex-direction: column; }
.sw-col-b2 .sw-ad-300 { order: -1; }
.sw-ad-300 .sw-ad-placeholder { height: 250px; width: 300px; margin: 0 auto 16px; }

/* --- Nav --- */
.sw-nav { background: #fff; border-bottom: 2px solid #0d1b2a; position: sticky; top: 0; z-index: 1000; }
.admin-bar .sw-nav { top: 32px; }
.sw-nav-inner { display: flex; gap: 0; align-items: center; justify-content: center; flex-wrap: nowrap; }
.sw-nav-menu { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.sw-nav-menu li { display: block; }
.sw-nav-item {
  font-family: 'Roboto Condensed', Arial Narrow, sans-serif;
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; color: #0d1b2a;
  padding: 12px 16px; display: block;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s; text-decoration: none;
}
.sw-nav-item:hover { color: #f47c20; border-bottom-color: #f47c20; }
.sw-nav-more { position: relative; }
.sw-nav-more-btn {
  background: none; border: none; cursor: pointer;
  font-family: 'Roboto Condensed', Arial Narrow, sans-serif;
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; color: #0d1b2a; padding: 12px 16px;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}
.sw-nav-more-btn:hover { color: #f47c20; border-bottom-color: #f47c20; }
.sw-nav-dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid #e0e0e0; border-top: 3px solid #0d1b2a;
  min-width: 200px; z-index: 999; box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.sw-nav-more.open .sw-nav-dropdown { display: block; }
.sw-nav-dropdown-item {
  display: block; padding: 10px 16px;
  font-family: 'Roboto Condensed', Arial Narrow, sans-serif;
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; color: #0d1b2a; text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
}
.sw-nav-dropdown-item:hover { color: #f47c20; background: #fafafa; }

/* --- Single Post Layout --- */
.sw-single-body { background: #f9f9f9; }
.sw-single-layout { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }

/* Full-width header */
.sw-single-header { background: #fff; padding: 24px 28px 0; margin-bottom: 0; }

/* Main */
.sw-single-main { background: #fff; padding: 20px 28px 32px; }
.sw-single-title {
  font-family: 'Roboto Condensed', Arial Narrow, sans-serif;
  font-size: 41px; font-weight: 900; line-height: 1.1;
  color: #0d1b2a; margin: 10px 0 12px;
}
.sw-single-byline { display: flex; align-items: center; gap: 0; margin-bottom: 14px; line-height: 30px; }
.sw-byline-author { display: inline-flex; align-items: baseline; }
.sw-byline-by { font-family: 'Roboto Condensed', Arial Narrow, sans-serif; font-size: 14px; font-weight: 600; text-transform: uppercase; color: #aaa; margin-right: 5px; }
.sw-byline-name { font-family: 'Roboto Condensed', Arial Narrow, sans-serif; font-size: 14px; font-weight: 600; text-transform: uppercase; color: #aaa !important; text-decoration: none; }
.sw-byline-name:hover { color: #777 !important; }
.sw-byline-date { font-family: 'Roboto Condensed', Arial Narrow, sans-serif; font-size: 14px; font-weight: 600; text-transform: uppercase; color: #aaa; margin-left: 10px; display: inline-block; }

/* Share bar */
.sw-share-bar { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 20px; margin-left: -3px; }
.sw-share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 2px;
  background: #3a3a3a; color: #fff;
  border: none; cursor: pointer; text-decoration: none;
  transition: opacity 0.2s;
}
.sw-share-btn svg { width: 15px; height: 15px; }
.sw-share-btn-copy { font-size: 11px; font-weight: 700; letter-spacing: 0.5px; color: #fff; font-family: 'Roboto Condensed', sans-serif; }
.sw-share-btn:hover { background: #555; }

/* Featured image */
.sw-single-thumb { margin: 0 0 20px; }
.sw-single-img { width: 100%; height: auto; display: block; }
.sw-single-caption { font-size: 12px; color: #999; text-align: center; margin-top: 6px; font-style: italic; }

/* Content */
.sw-single-content { font-family: 'Roboto', sans-serif; font-size: 16px; line-height: 1.75; color: #333; }
.sw-single-content p { margin-bottom: 18px; }
.sw-single-content h2, .sw-single-content h3 { font-family: 'Roboto Condensed', Arial Narrow, sans-serif; color: #0d1b2a; margin: 24px 0 12px; }

/* Tags */
.sw-single-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 24px 0; padding-top: 16px; border-top: 1px solid #eee; }
.sw-tags-label { font-size: 11px; font-weight: 800; letter-spacing: 1.5px; color: #999; text-transform: uppercase; }
.sw-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  padding: 3px 10px; border: 1px solid #ddd; color: #555;
  text-decoration: none; text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.sw-tag:hover { background: #0d1b2a; color: #fff; border-color: #0d1b2a; }

/* Prev/Next */
.sw-single-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; padding: 20px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.sw-prevnext-item { display: flex; flex-direction: column; gap: 6px; }
.sw-next { text-align: right; }
.sw-prevnext-label { font-size: 10px; font-weight: 800; letter-spacing: 1.5px; color: #aaa; text-transform: uppercase; }
.sw-prevnext-title { font-family: 'Roboto Condensed', Arial Narrow, sans-serif; font-size: 15px; font-weight: 700; color: #0d1b2a; line-height: 1.3; text-decoration: none; }
.sw-prevnext-title:hover { color: #f47c20; }

/* Relevant Stories */
.sw-relevant { margin-top: 24px; }
.sw-relevant-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sw-relevant-item { padding-bottom: 14px; border-bottom: 1px solid #f0f0f0; }
.sw-relevant-title { font-family: 'Roboto Condensed', Arial Narrow, sans-serif; font-size: 15px; font-weight: 700; color: #0d1b2a; line-height: 1.3; text-decoration: none; display: block; margin-bottom: 4px; }
.sw-relevant-title:hover { color: #f47c20; }

/* Sidebar */
.sw-single-sidebar { background: #fff; padding: 20px; position: sticky; top: 20px; }

/* Single responsive */
@media (max-width: 900px) {
  .sw-single-layout { grid-template-columns: 1fr; }
  .sw-single-sidebar { position: static; }
  .sw-relevant-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .sw-single-title { font-size: 26px; }
  .sw-single-prevnext { grid-template-columns: 1fr; }
}

/* --- Footer --- */
.sw-footer { background: #fff; border-top: 1px solid rgba(0,0,0,0.1); padding: 40px 0; }
.sw-footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.sw-footer-logo-img { max-width: 200px; height: auto; }
.sw-footer-social { display: flex; gap: 12px; align-items: center; }
.sw-footer-social-item {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; color: rgba(0,0,0,0.6);
  transition: color 0.2s;
}
.sw-footer-social-item:hover { color: #0d1b2a; }
.sw-footer-social-item svg { width: 16px; height: 16px; }
.sw-footer-copy { font-family: 'Roboto', sans-serif; font-size: 14px; color: rgba(0,0,0,0.7); line-height: 1.4; text-align: center; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .sw-block-a, .sw-block-b { grid-template-columns: 1fr; }
  .sw-col-side, .sw-col-b2 { border-left: none; padding-left: 0; border-top: 1px solid #e8e8e8; padding-top: 16px; }
  .sw-sub-posts { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .sw-featured-img img { height: 200px; }
  .sw-b1-thumb { width: 110px; }
  .sw-b1-thumb img { width: 110px; height: 80px; }
}
