/* Modern News Article Page Styling */

:root {
    --primary-color: #0061ce;
    --primary-light: #3494ff;
    --accent-color: #ac1c2c;
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #6b7280;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  }
  
  * {
    box-sizing: border-box;
  }
  
  body {
    margin: 0;
    font-family: 'Georgia', 'Times New Roman', serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 18px;
  }
  
  /* Main Content Layout */
  main {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
  }
  
  /* Article Content */
  .article-container {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
  }
  
  .article-container h2 {
    font-size: 2.5rem;
    line-height: 1.3;
    margin: 0 0 1.5rem 0;
    font-weight: 700;
    color: var(--text-dark);
    font-family: 'Arial', sans-serif;
  }
  
  .article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
    font-family: 'Arial', sans-serif;
  }
  
  .article-category {
    background: var(--primary-color);
    color: white;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .article-date {
    color: var(--text-light);
    font-size: 0.9rem;
  }
  
  /* Featured Image */
  .featured-image {
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
  }
  
  .featured-image img {
    width: 100%;
    height: auto;
    display: block;
  }
  
  /* Article Content Text */
  .news-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-medium);
  }
  
  .news-content p {
    margin: 1.5rem 0;
  }
  
  .news-content h3,
  .news-content h4 {
    margin: 2rem 0 1rem 0;
    color: var(--text-dark);
    font-family: 'Arial', sans-serif;
  }
  
  .news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
  }
  
  /* Article Navigation */
  .article-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
  }
  
  .nav-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-dark);
    text-decoration: none;
    font-family: 'Arial', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
  }
  
  .nav-button:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }
  
  .nav-button.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
  }
  
  /* Sidebar */
  .sidebar {
    position: sticky;
    top: 6rem;
    height: fit-content;
  }
  
  .sidebar-section {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
  }
  
  .sidebar-section h3 {
    font-size: 1.3rem;
    margin: 0 0 1.5rem 0;
    color: var(--text-dark);
    font-family: 'Arial', sans-serif;
    font-weight: 700;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--accent-color);
  }
  
  /* Recent News Items */
  .recent-news-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
  }
  
  .recent-news-item:last-child {
    border-bottom: none;
  }
  
  .recent-news-item:hover {
    transform: translateX(5px);
  }
  
  .recent-news-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
  }
  
  .recent-news-info {
    flex: 1;
  }
  
  .recent-news-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 0.5rem 0;
    color: var(--text-dark);
    font-family: 'Arial', sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .recent-news-item:hover .recent-news-title {
    color: var(--primary-color);
  }
  
  .recent-news-date {
    font-size: 0.8rem;
    color: var(--text-light);
  }
  
  /* Category Tags */
  .category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .category-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.85rem;
    font-family: 'Arial', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
  }
  
  .category-tag:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
  }
  
  /* Search Popup */
  .search-popup {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
  }
  
  .search-popup-content {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  }
  
  .search-popup-content input[type="text"] {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    font-family: 'Arial', sans-serif;
    transition: border-color 0.3s ease;
  }
  
  .search-popup-content input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
  }
  
  .search-popup-content button {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .search-popup-content button:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
  }
  
  .close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
  }
  
  .close-btn:hover {
    background: var(--bg-light);
    color: var(--text-dark);
  }
  
  /* Scroll to Top Button */
  #scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
  }
  
  #scrollTopBtn:hover {
    background: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 97, 206, 0.3);
  }
  
  /* Responsive Design */
  @media screen and (max-width: 1024px) {
    main {
      grid-template-columns: 1fr;
      gap: 2rem;
    }
  
    .sidebar {
      position: static;
    }
  
    .article-container {
      padding: 2rem;
    }
  }
  
  @media screen and (max-width: 768px) {
    body {
      font-size: 16px;
    }
  
    .desk-sitelogo {
      width: 50px;
    }
  
    .desk-headh1 {
      font-size: 1.5rem;
    }
    .menu-btn {
      display: block;
    }
  
    .langsel {
      right: 1rem;
      font-size: 0.75rem;
    }
  
    main {
      padding: 0 1rem;
      margin: 1rem auto;
    }
  
    .article-container {
      padding: 1.5rem;
    }
  
    .article-container h2 {
      font-size: 1.75rem;
    }
  
    .news-content {
      font-size: 1rem;
    }
  
    .article-navigation {
      flex-direction: column;
    }
  
    .sidebar-section {
      padding: 1rem;
    }
  
    #scrollTopBtn {
      width: 45px;
      height: 45px;
      bottom: 1rem;
      right: 1rem;
    }
  }
  
  @media screen and (max-width: 480px) {
    .desk-sitelogo {
      display: none;
    }
  
    .mobi-sitelogo {
      display: block;
      width: 40px;
    }
  
    .desk-headh1 {
      display: none;
    }
  
    .mobi-headh1 {
      display: block;
      font-size: 1.25rem;
      margin: 0;
      font-family: 'Arial Black', sans-serif;
      font-weight: 700;
    }
  
    .article-container h2 {
      font-size: 1.5rem;
    }
  
    .recent-news-thumbnail {
      width: 60px;
      height: 60px;
    }
  
    .recent-news-title {
      font-size: 0.85rem;
    }
  }