/* ===================================
   FRONTEND REDESIGN - Modern News Portal
   =================================== */

/* ---------- Base & Typography ---------- */
body {
  font-family: 'Noto Serif Bengali', serif;
  background-color: #f5f5f5;
  color: #1a1a1a;
}

a { text-decoration: none; }
a:hover { text-decoration: none; }

/* ---------- Top Bar ---------- */
.top-bar {
  background: #1a1a2e;
  color: #fff;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 2px solid #c0392b;
}

.top-bar .date-text {
  font-size: 13px;
  color: #ccc;
  letter-spacing: 0.5px;
}

.top-bar .social-links a {
  color: #ccc;
  font-size: 16px;
  margin-left: 10px;
  transition: color 0.2s;
}

.top-bar .social-links a:hover { color: #e74c3c; }

/* ---------- Masthead (Logo Banner) ---------- */
.masthead {
  background: #fff;
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
}

.masthead .ad-banner img {
  width: 100%;
  max-height: 90px;
  object-fit: cover;
  border-radius: 4px;
}

/* ---------- Main Navigation ---------- */
.main-nav {
  background: #c0392b;
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.main-nav .nav-brand {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  padding: 0 15px;
}

.main-nav .scrollmenu {
  overflow-x: auto;
  white-space: nowrap;
  display: flex;
  align-items: center;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.main-nav .scrollmenu a {
  display: inline-block;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 16px;
  transition: background 0.2s;
  border-right: 1px solid rgba(255,255,255,0.15);
}

.main-nav .scrollmenu a:hover,
.main-nav .scrollmenu a.active {
  background: rgba(0,0,0,0.2);
  color: #fff;
}

.main-nav .hamburger-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  padding: 10px 15px;
}

/* ---------- Breaking News Ticker ---------- */
.breaking-news-bar {
  background: #fff;
  border-bottom: 2px solid #e0e0e0;
  padding: 6px 0;
}

.breaking-news-bar .label {
  background: #c0392b;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  white-space: nowrap;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.breaking-news-bar marquee {
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 600;
}

/* ---------- Section Heading ---------- */
.section-heading {
  position: relative;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  padding-bottom: 8px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: #c0392b;
  border-radius: 2px;
}

.section-heading.centered::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ---------- News Card (Top Hero) ---------- */
.hero-section {
  background: #fff;
  padding: 20px 0;
  border-bottom: 1px solid #e0e0e0;
}

.hero-main-card {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

.hero-main-card img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.hero-main-card:hover img { transform: scale(1.03); }

.hero-main-card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 30px 20px 18px;
}

.hero-main-card .overlay h3 {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
}

.hero-main-card .overlay .cat-badge {
  display: inline-block;
  background: #c0392b;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 3px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Side Cards in Hero */
.side-news-card {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  transition: background 0.2s;
}

.side-news-card:last-child { border-bottom: none; }

.side-news-card:hover { background: #fafafa; }

.side-news-card img {
  width: 90px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.side-news-card .content h6 {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.4;
}

.side-news-card .content .meta {
  font-size: 11px;
  color: #888;
  margin-top: 4px;
}

/* ---------- Ad Banners ---------- */
.ad-container {
  text-align: center;
  padding: 10px 0;
}

.ad-container img {
  max-width: 100%;
  border-radius: 4px;
  object-fit: cover;
}

/* ---------- Small Grid Cards (Recent) ---------- */
.grid-news-section {
  background: #fff;
  padding: 24px 0;
}

.small-news-card {
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
  transition: box-shadow 0.25s, transform 0.25s;
  height: 100%;
}

.small-news-card:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,0.13);
  transform: translateY(-3px);
}

.small-news-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.small-news-card .card-body {
  padding: 12px 14px;
}

.small-news-card .card-body h6 {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.4;
  margin-bottom: 6px;
}

.small-news-card .card-body .meta {
  font-size: 11px;
  color: #888;
}

/* ---------- Tabs (Latest / Popular) ---------- */
.news-tabs-box {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.news-tabs-box .nav-tabs {
  border-bottom: none;
  display: flex;
}

.news-tabs-box .nav-tabs .nav-link {
  flex: 1;
  text-align: center;
  border-radius: 0;
  border: none;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  padding: 10px;
}

.news-tabs-box .nav-tabs .nav-link.latest-tab { background: #175D0B; }
.news-tabs-box .nav-tabs .nav-link.popular-tab { background: #c0392b; }

.news-tabs-box .nav-tabs .nav-link.active,
.news-tabs-box .nav-tabs .nav-link:focus {
  opacity: 0.85;
  color: #fff;
}

.news-tabs-box .tab-content { padding: 10px; }

/* ---------- Row-Style Blog Item (Sidebar) ---------- */
.row-blog-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.row-blog-item:last-child { border-bottom: none; }

.row-blog-item img {
  width: 85px;
  height: 65px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.row-blog-item .content h6 {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.4;
}

.row-blog-item .content .meta {
  font-size: 11px;
  color: #888;
}

/* ---------- Category Section Cards ---------- */
.category-section {
  background: #fff;
  padding: 24px;
  border-radius: 6px;
  margin-bottom: 24px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.06);
}

.cat-featured-card {
  border-radius: 6px;
  overflow: hidden;
}

.cat-featured-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
}

.cat-featured-card h5 {
  font-size: 16px;
  font-weight: 700;
  margin-top: 10px;
  color: #1a1a1a;
  line-height: 1.4;
}

/* ---------- Video Section ---------- */
.video-section {
  background: #1a1a2e;
  padding: 30px 0;
}

.video-section .section-heading {
  color: #fff;
}

.video-section .section-heading::after {
  background: #e74c3c;
}

.video-card {
  border-radius: 6px;
  overflow: hidden;
  background: #0f0f20;
}

.video-card iframe,
.video-card .video-wrapper {
  width: 100%;
  height: 180px;
}

.video-card h6 {
  color: #eee;
  font-size: 13px;
  font-weight: 600;
  padding: 10px;
  margin: 0;
  line-height: 1.4;
}

/* ---------- Sidebar Widgets ---------- */
.sidebar-widget {
  background: #fff;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.06);
}

.sidebar-widget .widget-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 3px solid #c0392b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Category List Widget */
.cat-list-widget {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cat-list-widget li {
  border-bottom: 1px solid #f0f0f0;
}

.cat-list-widget li:last-child { border-bottom: none; }

.cat-list-widget li a {
  display: flex;
  align-items: center;
  padding: 9px 4px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  transition: color 0.2s, padding-left 0.2s;
}

.cat-list-widget li a::before {
  content: '›';
  font-size: 18px;
  color: #c0392b;
  margin-right: 8px;
  font-weight: 700;
}

.cat-list-widget li a:hover {
  color: #c0392b;
  padding-left: 8px;
}

/* Social Widget */
.social-widget-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-widget-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  transition: opacity 0.2s;
}

.social-widget-list li a:hover { opacity: 0.85; }
.social-widget-list .fb-link { background: #3b5998; }
.social-widget-list .tw-link { background: #1da1f2; }
.social-widget-list .ig-link { background: #e1306c; }
.social-widget-list .yt-link { background: #ff0000; }

/* ---------- Single Post Page ---------- */
.post-wrapper {
  background: #fff;
  border-radius: 6px;
  padding: 30px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.post-category-badge {
  display: inline-block;
  background: #c0392b;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-title {
  font-size: 26px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.4;
  margin-bottom: 14px;
}

.post-meta {
  font-size: 13px;
  color: #777;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.post-author-box {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.post-author-box img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.post-author-box .author-info .name {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
}

.post-author-box .author-info .pos {
  font-size: 12px;
  color: #777;
}

.post-share-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.post-share-btns img {
  height: 36px;
  border-radius: 4px;
}

.post-image-carousel img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
}

.post-caption {
  font-size: 12px;
  color: #777;
  text-align: center;
  padding: 8px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

.post-body {
  font-size: 18px;
  line-height: 1.8;
  color: #2c2c2c;
}

/* Comments */
.comments-section { margin-top: 30px; }

.comment-item {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 14px;
  margin-bottom: 12px;
}

.comment-item .comment-author {
  font-weight: 700;
  font-size: 14px;
  color: #1a1a2e;
}

.comment-item .comment-date {
  font-size: 12px;
  color: #888;
}

.comment-item p {
  font-size: 14px;
  margin: 6px 0 0;
  color: #444;
}

/* ---------- Category Page ---------- */
.category-hero {
  background: linear-gradient(135deg, #1a1a2e, #c0392b);
  color: #fff;
  padding: 30px 0;
  text-align: center;
  margin-bottom: 30px;
}

.category-hero h1 {
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

/* ---------- Post List (single-blog partial style override) ---------- */
.post-list-item {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.06);
  display: flex;
  gap: 0;
  transition: box-shadow 0.25s;
}

.post-list-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); }

.post-list-item img {
  width: 160px;
  height: 120px;
  object-fit: cover;
  flex-shrink: 0;
}

.post-list-item .content {
  padding: 14px;
  flex: 1;
}

.post-list-item .content h5 {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.4;
  margin-bottom: 6px;
}

.post-list-item .content .meta {
  font-size: 12px;
  color: #888;
}

@media (max-width: 576px) {
  .post-list-item { flex-direction: column; }
  .post-list-item img { width: 100%; height: 180px; }
}

/* ---------- Auth Pages ---------- */
.auth-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 40px 0;
}

.auth-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  padding: 40px;
}

.auth-card h4 {
  text-align: center;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 28px;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.auth-card .form-control {
  border-radius: 6px;
  border: 1px solid #ddd;
  padding: 10px 14px;
  font-size: 14px;
}

.auth-card .btn-primary {
  background: #c0392b;
  border-color: #c0392b;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 10px 30px;
  width: 100%;
}

.auth-card .btn-primary:hover { background: #a93226; border-color: #a93226; }

/* ---------- About / Contact / Page ---------- */
.content-page-section {
  padding: 40px 0 60px;
}

.content-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 40px;
}

.content-card h3 {
  text-align: center;
  font-weight: 700;
  color: #1a1a2e;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 3px solid #c0392b;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #1a1a2e;
  color: #ccc;
  padding: 40px 0 0;
}

.site-footer .footer-logo img {
  height: 55px;
  margin-bottom: 12px;
}

.site-footer .footer-social a {
  display: inline-block;
  color: #ccc;
  font-size: 20px;
  margin-right: 12px;
  transition: color 0.2s;
}

.site-footer .footer-social a:hover { color: #e74c3c; }

.site-footer .footer-info {
  font-size: 13px;
  line-height: 1.8;
}

.site-footer .footer-warning {
  color: #f39c12;
  font-size: 13px;
  margin-top: 6px;
}

.site-footer .footer-contact {
  font-size: 13px;
}

.site-footer .footer-contact a {
  color: #bbb;
  display: block;
  margin-bottom: 4px;
  transition: color 0.2s;
}

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

.site-footer .footer-bottom {
  background: #0f0f1a;
  text-align: center;
  padding: 14px;
  font-size: 13px;
  color: #777;
  margin-top: 30px;
}

/* ---------- Dashboard (home.blade.php) ---------- */
.dashboard-section {
  padding: 40px 0;
}

.dashboard-card {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}

/* ---------- Popup Ad Modal ---------- */
.modal-content { border-radius: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .hero-main-card img { height: 280px; }
  .post-title { font-size: 22px; }
  .post-body { font-size: 16px; }
}

@media (max-width: 767px) {
  .hero-main-card img { height: 200px; }
  .hero-main-card .overlay h3 { font-size: 16px; }
  .main-nav .scrollmenu a { font-size: 13px; padding: 12px 12px; }
  .post-title { font-size: 20px; }
  .post-wrapper { padding: 20px; }
  .auth-card { padding: 24px; }
  .content-card { padding: 24px; }
}

@media (max-width: 480px) {
  .top-bar .date-text { display: none; }
  .side-news-card img { width: 75px; height: 60px; }
  .cat-featured-card img { height: 180px; }
}


/* ---------- Partials Styling (single-blog & single-row-blog) ---------- */
/* These target the partial templates that cannot be modified */

/* single-row-blog (sidebar/tabs) image */
.sidebar-widget .row img,
.news-tabs-box .row img {
    border-radius: 4px;
}

.sidebar-widget a.text-decoration-none {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.sidebar-widget a.text-decoration-none:hover { background: #fafafa; }

.sidebar-widget h5 {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 4px;
}

.sidebar-widget span {
    font-size: 11px;
    color: #888;
}

/* single-blog in category listing */
.text-center.mb-4 {
    background: #fff;
    border-radius: 6px;
    padding: 12px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.06);
    transition: box-shadow 0.25s;
}

.text-center.mb-4:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.text-center.mb-4 h4 {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.4;
}

.text-center.mb-4 img {
    border-radius: 4px;
}
