/* =============================================
   ONLINEKATHIR - MAIN CSS
   Green Media House Pvt Ltd
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Tamil:wght@400;600;700&display=swap');

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans Tamil', 'Latha', 'Tamil MN', Arial, sans-serif;
  background: #f5f5f5;
  color: #111111;
  font-size: 15px;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ---- TOPBAR ---- */
#ok-topbar {
  background: #a93226;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 24px;
  font-size: 12px;
  flex-wrap: wrap;
  gap: 6px;
}
#ok-topbar .ok-top-left { color: #ffcdd2; }
#ok-topbar .ok-top-right a {
  color: #ffcdd2;
  margin-left: 14px;
  font-size: 12px;
}
#ok-topbar .ok-top-right a:hover { color: #ffffff; }

/* ---- HEADER ---- */
#ok-header {
  background: #c0392b;
  padding: 14px 24px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
#ok-logo-wrap a { text-decoration: none; }
#ok-logo {
  font-size: 34px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -1px;
  line-height: 1;
  display: block;
}
#ok-logo span { color: #ffeb3b; }
#ok-logo-sub {
  font-size: 11px;
  color: #ffcdd2;
  letter-spacing: 2px;
  margin-top: 2px;
  display: block;
}
#ok-search-form {
  display: flex;
  align-items: center;
  gap: 0;
}
#ok-search-form input[type="search"] {
  padding: 8px 16px;
  border-radius: 22px 0 0 22px;
  border: none;
  font-size: 13px;
  width: 220px;
  outline: none;
  font-family: 'Noto Sans Tamil', sans-serif;
  background: #fff;
  color: #111;
}
#ok-search-form button {
  padding: 8px 14px;
  border-radius: 0 22px 22px 0;
  border: none;
  background: #7b1c12;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
}
#ok-search-form button:hover { background: #5a1309; }

/* ---- NAVIGATION ---- */
#ok-nav {
  background: #1a1a1a;
  padding: 0 24px;
}
#ok-nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
#ok-nav ul li a {
  color: #dddddd;
  font-size: 13px;
  padding: 11px 14px;
  display: block;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  white-space: nowrap;
  font-family: 'Noto Sans Tamil', sans-serif;
}
#ok-nav ul li a:hover,
#ok-nav ul li.current-menu-item > a,
#ok-nav ul li.current-cat > a {
  color: #ffffff;
  border-bottom-color: #c0392b;
  background: #2a2a2a;
}

/* Mobile nav toggle */
#ok-nav-toggle {
  display: none;
  background: #c0392b;
  color: #fff;
  border: none;
  width: 100%;
  padding: 10px 24px;
  font-size: 14px;
  font-family: 'Noto Sans Tamil', sans-serif;
  cursor: pointer;
  text-align: left;
}

/* ---- BREAKING NEWS ---- */
#ok-breaking {
  background: #111111;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 8px 24px;
  gap: 14px;
  overflow: hidden;
}
.ok-breaking-label {
  background: #c0392b;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 3px;
  white-space: nowrap;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.ok-breaking-ticker {
  font-size: 13px;
  color: #eeeeee;
  flex: 1;
  overflow: hidden;
}
.ok-breaking-ticker a { color: #eeeeee; }
.ok-breaking-ticker a:hover { color: #ffcdd2; }

/* ---- MAIN CONTAINER ---- */
#ok-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px;
}

/* ---- SECTION HEADING ---- */
.ok-section-head {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  gap: 10px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
}
.ok-section-head h2 {
  font-size: 17px;
  font-weight: 700;
  color: #111;
  border-left: 4px solid #c0392b;
  padding-left: 10px;
  margin: 0;
}
a.ok-view-all {
  margin-left: auto;
  font-size: 12px;
  color: #c0392b;
  border: 1px solid #c0392b;
  padding: 4px 12px;
  border-radius: 3px;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
a.ok-view-all:hover { background: #c0392b; color: #fff; }

/* ---- CATEGORY BADGE ---- */
.ok-cat-badge {
  background: #c0392b;
  color: #fff !important;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  display: inline-block;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.ok-cat-badge:hover { background: #a93226; }

/* ---- POST META ---- */
.ok-post-meta {
  font-size: 11px;
  color: #888888;
  margin-top: 5px;
}

/* ---- HERO SECTION ---- */
.ok-hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}
.ok-hero-main {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}
.ok-hero-main .ok-hero-thumb {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}
.ok-hero-main .ok-no-thumb {
  width: 100%;
  height: 300px;
  background: #c0392b;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ok-hero-main .ok-no-thumb span {
  font-size: 80px;
  opacity: 0.2;
}
.ok-hero-main .ok-post-info { padding: 16px 18px; }
.ok-hero-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: #111;
  margin: 6px 0 8px;
}
.ok-hero-title a { color: #111; }
.ok-hero-title a:hover { color: #c0392b; }

/* Side posts */
.ok-hero-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ok-side-card {
  background: #fff;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  display: flex;
  gap: 10px;
  padding: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.ok-side-card:hover { border-color: #c0392b; }
.ok-side-thumb {
  width: 90px;
  height: 68px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  background: #eee;
}
.ok-side-no-thumb {
  width: 90px;
  height: 68px;
  border-radius: 4px;
  flex-shrink: 0;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.ok-side-content { flex: 1; min-width: 0; }
.ok-side-title {
  font-size: 13px;
  font-weight: 600;
  color: #111;
  line-height: 1.4;
  margin-top: 3px;
}
.ok-side-title a { color: #111; }
.ok-side-title a:hover { color: #c0392b; }

/* ---- NEWS GRID ---- */
.ok-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.ok-card {
  background: #fff;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.ok-card:hover { border-color: #c0392b; transform: translateY(-2px); }
.ok-card-thumb {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}
.ok-card-no-thumb {
  width: 100%;
  height: 150px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}
.ok-card-body { padding: 12px 14px; }
.ok-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  line-height: 1.4;
  margin: 5px 0 6px;
}
.ok-card-title a { color: #111; }
.ok-card-title a:hover { color: #c0392b; }

/* ---- TWO COLUMN LAYOUT ---- */
.ok-two-col {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 28px;
  align-items: start;
}

/* ---- VIDEO SECTION ---- */
.ok-video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.ok-video-card {
  background: #111;
  border-radius: 6px;
  overflow: hidden;
}
.ok-video-card iframe {
  width: 100%;
  height: 160px;
  display: block;
  border: none;
}
.ok-video-title {
  font-size: 12px;
  color: #eeeeee;
  padding: 8px 10px;
  line-height: 1.4;
}

/* ---- EPAPER SECTION ---- */
.ok-epaper-section {
  background: #fff;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  padding: 16px 18px;
  margin-bottom: 28px;
}
.ok-epaper-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 14px;
}
.ok-epaper-card {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  text-align: center;
  transition: border-color 0.2s;
}
.ok-epaper-card:hover { border-color: #c0392b; }
.ok-epaper-cover {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.ok-epaper-no-cover {
  width: 100%;
  height: 180px;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  border-bottom: 1px solid #eee;
}
.ok-epaper-label { padding: 12px 10px; }
.ok-epaper-name { font-size: 15px; font-weight: 700; color: #c0392b; }
.ok-epaper-date { font-size: 11px; color: #888; margin-top: 3px; }
.ok-epaper-btns {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 10px 0 8px;
  flex-wrap: wrap;
}
.ok-btn-red {
  background: #c0392b;
  color: #fff !important;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 3px;
  display: inline-block;
  transition: background 0.2s;
  font-family: 'Noto Sans Tamil', sans-serif;
}
.ok-btn-red:hover { background: #a93226; }
.ok-btn-dark {
  background: #333;
  color: #fff !important;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 3px;
  display: inline-block;
  transition: background 0.2s;
}
.ok-btn-dark:hover { background: #555; }

/* ---- SIDEBAR ---- */
.ok-sidebar { }
.ok-widget {
  background: #fff;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.ok-widget h3 {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  border-left: 3px solid #c0392b;
  padding-left: 8px;
  margin-bottom: 12px;
}
.ok-trending-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f5;
}
.ok-trending-item:last-child { border-bottom: none; }
.ok-trending-num {
  font-size: 22px;
  font-weight: 700;
  color: #ddd;
  min-width: 28px;
  line-height: 1.1;
  flex-shrink: 0;
}
.ok-trending-title { font-size: 12px; color: #333; line-height: 1.4; }
.ok-trending-title a { color: #333; }
.ok-trending-title a:hover { color: #c0392b; }
.ok-trending-cat { font-size: 10px; color: #c0392b; margin-top: 2px; }
.ok-cat-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.ok-cat-tag {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  transition: opacity 0.2s;
}
.ok-cat-tag:hover { opacity: 0.8; }
.ok-widget-yt {
  background: #c0392b;
  border-radius: 6px;
  padding: 18px 16px;
  text-align: center;
  margin-bottom: 16px;
}
.ok-widget-yt h3 {
  color: #fff;
  border-left: none;
  padding-left: 0;
  font-size: 16px;
  margin-bottom: 6px;
}
.ok-widget-yt p { color: #ffcdd2; font-size: 12px; margin-bottom: 12px; line-height: 1.5; }
.ok-widget-yt a.ok-yt-btn {
  background: #fff;
  color: #c0392b !important;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 22px;
  border-radius: 4px;
  display: inline-block;
  transition: background 0.2s;
}
.ok-widget-yt a.ok-yt-btn:hover { background: #ffe0e0; }

/* ---- SINGLE POST ---- */
.ok-single-wrap {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 28px;
  align-items: start;
}
.ok-single-content {
  background: #fff;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  padding: 24px 26px;
}
.ok-single-content h1.ok-post-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
  color: #111;
}
.ok-single-content .ok-post-meta {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eee;
  font-size: 12px;
  color: #888;
}
.ok-single-content .ok-feat-img {
  width: 100%;
  border-radius: 6px;
  margin: 14px 0 20px;
}
.ok-single-content .ok-post-body p {
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.85;
  color: #222;
}
.ok-single-content .ok-post-body img {
  border-radius: 4px;
  margin: 10px 0;
}
.ok-share-bar {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.ok-share-bar span { font-size: 12px; color: #888; }
.ok-share-btn {
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 3px;
  color: #fff !important;
  display: inline-block;
}
.ok-share-btn.fb { background: #1877f2; }
.ok-share-btn.wa { background: #25d366; }
.ok-share-btn.tw { background: #1da1f2; }
.ok-tags-bar {
  margin-top: 16px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.ok-tags-bar span { font-size: 12px; color: #888; }
.ok-tag-pill {
  background: #f0f0f0;
  color: #555;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
}
.ok-tag-pill:hover { background: #c0392b; color: #fff; }

/* ---- ARCHIVE / CATEGORY PAGE ---- */
.ok-archive-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 20px;
}
.ok-archive-list { display: flex; flex-direction: column; gap: 16px; }
.ok-archive-card {
  background: #fff;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  display: flex;
  gap: 14px;
  padding: 12px;
  transition: border-color 0.2s;
}
.ok-archive-card:hover { border-color: #c0392b; }
.ok-archive-thumb {
  width: 140px;
  height: 95px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.ok-archive-no-thumb {
  width: 140px;
  height: 95px;
  border-radius: 4px;
  flex-shrink: 0;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}
.ok-archive-title { font-size: 15px; font-weight: 600; color: #111; line-height: 1.4; margin: 5px 0 6px; }
.ok-archive-title a { color: #111; }
.ok-archive-title a:hover { color: #c0392b; }
.ok-archive-excerpt { font-size: 13px; color: #666; line-height: 1.5; }

/* ---- PAGINATION ---- */
.ok-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 24px 0;
  flex-wrap: wrap;
}
.ok-pagination .page-numbers {
  padding: 7px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  color: #333;
  background: #fff;
  transition: all 0.2s;
}
.ok-pagination .page-numbers:hover,
.ok-pagination .page-numbers.current {
  background: #c0392b;
  color: #fff;
  border-color: #c0392b;
}

/* ---- FOOTER ---- */
#ok-footer {
  background: #111111;
  color: #cccccc;
  padding: 36px 24px 16px;
  margin-top: 30px;
}
.ok-footer-inner { max-width: 1200px; margin: 0 auto; }
.ok-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.ok-footer-logo { font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.ok-footer-logo span { color: #ffeb3b; }
.ok-footer-desc { font-size: 12px; color: #888; line-height: 1.7; }
.ok-footer-social { display: flex; gap: 8px; margin-top: 14px; }
.ok-footer-social a {
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 3px;
  transition: opacity 0.2s;
}
.ok-footer-social a:hover { opacity: 0.8; }
.ok-footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  border-bottom: 1px solid #2a2a2a;
  padding-bottom: 7px;
}
.ok-footer-col ul li { margin-bottom: 7px; }
.ok-footer-col ul li a { font-size: 12px; color: #888888; transition: color 0.2s; }
.ok-footer-col ul li a:hover { color: #c0392b; }
.ok-footer-bottom {
  border-top: 1px solid #2a2a2a;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: #666666;
}

/* ---- SEARCH RESULTS ---- */
.ok-search-header {
  background: #fff;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  padding: 16px 18px;
  margin-bottom: 20px;
}
.ok-search-header h1 { font-size: 18px; font-weight: 700; color: #111; }
.ok-search-header p { font-size: 13px; color: #888; margin-top: 4px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 960px) {
  .ok-hero,
  .ok-two-col,
  .ok-single-wrap,
  .ok-archive-grid { grid-template-columns: 1fr; }
  .ok-footer-grid { grid-template-columns: 1fr 1fr; }
  .ok-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  #ok-header { padding: 12px 16px; }
  #ok-search-form input[type="search"] { width: 160px; }
  .ok-grid { grid-template-columns: 1fr; }
  .ok-video-grid,
  .ok-epaper-grid { grid-template-columns: 1fr; }
  .ok-footer-grid { grid-template-columns: 1fr; }
  #ok-nav { padding: 0; }
  #ok-nav-toggle { display: block; }
  #ok-nav ul { display: none; flex-direction: column; }
  #ok-nav ul.nav-open { display: flex; }
  #ok-nav ul li a { padding: 10px 20px; border-bottom: 1px solid #2a2a2a; border-left: none; }
  .ok-archive-card { flex-direction: column; }
  .ok-archive-thumb, .ok-archive-no-thumb { width: 100%; height: 160px; }
  #ok-container { padding: 14px; }
}

/* ---- WORDPRESS DEFAULT OVERRIDES ---- */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: #888; text-align: center; margin-top: 4px; }
.alignleft { float: left; margin: 0 16px 10px 0; }
.alignright { float: right; margin: 0 0 10px 16px; }
.aligncenter { display: block; margin: 10px auto; }

/* ---- FEATURED FIRST NEWS CARD ---- */
.ok-card.ok-card-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 16px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  background: #fff;
  transition: border-color 0.2s;
}
.ok-card.ok-card-featured:hover { border-color: #c0392b; }
.ok-card-featured-thumb {
  width: 100%;
  height: 220px !important;
  object-fit: cover;
  display: block;
}
.ok-card-featured .ok-card-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ok-card-featured-title {
  font-size: 18px !important;
  font-weight: 700;
  line-height: 1.45;
  margin: 8px 0 10px !important;
}
.ok-card-featured-title a { color: #111; }
.ok-card-featured-title a:hover { color: #c0392b; }

@media (max-width: 640px) {
  .ok-card.ok-card-featured { grid-template-columns: 1fr; }
  .ok-card-featured-thumb { height: 180px !important; }
  .ok-card-featured .ok-card-body { padding: 12px 14px; }
  .ok-card-featured-title { font-size: 15px !important; }
}
