/*
Theme Name: News Theme
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: Lightweight, SEO-first news theme optimized for cricket and general news content
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: news-theme
Domain Path: /languages
Requires at least: 5.9
Requires PHP: 7.4
*/

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.1rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

a {
  color: #ff6b35;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #ff5520;
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header Styles */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-branding h1 {
  margin: 0;
  font-size: 1.5rem;
  color: #1a1a1a;
}

.site-branding a {
  color: #1a1a1a;
  text-decoration: none;
}

.site-branding a:hover {
  color: #ff6b35;
}

/* Main Navigation */
.main-navigation {
  display: flex;
  list-style: none;
  gap: 2rem;
  flex-wrap: wrap;
}

.main-navigation a {
  color: #333;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: #ff6b35;
  border-bottom-color: #ff6b35;
  text-decoration: none;
}

/* Search Bar */
.search-form {
  width: 100%;
  max-width: 300px;
  display: flex;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
  font-size: 1rem;
  background: #fff;
}

.search-form button {
  padding: 0.5rem 1.5rem;
  background: #ff6b35;
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s ease;
}

.search-form button:hover {
  background: #ff5520;
}

/* Container */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-wide {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

/* Main Content */
.main-content {
  background: #fff;
  min-height: 60vh;
}

/* Posts Feed / Index */
.posts-feed {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem 0;
}

/* 2-COLUMN GRID FOR BLOG POST LISTING */
.posts-grid-2col {
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.post-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: #ff6b35;
}

.post-card-image {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: #f0f0f0;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card:hover .post-card-image img {
  transform: scale(1.05);
}

.post-card-content {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-category {
  display: inline-block;
  background: #ff6b35;
  color: white;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  width: fit-content;
  text-decoration: none;
}

.post-card-category:hover {
  background: #ff5520;
}

.post-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  color: #1a1a1a;
}

.post-card-title a {
  color: #1a1a1a;
  text-decoration: none;
}

.post-card-title a:hover {
  color: #ff6b35;
  text-decoration: none;
}

.post-card-excerpt {
  color: #666;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #999;
  border-top: 1px solid #f0f0f0;
  padding-top: 0.75rem;
}

.post-card-date {
  color: #999;
}

.post-card-author {
  color: #999;
}

/* Article Page */
.single-article {
  background: white;
  padding: 2rem 0;
}

.article-header {
  margin-bottom: 2rem;
}

.article-category {
  display: inline-block;
  background: #ff6b35;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.article-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: #1a1a1a;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 1.5rem;
}

.article-author {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.article-author strong {
  color: #1a1a1a;
}

.article-date {
  color: #999;
}

.article-featured-image {
  width: 100%;
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #333;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content h2,
.article-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-content img {
  max-width: 100%;
  height: auto;
  margin: 2rem 0;
  border-radius: 8px;
}

.article-content blockquote {
  border-left: 4px solid #ff6b35;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #666;
}

.article-content ul,
.article-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  color: #333;
}

/* Gutenberg Blocks Support */
.wp-block-image {
  margin: 2rem 0;
}

.wp-block-image img {
  border-radius: 8px;
}

.wp-block-quote {
  border-left: 4px solid #ff6b35;
  padding-left: 1.5rem;
  margin: 2rem 0;
  color: #666;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #ff6b35;
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 500;
}

.pagination a:hover {
  background: #ff6b35;
  color: white;
  border-color: #ff6b35;
  text-decoration: none;
}

.pagination .current {
  background: #ff6b35;
  color: white;
  border-color: #ff6b35;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 2rem;
  padding: 1rem 0;
}

.breadcrumbs a {
  color: #ff6b35;
}

.breadcrumbs a:hover {
  text-decoration: underline;
  color: #ff5520;
}

.breadcrumbs span {
  margin: 0 0.5rem;
  color: #999;
}

/* Footer */
.site-footer {
  background: #1a1a1a;
  color: #fff;
  padding: 3rem 0 1rem;
  margin-top: 3rem;
  border-top: 1px solid #333;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  text-align: left;
}

.footer-widget {
  color: #ccc;
}

.footer-widget h3 {
  color: white;
  margin-bottom: 1rem;
}

.footer-widget ul {
  list-style: none;
}

.footer-widget li {
  margin-bottom: 0.5rem;
}

.footer-widget a {
  color: #888;
  transition: color 0.2s ease;
}

.footer-widget a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 2rem;
  text-align: center;
  color: #999;
  font-size: 0.9rem;
}

/* 404 Page */
.error-404 {
  text-align: center;
  padding: 4rem 0;
}

.error-404 h1 {
  font-size: 4rem;
  color: #ff6b35;
  margin-bottom: 1rem;
}

.error-404 p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #666;
}

.error-404 a {
  display: inline-block;
  background: #ff6b35;
  color: white;
  padding: 1rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.2s ease;
  text-decoration: none;
}

.error-404 a:hover {
  background: #ff5520;
  text-decoration: none;
}

/* Search Page */
.search-page-title {
  margin-bottom: 2rem;
}

.no-posts-found {
  text-align: center;
  padding: 3rem;
  background: #f9f9f9;
  border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .article-title {
    font-size: 1.75rem;
  }

  .header-content {
    flex-direction: column;
    gap: 0.75rem;
  }

  .main-navigation {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .search-form {
    max-width: 100%;
  }

  .posts-feed {
    gap: 1rem;
  }

  .posts-grid-2col {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .post-card-image {
    height: 140px;
  }

  .article-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-widgets {
    grid-template-columns: 1fr;
  }

  .pagination {
    gap: 0.25rem;
  }

  .pagination a,
  .pagination span {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }

  .error-404 h1 {
    font-size: 2.5rem;
  }

  /* Homepage portal responsive */
  .homepage-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .featured-article-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .featured-image-wrapper {
    min-height: 200px;
  }

  .featured-content {
    padding: 1rem;
  }

  .featured-title {
    font-size: 1.3rem;
  }

  .news-grid-2col {
    grid-template-columns: 1fr;
  }

  .card-image {
    height: 140px;
  }
}

@media (max-width: 480px) {
  .site-branding h1 {
    font-size: 1.25rem;
  }

  .main-navigation {
    gap: 0.75rem;
    font-size: 0.85rem;
  }

  .post-card-content {
    padding: 1rem;
  }

  .article-content {
    font-size: 1rem;
  }

  .error-404 h1 {
    font-size: 2rem;
  }
}

/* Print Styles */
@media print {
  .site-header,
  .site-footer,
  .pagination,
  .breadcrumbs {
    display: none;
  }

  body {
    background: white;
  }

  a {
    color: #ff6b35;
  }
}

/* Skip to content link (accessibility) */
.skip-to-main {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-to-main:focus {
  top: 0;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 0.35rem;
  z-index: 101;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: #1a1a1a;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .primary-navigation {
    display: none;
  }

  .primary-navigation.mobile-active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
  }

  .primary-navigation.mobile-active .main-navigation {
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
  }

  .primary-navigation.mobile-active .main-navigation li {
    border-bottom: 1px solid #f0f0f0;
  }

  .primary-navigation.mobile-active .main-navigation a {
    display: block;
    padding: 1rem 1.5rem;
  }

  .header-content {
    max-width: 100%;
  }

  .search-form {
    order: 3;
    flex-basis: 100%;
    margin-top: 1rem;
  }
}

/* Share Buttons */
.article-tags,
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0e0e0;
}

.article-tags .tag,
.share-buttons a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #f5f5f5;
  color: #ff6b35;
  border-radius: 20px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid #e0e0e0;
}

.article-tags .tag:hover,
.share-buttons a:hover {
  background: #ff6b35;
  color: white;
  border-color: #ff6b35;
  text-decoration: none;
}

/* Reading Progress Bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: #ff6b35;
  z-index: 1000;
  transition: width 0.1s ease;
}

/* Related Posts Section */
.related-posts {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 2px solid #e0e0e0;
}

.related-posts h2 {
  margin-bottom: 2rem;
  font-size: 1.75rem;
}

/* Comments Area */
.comments-area {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #e0e0e0;
}

.comments-title {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #1a1a1a;
}

.comment-list {
  list-style: none;
  margin: 0 0 2rem 0;
}

.comment-list li {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f9f9f9;
  border-radius: 8px;
}

.comment-list li li {
  margin-left: 1rem;
  margin-top: 1rem;
}

.comment-author {
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.comment-meta {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 1rem;
}

.comment-content {
  color: #333;
  line-height: 1.6;
}

.comment-form {
  margin-top: 2rem;
  padding: 2rem;
  background: #f9f9f9;
  border-radius: 8px;
}

.comment-form p {
  margin-bottom: 1rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}

.comment-form textarea {
  resize: vertical;
  min-height: 150px;
}

.comment-form input[type="submit"] {
  background: #ff6b35;
  color: white;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease;
}

.comment-form input[type="submit"]:hover {
  background: #ff5520;
}

.comment-notes {
  background: #f0f8ff;
  padding: 1rem;
  border-radius: 4px;
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.required {
  color: #e74c3c;
}

/* Category Page Specific */
.category-header {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e0e0e0;
}

.category-description {
  color: #666;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-top: 1rem;
}

/* Search Form Container */
.search-form-container {
  margin: 2rem 0;
}

/* Read More Button */
.button {
  display: inline-block;
  padding: 1rem 2rem;
  background: #ff6b35;
  color: white;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.button:hover {
  background: #ff5520;
  text-decoration: none;
}

.button:focus {
  outline: 2px solid #ff6b35;
  outline-offset: 2px;
}

/* No Posts Found */
.no-posts-found a.button {
  margin-top: 1rem;
}

/* Suggestions for 404 */
.suggestions-wrapper {
  margin: 2rem 0;
}

.suggestions-wrapper h2,
.suggestions-wrapper h3 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.suggestions-wrapper ul {
  list-style: none;
  padding: 0;
}

.suggestions-wrapper li {
  margin-bottom: 0.75rem;
}

.suggestions-wrapper a {
  color: #ff6b35;
  text-decoration: none;
}

.suggestions-wrapper a:hover {
  text-decoration: underline;
}

/* Highlighted Search Terms */
mark {
  background: #fff3cd;
  padding: 0.2rem 0.4rem;
  border-radius: 2px;
  color: inherit;
}

/* External Links */
.external-link::after {
  content: ' ↗';
  font-size: 0.85em;
}

/* ============================================
   CRICKET ADDICTOR-STYLE DESIGN
   ============================================ */

* {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
}

.homepage-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
  background: #f8f9fa;
}

/* HERO FEATURED ARTICLE */
.hero-featured {
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hero-image {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.95;
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0.6) 40%, transparent);
  padding: 4rem 2.5rem 2.5rem;
  color: white;
  z-index: 2;
  min-height: 40%;
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
}

.hero-category {
  display: inline-block;
  background: #ff6b35;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-title a {
  color: white;
  text-decoration: none;
}

.hero-title a:hover {
  text-decoration: underline;
}

.hero-excerpt {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.95);
  margin-bottom: 1.2rem;
  max-width: 650px;
}

.hero-meta {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  font-weight: 500;
}

/* HOMEPAGE GRID */
.homepage-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 2.5rem;
  padding: 0 1.5rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
  background: #f8f9fa;
}

.homepage-main {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* SECTION HEADERS */
.section-header-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.8rem;
  padding-bottom: 1.2rem;
  border-bottom: 3px solid #ff6b35;
}

.section-header-line h2 {
  font-size: 1.6rem;
  margin: 0;
  color: #1a1a1a;
  font-weight: 800;
  letter-spacing: -0.5px;
}

/* FEATURED ARTICLE WIDE */
.featured-article-wide {
  background: white;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.featured-article-wide:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.article-row {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 2rem;
}

.article-image {
  width: 100%;
  height: 100%;
  min-height: 280px;
  overflow: hidden;
  border-radius: 0;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-article-wide:hover .article-image img {
  transform: scale(1.05);
}

.article-text {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-cat-tag {
  display: inline-block;
  background: #fff3cd;
  color: #d39e00;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
  width: fit-content;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.article-cat-tag:hover {
  background: #d39e00;
  color: white;
}

.article-title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.article-title a {
  color: #1a1a1a;
  text-decoration: none;
}

.article-title a:hover {
  color: #ff6b35;
}

.article-desc {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 1.2rem;
}

.article-meta-line {
  display: flex;
  gap: 1.8rem;
  font-size: 0.85rem;
  color: #999;
  font-weight: 500;
}

/* MORE ARTICLES GRID (3 COLUMNS) */
.articles-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
}

.article-card-grid {
  background: white;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-card-grid:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.13);
  transform: translateY(-4px);
}

.card-image-grid {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(180deg, #f0f0f0 0%, #e8e8e8 100%);
  position: relative;
}

.card-image-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card-grid:hover .card-image-grid img {
  transform: scale(1.08);
}

.small-cat-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ff6b35;
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0;
  width: fit-content;
  text-decoration: none;
  letter-spacing: 0.5px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.small-cat-tag:hover {
  background: #cc5426;
  color: white;
}

.card-content-grid {
  padding: 1.8rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.grid-title {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.4;
  margin: 0 0 0.8rem 0;
  flex-grow: 1;
  transition: color 0.3s ease;
}

.grid-title a {
  color: #1a1a1a;
  text-decoration: none;
}

.grid-title a:hover {
  color: #ff6b35;
}

.grid-meta-line {
  font-size: 0.8rem;
  color: #999;
  font-weight: 500;
  border-top: 1px solid #f0f0f0;
  padding-top: 1rem;
}

/* RIGHT SIDEBAR */
.homepage-sidebar-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-box {
  background: white;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.sidebar-box:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.box-header {
  background: linear-gradient(135deg, #ff6b35 0%, #ff5520 100%);
  padding: 1.2rem 1.5rem;
  border-bottom: none;
}

.box-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0;
  color: white;
  letter-spacing: -0.5px;
}

/* TRENDING WIDGET */
.trending-numbered-list {
  padding: 0;
}

.trending-item-numbered {
  display: flex;
  gap: 1.2rem;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid #f5f5f5;
  align-items: flex-start;
  transition: background-color 0.2s ease;
}

.trending-item-numbered:last-child {
  border-bottom: none;
}

.trending-item-numbered:hover {
  background-color: #fafafa;
}

.trend-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #ff6b35 0%, #ff5520 100%);
  color: white;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.trend-content h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 0.4rem 0;
  line-height: 1.4;
  color: #1a1a1a;
}

.trend-content a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.trend-content a:hover {
  color: #ff6b35;
}

.trend-date {
  font-size: 0.75rem;
  color: #999;
  display: block;
  font-weight: 500;
}

/* SERIES WIDGET */
.series-items {
  padding: 0;
}

.series-item {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid #f5f5f5;
  transition: background-color 0.2s ease;
}

.series-item:last-child {
  border-bottom: none;
}

.series-item:hover {
  background-color: #fafafa;
}

.series-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.4rem 0;
  color: #1a1a1a;
  text-decoration: none;
}

.series-status {
  font-size: 0.7rem;
  color: white;
  background: linear-gradient(135deg, #ff6b35 0%, #ff5520 100%);
  font-weight: 800;
  margin: 0;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  display: inline-block;
  letter-spacing: 0.5px;
}

/* RANKINGS WIDGET */
.rankings-tabs-widget {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
}

.ranking-tab-widget {
  flex: 1;
  background: white;
  border: 1px solid #e8e8e8;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  color: #999;
  font-size: 0.75rem;
  text-transform: uppercase;
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
}

.ranking-tab-widget.active {
  background: linear-gradient(135deg, #ff6b35 0%, #ff5520 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
}

.ranking-tab-widget:hover {
  border-color: #ff6b35;
  color: #ff6b35;
}

.ranking-tab-widget.active:hover {
  background: linear-gradient(135deg, #ff5520 0%, #ff4410 100%);
}

.rankings-table-widget {
  padding: 1.2rem 1.5rem;
}

.rank-head {
  display: grid;
  grid-template-columns: 0.4fr 1fr 0.6fr;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #999;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f0f0f0;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.rank-row {
  display: grid;
  grid-template-columns: 0.4fr 1fr 0.6fr;
  gap: 0.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 0.9rem;
  align-items: center;
}

.rank-row:last-child {
  border-bottom: none;
}

.rank-col {
  color: #1a1a1a;
  font-weight: 500;
}

/* TEAMS WIDGET */
.teams-box .box-header {
  padding: 1.2rem 1.5rem;
}

.teams-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  padding: 1.5rem;
}

.team-card-badge {
  background: linear-gradient(135deg, #ff6b35 0%, #ff5520 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.15);
}

.team-card-badge:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.25);
}

.team-flag {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
  display: block;
}

.team-name {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.3px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  .homepage-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .article-row {
    grid-template-columns: 300px 1fr;
  }

  .articles-grid-3col {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-featured {
    height: 300px;
  }

  .hero-overlay {
    padding: 2rem 1.5rem 1rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .homepage-grid {
    padding: 0 1rem;
  }

  .hero-featured {
    height: 250px;
    margin-bottom: 1.5rem;
  }

  .hero-overlay {
    padding: 1.5rem 1rem 1rem;
  }

  .hero-title {
    font-size: 1.25rem;
  }

  .hero-excerpt {
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .article-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .article-image {
    min-height: 200px;
  }

  .article-text {
    padding: 1rem;
  }

  .article-title {
    font-size: 1.1rem;
  }

  .article-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .articles-grid-3col {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .card-image-grid {
    height: 140px;
  }

  .section-header-line h2 {
    font-size: 1.25rem;
  }

  .teams-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding: 1rem;
  }

  .team-card-badge {
    padding: 0.75rem 0.5rem;
  }

  .team-flag {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
  }

  .team-name {
    font-size: 0.75rem;
  }

  .trending-item-numbered {
    padding: 0.6rem 0.75rem;
  }

  .series-item {
    padding: 0.6rem 0;
  }
}

/* MAIN CONTENT AREA */
.homepage-main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* FEATURED ARTICLE CARD */
.featured-article-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

.featured-article-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.featured-image-wrapper {
  height: 100%;
  min-height: 280px;
  overflow: hidden;
}

.featured-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.featured-category {
  display: inline-block;
  background: #ff6b35;
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
  width: fit-content;
  text-decoration: none;
}

.featured-category:hover {
  background: #ff5520;
}

.featured-title {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.featured-title a {
  color: #1a1a1a;
  text-decoration: none;
}

.featured-title a:hover {
  color: #ff6b35;
}

.featured-excerpt {
  font-size: 1rem;
  line-height: 1.7;
  color: #666;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.featured-meta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #999;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
}

.meta-author a,
.read-more {
  color: #ff6b35;
  text-decoration: none;
  font-weight: 500;
}

.meta-author a:hover,
.read-more:hover {
  text-decoration: underline;
}

/* NEWS SECTION HEADER */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 2px solid #ff6b35;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-size: 1.5rem;
  margin: 0;
  color: #1a1a1a;
}

/* 2-COLUMN NEWS GRID */
.news-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* COMPACT NEWS CARD */
.news-card-compact {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-card-compact:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #ff6b35;
}

.card-image {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: #f0f0f0;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card-compact:hover .card-image img {
  transform: scale(1.05);
}

.card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-category {
  display: inline-block;
  background: #f0f0f0;
  color: #ff6b35;
  padding: 0.3rem 0.6rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  width: fit-content;
  text-decoration: none;
}

.card-category:hover {
  background: #ff6b35;
  color: white;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0.5rem 0;
  flex-grow: 1;
}

.card-title a {
  color: #1a1a1a;
  text-decoration: none;
}

.card-title a:hover {
  color: #ff6b35;
}

.card-meta-compact {
  font-size: 0.8rem;
  color: #999;
  margin-top: auto;
}

/* PAGINATION WRAPPER */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0e0e0;
}

/* ============================================
   SIDEBAR LAYOUT
   ============================================ */

.homepage-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-widget {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  color: #1a1a1a;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #ff6b35;
}

/* TRENDING WIDGET */
.trending-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.trending-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
  counter-increment: trending-counter;
  position: relative;
  padding-left: 1.5rem;
}

.trending-item:last-child {
  border-bottom: none;
}

.trending-item::before {
  content: counter(trending-counter);
  position: absolute;
  left: 0;
  font-weight: 700;
  color: #ff6b35;
  font-size: 0.9rem;
}

.trending-item h4 {
  font-size: 0.9rem;
  margin: 0 0 0.3rem 0;
  line-height: 1.4;
}

.trending-item h4 a {
  color: #1a1a1a;
  text-decoration: none;
}

.trending-item h4 a:hover {
  color: #ff6b35;
}

.trending-date {
  font-size: 0.75rem;
  color: #999;
}

/* SERIES WIDGET */
.series-widget {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border: none;
}

.series-widget .widget-title {
  color: #1a1a1a;
  border-color: #ff6b35;
}

/* RANKINGS WIDGET */
.ranking-tab {
  background: #f0f0f0;
  border: none;
  padding: 0.5rem 1rem;
  margin-right: 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  color: #666;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.ranking-tab.active {
  background: #ff6b35;
  color: white;
}

.ranking-tab:hover {
  background: #ff5520;
  color: white;
}

.rankings-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.rankings-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* STATS WIDGET */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-item {
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 6px;
  text-align: center;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ff6b35;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.75rem;
  color: #999;
  text-transform: uppercase;
  font-weight: 600;
}

/* ============================================
   RESPONSIVE DESIGN - TABLET
   ============================================ */

@media (max-width: 1024px) {
  .homepage-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .featured-article-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .featured-image-wrapper {
    min-height: 220px;
  }

  .news-grid-2col {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .featured-content {
    padding: 1.5rem;
  }

  .featured-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE
   ============================================ */

@media (max-width: 768px) {
  .homepage-wrapper {
    padding: 1rem;
  }

  .news-grid-2col {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .featured-article-card {
    gap: 1rem;
  }

  .featured-content {
    padding: 1rem;
  }

  .featured-image-wrapper {
    min-height: 180px;
  }

  .featured-title {
    font-size: 1.3rem;
  }

  .featured-excerpt {
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .featured-meta {
    gap: 1rem;
    font-size: 0.8rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .card-image {
    height: 140px;
  }

  .card-body {
    padding: 0.75rem;
  }

  .card-title {
    font-size: 0.9rem;
  }

  .homepage-sidebar {
    gap: 1rem;
  }

  .sidebar-widget {
    padding: 1rem;
  }

  .widget-title {
    font-size: 1rem;
  }

  .trending-item {
    padding: 0.5rem 0 0.5rem 1.25rem;
  }

  .trending-item h4 {
    font-size: 0.85rem;
  }

  .ranking-tab {
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }
}
