/* Custom CSS for Tahseen Ashrafi News Theme */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

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

/* NO HOVER EFFECTS REGULAR LINKS OR CARDS ACCORDING TO USER REQUIREMENTS */
a:hover,
a:focus,
.post-card:hover,
.widget-card:hover {
  text-decoration: none;
  color: inherit;
  transform: none;
  box-shadow: none;
}

/* EXCEPTION: Post content body links show as proper links */
.entry-content a,
.post-content a {
  color: var(--link-color);
  text-decoration: underline;
}
.entry-content a:hover,
.post-content a:hover {
  color: var(--link-hover-color);
  text-decoration: underline;
}

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

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 15px;
}

/* TOP BAR */
.top-bar {
  background-color: #000000;
  color: #ffffff;
  font-size: 12px;
  padding: 4px 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-date {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #d1d5db;
  font-weight: 500;
}

.top-social-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
}
.social-icon-btn.youtube { background-color: #ff0000; }
.social-icon-btn.instagram { background-color: #e1306c; }
.social-icon-btn.twitter { background-color: #000000; }
.social-icon-btn.linkedin { background-color: #0077b5; }
.social-icon-btn.facebook { background-color: #1877f2; }

/* MAIN HEADER */
.site-header {
  background-color: var(--secondary-color);
  color: #ffffff;
  position: relative;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

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

.site-title {
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.site-title a {
  color: #ffffff;
}

.primary-menu-wrapper {
  display: flex;
  align-items: center;
}

.primary-menu {
  display: flex;
  list-style: none;
  gap: 20px;
}

.primary-menu li a {
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  padding: 8px 0;
  position: relative;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.menu-toggle-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

/* TRENDING BAR */
.trending-bar {
  background-color: #f1f3f5;
  border-bottom: 1px solid var(--border-color);
  padding: 8px 0;
  font-size: 13px;
  overflow: hidden;
}

.trending-inner {
  display: flex;
  align-items: center;
  gap: 15px;
}

.trending-badge {
  background-color: var(--primary-color);
  color: #ffffff;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  text-transform: uppercase;
  font-size: 11px;
  white-space: nowrap;
  z-index: 2;
}

.trending-marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
}

.trending-marquee-content {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: marquee-scroll 15s linear infinite;
}

.trending-marquee-content:hover {
  animation-play-state: paused;
}

.trending-link {
  font-weight: 600;
  color: var(--text-color);
  transition: color 0.2s ease;
}

.trending-link:hover {
  color: var(--primary-color);
}

.trending-separator {
  margin: 0 12px;
  color: var(--primary-color);
  font-weight: 700;
}

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

/* MAIN CONTENT & LAYOUT */
.main-content-area {
  padding: 30px 0;
}

.site-main-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
}

.site-main-grid.no-sidebar {
  grid-template-columns: 1fr;
}

/* WIDGET SECTION HEADERS & VIEW ALL BUTTON */
.widget-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 8px;
  position: relative;
}

.widget-section-title {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  color: var(--secondary-color);
}

.widget-section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

.widget-view-all-btn {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.category-badge {
  display: inline-block;
  background-color: var(--primary-color);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* WIDGET 1: FEATURED NEWS WITH SIDEBAR (58% / 42%) */
.widget-featured-sidebar-container {
  display: grid;
  grid-template-columns: 58% 40%;
  gap: 2%;
  margin-bottom: 35px;
}

.featured-main-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;

}

.featured-main-thumb {
  max-height: 320px;
  overflow: hidden;
}

.featured-main-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-main-body {
  padding: 18px;
}

.featured-main-headline {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
  margin: 6px 0;
}

.vertical-post-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vertical-post-item {
  display: flex;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
}

.vertical-post-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.vertical-post-thumb {
  width: 95px;
  height: 75px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background-color: #f0f0f0;
}

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

.vertical-post-headline {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

/* WIDGET 2: BIG IMAGE LEFT (45% / 55%) */
.big-image-left-container {
  display: grid;
  grid-template-columns: 45% 53%;
  gap: 2%;
  margin-bottom: 35px;
}

.big-left-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;

}

.big-left-thumb {
  height: 280px;
  overflow: hidden;
}

.big-left-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.big-left-body {
  padding: 18px;
}

.big-left-headline {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
  margin: 6px 0;
}

.small-news-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.small-grid-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;

}

.small-grid-thumb {
  height: 110px;
  overflow: hidden;
}

.small-grid-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.small-grid-body {
  padding: 10px;
}

.small-grid-headline {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

/* WIDGET 3: CATEGORY GRID (4-COLUMN) */
.category-grid-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 35px;
}

.cat-grid-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cat-grid-thumb {
  height: 150px;
  overflow: hidden;
}

.cat-grid-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-grid-body {
  padding: 14px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.cat-grid-headline {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 4px;
}

/* WIDGET 4: FEATURED GRID */
.featured-grid-layout-container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  margin-bottom: 35px;
}

.feat-grid-main-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;

}

.feat-grid-main-thumb {
  height: 260px;
  overflow: hidden;
}

.feat-grid-main-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feat-grid-main-body {
  padding: 16px;
}

.feat-grid-main-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  margin: 6px 0;
}

.sub-post-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.sub-grid-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
}

.sub-grid-thumb {
  height: 100px;
  overflow: hidden;
}

.sub-grid-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sub-grid-body {
  padding: 10px;
}

.sub-grid-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

/* WIDGET 5: GRID + LIST WIDGET */
.grid-list-widget-container {
  margin-bottom: 35px;
}

.grid-top-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 25px;
}

.top-grid-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
}

.top-grid-thumb {
  height: 140px;
  overflow: hidden;
}

.top-grid-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-grid-body {
  padding: 12px;
}

.top-grid-headline {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;

}

.list-bottom-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bottom-list-card {
  display: flex;
  gap: 12px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 10px;
  border-radius: 6px;
  align-items: center;
}

.bottom-list-thumb {
  width: 80px;
  height: 65px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
}

.bottom-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bottom-list-headline {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

/* WIDGET 6: HORIZONTAL LIST WIDGET (3-COLUMN) */
.horizontal-list-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 35px;
}

.horiz-list-card {
  display: flex;
  gap: 12px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: 6px;
  align-items: center;
}

.horiz-list-thumb {
  width: 75px;
  height: 75px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
}

.horiz-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.horiz-list-body {
  flex-grow: 1;
}

.horiz-list-headline {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

/* POST META */
.post-meta-items {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--meta-color);
  margin-top: 6px;
}

.meta-author-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
}

.post-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 3-COLUMN GRID DEFAULT WIDGET LAYOUT */
.post-grid-3-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.grid-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.grid-card-thumb {
  height: 160px;
  overflow: hidden;
}

.grid-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.grid-card-body {
  padding: 15px;
}

.grid-card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 5px;
}

/* SIDEBAR WIDGETS */
.sidebar-area {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.widget {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: 6px;
}

.widget-title {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-color);
}

/* SOCIAL WIDGET */
.social-widget-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-widget-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  border-radius: 4px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

.social-widget-item.youtube { background-color: #ff0000; }
.social-widget-item.instagram { background-color: #e1306c; }
.social-widget-item.twitter { background-color: #000000; }
.social-widget-item.linkedin { background-color: #0077b5; }
.social-widget-item.facebook { background-color: #1877f2; }

/* SINGLE POST TEMPLATE */
.single-post-article {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 30px;
  border-radius: 6px;
  margin-bottom: 30px;
}

.single-post-header {
  margin-bottom: 20px;
}

.single-post-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
  margin: 10px 0;
}

.single-featured-image {
  margin-bottom: 25px;
  border-radius: 6px;
  overflow: hidden;
}

.entry-content {
  font-size: 16px;
  line-height: 1.8;
  color: #333333;
}

.entry-content p {
  margin-bottom: 20px;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin: 25px 0 15px;
  font-weight: 700;
}

/* AUTHOR BOX BELOW POST */
.author-box {
  display: flex;
  gap: 20px;
  background-color: #f8f9fa;
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: 6px;
  margin: 30px 0;
  align-items: center;
}

.author-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.author-details h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}

.author-bio {
  font-size: 14px;
  color: var(--meta-color);
}

/* COMMENTS & LEAVE A REPLY */
.comments-area {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 30px;
  border-radius: 6px;
}

.comments-title,
.comment-reply-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 8px;
  display: inline-block;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.comment-form-author,
.comment-form-email,
.comment-form-url,
.comment-form-comment {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.comment-form label {
  font-weight: 600;
  font-size: 14px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
}

.form-submit input[type="submit"] {
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
}

/* BACK TO TOP BUTTON */
.back-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.back-to-top-btn.is-visible {
  display: flex;
}

/* FOOTER */
.site-footer {
  background-color: #0d0d0d;
  color: #ffffff;
  padding-top: 50px;
  margin-top: 50px;
}

.footer-columns-4 {
  display: grid;
  grid-template-columns: 260px 1.2fr 1.4fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.footer-col-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Column 1: White Rounded Box Container for Footer Logo */
.footer-logo-container {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-height: 120px;

}

.footer-logo-link {
  display: inline-block;
}

.footer-logo-img {
  max-height: 60px;
  width: auto;
  display: block;
}

.footer-site-title {
  font-size: 20px;
  font-weight: 800;
  color: #111111;
  text-transform: uppercase;
}

/* Column 2: About Us */
.footer-about-text {
  font-size: 13px;
  color: #aaaaaa;
  line-height: 1.7;
}

/* Column 3: Quick Links + Legal (Side by side) */
.footer-col-links-legal {
  display: flex;
  gap: 30px;
}

.footer-nav-group {
  flex: 1;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
}

.footer-links-list li a {
  color: #cccccc;
  font-size: 13px;

}

.footer-links-list li a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Column 4: Follow Us (Stacked Buttons) */
.footer-social-stacked {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-btn-stacked {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 6px;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;

}

.social-btn-stacked:hover {
  opacity: 0.9;
  color: #ffffff;
}

.social-btn-stacked.facebook {
  background-color: #1877f2;
}

.social-btn-stacked.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-btn-stacked.youtube {
  background-color: #ff0000;
}

.social-btn-stacked.twitter {
  background-color: #000000;
  border: 1px solid #333333;
}

/* Footer Bottom Bar */
.site-footer-bottom {
  background-color: #050505;
  padding: 18px 0;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #aaaaaa;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.copyright-text {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.back-to-top-footer-btn {
  background-color: var(--primary-color, #e50914);
  color: #ffffff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;

}

.back-to-top-footer-btn:hover {
  background-color: #b00610;
}

.heart-icon {
  color: #e50914;
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 991px) {
  .site-main-grid {
    grid-template-columns: 1fr;
  }
  .widget-featured-sidebar-container,
  .big-image-left-container,
  .featured-grid-layout-container {
    grid-template-columns: 1fr;
  }
  .category-grid-4col,
  .grid-top-4col {
    grid-template-columns: repeat(2, 1fr);
  }
  .horizontal-list-grid-3col,
  .list-bottom-3col {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-columns-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .primary-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--secondary-color);
    padding: 15px;
  }

  .primary-menu.is-active {
    display: flex;
  }

  .menu-toggle-btn {
    display: block;
  }

  .post-grid-3-col,
  .category-grid-4col,
  .grid-top-4col,
  .horizontal-list-grid-3col,
  .list-bottom-3col,
  .small-news-grid-2col,
  .sub-post-grid-2col,
  .footer-columns-4 {
    grid-template-columns: 1fr;
  }

  .footer-col-links-legal {
    flex-direction: column;
    gap: 20px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .vertical-post-item,
  .horiz-list-card,
  .bottom-list-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .vertical-post-thumb,
  .horiz-list-thumb,
  .bottom-list-thumb {
    width: 100%;
    height: 200px;
  }

  .grid-card-thumb,
  .cat-grid-thumb,
  .top-grid-thumb,
  .featured-main-thumb,
  .big-left-thumb,
  .feat-grid-main-thumb {
    height: 220px;
  }
}
