/* Colombo Tamil – Green Editorial Portal CSS
   Saved as assets/css/news.css and enqueued in GeoNews theme. */

:root {
  --green: #005689;
  --green-active: #006AA8;
  --red: #D6341F;
  --ink: #16181D;
  --muted: #5B6068;
  --bg: #EEF0EC;
  --card: #FFFFFF;
  --line: #E1E4DF;
  --row-line: #E8EAE5;
  --font: 'Noto Sans Tamil', system-ui, sans-serif;
  --wrap: 1200px;
}

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

html, body {
  margin: 0;
  background: var(--bg) !important;
  color: var(--ink) !important;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  position: static !important;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:hover b {
  color: var(--green);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.ct-wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

/* 1. Header & Navigation (Mobile-First) */
.ct-brand-bar {
  background: var(--header-bg, var(--green));
  color: #fff;
}

.ct-brand-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 7px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.ct-brand-logo {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  min-width: 136px !important;
  min-height: 32px !important;
  font-size: 19px;
  line-height: 1.2;
  font-weight: 700;
  color: #fff !important;
  letter-spacing: -0.3px;
  visibility: visible !important;
  opacity: 1 !important;
}

.ct-brand-logo .custom-logo-link {
  display: block !important;
  width: 136px !important;
  height: 32px !important;
  line-height: 0 !important;
  max-height: none !important;
  flex: 0 0 136px !important;
}

.ct-brand-logo img,
.ct-brand-logo-img,
.ct-brand-logo .custom-logo-link img,
.ct-brand-logo .custom-logo {
  display: block !important;
  width: 136px !important;
  height: 32px !important;
  min-width: 136px !important;
  min-height: 32px !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.ct-brand-logo-text {
  color: #fff !important;
  font-size: 19px;
  font-weight: 700;
  white-space: nowrap;
}

.ct-brand-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ct-brand-date {
  font-size: 11.5px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.9);
  display: none;
}

.ct-brand-socials {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ct-brand-socials .social-icon-link {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ct-brand-socials .social-icon-link svg {
  width: 12px;
  height: 12px;
}

.ct-brand-socials .social-icon-link:hover {
  background: #fff;
  color: var(--header-bg, var(--green)) !important;
  transform: translateY(-1px);
}

.ct-nav-bar {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 8px;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
}

.nav li {
  margin: 0;
  flex: 0 0 auto;
}

.nav a {
  padding: 9px 11px;
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.3;
  color: var(--green);
  display: block;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.nav .current-menu-item > a,
.nav a.is-active,
.nav a:hover {
  border-bottom-color: var(--red);
  color: var(--green);
}

/* 2. Main Layout Container (Mobile-First Single Column) */
.ct-home-layout {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ct-main-col {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ct-side-col {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 3. Cards, Bars & Image Containers */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.bar {
  background: var(--green);
  border-left: 5px solid var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.35;
  padding: 6px 10px;
  margin-bottom: 10px;
}

.ph {
  background: #DCE3DA;
  color: var(--muted);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  flex: none;
  overflow: hidden;
  position: relative;
}

.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

a:hover .ph img {
  transform: scale(1.03);
}

/* 4. முக்கியச் செய்திகள் (Mobile-First: 1 Big Post at the Top, Desktop: 2-Column Grid) */
.ct-imp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.imp {
  display: block;
  color: var(--ink);
}

/* Mobile-First: Show ONE big hero post at the top */
.ct-imp-grid .imp:not(:first-child) {
  display: none;
}

.imp .ph {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.imp b {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 16px;
  line-height: 1.48;
  margin-top: 8px;
  font-weight: 700;
  color: var(--ink);
}

/* 5. வெப்ஸ்டோரிஸ் (Web Stories Carousel) */
.card--stories {
  background: #E8ECF6;
}

.ct-stories-heading {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
  color: #B03A8C;
  margin-bottom: 8px;
}

.ct-stories-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.story {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 0 0 150px;
  scroll-snap-align: start;
  background: #1B2233;
  color: #fff !important;
  border-radius: 10px;
  padding: 7px;
  box-sizing: border-box;
}

.sty {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: #3A4258;
  color: #C9CFDC;
}

.bdg {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #E8742A;
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  z-index: 2;
}

.stt {
  font-size: 12px;
  line-height: 1.42;
  padding: 2px 4px 4px;
  color: #fff !important;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story:hover,
.story:hover b {
  color: #fff !important;
}

/* 6. முகப்புச் செய்திகள் / அதிகம் படிக்கப்பட்டவை (Tabbed Feed - Mobile First) */
.ct-tabs-bar {
  display: flex;
  background: var(--green);
  margin-bottom: 4px;
}

.ct-tab-btn {
  flex: 1;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1.3;
  padding: 8px 8px;
  border: 0;
  border-right: 1px solid var(--green);
  cursor: pointer;
  text-align: center;
}

.ct-tab-btn.is-active {
  background: var(--green-active);
}

.frow {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--row-line);
  align-items: flex-start;
  color: var(--ink);
}

.frow:last-of-type {
  border-bottom: 0;
}

.fth {
  width: 96px;
  aspect-ratio: 1 / 0.75;
}

.fb {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.ft {
  font-size: 13.5px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tm {
  font-size: 11px;
  line-height: 1.3;
  color: #6B7068;
}

/* 7. Pagination Pills */
.ct-pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 14px;
}

.pg,
.ct-pagination .page-numbers {
  font-family: inherit;
  min-width: 36px;
  min-height: 36px;
  border-radius: 99px;
  border: 1px solid #D5D9D2;
  background: #fff;
  font-weight: 600;
  font-size: 13px;
  padding: 0 11px;
  cursor: pointer;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.pg.is-active,
.ct-pagination .page-numbers.current,
.pg:hover,
.ct-pagination .page-numbers:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

/* 8. சிறப்புச் செய்திகள் (Sidebar List) */
.srow {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--row-line);
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
}

.srow:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.st {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13.5px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--ink);
  flex: 1;
  min-width: 0;
}

.sth {
  width: 84px;
  aspect-ratio: 1 / 0.75;
}

/* 9. Ad Slots (Google AdSense Policy Compliant) */
.ad {
  border: 1px dashed #B9BFB5;
  background: #F1F3EF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px;
  color: var(--muted);
  font-size: 12px;
  border-radius: 6px;
  overflow: hidden;
}

.gn-ad-label {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 10.5px;
  line-height: 1.2;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.3px;
}

.ad .gn-ad-container {
  margin: 0;
  width: 100%;
  border: 0;
  background: transparent;
}

.ad .gn-ad-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 4px;
}

.ad .gn-ad-code-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* 10. Footer */
.ct-footer {
  background: #1B1D21;
  color: #C9CBD0;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  margin-top: auto;
}

.ct-footer-links {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 14px;
  display: flex;
  gap: 10px 16px;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
}

.ct-footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.ct-footer a {
  color: #C9CBD0;
}

.ct-footer a:hover {
  color: #fff;
}

.ct-footer-copy {
  text-align: center;
  padding: 0 14px 16px;
  font-size: 11px;
  font-weight: 400;
  color: #C9CBD0;
}

/* 10.5 Category & Tag Archive Styles (Mobile-First) */
.ct-archive-card {
  gap: 0 !important;
}

.ct-cat-breadcrumb {
  font-size: 12px;
  color: #6B7068;
  margin-bottom: 8px;
}

.ct-cat-breadcrumb a {
  color: #6B7068;
}

.ct-cat-breadcrumb a:hover {
  color: var(--green);
}

.ct-cat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--green);
}

.ct-cat-badge-box {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--green);
  flex: none;
}

.ct-cat-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink);
}

.ct-chips-row {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 12px 0 4px;
}

.ct-chips-row::-webkit-scrollbar {
  display: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 99px;
  border: 1px solid #D5D9D2;
  background: #fff;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
  flex: 0 0 auto;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.chip.on,
.chip:hover {
  background: var(--green);
  color: #fff !important;
  border-color: var(--green);
}

.ct-infeed-ad {
  min-height: 100px;
  margin: 10px 0;
}

.ct-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 14px;
  background: var(--green);
  color: #fff !important;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.ct-more-btn:hover {
  background: var(--green-active);
  color: #fff !important;
}

/* 10.6 Single Post Styles (Mobile-First) */
.ct-post-card {
  gap: 0 !important;
}

.ct-post-title {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.45;
  font-weight: 700;
  color: var(--ink);
}

.ct-post-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ct-post-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ct-post-tags .tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  background: #E6F0F6;
  padding: 3px 10px;
  border-radius: 99px;
  display: inline-block;
}

.ct-post-tags .tag:hover {
  background: var(--green);
  color: #fff !important;
}

.ct-post-time {
  font-size: 12px;
  color: #6B7068;
}

/* Author Pill with Real Avatar Image */
.ct-author-pill {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: #F4F6F3;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 5px 16px 5px 6px;
  margin: 12px 0;
  max-width: 100%;
}

.ct-author-avatar-link {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--green);
  background: #E1E4DF;
}

.ct-author-avatar-img,
.ct-author-avatar-link img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.ct-author-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.ct-author-name {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink);
  text-decoration: none;
}

.ct-author-name:hover {
  color: var(--green);
}

.ct-author-bio {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Modern Social Share Bar */
.ct-share-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 11px 0;
  border-top: 1px solid var(--row-line);
  border-bottom: 1px solid var(--row-line);
  margin-bottom: 18px;
}

.ct-share-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
}

.ct-share-label svg {
  color: var(--green);
}

.ct-share-btns {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.ct-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 99px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff !important;
  border: 0;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.ct-share-btn svg {
  flex-shrink: 0;
}

.ct-share-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.14);
  color: #fff !important;
  opacity: 0.94;
}

.ct-share-wa {
  background: #1DA851;
}

.ct-share-fb {
  background: #1877F2;
}

.ct-share-x {
  background: #0F1419;
}

.ct-share-tg {
  background: #229ED9;
}

.ct-share-copy {
  background: #F1F3EF;
  color: var(--ink) !important;
  border: 1px solid #D5D9D2;
}

.ct-share-copy:hover {
  background: var(--green);
  color: #fff !important;
  border-color: var(--green);
}

.ct-share-copy.is-copied {
  background: #065F46;
  color: #fff !important;
  border-color: #065F46;
}

@media (max-width: 540px) {
  .ct-share-btn:not(.ct-share-wa):not(.ct-share-copy) .ct-share-txt {
    display: none;
  }

  .ct-share-btn:not(.ct-share-wa):not(.ct-share-copy) {
    width: 34px;
    padding: 0;
  }
}

.ct-post-body {
  color: #25282D;
}

.ct-post-body p {
  margin: 0 0 1.25em;
  font-size: 16px;
  line-height: 1.85;
  color: #25282D;
}

.ct-post-body h2,
.ct-post-body h3,
.ct-post-body h4 {
  font-size: 19px;
  line-height: 1.45;
  margin: 1.3em 0 0.6em;
  font-weight: 700;
  color: var(--ink);
}

.ct-post-body img,
.ct-post-body figure {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.ct-post-media {
  margin: 0 0 1.3em;
}

.ct-post-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.ct-post-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ct-post-caption {
  font-size: 12px;
  color: #6B7068;
  margin: 8px 0 0;
}

.ct-inarticle-ad {
  min-height: 250px;
  margin: 0 0 1.3em;
}

.ct-after-post-ad {
  min-height: 100px;
  margin: 6px 0 20px;
}

.ct-post-source-bar {
  font-size: 12px;
  color: #6B7068;
  padding: 12px 0;
  border-top: 1px solid #E8EAE5;
}

.ct-post-source-bar a {
  color: var(--green);
  font-weight: 600;
}

.ct-related-wrap {
  margin-top: 18px;
}

.ct-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.rc {
  display: block;
  text-decoration: none;
  color: inherit;
}

.rimg {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.rimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rt {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  margin-top: 8px;
  font-weight: 700;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rc:hover .rt {
  color: var(--green);
}

/* 11. Tablet & Desktop Progressive Enhancement (min-width: 768px) */
@media (min-width: 768px) {
  .ct-brand-inner {
    padding: 6px 20px;
    gap: 12px;
    flex-wrap: wrap;
  }

  .ct-brand-logo,
  .ct-brand-logo-text {
    font-size: 22px;
  }

  .ct-brand-logo img,
  .ct-brand-logo-img,
  .ct-brand-logo .custom-logo-link img,
  .ct-brand-logo .custom-logo {
    height: 34px !important;
    max-height: 34px !important;
    max-width: 210px !important;
  }

  .ct-brand-right {
    gap: 14px;
  }

  .ct-brand-date {
    display: inline-block;
    font-size: 13px;
  }

  .ct-brand-socials {
    gap: 6px;
  }

  .ct-brand-socials .social-icon-link {
    width: 28px;
    height: 28px;
  }

  .ct-brand-socials .social-icon-link svg {
    width: 14px;
    height: 14px;
  }

  .nav {
    padding: 0 12px;
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .nav ul {
    flex-wrap: wrap;
  }

  .nav a {
    padding: 12px 14px;
    font-size: 15px;
  }

  .card {
    padding: 14px;
  }

  .bar {
    font-size: 15px;
    padding: 7px 12px;
    margin-bottom: 12px;
  }

  /* Restore 2-column featured grid on tablet & desktop */
  .ct-imp-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .ct-imp-grid .imp:not(:first-child) {
    display: block;
  }

  .imp .ph {
    aspect-ratio: 4 / 3;
  }

  .imp b {
    font-size: 17px;
    line-height: 1.55;
    margin-top: 8px;
  }

  .ct-stories-heading {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .ct-stories-row {
    gap: 12px;
  }

  .story {
    flex: 0 0 190px;
    gap: 8px;
    padding: 8px;
  }

  .bdg {
    top: 14px;
    left: 14px;
    font-size: 10px;
    padding: 2px 8px;
  }

  .stt {
    font-size: 13px;
    line-height: 1.5;
    padding: 2px 4px 6px;
  }

  .ct-tabs-bar {
    margin-bottom: 6px;
  }

  .ct-tab-btn {
    flex: 0 0 auto;
    font-size: 14px;
    padding: 9px 16px;
  }

  .frow {
    gap: 14px;
    padding: 14px 0;
  }

  .fth {
    width: 132px;
  }

  .fb {
    gap: 8px;
  }

  .ft {
    font-size: 16px;
    line-height: 1.6;
  }

  .tm {
    font-size: 12px;
  }

  .ct-pagination {
    gap: 8px;
    padding-top: 20px;
  }

  .pg,
  .ct-pagination .page-numbers {
    min-width: 44px;
    min-height: 44px;
    font-size: 14px;
    padding: 0 14px;
  }

  .srow {
    padding: 10px 0;
  }

  .st {
    font-size: 14px;
    line-height: 1.55;
  }

  .ct-footer {
    font-size: 12px;
  }

  .ct-footer-links {
    padding: 22px 20px;
    gap: 20px;
  }

  .ct-footer-links ul {
    gap: 20px;
  }

  .ct-footer-copy {
    font-size: 12px;
    padding: 0 20px 20px;
  }

  /* Category & Tag Archive Desktop Enhancements */
  .ct-archive-card {
    padding: 18px;
  }

  .ct-cat-breadcrumb {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .ct-cat-header {
    gap: 12px;
    padding-bottom: 12px;
  }

  .ct-cat-badge-box {
    width: 36px;
    height: 36px;
  }

  .ct-cat-title {
    font-size: 26px;
  }

  .ct-chips-row {
    gap: 8px;
    padding: 14px 0 4px;
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .chip {
    min-height: 44px;
    padding: 0 16px;
    font-size: 14px;
  }

  .ct-more-btn {
    min-height: 48px;
    margin-top: 18px;
    font-size: 15px;
  }

  /* Single Post Desktop Enhancements */
  .ct-post-card {
    padding: 20px;
  }

  .ct-post-title {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.5;
  }

  .ct-post-time {
    font-size: 13px;
  }

  .ct-author-pill {
    margin: 14px 0;
  }

  .ct-author-badge {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .ct-author-name {
    font-size: 14px;
  }

  .ct-share-bar {
    gap: 10px;
    padding: 12px 0;
    margin-bottom: 22px;
  }

  .ct-share-label {
    font-size: 13px;
  }

  .sh {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .ct-post-body p {
    margin: 0 0 1.3em;
    font-size: 18px;
    line-height: 1.95;
  }

  .ct-post-body h2,
  .ct-post-body h3 {
    font-size: 22px;
    line-height: 1.5;
    margin: 1.4em 0 0.6em;
  }

  .ct-post-caption {
    font-size: 13px;
  }

  .ct-inarticle-ad {
    min-height: 280px;
  }

  .ct-after-post-ad {
    margin: 6px 0 24px;
  }

  .ct-post-source-bar {
    font-size: 13px;
  }

  .ct-related-wrap {
    margin-top: 20px;
  }

  .ct-related-grid {
    gap: 16px;
  }

  .rt {
    font-size: 15px;
    line-height: 1.55;
  }
}

/* 12. Desktop Two-Column Layout (min-width: 941px) */
@media (min-width: 941px) {
  .ct-home-layout {
    padding: 20px;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
  }

  .ct-main-col {
    flex: 1 1 560px;
    width: auto;
    gap: 20px;
  }

  .ct-side-col {
    flex: 0 0 333px;
    width: 333px;
    gap: 20px;
    align-self: stretch;
  }
}

/* 13. Google AdSense Policy-Compliant Sticky Sidebar Ad (Last Block Only, Desktop Only) */
.sidebar-sticky {
  position: sticky;
  top: 16px;
  z-index: 1;
  width: 100%;
  max-width: 333px;
  min-height: 250px;
  max-height: min(600px, calc(100vh - 32px));
}

@media (max-width: 900px) {
  .sidebar-sticky {
    position: static !important;
    top: auto !important;
    max-height: none;
  }
}

@media (max-width: 940px) {
  .sidebar-sticky {
    position: static !important;
    top: auto !important;
    max-height: none;
  }
}

/* 14. Static Pages (/contact-us/, /about-us/, Policy Pages) & Author Archive */
.ct-page-card {
  gap: 0 !important;
  overflow: hidden;
}

.ct-page-header {
  border-bottom: 1px solid var(--line);
}

/* Contact Us Department Cards Grid */
.ct-contact-cards-wrap {
  padding: 16px 16px 6px;
}

.ct-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.ct-contact-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ct-contact-box:hover {
  border-color: var(--green);
  box-shadow: 0 2px 8px rgba(0, 86, 137, 0.08);
}

.ct-contact-icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ct-contact-info {
  flex: 1;
  min-width: 0;
}

.ct-contact-info h3 {
  margin: 0 0 3px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.ct-contact-info p {
  margin: 0 0 6px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}

.ct-contact-mail {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
  word-break: break-all;
}

.ct-contact-mail:hover {
  text-decoration: underline;
}

.ct-contact-sub {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
}

/* Page Editorial Typography */
.ct-page-body {
  padding: 18px 16px 22px;
}

.ct-page-body h2,
.ct-page-body h3,
.ct-page-body h4 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.4;
  margin: 22px 0 10px;
  padding-left: 10px;
  border-left: 3px solid var(--green);
}

.ct-page-body h2:first-child,
.ct-page-body h3:first-child,
.ct-page-body h4:first-child {
  margin-top: 4px;
}

.ct-page-body p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
}

.ct-page-body ul,
.ct-page-body ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.ct-page-body li {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
}

.ct-page-body a {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Built-in Contact Form & CF7 Styling */
.ct-contact-form-card {
  margin-top: 22px;
  padding: 18px 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.ct-contact-form-head {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.ct-contact-form-head h3 {
  margin: 0 0 4px !important;
  padding-left: 0 !important;
  border-left: 0 !important;
  font-size: 16px;
  font-weight: 700;
  color: var(--green);
}

.ct-contact-form-head p {
  margin: 0 !important;
  font-size: 13px !important;
  color: var(--muted) !important;
}

.ct-contact-alert {
  padding: 12px 14px;
  border-radius: 5px;
  font-size: 13.5px;
  line-height: 1.55;
  margin-bottom: 16px;
}

.ct-contact-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.ct-contact-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.ct-form-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.ct-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.ct-form-row-2 .ct-form-group {
  margin-bottom: 0;
}

.ct-form-group label,
.wpcf7-form label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.ct-form-group .req {
  color: var(--red);
}

.ct-form-group input,
.ct-form-group select,
.ct-form-group textarea,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ct-form-group input:focus,
.ct-form-group select:focus,
.ct-form-group textarea:focus,
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 86, 137, 0.12);
}

.ct-submit-btn,
.wpcf7-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  background: var(--green);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.ct-submit-btn:hover,
.wpcf7-form input[type="submit"]:hover {
  background: #00426a;
}

/* Quick Policy & Information Pages Navigation Bar */
.ct-page-links-bar {
  padding: 14px 16px 18px;
  background: #fafbfc;
  border-top: 1px solid var(--line);
}

.ct-page-links-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 10px;
}

.ct-page-links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ct-page-links-list a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.ct-page-links-list a:hover,
.ct-page-links-list a.is-active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

/* Author Archive Header */
.ct-author-archive-profile {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.ct-author-archive-avatar img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--green);
}

.ct-author-archive-info {
  flex: 1;
  min-width: 0;
}

.ct-author-archive-bio {
  margin: 6px 0 8px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.ct-author-archive-stats {
  font-size: 12.5px;
  color: var(--ink);
}

.ct-author-archive-stats strong {
  color: var(--green);
}

@media (min-width: 640px) {
  .ct-contact-cards-wrap {
    padding: 20px 22px 8px;
  }

  .ct-contact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .ct-page-body {
    padding: 22px 24px 26px;
  }

  .ct-contact-form-card {
    padding: 22px 22px;
  }

  .ct-form-row-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .ct-page-links-bar {
    padding: 16px 24px 20px;
  }
}

/* 15. Header Menu Search Icon, Dark Mode Switcher & Search Drawer */
.ct-nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.ct-nav-inner .nav {
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.ct-nav-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 4px 0 4px 6px;
  border-left: 1px solid var(--line);
}

.ct-tool-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #F4F6F3;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ct-tool-btn:hover,
.ct-tool-btn.is-active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.ct-icon-sun {
  display: none;
}

html[data-theme="dark"] .ct-icon-moon {
  display: none;
}

html[data-theme="dark"] .ct-icon-sun {
  display: block;
}

/* Expandable Search Bar under Header Menu */
.ct-search-drawer {
  display: none;
  background: #F8FAF7;
  border-top: 1px solid var(--line);
}

.ct-search-drawer.is-open {
  display: block;
}

.ct-search-drawer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 10px 12px;
}

.ct-header-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ct-header-search-input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  outline: none;
}

.ct-header-search-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(0, 86, 137, 0.15);
}

.ct-header-search-submit {
  height: 38px;
  padding: 0 16px;
  background: var(--green);
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.ct-header-search-submit:hover {
  background: var(--green-active);
}

.ct-header-search-close {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ct-header-search-close:hover {
  color: var(--red);
  border-color: var(--red);
}

@media (min-width: 768px) {
  .ct-nav-inner {
    padding: 0 16px;
  }

  .ct-tool-btn {
    width: 34px;
    height: 34px;
  }

  .ct-search-drawer-inner {
    padding: 12px 20px;
  }
}

/* 16. Dark Mode Theme Overrides (html[data-theme="dark"]) */
html[data-theme="dark"] {
  --ink: #E8ECF2;
  --muted: #9BA3B0;
  --bg: #0F141C;
  --card: #171E29;
  --line: #283242;
  --row-line: #232C3B;
  --soft: #1D2634;
}

html[data-theme="dark"],
html[data-theme="dark"] body {
  background: var(--bg) !important;
  color: var(--ink) !important;
}

html[data-theme="dark"] .ct-nav-bar,
html[data-theme="dark"] .card {
  background: var(--card);
  border-color: var(--line);
}

html[data-theme="dark"] .nav a {
  color: #7CC4F8;
}

html[data-theme="dark"] .ct-tool-btn {
  background: #212B3A;
  border-color: var(--line);
  color: #7CC4F8;
}

html[data-theme="dark"] .ct-tool-btn:hover,
html[data-theme="dark"] .ct-tool-btn.is-active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

html[data-theme="dark"] .ct-search-drawer {
  background: #131923;
  border-top-color: var(--line);
}

html[data-theme="dark"] .ct-header-search-input,
html[data-theme="dark"] .ct-header-search-close,
html[data-theme="dark"] .ct-form-group input,
html[data-theme="dark"] .ct-form-group select,
html[data-theme="dark"] .ct-form-group textarea {
  background: #0F141C;
  border-color: var(--line);
  color: var(--ink);
}

html[data-theme="dark"] .card--stories {
  background: #1B2332;
}

html[data-theme="dark"] .ct-stories-heading {
  color: #F08AD0;
}

html[data-theme="dark"] .ph {
  background: #232C3B;
}

html[data-theme="dark"] .ad {
  background: #131923;
  border-color: #2E3A4D;
  color: var(--muted);
}

html[data-theme="dark"] .pg,
html[data-theme="dark"] .ct-pagination .page-numbers,
html[data-theme="dark"] .chip,
html[data-theme="dark"] .ct-page-links-list a {
  background: #1D2634;
  border-color: var(--line);
  color: var(--ink);
}

html[data-theme="dark"] .ct-author-pill,
html[data-theme="dark"] .ct-page-links-bar,
html[data-theme="dark"] .ct-contact-box,
html[data-theme="dark"] .ct-contact-form-card {
  background: #1D2634;
  border-color: var(--line);
}

html[data-theme="dark"] .ct-post-body,
html[data-theme="dark"] .ct-post-body p,
html[data-theme="dark"] .ct-page-body p,
html[data-theme="dark"] .ct-page-body li {
  color: #D5DCE6;
}

html[data-theme="dark"] .ct-post-tags .tag {
  background: #1E3246;
  color: #7CC4F8;
}

/* ==========================================
   17. GOOGLE NEWS & WHATSAPP FOLLOW BANNERS
   ========================================== */
.ct-follow-banners-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.ct-follow-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid var(--line);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ct-follow-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(13, 19, 32, 0.08);
}

.ct-follow-gnews {
  background: linear-gradient(135deg, #EFF6FF 0%, #FFFFFF 100%);
  border-color: #BFDBFE;
}

.ct-follow-gnews:hover {
  border-color: #3B82F6;
}

.ct-follow-whatsapp {
  background: linear-gradient(135deg, #ECFDF5 0%, #FFFFFF 100%);
  border-color: #A7F3D0;
}

.ct-follow-whatsapp:hover {
  border-color: #10B981;
}

.ct-follow-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.ct-follow-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ct-follow-icon--gnews {
  background: #FFFFFF;
  border: 1px solid #DBEAFE;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.12);
}

.ct-follow-icon--wa {
  background: #25D366;
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.25);
}

.ct-follow-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ct-follow-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.4;
}

.ct-follow-sub {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink2);
  line-height: 1.4;
}

.ct-follow-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.ct-follow-cta--gnews {
  background: #1A73E8;
  color: #FFFFFF;
}

.ct-follow-cta--gnews svg {
  color: #FABB05;
}

.ct-follow-cta--wa {
  background: #128C7E;
  color: #FFFFFF;
}

.ct-follow-banner:hover .ct-follow-cta {
  filter: brightness(1.08);
}

@media (max-width: 640px) {
  .ct-follow-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
  }

  .ct-follow-cta {
    justify-content: center;
    width: 100%;
  }
}

html[data-theme="dark"] .ct-follow-gnews {
  background: linear-gradient(135deg, #17253B 0%, #161D26 100%);
  border-color: #263E63;
}

html[data-theme="dark"] .ct-follow-whatsapp {
  background: linear-gradient(135deg, #112A24 0%, #161D26 100%);
  border-color: #1B4D3E;
}

html[data-theme="dark"] .ct-follow-icon--gnews {
  background: #1E293B;
  border-color: #334155;
}

/* ==========================================
   18. GOOGLE WEB STORIES (PORTRAIT 3:4 & ARCHIVE GRID)
   ========================================== */
.ct-stories-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.ct-stories-head-row .ct-stories-heading {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 0;
}

.ct-ws-logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #B03A8C;
  color: #FFFFFF;
}

.ct-stories-view-all {
  font-size: 12.5px;
  font-weight: 700;
  color: #B03A8C;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(176, 58, 140, 0.1);
  transition: background 0.15s ease, color 0.15s ease;
}

.ct-stories-view-all:hover {
  background: #B03A8C;
  color: #FFFFFF;
}

.story .sty {
  aspect-ratio: 3 / 4;
  border-radius: 7px;
  overflow: hidden;
}

.story .sty img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.story:hover .sty img {
  transform: scale(1.04);
}

.ct-ws-bars {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  z-index: 3;
  pointer-events: none;
}

.ct-ws-bars i {
  display: block;
  height: 2.5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.ct-ws-bars i:first-child {
  background: #FFFFFF;
}

.story .bdg {
  top: 20px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(176, 58, 140, 0.92);
  backdrop-filter: blur(4px);
}

.ct-ws-archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .ct-ws-archive-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
}

.ct-ws-archive-grid .story {
  flex: initial;
  width: 100%;
}

html[data-theme="dark"] .ct-stories-view-all {
  color: #E879F9;
  background: rgba(232, 121, 249, 0.14);
}

html[data-theme="dark"] .ct-stories-view-all:hover {
  background: #C026D3;
  color: #FFFFFF;
}
