/* === RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* === BASE STYLES === */
  body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #fff;
    color: #111;
    line-height: 1.6;
  }
  
  /* === HEADER === */
  header {
    background-color: #ff0000;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px;
  }
  
  .logo {
    max-height: 50px;
    margin-bottom: 10px;
  }
  
  /* === NAVIGATION === */
  nav {
    width: 100%;
  }
  
  .nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }
  
  .nav-menu li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 14px;
    border-radius: 4px;
    transition: background-color 0.3s;
  }
  
  .nav-menu li a:hover {
    background-color: #000;
  }
  
  /* === HERO SECTION === */
  .hero {
    background-color: #000;
    color: white;
    text-align: center;
    padding: 60px 20px;
  }
  
  .hero h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
  }
  
  .hero p {
    font-size: 1.2em;
    color: #ccc;
  }
  
  /* === NEWS SECTION === */
  .news-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    padding: 40px 20px;
    background-color: #fff;
  }
  
  /* Clickable wrapper for cards */
  .news-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
  }
  
  /* News card base styles */
  .news-card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-left: 6px solid #ff0000;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow 0.3s ease;
  }
  
  .news-card:hover {
    box-shadow: 0 0 14px rgba(0, 0, 0, 0.2);
  }
  
  /* News card image */
  .news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #ccc;
  }
  
  /* News content container */
  .news-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
  }
  
  /* News title */
  .news-card h2 {
    font-size: 1.1em;
    margin-bottom: 8px;
    color: #000;
  }
  
  /* News summary text */
  .news-card p {
    font-size: 0.95em;
    margin-bottom: 12px;
    color: #333;
  }
  
  /* Hover effect for full card link */
  .news-card-link:hover .news-card {
    box-shadow: 0 0 14px rgba(0, 0, 0, 0.25);
  }
  
  /* === FOOTER === */
  footer {
    background-color: #111;
    color: #eee;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
    margin-top: 40px;
  }
  
  /* === RESPONSIVE TWEAK: Force two cards per row on mobile === */
  @media (max-width: 600px) {
    .news-section {
      grid-template-columns: repeat(2, 1fr);
    }
  
    .news-card img {
      height: 140px;
    }
  }
  
  /* === ARTICLE HERO SECTION + OVERLAY + LABEL === */
  .article-hero-section {
    position: relative;
    height: 340px;
    background-image: url('/images/camera-2792230_1280.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: fadeInHero 1.5s ease-in-out;
  }
  
  @keyframes fadeInHero {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .trending-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff0000;
    color: white;
    padding: 6px 12px;
    font-weight: bold;
    font-size: 0.9rem;
    border-radius: 4px;
    z-index: 2;
  }
  
  .article-hero-overlay {
    background-color: rgba(0, 0, 0, 0.55);
    color: white;
    padding: 40px 20px;
    text-align: center;
    width: 100%;
  }
  
  .article-hero-overlay h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
  }
  
  .article-hero-overlay .meta {
    font-size: 1rem;
    color: #ccc;
  }
  
  /* === ARTICLE BODY === */
  .article-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    color: #222;
    font-family: system-ui, sans-serif;
    line-height: 1.6;
    animation: fadeInBody 1s ease-in-out;
  }
  
  @keyframes fadeInBody {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .main-article p {
    margin-bottom: 16px;
  }
  
  /* === SHARE BUTTONS === */
  .share-buttons {
    margin-top: 24px;
  }
  
  .share-buttons button {
    background-color: red;
    color: white;
    padding: 8px 16px;
    margin-right: 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  
  .share-buttons button:hover {
    background-color: #b30000;
  }
  
  /* === SUGGESTED ARTICLES === */
  .suggested-articles {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #eee;
  }
  
  .suggested-articles h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
  
  .suggested-articles ul {
    list-style: none;
    padding: 0;
  }
  
  .suggested-articles li {
    margin-bottom: 8px;
  }
  
  .suggested-articles a {
    text-decoration: none;
    color: #cc0000;
  }
  
  .suggested-articles a:hover {
    text-decoration: underline;
  }
  
  /* === NAVIGATION BUTTONS === */
  .article-nav-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
  }
  
  .article-nav-buttons a {
    background-color: #222;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
  }
  
  .article-nav-buttons a:hover {
    background-color: #000;
  }
  
  /* === RESPONSIVE === */
  @media (max-width: 768px) {
    .article-hero-section {
      height: 240px;
    }
  
    .article-hero-overlay h1 {
      font-size: 1.8rem;
    }
  
    .article-hero-overlay .meta {
      font-size: 0.9rem;
    }
  
    .trending-label {
      font-size: 0.8rem;
      padding: 4px 10px;
    }
  }
  
  @media (max-width: 480px) {
    .article-hero-section {
      height: 200px;
    }
  
    .article-hero-overlay h1 {
      font-size: 1.4rem;
    }
  
    .article-hero-overlay .meta {
      font-size: 0.8rem;
    }
  }
  