* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background-color: #1a1a1a;
    color: white;
    padding: 12px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.logo-highlight {
    color: #e53e3e;
}

.nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #e53e3e;
}

.get-the-app {
    background-color: #e53e3e;
    padding: 8px 16px !important;
    border-radius: 4px;
    color: white !important;
}

/* Sub Navigation */
.sub-nav {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 12px 0;
}

.sub-nav-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nba-logo {
    font-size: 24px;
}

.sub-nav-links {
    display: flex;
    gap: 30px;
}

.sub-nav-link {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 0;
    transition: color 0.3s;
}

.sub-nav-link:hover,
.sub-nav-link.active {
    color: #e53e3e;
}

/* Main Content */
.main {
    padding: 30px 0;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumb a {
    color: #e53e3e;
    text-decoration: none;
}

.separator {
    margin: 0 8px;
    color: #666;
}

.page-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #1a1a1a;
}

/* Featured Article */
.featured-article {
    margin-bottom: 40px;
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.featured-image img {
    width: 100%;
    height: auto;
    /*object-fit: cover;*/
    border-radius: 8px;
}

.article-category {
    color: #e53e3e;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-title {
    font-size: 36px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 15px;
}

.featured-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.featured-title a:hover {
    color: #e53e3e;
}

.article-meta {
    color: #666;
    font-size: 14px;
}

.author {
    font-weight: 500;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.article-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.article-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 20px;
}

.article-title {
    font-size: 18px;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 10px;
}

.article-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.article-title a:hover {
    color: #e53e3e;
}

/* Article Page Styles */
.article-page .main {
    padding: 20px 0;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-top: 20px;
}

.article-header {
    margin-bottom: 30px;
}

.article-title {
    font-size: 42px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.article-excerpt {
    font-size: 18px;
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.5;
}

.article-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.article-author-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.author-name {
    color: #e53e3e;
    text-decoration: none;
    font-weight: 500;
}

.publish-date {
    color: #666;
}

.article-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 8px 16px;
    border: 1px solid #e9ecef;
    background: white;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.subscribe-btn:hover {
    background-color: #e53e3e;
    color: white;
    border-color: #e53e3e;
}

.follow-btn:hover {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.article-featured-image {
    margin: 30px 0;
}

.article-featured-image img {
    width: 100%;
    /*object-fit: cover;*/
    border-radius: 8px;
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content a {
    color: #000;
    text-decoration: underline;
}

.article-content img {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
}


.article-content figure {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
}


/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.sidebar-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-indicator {
    color: #e53e3e;
    font-size: 12px;
}

.recent-articles {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recent-article {
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.recent-article:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 5px;
}

.recent-title a {
    color: #333;
    text-decoration: none;
}

.recent-title a:hover {
    color: #e53e3e;
}

.recent-time {
    font-size: 12px;
    color: #666;
	display:none;
}

/* Ad Spaces */
.ad-space {
    margin: 30px 0;
    display: flex;
    justify-content: center;
}

.ad-placeholder {
    background: #f5f5f5;
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.large-banner .ad-placeholder {
    width: 800px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.medium-banner .ad-placeholder {
    width: 320px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-ad .ad-placeholder {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 60px;
}

/* Responsive Design */
@media (max-width: 768px) {

     .article-layout {
        display: block; /* instead of grid */
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .sub-nav-content {
        flex-direction: column;
        gap: 15px;
    }

    .sub-nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .featured-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .featured-title {
        font-size: 28px;
    }

    .page-title {
        font-size: 36px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .article-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .article-title {
        font-size: 32px;
    }

    .article-meta-bar {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .large-banner .ad-placeholder {
        width: 320px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .featured-title {
        font-size: 24px;
    }

    .page-title {
        font-size: 28px;
    }

    .article-title {
        font-size: 24px;
    }
}

/* Pagination styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 10px 16px;
    background-color: #e53e3e;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.pagination-btn:hover {
    background-color: #c53030;
}

.pagination-numbers {
    display: flex;
    gap: 5px;
    align-items: center;
}

.pagination-number {
    padding: 8px 12px;
    background-color: white;
    color: #333;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.pagination-number:hover {
    background-color: #f8f9fa;
    border-color: #e53e3e;
}

.pagination-number.active {
    background-color: #e53e3e;
    color: white;
    border-color: #e53e3e;
}

.pagination-dots {
    padding: 8px 4px;
    color: #666;
}

@media (max-width: 768px) {
    .pagination {
        gap: 5px;
    }

    .pagination-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .pagination-number {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* Mobile Navigation Improvements */
@media (max-width: 768px) {
  .header {
    position: relative;
  }

  .header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .logo-text {
    font-size: 20px;
  }

  /* Hide main navigation on mobile and show hamburger */
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a1a;
    flex-direction: column;
    padding: 20px;
    z-index: 1000;
  }

  .nav.active {
    display: flex;
  }

  .nav-link {
    padding: 12px 0;
    border-bottom: 1px solid #333;
    text-align: center;
  }

  /* Hamburger menu button */
  .mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
  }

  /* Sub navigation improvements */
  .sub-nav-content {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .sub-nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .sub-nav-link {
    font-size: 12px;
    padding: 6px 12px;
    background: #e9ecef;
    border-radius: 15px;
  }

  /* Main content improvements */
  .container {
    padding: 0 15px;
  }

  .main {
    padding: 20px 0;
  }

  .page-title {
    font-size: 28px;
    margin-bottom: 20px;
    line-height: 1.2;
  }

  /* Article page specific fixes */
  .article-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .article-title {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 12px;
  }

  .article-excerpt {
    font-size: 16px;
    margin-bottom: 15px;
  }

  .article-meta-bar {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 0;
  }

  .article-actions {
    width: 100%;
    justify-content: center;
  }

  .action-btn {
    flex: 1;
    text-align: center;
  }

  /* Content improvements */
  .article-content {
    font-size: 16px;
    line-height: 1.6;
  }

  .article-content p {
    margin-bottom: 16px;
  }

  /* Sidebar improvements */
  .article-sidebar {
    position: static;
    margin-top: 30px;
  }

  .sidebar-section {
    margin-bottom: 15px;
    padding: 15px;
  }

  .sidebar-title {
    font-size: 16px;
    margin-bottom: 15px;
  }

  /* Ad space improvements */
  .ad-space {
    margin: 20px 0;
    overflow: hidden;
  }

  .large-banner .ad-placeholder {
    width: 100%;
    max-width: 320px;
    height: 50px;
    font-size: 12px;
  }

  .medium-banner .ad-placeholder {
    width: 100%;
    max-width: 300px;
    height: 250px;
  }

  .sidebar-ad .ad-placeholder {
    height: 250px;
  }

  /* Featured article improvements */
  .featured-content {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .featured-title {
    font-size: 22px;
    line-height: 1.3;
  }

  /* Articles grid improvements */
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 20px 0;
  }

  .article-card {
    margin-bottom: 15px;
  }

  .article-content {
    padding: 15px;
  }

  .article-title {
    font-size: 16px;
    line-height: 1.4;
  }

  /* Breadcrumb improvements */
  .breadcrumb {
    font-size: 12px;
    margin-bottom: 15px;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  .logo-text {
    font-size: 18px;
  }

  .page-title {
    font-size: 24px;
  }

  .article-title {
    font-size: 20px;
  }

  .featured-title {
    font-size: 20px;
  }

  .article-excerpt {
    font-size: 14px;
  }

  .article-content {
    font-size: 15px;
  }

  .sub-nav-link {
    font-size: 11px;
    padding: 4px 8px;
  }

  .large-banner .ad-placeholder {
    height: 40px;
    font-size: 10px;
  }
}

/* Desktop-only styles */
@media (min-width: 769px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Add these CSS fixes to your existing style.css file */

/* Fix Google AdSense responsiveness */
.adsbygoogle {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}

/* Improve mobile layout for screens under 450px */
@media (max-width: 450px) {
  /* Container and spacing fixes */
  .container {
    padding: 0 10px;
  }

  /* Header improvements */
  .header {
    padding: 8px 0;
  }

  .logo-text {
    font-size: 16px;
  }

  .mobile-menu-btn {
    font-size: 20px;
    padding: 4px;
  }

  /* Article title and content fixes */
  .article-title {
    font-size: 20px !important;
    line-height: 1.2;
    margin-bottom: 10px;
    word-wrap: break-word;
    hyphens: auto;
  }

  .article-excerpt {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 12px;
  }

  /* Meta bar improvements */
  .article-meta-bar {
    flex-direction: column;
    gap: 8px;
    padding: 8px 0;
  }

  .article-author-info {
    font-size: 12px;
    flex-wrap: wrap;
  }

  .article-actions {
    width: 100%;
    justify-content: center;
  }

  .action-btn {
    padding: 6px 12px;
    font-size: 11px;
  }

  /* Content improvements */
  .article-content {
    font-size: 14px;
    line-height: 1.5;
  }

  .article-content p {
    margin-bottom: 14px;
  }

  /* Featured image fixes */
  .article-featured-image {
    margin: 15px 0;
  }

  .article-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
  }

  /* Sidebar fixes - this is crucial */
  .article-sidebar {
    margin-top: 20px;
  }

  .sidebar-section {
    padding: 12px;
    margin-bottom: 12px;
  }

  .sidebar-title {
    font-size: 14px;
    margin-bottom: 12px;
  }

  /* Recent articles in sidebar - major fix needed here */
  .recent-article {
    padding-bottom: 12px;
    margin-bottom: 12px;
  }

  .recent-title {
    font-size: 12px;
    line-height: 1.3;
    margin-bottom: 4px;
  }

  /* Fix sidebar article images - this was causing major layout issues */
  .recent-article .article-image {
    width: 60px;
    height: 40px;
    float: left;
    margin-right: 10px;
    margin-bottom: 5px;
    overflow: hidden;
    border-radius: 4px;
  }

  .recent-article .article-image img {
    width: 100%;
    height: auto;
    /*object-fit: fill;*/	
	object-fit: scale-down;
  }

  /* Ensure recent article content wraps properly around image */
  .recent-article a {
    display: block;
    overflow: hidden;
  }

  .recent-time {
    font-size: 10px;
    color: #666;
    clear: both;
    margin-top: 4px;
  }

  /* Breadcrumb fixes */
  .breadcrumb {
    font-size: 11px;
    margin-bottom: 12px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  /* Ad space improvements */
  .ad-space {
    margin: 15px 0;
    text-align: center;
  }

  /* Force Google AdSense to be responsive on very small screens */
  ins.adsbygoogle {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 50px !important;
    max-height: 100px !important;
  }

  /* Footer fixes */
  .footer {
    margin-top: 30px;
    padding: 15px 0;
    font-size: 12px;
  }
}

/* Additional fixes for very small screens (under 380px) */
@media (max-width: 380px) {
  .article-title {
    font-size: 18px !important;
  }

  .logo-text {
    font-size: 14px;
  }

  .article-content {
    font-size: 13px;
  }

  .recent-article .article-image {
    width: 50px;
    height: 35px;
  }

  .recent-title {
    font-size: 11px;
  }
}

/* Fix for sidebar article layout specifically */
@media (max-width: 768px) {
  .recent-article {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e9ecef;
  }

  .recent-article:last-child {
    border-bottom: none;
  }

  .recent-article .article-image {
    flex-shrink: 0;
    width: 100%;
    height: 300px;
    float: none;
    margin: 0;
  }

  .recent-article-content {
    flex: 1;
    min-width: 0;
  }

  .recent-title a {
    display: block;
    word-wrap: break-word;
    hyphens: auto;
  }
}

/* Ensure images in content don't break layout */
.article-content img,
.article-content figure img {
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  display: block;
  margin: 10px auto;
}

.article-content figure {
  max-width: 100% !important;
  width: auto !important;
  margin: 15px 0;
  text-align: center;
}

.article-content figcaption {
  font-size: 12px;
  color: #666;
  text-align: center;
  margin-top: 5px;
  padding: 0 10px;
}


/* === STRONG FIX for images overflowing on mobile === */
.article-featured-image,
.article-content figure,
.article-content figure.wp-caption,
.article-content img,
.article-content figure img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

/* Force the figure to adapt even if inline styles set a fixed width */
.article-content figure[style],
.article-content figure.wp-caption[style] {
    width: 100% !important;
}

/* Prevent horizontal scroll on mobile */
body {
    overflow-x: hidden;
}

/* Ensure long text wraps */
.article-title,
.article-excerpt {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
}

/* === MOBILE CHROME LAYOUT FIXES === */
@media (max-width: 768px) {
    /* Force images to not exceed viewport width */
    .article-featured-image img,
    .article-content img {
        width: 100% !important;
        height: auto !important;
    }

    /* Fix figure overflow */
    .article-content figure,
    .article-content figure.wp-caption {
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
    }

    /* Prevent hidden horizontal scroll from floats/margins */
    html, body {
        overflow-x: hidden;
    }
}
