/*
Theme Name: NewsRose
Theme URI: http://newsrose.com
Author: Your Name
Description: Professional Bangla News Portal Theme
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: newsrose
*/

/* CSS Variables */
:root {
  --primary-color: #e91e63;
  --secondary-color: #333333;
  --text-color: #333;
  --light-gray: #f5f5f5;
  --border-color: #ddd;
  --white: #ffffff;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "SolaimanLipi", "Kalpurush", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: #f9f9f9;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Top Header */
.top-header {
  background: var(--secondary-color);
  padding: 8px 0;
  font-size: 13px;
  color: var(--white);
}

.top-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-header-left {
  display: flex;
  gap: 20px;
}

.top-header-right {
  display: flex;
  gap: 15px;
  align-items: center;
}

.social-icons a {
  color: var(--white);
  font-size: 14px;
  padding: 5px;
}

.social-icons a:hover {
  color: var(--primary-color);
}

/* Main Header */
.main-header {
  background: var(--white);
  padding: 15px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: grid;
  grid-template-columns: 200px 1fr 300px;
  gap: 20px;
  align-items: center;
}

.site-logo img {
  max-height: 60px;
}

.header-ad {
  background: var(--light-gray);
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border-color);
}

/* Navigation */
.main-navigation {
  background: var(--primary-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: block;
  padding: 12px 20px;
  color: var(--white);
  font-weight: 500;
}

.nav-menu > li:hover > a,
.nav-menu > li.current-menu-item > a {
  background: rgba(0, 0, 0, 0.2);
}

/* Breaking News */
.breaking-news-bar {
  background: #ffc107;
  padding: 10px 0;
  overflow: hidden;
}

.breaking-news-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.breaking-label {
  background: #d32f2f;
  color: var(--white);
  padding: 5px 15px;
  font-weight: bold;
  white-space: nowrap;
}

.breaking-content {
  flex: 1;
  overflow: hidden;
}

.breaking-scroll {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-left 30s linear infinite;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Main Content Layout */
.site-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  margin: 20px 0;
}

/* Featured Section */
.featured-section {
  background: var(--white);
  padding: 20px;
  margin-bottom: 20px;
}

.featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.featured-main {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
}

.featured-main img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.featured-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 20px;
  color: var(--white);
}

.featured-sidebar {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.featured-small {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  height: calc(50% - 7.5px);
}

.featured-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-small .featured-content {
  padding: 15px;
}

.featured-content h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.featured-small .featured-content h3 {
  font-size: 16px;
  margin-bottom: 5px;
}

/* Category Section */
.category-section {
  background: var(--white);
  margin-bottom: 20px;
  border-radius: 5px;
  overflow: hidden;
}

.section-header {
  background: var(--primary-color);
  color: var(--white);
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-header h2 {
  font-size: 18px;
  font-weight: bold;
}

.view-all-link {
  color: var(--white);
  font-size: 14px;
}

.view-all-link:hover {
  text-decoration: underline;
}

/* Post Grid - 3 Columns */
.posts-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px;
}

.post-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.post-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.post-thumbnail {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
  transform: scale(1.05);
}

.post-content {
  padding: 15px;
}

.post-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.4;
}

.post-title a:hover {
  color: var(--primary-color);
}

.post-meta {
  font-size: 12px;
  color: #999;
  margin-bottom: 10px;
}

.post-excerpt {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
  line-height: 1.5;
}

.read-more {
  color: var(--primary-color);
  font-size: 14px;
  font-weight: bold;
}

.read-more:hover {
  text-decoration: underline;
}

/* Ad Banner - Full Width */
.ad-banner-full {
  background: var(--light-gray);
  padding: 20px;
  text-align: center;
  margin: 20px 0;
  border: 2px dashed var(--border-color);
}

.ad-banner-full img {
  margin: 0 auto;
}

/* Video Section */
.video-section {
  background: var(--white);
  margin-bottom: 20px;
  border-radius: 5px;
  overflow: hidden;
}

.video-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  padding: 20px;
}

.video-main {
  position: relative;
  border-radius: 5px;
  overflow: hidden;
}

.video-main iframe,
.video-main img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.video-sidebar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.video-item {
  position: relative;
  border-radius: 5px;
  overflow: hidden;
}

.video-item iframe,
.video-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(233, 30, 99, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 24px;
}

/* List Layout with Thumbnail */
.posts-list-thumb {
  padding: 20px;
}

.list-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}

.list-item:last-child {
  border-bottom: none;
}

.list-thumbnail {
  border-radius: 5px;
  overflow: hidden;
  height: 120px;
}

.list-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list-content h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.list-content p {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

/* Sidebar Widgets */
.sidebar {
  position: sticky;
  top: 80px;
}

.widget {
  background: var(--white);
  margin-bottom: 20px;
  border-radius: 5px;
  overflow: hidden;
}

.widget-title {
  background: var(--primary-color);
  color: var(--white);
  padding: 10px 15px;
  font-size: 16px;
  font-weight: bold;
}

.widget-content {
  padding: 15px;
}

/* Popular Posts Widget */
.popular-post-item {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.popular-post-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.popular-thumb {
  width: 80px;
  height: 60px;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
}

.popular-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-content h4 {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 5px;
}

.popular-content h4 a:hover {
  color: var(--primary-color);
}

.popular-date {
  font-size: 11px;
  color: #999;
}

/* Sidebar Ad */
.sidebar-ad {
  background: var(--light-gray);
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border-color);
  margin-bottom: 20px;
}

/* Footer */
.site-footer {
  background: var(--secondary-color);
  color: var(--white);
  padding: 40px 0 20px;
  margin-top: 40px;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.footer-widget h3 {
  font-size: 18px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
}

.footer-widget ul {
  list-style: none;
}

.footer-widget ul li {
  margin-bottom: 8px;
}

.footer-widget ul li a {
  color: #ccc;
}

.footer-widget ul li a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .header-content {
    grid-template-columns: 150px 1fr 250px;
  }

  .posts-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .video-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-content {
    grid-template-columns: 1fr;
  }

  .header-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .featured-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .posts-grid-3 {
    grid-template-columns: 1fr;
  }

  .list-item {
    grid-template-columns: 1fr;
  }

  .footer-widgets {
    grid-template-columns: 1fr 1fr;
  }

  .nav-menu {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .footer-widgets {
    grid-template-columns: 1fr;
  }
}

/* Category Page Styles */
.category-header-section {
  background: white;
  padding: 30px;
  border-radius: 5px;
  margin-bottom: 20px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-page-title {
  font-size: 32px;
  color: var(--text-color);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.category-page-title i {
  color: var(--primary-color);
}

.category-description {
  color: #666;
  font-size: 16px;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 20px;
}

.category-meta-info {
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
}

.post-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--light-gray);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  color: #666;
}

.post-count i {
  color: var(--primary-color);
}

.category-posts-section {
  background: white;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Pagination Styles */
.pagination-wrapper {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid var(--border-color);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  list-style: none;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 15px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  color: var(--text-color);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pagination .page-numbers:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.pagination .page-numbers.current {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.pagination .page-numbers.dots {
  border: none;
  background: transparent;
}

.pagination .prev,
.pagination .next {
  font-weight: 600;
}

/* No Posts Found */
.no-posts-found {
  background: white;
  padding: 60px 30px;
  border-radius: 5px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.no-posts-found i {
  font-size: 80px;
  color: var(--border-color);
  margin-bottom: 20px;
}

.no-posts-found h2 {
  font-size: 28px;
  color: var(--text-color);
  margin-bottom: 10px;
}

.no-posts-found p {
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
}

.back-home-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-color);
  color: white;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.back-home-button:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .category-page-title {
    font-size: 24px;
    flex-direction: column;
    gap: 10px;
  }

  .category-description {
    font-size: 14px;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 5px;
  }

  .pagination .page-numbers {
    min-width: 35px;
    height: 35px;
    padding: 0 10px;
    font-size: 14px;
  }
}
