/*
Theme Name: NewsVive 2.0
Theme URI: https://eclipsewebhost.com
Author: Eclipse Web Host
Author URI: https://eclipsewebhost.com
Description: A modern news theme by Eclipse Web Host
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: newsviveeclipse
*/

@font-face {
  font-family: "SolaimanLipi";
  src: url("assets/fonts/SolaimanLipi.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


:root {
  --primary-color: #e63946;
  --secondary-color: #1d3557;
  --accent-color: #457b9d;
  --background: #f1faee;
  --text-color: #1d3557;
  --border-color: #ddd;
  --header-height: 80px;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'SolaimanLipi', sans-serif;
  line-height: 1.6;
 
 }

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 10px;
  margin-top:10px;
}

.three-column-layout {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px; /* Negative margin to counteract padding on columns */
}

.three-column-layout .left-sidebar,
.three-column-layout .site-main,
.three-column-layout .right-sidebar {
  padding: 0 7px;
  box-sizing: border-box;
}

.three-column-layout .left-sidebar {
  width: 20%;
}

.three-column-layout .site-main {
  width: 55%;
}

.three-column-layout .right-sidebar {
  width: 25%;
}

@media (max-width: 768px) {
  .three-column-layout {
    flex-direction: column;
  }

  .three-column-layout .left-sidebar,
  .three-column-layout .site-main,
  .three-column-layout .right-sidebar {
    width: 100%;
  }

  .three-column-layout .site-main {
    order: 1;
  }

  .three-column-layout .left-sidebar {
    order: 3;
  }

  .three-column-layout .right-sidebar {
    order: 2;
  }
}



/* Header Styles */
.site-header {
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.site-branding {
  display: flex;
  align-items: center;
}

.custom-logo {
  height: 60px;
  width: auto;
}

.site-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* Navigation */
.primary-menu, .secondary-menu {
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-menu li,
.secondary-menu li {
  position: relative;
}

.primary-menu a, .secondary-menu a {
  text-decoration: none;
  color: #222;
  font-weight: 500;
  font-size: 16px;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s ease;
}

.primary-menu a::after,
.secondary-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background-color: #0077cc;
  transition: width 0.3s ease;
}

.primary-menu a:hover::after,
.secondary-menu a:hover::after {
  width: 100%;
}

.primary-menu a:hover,
.secondary-menu a:hover {
  color: #0077cc;
}

/* Submenu - hidden by default */
.primary-menu li ul,
.secondary-menu li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  list-style: none;
  background: white;
  padding: 10px 0;
  min-width: 180px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 999;
}

/* Show on hover */
.primary-menu li:hover > ul,
.secondary-menu li:hover > ul {
  display: block;
}

.primary-menu li ul li,
.secondary-menu li ul li {
  padding: 0;
}

.primary-menu li ul a,
.secondary-menu li ul a {
  padding: 8px 16px;
  display: block;
  color: #333;
  white-space: nowrap;
}

.primary-menu li ul a:hover,
.secondary-menu li ul a:hover {
  background: #f5f5f5;
  color: #0077cc;
}


/* Featured Section */
.featured-section {
  margin: 2rem 0;
}

.featured-post {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.featured-image {
  position: relative;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.featured-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-content {
 
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  color: #000;
}

.featured-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.featured-content a {
  color: #000;
  text-decoration: none;
}

/* Secondary News Grid */
.secondary-news {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.secondary-post {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.secondary-post:hover {
  transform: translateY(-5px);
}




.post-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.post-content a {
  color: var(--text-color);
  text-decoration: none;
}

.post-content a:hover {
  color: var(--primary-color);
}

/* Sidebar */
.site-sidebar {
  padding: 2px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.widget {
  margin-bottom: 2rem;
}

.widget:last-child {
  margin-bottom: 0;
}

.widget-title {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

/* Category Labels */
.category-label {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--primary-color);
  color: #fff;
  border-radius: 4px;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}



/* Admin Bar Fix */
.admin-bar .site-header {
  top: 32px;
}


/* Homepage Sections */
.homepage-section {
  margin-bottom: 0.9rem;
  float: left;
  padding: 6px;
  box-sizing: border-box;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

/* Clear float after sections */
.homepage-sections::after {
  content: "";
  display: table;
  clear: both;
}

/* Grid Layout */
.grid-layout {
  display: grid;
  gap: 10px;
}

.grid-layout:not([style*="--desktop-grid"]) {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.grid-layout[style*="--desktop-grid"] {
  grid-template-columns: var(--desktop-grid);
}

.grid-layout .grid-item {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.grid-layout .grid-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.grid-layout .grid-item .post-thumbnail {
  position: relative;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.grid-layout .grid-item .post-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.grid-layout .grid-item-content {
  padding: 8px;
}

.grid-layout .grid-item .entry-title {
  font-size: 15px;
  margin: 0 0 5px;
  line-height: 1.3;
}

.grid-layout .grid-item .entry-title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.grid-layout .grid-item .entry-title a:hover {
  color: #0056b3;
}

.grid-layout .grid-item .entry-content {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.grid-layout .grid-item .post-time {
  font-size: 12px;
  color: #999;
}

/* Responsive styles */
@media (max-width: 768px) {
  .grid-layout[style*="--mobile-grid"] {
    grid-template-columns: var(--mobile-grid);
  }
}



/* List Layout */
.list-layout article {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 10px;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 1rem;
}

.list-layout article::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #e5e5e5;
}

.list-layout .list-item .entry-title {
  font-size: 14px;
  margin: 0;
  line-height: 1.4;
}

.list-layout .list-item .entry-title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.list-layout .list-item .post-time {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.5rem;
}

/* Additional styles to ensure proper layout */
.list-layout .post-thumbnail {
  width: 100%;
  height: auto;
}

.list-layout .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list-layout .list-content {
  display: flex;
  flex-direction: column;
}

.list-layout .entry-content {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
}





/* Featured Layout */
.featured-layout article:first-child {
  grid-column: 1 / -1;
}

.featured-layout {
  display: grid;
  gap: 1.5rem;
}

.featured-layout:not([style*="--desktop-grid"]) {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.featured-layout[style*="--desktop-grid"] {
  grid-template-columns: var(--desktop-grid);
}

.featured-layout article:first-child .entry-title {
  font-size: 2rem;
}

.featured-layout .featured-item {
  position: relative;
  overflow: hidden;
}

.featured-layout .featured-item .featured-content {
 
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2px;
  color: #000;
  padding: 8px;
}

.featured-layout .featured-item .entry-title {
  font-size: 16px;
  margin: 0 0 0.5rem;
}




/* Responsive adjustments */
@media (max-width: 1200px) {
  .homepage-section {
    width: 50% !important;
  }
}

@media (max-width: 768px) {
  .homepage-section {
    width: 100% !important;
  }

 

  .grid-layout[style*="--mobile-grid"],
  .featured-layout[style*="--mobile-grid"] {
    grid-template-columns: var(--mobile-grid);
  }
}

/* Post thumbnail */
.post-thumbnail img {
  max-width: 100%;
  height: 100%;
}

/* Entry content */
.entry-content {
  font-size: 0.9rem;
}



/* News Layout */
.news-layout {
  max-width: 1300px;
  margin: 0 auto;
 
}

.news-layout .news-grid {
  display: grid;
  gap: 6px;
  position: relative;
  margin-top: 5px;
}

.news-layout .news-grid:not([style*="--desktop-grid"]) {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.news-layout .news-grid[style*="--desktop-grid"] {
  grid-template-columns: var(--desktop-grid);
}

.news-layout .news-item {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 5px;
  background-color: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-layout .news-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.news-layout .news-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.news-layout .news-item .entry-title {
  font-size: 15px;
  margin: 10px 0 5px;
  line-height: 1.4;
}

.news-layout .news-item .entry-title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.news-layout .news-item .post-time {
  font-size: 0.85rem;
  color: #666;
  margin-top: 5px;
}

/* First item styling */
.news-layout .news-item-first {
  margin-bottom: 10px;
}

.news-layout .news-item-first .eclipse-news-item-content {
  display: flex;
  gap: 13px;
}

.news-layout .news-item-first .post-thumbnail {
  flex: 0 0 60%;
  margin: 0;
}

.news-layout .news-item-first .post-content {
  flex: 1;
}

.news-layout .news-item-first .entry-title {
  font-size: 24px;
  margin-top: 0;
}

.news-layout .news-item-first .entry-content {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* Responsive styles */
@media (max-width: 768px) {
  .news-layout .news-item-first .eclipse-news-item-content {
    flex-direction: column;
  }

  .news-layout .news-item-first .post-thumbnail {
    flex: none;
    margin-bottom: 15px;
  }

  .news-layout .news-grid[style*="--mobile-grid"] {
    grid-template-columns: var(--mobile-grid);
  }
}




/* Compact Layout */
.compact-layout {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.compact-layout article {
  position: relative;
  padding-bottom: 0.75rem;
}

.compact-layout article::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #cacaca;
}

.compact-layout article:last-child {
  padding-bottom: 0;
}

.compact-layout article:last-child::after {
  display: none;
}

/* Featured (first) item styling */
.compact-layout article:first-child {
  margin-bottom: 1rem;
}

.compact-layout article:first-child .compact-content {
  display: flex;
  flex-direction: column;
}

.compact-layout article:first-child .compact-thumbnail {
  margin: 0 0 0.75rem 0;
  width: 100%;
}

.compact-layout article:first-child .compact-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.compact-layout article:first-child .entry-title {
  font-size: 1.25rem;
  line-height: 1.4;
  margin: 0;
}

/* Regular items styling */
.compact-layout article:not(:first-child) .compact-content {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0.75rem;
  align-items: start;
}

.compact-layout article:not(:first-child) .compact-thumbnail {
  margin: 0;
  position: relative;
}

.compact-layout article:not(:first-child) .compact-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Text styling */
.compact-layout .compact-text {
  display: flex;
  flex-direction: column;
}

.compact-layout article:not(:first-child) .entry-title {
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0;
}

.compact-layout .entry-title a {
  color: #333;
  text-decoration: none;
}

.compact-layout .entry-title a:hover {
  color: var(--primary-color);
}

/* Existing styles... */

/* Mobile Responsive */
@media (max-width: 768px) {
  .compact-layout article:not(:first-child) .compact-content {
    grid-template-columns: 70px 1fr;
    gap: 0.5rem;
  }

  .compact-layout article:first-child .entry-title {
    font-size: 1.1rem;
  }
}

/* Header Styles */
.site-header {
  width: 100%;
}

.header-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}


/* Hamburger Menu Styles */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .primary-navigation {
        display: none;
        position: absolute;
        top: 60px;
        right: 0;
        background: #fff;
        width: 100%;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .primary-navigation .primary-menu {
        display: block;
        text-align: center;
    }

    .primary-navigation .primary-menu li {
        display: block;
        padding: 15px;
        border-bottom: 1px solid #ddd;
    }

    /* Show menu when active */
    .mobile-menu-active .primary-navigation {
        display: block;
    }

    /* Hide secondary menu on mobile */
    .secondary-navigation {
        display: none;
    }

    /* Hamburger Button */
    .menu-toggle {
        font-size: 24px;
        background: none;
        border: none;
        cursor: pointer;
        display: block;
    }
}





/* single post */

.modern-single-post {
  max-width: 800px;
  margin: 0 auto;
  padding: 2px;
}



.single-post-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 500px;
}

.entry-title {
  font-size: 35px;
  margin: 1rem;
  line-height: 1.2;
  font-weight: bold; /* Make the text bold */
}


.entry-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.published-on {
  font-weight: bold;
  text-transform: uppercase;
  background-color: #f0f0f0;
  padding: 2px 10px;
  border-radius: 4px;
  margin-right: 0.5rem;
}

.post-date-time {
  color: #666;
  font-style: italic;
}

.post-controls {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.font-size-controls {
  display: flex;
}

.font-size-controls button,
.share-button,
.save-button,
.action-button {
  background: #f0f0f0;
  border: none;
  padding: 0.5rem 1rem;
  margin-left: 0.5rem;
  cursor: pointer;
  font-weight: bold;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: flex;
  align-items: center;
}

.font-size-controls button:hover,
.share-button:hover,
.save-button:hover,
.action-button:hover {
  background: #e0e0e0;
}

.share-button {
  background-color: #1877f2;
  color: white;
}

.share-button:hover {
  background-color: #166fe5;
}

.save-button {
  background: none; /* Remove the background */
  border: 2px solid #4caf50; /* Add a sleek green border */
  color: #4caf50; /* Set text color to match border */
}

.save-button:hover {
  background-color: #f1f1f1; /* Light hover background */
  color: #45a049; /* Darker green on hover */
  border-color: #45a049; /* Darker border color on hover */
}

.save-button svg {
  margin-right: 0.5rem;
}

.share-button svg,
.save-button svg,
.action-button svg {
  margin-right: 0.5rem;
}

.save-button:focus {
  outline: none; /* Remove outline on focus */
  box-shadow: 0 0 0 2px rgba(72, 175, 47, 0.4); /* Subtle shadow effect */
}


.entry-content {
  line-height: 1.6;
  font-size: 16px;
  transition: font-size 0.3s ease;
}

#lightbox-capture .entry-content {
  font-size: 16px;
  columns: 3;
  column-gap: 14px;
  text-align: justify;
  position: relative;
  height: calc(100% - 150px); /* Adjust based on logo and title height */
  
}

#lightbox-capture .entry-thumbnail {
  width: 100%;
  margin-bottom: 1rem;
}

#lightbox-capture .entry-thumbnail img {
  width: 100%;
  height: auto;
  
}

.entry-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
  font-size: 0.9rem;
  color: #666;
}

/* Lightbox styles */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  overflow-y: auto;
}

.lightbox-scroll-container {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.eclipsewh-lightbox-content {
  background-color: white;
  padding: 10px;
  border-radius: 8px;
  width: 210mm; /* A4 width */
  height: auto;
  position: relative;
  display: flex;
  flex-direction: column;
}

.date-meta {
  text-align: center; /* Centers the text */
  font-style: italic; /* Makes the text italic */
  color: #666; /* Soft gray color for the text */
  font-size: 1rem; /* Adjust font size */
  margin: 10px 0; /* Adds space around the element */
  background-color: #f0f0f0; /* Light gray background */
  padding: 10px; /* Adds padding around the content */
  border-radius: 5px; /* Optional: rounds the corners */
}

#lightbox-capture {
  
  display: flex;
  flex-direction: column;
  
  padding: 10px;
}

.lightbox-footer {
    margin-top: 30px;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    color: #888; /* Gray color for the text */
    border-top: 1px solid #eee; /* Light border on top */
    background-color: #f9f9f9; /* Light background color */
}




.close-lightbox {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

.site-logo {
  text-align: center;
  margin-bottom: 5px;
  
}

.site-logo img {
    width: 250px;  /* Set the desired width */
    height: auto;   /* Maintain the aspect ratio */
    max-width: 100%; /* Ensure the logo doesn't overflow its container */
}

.lightbox-title {
  font-size: 1.5rem;
  margin-bottom: 2px;
  text-align: center;
}

.lightbox-columns {
  display: flex;
  gap: 1rem;
  flex-grow: 1;
}

.lightbox-column {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.lightbox-column img {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
  object-fit: cover;
}

.column-content {
  font-size: 0.9rem;
  line-height: 1.6;
  flex-grow: 1;
  overflow: hidden;
  text-align: justify;
}

.lightbox-actions {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
}

.action-button {
  background-color: #ffa500;
  color: white;
  padding: 0.5rem;
}

.action-button:hover {
  background-color: #ff8c00;
}

@media (max-width: 768px) {
    #lightbox-capture .entry-content {
 
  columns: 2;
 
}
    
    
  .entry-meta {
    flex-direction: row;
    align-items: flex-start;
  }

  .published-on {
    margin-bottom: 0.5rem;
  }

  .post-controls {
    flex-direction: row; /* Make it a single line */
    
  }

  .font-size-controls {
    margin-bottom: 1rem;
  }

  .eclipsewh-lightbox-content {
    width: 90%;
    height: auto;
    aspect-ratio: 1 / 1.414; /* A4 aspect ratio */
  }

  .lightbox-columns {
    flex-direction: column;
  }

  .epaper-view .column-content {
    column-count: 1;
  }

  .lightbox-actions {
    position: static;
    margin-top: 1rem;
    justify-content: center;
  }
}

@media print {
    /* Ensure the layout remains as columns in print */
    .entry-content {
        columns: 3;  /* Keeps 3 columns for printing */
        column-gap: 14px;
        font-size: 15px;
        text-align: justify;
    }

    .entry-content img {
        width: 100%;
        height: auto;
    }

    /* Hide buttons and other UI elements during print */
    .print-button {
        display: none;
    }

    .date-meta {
        display: block;
        text-align: center;
        font-style: italic;
        color: #666;
        background-color: #f0f0f0;
        padding: 10px;
        border-radius: 5px;
        font-size: 1rem;
    }
}


.site-footer {
  border-top: 1px solid #000;
  background: linear-gradient(to left, #0000FF, #000000); /* Blue to Black gradient */
  padding: 10px 0;
  color: #333;
}


.footer-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 20px;
}

.footer-column {
  flex: 1;
  min-width: 200px;
  margin-bottom: 2px;
  padding: 0 15px;
}

.footer-column h3 {
  font-size: 18px;
  margin-bottom: 15px;
}

.site-info {
  text-align: center;
  font-size: 14px;
  border-top: 1px solid #f5dd61; /* Soft gray border */
  padding-top: 20px;
  color: #f5dd61; 
}

.site-info a {
  color: #f5dd61; 
}

.site-info a:hover {
  color: #f5dd61;
}





@media (max-width: 768px) {
  .footer-columns {
    flex-direction: column;
  }

  .footer-column {
    width: 100%;
  }
}



.tabs-layout {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 400px; /* Fixed height for scrolling */
}

.tabs-header {
  display: flex;
  border-bottom: 1px solid #e0e0e0;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.tab-button {
  padding: 12px 20px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: #666;
  transition: all 0.3s ease;
  flex: 1;
  text-align: center;
}

.tab-button:hover {
  background-color: #f5f5f5;
}

.tab-button.active {
  color: #000;
  border-bottom: 2px solid #1a73e8;
}

.tabs-content {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.post-time {
 font-size:10px;
}


.tab-pane {
  display: none;
  height: 100%;
  overflow-y: auto;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 15px;
  /* Scrollbar styling */
  scrollbar-width: thin;
  scrollbar-color: #888 #f1f1f1;
}

.tab-pane::-webkit-scrollbar {
  width: 6px;
}

.tab-pane::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.tab-pane::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.tab-pane::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.tab-pane.active {
  display: block;
}

.numbered-posts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.numbered-post-item {
  display: flex;
  align-items: baseline;
  padding: 8px;
  transition: background-color 0.3s ease;
  border-bottom: 1px solid #f0f0f0;
}

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

.numbered-post-item:hover {
  background-color: #f8f9fa;
}

.post-number {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background-color: #f0f0f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  margin-right: 12px;
}

.post-title {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.post-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-title a:hover {
  color: #1a73e8;
}

.tabs-footer {
  padding: 10px;
  text-align: center;
  border-top: 1px solid #e0e0e0;
  background: #fff;
}
.view-all-button {
  display: inline-block;
  padding: 8px 20px;
  background-color: transparent;
  color: #1a73e8;
  text-decoration: none;
  border: 2px solid #FF0101; 
  border-radius: 4px;
  font-size: 14px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.view-all-button:hover {
  background-color: #1a73e8;
  color: white;
  border-color: #1557b0; /* Darker border color on hover */
}


.no-posts {
  text-align: center;
  color: #666;
  padding: 20px;
}

@media (max-width: 768px) {
  .tabs-layout {
    height: 500px; /* Slightly shorter on mobile */
  }

  .tabs-header {
    flex-direction: row; /* Keep tabs side by side on mobile */
  }

  .tab-button {
    padding: 10px;
    font-size: 14px;
  }

  .post-title {
    font-size: 13px;
  }
}


/* Existing styles... */

/* Breaking News Ticker */
.breaking-news-ticker {
  background-color: #f8f8f8;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
 
  overflow: hidden;
  position: relative;
}

@keyframes wave {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(2deg); }
  50% { transform: rotate(0deg); }
  75% { transform: rotate(-2deg); }
  100% { transform: rotate(0deg); }
}

.breaking-news-label {
  background-color: #e53935;
  color: #fff;
  font-weight: bold;
  padding: 5px 10px;
  margin-right: 15px;
  display: inline-block;
  position: relative;
  z-index: 2;
  animation: wave 0.5s infinite ease-in-out;
}


.breaking-news-list {
  display: inline-block;
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  left: 150px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  animation: ticker 30s linear infinite;
}

.breaking-news-ticker:hover .breaking-news-list {
  animation-play-state: paused;
}

.breaking-news-item {
  display: inline-block;
  margin-right: 30px;
}

.breaking-news-item a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breaking-news-item a:hover {
  color: #e53935;
}

@keyframes ticker {
  0% {
    transform: translate3d(100%, -50%, 0);
  }
  100% {
    transform: translate3d(-100%, -50%, 0);
  }
}


/*archive cont */
.archive-container {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 15px;
}

.archive-main {
  flex: 0 0 65%;
  max-width: 65%;
  padding-right: 5px;
}

.sidebar {
  flex: 0 0 20%;
  max-width: 20%;
  padding-left: 30px;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns by default */
  gap: 7px;
}




.archive-item {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.archive-item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.archive-item-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.archive-thumbnail {
  position: relative;
  padding-top: 56.25%; /* 16:9 aspect ratio */
}

.archive-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entry-header,
.entry-summary,
.entry-footer {
  padding: 0px;
}




.entry-summary {
  font-size: 0.95rem;
  flex-grow: 1;
}

.entry-footer {
  font-size: 0.9rem;
  color: #666;
  border-top: 1px solid #e0e0e0;
}

.page-header {
  text-align: center;
  margin-bottom: 5px;
}


.page-title {
  font-size: 2rem;
  margin: 0 0 10px;
}

.archive-description {
  font-size: 1rem;
  color: #666;
}
.no-results {
  text-align: center;
  padding: 30px;
  background-color: #f8f8f8;
  border-radius: 5px;
  margin-bottom: 30px;
}

.no-results p {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #666;
}

.no-results .search-form {
  max-width: 300px;
  margin: 0 auto;
}


@media (max-width: 768px) {
   

  .archive-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
  }


    
  .archive-container {
    flex-direction: column;
  }

  .archive-main,
  .sidebar {
    flex: 0 0 100%;
    max-width: 100%;
    padding-right: 0;
    padding-left: 0;
  }

  .sidebar {
    margin-top: 30px;
  }
}


.search-container {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.search-main {
  flex: 0 0 78%;
  max-width: 78%;
  padding-right: 30px;
}

.sidebar {
  flex: 0 0 20%;
  max-width: 20%;
  padding-left: 30px;
}

.page-header {
  margin-bottom: 30px;
}

.page-title {
  font-size: 2rem;
  margin: 0 0 10px;
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.search-item {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.search-item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.search-item .entry-header {
  padding: 15px 15px 0;
}

.search-item .entry-title {
  font-size: 1.2rem;
  margin: 0 0 10px;
}

.search-item .entry-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 10px;
}

.search-item .post-thumbnail {
  margin-bottom: 15px;
}

.search-item .post-thumbnail img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.search-item .entry-summary {
  padding: 0 15px 15px;
  font-size: 0.95rem;
}

.search-item .entry-footer {
  padding: 15px;
  font-size: 0.9rem;
  color: #666;
  border-top: 1px solid #e0e0e0;
}

.no-results {
  text-align: center;
  padding: 30px;
  background-color: #f8f8f8;
  border-radius: 5px;
  margin-bottom: 30px;
}

.no-results p {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #666;
}

.no-results .search-form {
  max-width: 300px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .search-container {
    flex-direction: column;
  }

  .search-main,
  .sidebar {
    flex: 0 0 100%;
    max-width: 100%;
    padding-right: 0;
    padding-left: 0;
  }

  .sidebar {
    margin-top: 30px;
  }

  .search-results-grid {
    grid-template-columns: 1fr;
  }
}


/*for sidebar**/
.sidegrid-layout .sidegrid-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.sidegrid-item {
  
  width: 48%;
  background-color: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidegrid-item .entry-title {
    font-size: 14px;
    padding: 5px;
}

.eclipsewh-ad-content {
            text-align: center;
            margin: 10px 0;
        }
.eclipsewh-ad-content img {
            max-width: 100%;
            height: auto;
        }
        
        
        
        

.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  gap: 2rem;
}
.main-area {
  flex: 1 1 70%;
}
.sidebar-area {
  flex: 1 1 25%;
}
.grid-posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.grid-post {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s ease;
}
.grid-post:hover {
  transform: translateY(-4px);
}
.grid-post a {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 1rem;
}
.grid-post .post-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid #eee;
}
.grid-post h2 {
  font-size: 1.2rem;
  margin: 0.8rem 0 0.5rem;
}
.grid-post .entry-content {
  font-size: 0.95rem;
  color: #666;
}
.pagination {
  text-align: center;
  margin-top: 2rem;
}
.pagination .page-numbers {
  display: inline-block;
  margin: 0 5px;
  padding: 6px 12px;
  border: 1px solid #ddd;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
}
.pagination .current {
  background: #333;
  color: #fff;
  border-color: #333;
}

