/* Home Page Specific Styles */
/* Use .container as the main wrapper for homepage content for unified width and padding. */

.home-main-container {
  /* Use .container for width, padding, and margin. Add only homepage-specific styles here if needed. */
  min-height: 100vh;
  padding-bottom: 60px; /* Space for footer, adjust as needed */
}

/* Utility Classes */
.spacer-24 {
  height: 10px;
}

/* Main Featured Post Styles */
.main-featured-post {
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  border-radius: 10px;
  background: #fff;
}

.featured-news-img {
  width: 225px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
}

.featured-news-badge {
  display: inline-block;
  background: #e53935;
  color: #fff;
  font-weight: 600;
  padding: 0.3em 1em;
  border-radius: 6px;
  margin-bottom: 12px;
}

.featured-news-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #222;
  line-height: 1.3;
}

/* Important News Section */
.important-news-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.important-news-content {
  /* padding: 24px 16px 16px 16px; */
}

.important-news-item {
  background: #fff;
  border-radius: 12px;
  padding: 7px;
  box-shadow: none;
}

.important-news-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
}

.important-news-title {
  font-size: 1.08rem;
  font-weight: 600;
  color: #222;
  line-height: 1.3;
  display: block;
  margin-top: 12px;
}

/* Home Feed Card */
.home-feed-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.home-feed-card .tab-content {
  padding: 0 16px 8px 16px;
}

/* Sidebar Styles */
.sidebar {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding-bottom: 12px;
}

.special-news-content {
  flex: 1;
  text-align: left;
}

.special-news-title-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  line-height: 1.2;
  min-height: 3.6em;
  max-height: 3.6em;
}

.section-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}
.featured-post-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: center;
}
.featured-post-img {
  width: 100%;
  max-height: 350px;
  object-fit: cover;
}
.featured-post-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #222;
  margin-bottom: 0.2em;
  line-height: 1.2;
  margin-top: 1.1em;
}
.popular-post-title {
  font-size: 18px;
  font-weight: bold;
  color: #000;
}
.post-list-item {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  padding: 0.75rem;
  align-items: center;
}
.post-list-img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
}
.post-list-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
  display: block;
  margin-bottom: 0.2rem;
}
.post-category {
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
  display: inline-block;
}
.sidebar-widget {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  padding: 0;
}
.sidebar-widget-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.7rem;
}
.sidebar-widget-list {
  margin: 0;
  padding: 0;
}
.sidebar-widget-item {
  align-items: center;
}
.sidebar-widget-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}
.sidebar-widget-link {
  font-size: 0.98rem;
  color: #222;
  font-weight: 500;
  text-decoration: none;
}
.sidebar-widget-link:hover {
  text-decoration: underline;
}
.sidebar-ad {
  text-align: center;
}
@media (max-width: 991.98px) {
  .home-main-container {
    padding: 0 8px;
  }
  .featured-post-img {
    max-height: 200px;
  }
  .post-list-img {
    width: 60px;
    height: 60px;
  }
  .sidebar-widget-img {
    width: 36px;
    height: 36px;
  }
}
@media (max-width: 767.98px) {
  .home-main-container {
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
  }
  .main-content-row,
  .row.main-content-row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .featured-post-card,
  .post-list-item {
    border-radius: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-shadow: none !important;
  }
  .featured-post-img,
  .post-list-img {
    border-radius: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
  .post-list {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  /* Reduce padding for mobile home page */
  .mobile-reduced-padding {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
  .featured-post-img {
    max-height: 200px;
    margin-bottom: 0.7rem !important;
  }
  .featured-post-title {
    margin-top: 0.3rem !important;
  }
  .post-list-img {
    margin-bottom: 0.6rem !important;
  }
  .post-list-title {
    margin-top: 0.2rem !important;
  }
  .post-list-item {
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: flex-start !important;
    background: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border-bottom: 1px solid #eee !important;
    padding-bottom: 0.7rem !important;
    margin-bottom: 0.7rem !important;
    min-height: 70px;
  }
  .post-list-item:last-child {
    border-bottom: none !important;
  }
  .post-list-img {
    width: 70px !important;
    height: 70px !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    margin: 0 0 0 0.7rem !important;
    flex-shrink: 0;
  }
  .post-list-item .pl-3 {
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
  .post-category {
    font-size: 0.85rem !important;
    color: #888 !important;
    font-weight: 400 !important;
    margin-bottom: 0.2rem !important;
    background: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    display: block !important;
  }
  .post-list-title {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #222 !important;
    margin: 0 !important;
    line-height: 1.25 !important;
    text-align: left !important;
    display: block !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    max-height: none !important;
  }
  .sidebar-widget-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
  }
  .mobile-section-title {
    font-size: 1.35rem;
    font-weight: bold;
    color: #222;
    background: #fff;
    margin-bottom: 0.7rem;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.4rem 0;
    border: none;
  }
  .mobile-section-title::before,
  .mobile-section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: #222;
    margin: 0 10px;
    border-radius: 2px;
    display: block;
  }
  .offcanvas ul.nav > li > a.nav-link {
    display: block;
    width: 100%;
    border-bottom: 1px solid #e2e2e2;
    padding: 0.85rem 1rem;
    font-size: 1.08rem;
    color: #222;
    background: #fff;
  }
  .offcanvas ul.nav > li:last-child > a.nav-link {
    border-bottom: none;
  }
  .btn-live {
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s;
    box-shadow: 0 2px 8px rgba(255,65,108,0.15);
    background: linear-gradient(90deg, #ff416c 0%, #ff4b2b 100%);
    color: #fff;
    border-radius: 30px;
    animation: live-glow 1.5s infinite alternate;
  }
  .btn-live .live-text {
    animation: live-blink 1s steps(2, start) infinite;
  }
  .live-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 8px 2px #fff;
    animation: live-pulse 0.8s infinite alternate;
  }
  @keyframes live-pulse {
    0% { box-shadow: 0 0 8px 2px #fff, 0 0 0 0 #ff416c44; }
    100% { box-shadow: 0 0 24px 10px #fff, 0 0 0 12px #ff416c33; }
  }
  @keyframes live-glow {
    0% { box-shadow: 0 2px 8px rgba(255,65,108,0.15); }
    100% { box-shadow: 0 2px 20px 8px rgba(255,65,108,0.35); }
  }
  @keyframes live-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
  }
  .mobile-header-beauty {
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
  }
  .mobile-header-beauty .header-logo,
  .mobile-header-beauty .header-icon-btn {
    margin: 0 !important;
    padding: 0 !important;
  }
  .section-header-green-red {
    display: block !important;
    background: #000 !important;
  }
}

/* All header and navbar related rules have been moved to header.css */

/* Add your home page styles here */
.big-logo {
  width: 200px !important;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
@media (max-width: 767.98px) {
  .big-logo {
    width: 140px !important;
  }
}

.site-logo {
  max-width: 250px !important;
  width: 100%;
  height: auto;
}

@media (min-width: 992px) {
  .sticky-sidebar {
    position: sticky;
    top: 90px;
    z-index: 10;
  }
  .post-list-img {
    width: 150px;
    height: 110px;
    object-fit: cover;
  }
  .post-list-item {
    border-bottom: 1px solid #eaeaea;
    padding: 20px 20px 8px;
  }
  .home-main-container .col-lg-8 {
    padding-right: 24px;
  }
  .home-main-container .col-lg-4 {
    padding-left: 12px;
  }
}

.card-style {
  background: #fff;
  border-radius: 12px;
  padding: 5px 5px 5px 5px;
  margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
}
.featured-section-label {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #222;
  letter-spacing: 0.01em;
}
.dot-icon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff8200;
  display: inline-block;
  margin-right: 7px;
}
.section-label-text {
  font-weight: 700;
  color: #222;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.featured-subtitle {
  font-size: 1rem;
  color: #6c757d;
  font-weight: 500;
  margin-bottom: 1.1em;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.featured-post-img {
  width: 100%;
  max-height: 350px;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 0.5em;
}
.topic-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(90deg, #fe3560 0%, #7b2ff2 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 999px;
  padding: 7px 22px 7px 18px;
  margin-right: 0.7em;
  letter-spacing: 0.01em;
  vertical-align: middle;
  margin-top: 1.1em;
  border: none;
  box-shadow: 0 2px 8px rgba(254,53,96,0.08);
  transition: box-shadow 0.2s;
}
.topic-badge .badge-arrow {
  margin-left: 10px;
  font-size: 1.2em;
  font-weight: 900;
  display: inline-block;
}
.section-title-modern {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #222;
  margin-bottom: 1.1em;
}
.accent-bar {
  width: 5px;
  height: 28px;
  background: #ff8200;
  border-radius: 3px;
  margin-right: 13px;
  display: inline-block;
}
.section-title-text {
  text-transform: uppercase;
  color: #222;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.featured-img-badge-wrap {
  position: relative;
}
.topic-badge.over-image {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  margin-top: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.13);
}
.date-badge {
  background: #222;
  color: #fff;
  border-radius: 6px;
  width: 44px;
  min-width: 44px;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  font-family: 'Roboto', Arial, sans-serif;
}
.date-badge .date-day {
  font-size: 1.25em;
  font-weight: 700;
  padding: 4px 0 0 0;
  line-height: 1.1;
}
.date-badge .date-month {
  background: #e53935;
  color: #fff;
  font-size: 0.95em;
  font-weight: 600;
  padding: 2px 0 4px 0;
  border-radius: 0 0 6px 6px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.1;
}
.calendar-badge {
  width: 48px;
  min-width: 48px;
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  font-family: 'Roboto', Arial, sans-serif;
  margin-right: 12px;
}
.calendar-top {
  background: #111;
  color: #fff;
  font-size: 0.95em;
  font-weight: 600;
  padding: 4px 0 2px 0;
  letter-spacing: 0.04em;
  border-bottom: 2px solid #222;
}
.calendar-bottom {
  background: #e53935;
  color: #fff;
  font-size: 1.7em;
  font-weight: 700;
  padding: 2px 0 6px 0;
  line-height: 1.1;
}
.navbar-categories .nav-item {
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 0.5em;
}
.navbar-categories .nav-item:last-child {
  border-bottom: none;
}

/* Clearfix for row to ensure proper height */
.home-main-container::after {
  content: "";
  display: table;
  clear: both;
}

/* Always show category badge on big related posts */
.category-badge {
  opacity: 1 !important;
  visibility: visible !important;
  transition: none !important;
}

/* Hide the two big related posts (cards) */
.related-posts-big-row {
  display: none !important;
}

/* New big related post cards */
.new-big-related-row {
  display: flex;
  gap: 24px;
  margin: 32px 0;
}
.new-big-related-card {
  flex: 1 1 0;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
  position: relative;
}
.new-big-related-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.new-big-related-card .category-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  top: auto;
  left: auto;
  background: linear-gradient(90deg, #ff3576 0%, #7b2ff2 100%);
  color: #fff;
  padding: 8px 22px 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1em;
  display: inline-flex;
  align-items: center;
  z-index: 2;
  opacity: 1 !important;
  visibility: visible !important;
  transition: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  border: none;
  letter-spacing: 0.01em;
}
.new-big-related-card .category-badge .badge-arrow {
  margin-left: 10px;
  font-size: 1.2em;
  font-weight: 900;
  display: inline-block;
}
.new-big-related-card .content {
  padding: 18px;
}
.new-big-related-card .title {
  font-size: 1.3em;
  font-weight: 700;
  margin-bottom: 0.5em;
  color: #222;
}
.new-big-related-card .excerpt {
  color: #555;
  font-size: 1em;
}

/* Header left group spacing */
@media (min-width: 768px) {
  .header-left-group {
    gap: 22px;
    flex-shrink: 0;
    min-width: 0;
  }
  .navbar-logo {
    margin-right: 8px;
    flex-shrink: 0;
  }
  .header-date {
    height: 50px;
    display: flex;
    align-items: center;
    font-size: 1.05rem;
    color: #fff;
    background: linear-gradient(90deg, #ff416c 0%, #7b2ff2 100%);
    border-radius: 999px;
    padding: 0 22px 0 18px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(254,53,96,0.08);
    letter-spacing: 0.01em;
    border: none;
    white-space: nowrap;
  }
  #live-btn-desktop {
    margin-left: 10px;
    vertical-align: middle;
  }
  .header-ad-banner {
    margin-left: 0;
    text-align: right;
    flex-shrink: 0;
    margin-right: 0;
  }
  .site-navbar .d-flex.justify-content-between.align-items-center {
    gap: 24px;
  }
}

.btn-live-radio {
  height: 50px;
  display: flex;
  align-items: center;
  background: #4a7bd8;
  border-radius: 999px;
  padding: 8px 26px 8px 14px;
  color: #fff;
  font-weight: 700;
  font-size: 1.08rem;
  box-shadow: 0 2px 8px rgba(74,123,216,0.10);
  border: none;
  outline: none;
  transition: box-shadow 0.2s, background 0.2s;
  gap: 10px;
  min-width: 170px;
}
.btn-live-radio:hover, .btn-live-radio:focus {
  background: #3a5bb5;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(74,123,216,0.18);
}
.live-radio-icon svg {
  display: block;
}
.live-radio-text {
  line-height: 1.1;
}
.live-radio-listen {
  font-size: 0.95rem;
  color: #e6e6e6;
  font-weight: 400;
}
.live-radio-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}
.live-radio-wave svg {
  display: block;
}

.main-content-row {
  min-height: 80vh;
}

/* Remove padding from popular posts in right sidebar */
.sidebar-block.sidebar-widget .featured-post-card {
  margin-bottom: 0;
  padding: 0;
}

.sidebar-block.sidebar-widget .featured-post-card .popular-post-title {
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
}

.sidebar-block.sidebar-widget .sidebar-body.sidebar-widget-list {
  padding: 0;
}

.sidebar-block.sidebar-widget .featured-post-card a {
  padding: 0;
}

body {
  font-family: 'Signika Negative','Mukta Malar',sans-serif;
  font-size: 16px;
  color: #000;
  background-color: #f2f3f5;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-nav li a:focus,.navbar-nav li a:hover {
  outline: 0;
  outline-offset: 0;
  text-decoration: none;
  background: 0 0;
}

a {
  color: #aeaeae;
  text-decoration: none;
  -webkit-transition: .3s;
  -moz-transition: .3s;
  -o-transition: .3s;
  transition: .3s;
}

a:focus,a:hover {
  text-decoration: none;
  outline: 0;
  color: #9c9c9c;
}

h1 {
  font-size: 36px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 20px;
}

h4 {
  font-size: 18px;
}

h5 {
  font-size: 16px;
}

h1,h2,h3,h4,h5,h6 {
  font-weight: 500;
  text-transform: capitalize;
}

.padding {
  padding: 90px 0;
}

.section {
  margin-bottom: 30px;
}

.section-title {
  margin-top: 5px;
  margin-bottom: 20px;
  padding-bottom: 0;
  position: relative;
  font-size: 24px;
  text-transform: capitalize;
  color: #525b6e;
  font-weight: 600;
}

.section-title:before {
  width: 50px;
  z-index: 1;
}

.section-title:after {
  right: 0;
  background-color: #e6e6e8;
}

.section-title:after,.section-title:before {
  position: absolute;
  content: "";
  bottom: -12px;
  left: 0;
  height: 2px;
}

.section-title.title {
  margin-bottom: 45px;
}

.card-style:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.13);
}
.card-img {
  border-radius: 8px;
  object-fit: cover;
  width: 120px;
  height: 80px;
  margin-right: 16px;
}
.card-title {
  font-size: 1.08rem;
  font-weight: bold;
  color: #222;
  margin-bottom: 6px;
  line-height: 1.3;
  text-decoration: none;
  display: block;
}
.card-title:hover {
  color: #17612a;
}
.card-meta {
  color: #888;
  font-size: 0.95em;
}
.section-header {
  background: #000;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: bold;
  margin-bottom: 16px;
  font-size: 1.1rem;
}
.featured-news-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}
.featured-news-img {
  border-radius: 8px;
  object-fit: cover;
  width: 120px;
  height: 100px;
  margin-right: 16px;
}
.featured-news-title {
  font-size: 1.15rem;
  font-weight: bold;
  color: #222;
  line-height: 1.3;
  text-decoration: none;
  display: block;
}
.featured-news-title:hover {
  color: #17612a;
}
.featured-news-badge {
  display: inline-block;
  background: #e53935;
  color: #fff;
  font-weight: 600;
  padding: 0.3em 1em;
  border-radius: 6px;
  font-size: 0.95em;
  margin-bottom: 6px;
}
.special-news-item .card-img {
  width: 50px;
  height: 40px;
  margin-right: 10px;
}
.special-news-item .card-title {
  font-size: 0.98rem;
  font-weight: 500;
  color: #222;
  margin-bottom: 0;
  line-height: 1.2;
}
.special-news-item .card-title:hover {
  color: #17612a;
}
@media (max-width: 768px) {
  .card-style, .featured-news-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
  }
  .card-img, .featured-news-img {
    width: 100%;
    height: 140px;
    margin-right: 0;
    margin-bottom: 10px;
  }
}

.section-header-green-red {
  background: #cb0000 !important;
  color: #fff !important;
  font-weight: bold;
  font-size: 1.1rem;
  border-radius: 6px 6px 0 0;
  padding: 8px 16px;
  border-left: 6px solid #FFC107;
}

/* Mobile-First Responsive Design */
@media (max-width: 767.98px) {
  .home-main-container {
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
  }
  
  /* Main featured post mobile optimization */
  .main-featured-post {
    flex-direction: column !important;
    padding: 1rem !important;
    margin: 0.5rem !important;
    border-radius: 12px !important;
  }
  
  .main-featured-post .featured-news-img {
    width: 100% !important;
    height: 200px !important;
    margin-right: 0 !important;
    margin-bottom: 1rem !important;
    border-radius: 8px !important;
  }
  
  .main-featured-post .featured-news-title {
    font-size: 1.1rem !important;
    line-height: 1.3 !important;
  }
  
  /* Important news section mobile optimization */
  .important-news-card {
    margin: 0.5rem !important;
    border-radius: 12px !important;
  }
  
  .important-news-card .row {
    padding: 1rem !important;
  }
  
  .important-news-card .col-md-6 {
    margin-bottom: 1rem !important;
  }
  
  .important-news-card .col-md-6:last-child {
    margin-bottom: 0 !important;
  }
  
  .important-news-card img {
    height: 150px !important;
    border-radius: 8px !important;
  }
  
  .important-news-card .card-title {
    font-size: 0.95rem !important;
    line-height: 1.3 !important;
    margin-top: 0.75rem !important;
  }
  
  /* Home feed tabs mobile optimization */
  .home-feed-card {
    margin: 0.5rem !important;
    border-radius: 12px !important;
  }
  
  .nav-tabs {
    border-radius: 12px 12px 0 0 !important;
    padding: 0.3rem !important;
  }
  
  .nav-tabs .nav-link {
    padding: 0.75rem 1rem !important;
    font-size: 0.9rem !important;
    min-height: 44px !important; /* Touch-friendly height */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .nav-tabs .nav-link i {
    margin-right: 0.5rem !important;
  }
  
  /* News list items mobile optimization */
  .news-list-item {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 1rem !important;
    margin-bottom: 1rem !important;
    border-bottom: 1px solid #eee !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
  }
  
  .news-list-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
  }
  
  .news-list-item .card-img {
    width: 100% !important;
    height: 180px !important;
    margin-right: 0 !important;
    margin-bottom: 0.75rem !important;
    border-radius: 8px !important;
  }
  
  .news-list-item .card-title {
    font-size: 1rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.5rem !important;
    min-height: auto !important;
  }
  
  .news-list-item .card-meta {
    font-size: 0.85rem !important;
    color: #666 !important;
  }
  
  /* Sidebar mobile optimization */
  .sidebar {
    margin: 0.5rem !important;
    border-radius: 12px !important;
  }
  
  .special-news-item {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 0.75rem !important;
    margin-bottom: 1rem !important;
    border-bottom: 1px solid #eee !important;
  }
  
  .special-news-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
  }
  
  .special-news-item .card-img {
    width: 100% !important;
    height: 120px !important;
    margin-left: 0 !important;
    margin-bottom: 0.75rem !important;
    border-radius: 8px !important;
  }
  
  .special-news-item .card-title {
    font-size: 0.9rem !important;
    line-height: 1.3 !important;
    min-height: auto !important;
    max-height: none !important;
    -webkit-line-clamp: unset !important;
  }
  
  /* Touch-friendly improvements */
  .card-style a,
  .nav-link,
  .btn {
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
  }
  
  /* Improved spacing for mobile */
  .row.gx-4 {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  .col-lg-8,
  .col-lg-4 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  /* Section headers mobile optimization */
  .section-header {
    padding: 1rem !important;
    font-size: 1.1rem !important;
    border-radius: 12px 12px 0 0 !important;
  }
  
  /* Pagination mobile optimization */
  .pagination-wrapper {
    padding: 1rem !important;
  }
  
  .pagination .page-link {
    min-width: 44px !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/* Tablet optimizations */
@media (min-width: 768px) and (max-width: 991.98px) {
  .home-main-container {
    padding: 0 1rem !important;
  }
  
  .main-featured-post {
    flex-direction: row !important;
    padding: 1.5rem !important;
  }
  
  .main-featured-post .featured-news-img {
    width: 200px !important;
    height: 140px !important;
    margin-right: 1rem !important;
    margin-bottom: 0 !important;
  }
  
  .main-featured-post .featured-news-title {
    font-size: 1.15rem !important;
  }
  
  .news-list-item {
    flex-direction: row !important;
    align-items: center !important;
  }
  
  .news-list-item .card-img {
    width: 140px !important;
    height: 100px !important;
    margin-right: 1rem !important;
    margin-bottom: 0 !important;
  }
  
  .special-news-item {
    flex-direction: row !important;
    align-items: center !important;
  }
  
  .special-news-item .card-img {
    width: 100px !important;
    height: 70px !important;
    margin-left: 0.75rem !important;
    margin-bottom: 0 !important;
  }
}

/* Desktop optimizations */
@media (min-width: 992px) {
  .home-main-container {
    padding: 0 2rem !important;
  }
  
  .main-featured-post {
    padding: 2rem !important;
  }
  
  .main-featured-post .featured-news-img {
    width: 225px !important;
    height: 150px !important;
  }
  
  .main-featured-post .featured-news-title {
    font-size: 1.25rem !important;
  }
  
  .news-list-item .card-img {
    width: 165px !important;
    height: 110px !important;
  }
  
  .special-news-item .card-img {
    width: 112.5px !important;
    height: 75px !important;
  }
}

/* Enhanced touch interactions */
@media (hover: none) and (pointer: coarse) {
  .card-style:hover {
    transform: none !important;
  }
  
  .nav-link:active,
  .btn:active {
    transform: scale(0.98) !important;
    transition: transform 0.1s ease !important;
  }
  
  .news-list-item:active {
    background-color: #f8f9fa !important;
  }
}

/* Loading states for better UX */
.news-list-item.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .nav-link,
  .btn,
  .card-style {
    transition: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .card-style {
    border: 2px solid #000 !important;
  }
  
  .nav-tabs .nav-link {
    border: 1px solid #fff !important;
  }
}

.custom-max-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}

.nav-tabs .nav-link {
  background: transparent;
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: 6px 6px 0 0;
  padding: 8px 16px;
  margin-right: 4px;
  transition: background 0.2s, color 0.2s;
}
.nav-tabs .nav-link.active {
  background: #000;
  color: #fff !important;
  border: none;
  border-radius: 6px 6px 0 0;
}

.latest-news-header {
    background: #cb0000 !important;
    color: #fff !important;
  font-weight: bold;
  font-size: 1.1rem;
  border-radius: 6px 6px 0 0;
  padding: 8px 16px;
    border-left: 6px solid #FFC107;
  margin-bottom: 16px;
}

[data-theme="dark"] .navbar {
  background-color: var(--navbar-bg) !important;
  border-bottom: 1px solid var(--border-color);
}
[data-theme="dark"] .navbar-brand,
[data-theme="dark"] .nav-link {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .site-navbar,
[data-theme="dark"] .navbar,
[data-theme="dark"] .desktop-header-menubar-top,
[data-theme="dark"] .header-date,
[data-theme="dark"] .mobile-header-beauty {
    background-color: #18191a !important;
    color: #fff !important;
    border-color: #222 !important;
}

[data-theme="dark"] .navbar-brand,
[data-theme="dark"] .nav-link,
[data-theme="dark"] .nav-link.active,
[data-theme="dark"] .nav-link:focus,
[data-theme="dark"] .nav-link:hover {
    color: #fff !important;
}

[data-theme="dark"] .header-date {
    background: #232526 !important;
    color: #fff !important;
}

[data-theme="dark"] .navbar-logo img {
    /* filter removed: now using a dedicated dark logo image */
}

[data-theme="dark"] img.site-logo,
[data-theme="dark"] img.big-logo {
  /* filter removed: now using a dedicated dark logo image */
} 

.special-news-section,
.sidebar-block.sidebar-widget:has(.section-header-green-red:contains('அதிகம் படித்தவை')),
.sidebar-block.sidebar-widget:has(.section-header-green-red:contains('விசேட செய்திகள்')) {
  background: #000 !important;
} 

@media (max-width: 600px) {
  .loop-title, .post-title, .post-single-title, h2.loop-title, h3.loop-title {
    font-size: 1.1em !important;
    line-height: 1.2 !important;
  }
  .loop-excerpt, .post-excerpt, .lead, .post-description {
    font-size: 1em !important;
    line-height: 1.5 !important;
  }
} 

/* Remove sticky positioning from sidebar */
.sidebar,
.sidebar-right {
    position: static !important;
} 

@media (max-width: 767.98px) {
  .post-list-item {
    position: relative;
  }
  .post-list-img {
    position: relative;
  }
  .post-list-category-badge {
    position: absolute;
    left: 4px;
    bottom: 4px;
    background: #cb0000;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    z-index: 2;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
    white-space: nowrap;
    pointer-events: none;
  }
} 