/* css/styles.css */

/* ================ Vigezo na Reset ================ */
:root {
    --primary: #1a1a2e;
    --secondary: #FFD700;
    --light: #FFFFFF;
    --dark: #000000;
    --bg: #FFFFFF;
    --primary-color: #1a1a2e;
    --secondary-color: #e74c3c;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --text-color: #333333;
    --border-color: #e0e0e0;
}

:root {
    
    --secondary: #F9D423;
    --light: #FFFFFF;
    --dark: #000000;
    --bg: #FFFFFF;
    --text: #333333;
    --card-bg: #F8F9FA;
}

/* ================ Kadi za Habari ================ */
.news-card {
    /*border: 1px solid #eee;
    border-radius: 8px;*/
    overflow: hidden;
    margin-bottom: 2rem;
    background: var(--card-bg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}


.featured-news {
    grid-column: 1 / -1;
}

.featured-news .news-card {
    display: flex;
    flex-direction: column;
}

.featured-news img {
    height: 460px;
    width: 100%;
    object-fit: cover;
}

.featured-news .news-content {
    padding: 1rem;
}

.featured-news h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.featured-news p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.regular-news img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.news-content {
    padding: 0.3rem;
}

.news-content h3 {
    color: var(--primary);
    margin-bottom: 0.7rem;
    font-size: 1.1rem;
}

.article-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem 1.5rem;
}

.btn {
    display: inline-block;
    background: var(--secondary);
    color: var(--primary);
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}
/* Mwisho wa habari zilizo simama kushoto mpaka kulia */

/* ================ Grid ya Habari ================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.0rem;
    margin: 1rem 0;
}

/* ================ Modal ================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background: var(--card-bg);
    margin: 5% auto;
    padding: 2rem;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    position: relative;
    color: var(--text);
}

.social-share {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.social-share a {
    color: var(--primary);
    font-size: 1.5rem;
    margin: 0 0.8rem;
    transition: 0.3s;
    display: inline-block;
}

.social-share a:hover {
    color: var(--secondary);
    transform: translateY(-3px);
}

/* ================ Vifungo vya Ziada ================ */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary);
    color: var(--light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 99;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--secondary);
    color: var(--primary);
    transform: translateY(-5px);
}

/* ================ Footer ================ */
/* Footer Container */
footer {
  background-color: #1a1a1a;
  color: #e0e0e0;
  padding: 40px 20px 20px;
  font-family: 'Segoe UI', sans-serif;
}

footer .container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Grid Layout */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

/* Footer Sections */
.footer-section h3,
.footer-section h4 {
  color: #f5c518;
  margin-bottom: 15px;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-section p {
  font-size: 16px;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
  font-size: 16px;
  display: flex;
  align-items: center;
}

.footer-section ul li i {
  margin-right: 10px;
  color: #f5c518;
  font-size: 16px;
}

/* Links */
.footer-section a {
  color: #e0e0e0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #f5c518;
}

/* Social Icons */
.footer-section div a i {
  font-size: 20px;
  color: #e0e0e0;
  transition: color 0.3s ease;
}

.footer-section div a:hover i {
  color: #f5c518;
}

/* Newsletter Form */
#newsletterForm input[type="email"] {
  padding: 0.8rem;
  border: none;
  border-radius: 5px;
  font-size: 16px;
}

#newsletterForm button {
  background-color: #f5c518;
  color: #1a1a1a;
  border: none;
  padding: 0.8rem;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#newsletterForm button:hover {
  background-color: #e0c000;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 16px;
  text-align: center;
}

.footer-bottom .footer-links {
  margin-top: 10px;
}

.footer-bottom .footer-links a {
  margin: 0 10px;
  color: #e0e0e0;
  text-decoration: none;
}

.footer-bottom .footer-links a:hover {
  color: #f5c518;
}

/* Responsive */
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

    /*SEHEMU YA KUHUSU SISI*/
    .about-section {
    padding: 4rem 1rem;
    background-color: #f9fafb;
    text-align: center;
}
.section-title {
    font-size: 2rem;
    color: #2d2d2d;
    margin-bottom: 1rem;
}
.section-intro {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    color: #555;
}
.about-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.about-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
    max-width: 300px;
}
.about-card i {
    color: #2e8b57;
    margin-bottom: 1rem;
}
.founder-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3rem;
    justify-content: center;
}
.founder-image {
    width: 120px;
    border-radius: 50%;
}
/*MWISHO WAKE*/

/* CSS YA 3 GRID HABARI */
.three-column-news {
  padding: 3rem 1rem;
  background-color: #f8f8f8;
}
.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #2c2c2c;
}
.news-layout {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 2rem;
}
.news-side,
.news-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
article {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0,0,0,0.05);
}
article img {
  width: 100%;
  border-radius: 6px;
}
.summary {
  font-size: 0.95rem;
  color: #333;
}
.full-content {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #444;
}

.read-button {
  margin-top: 0.5rem;
  background-color: #2e8b57;
  color: white;
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 5px;
  font-size: 0.9rem;
  cursor: pointer;
}
.read-button:hover {
  background-color: #256d45;
}
.full-article {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: #333;
  animation: fadeIn 0.3s ease-in;
}
.date {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #2e8b57;
}
.social-icons {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
}
.social-icons i {
  font-size: 1.2rem;
  color: #2e8b57;
  cursor: pointer;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}


.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}
.modal-content {
  background: #fff;
  padding: 2rem;
  width: 90%;
  max-width: 600px;
  border-radius: 8px;
  position: relative;
  animation: fadeIn 0.3s ease;
}
.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.8rem;
  cursor: pointer;
  color: #2e8b57;
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}


/* Simu ndogo – chini ya 768px */
@media (max-width: 768px) {
  .news-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .news-side,
  .news-main {
    width: 100%;
  }

  article img {
    height: auto;
  }

  .modal-content {
    width: 95%;
    padding: 1.5rem;
  }

  .read-button {
    width: 100%;
  }
}

/* Tablet au laptops ndogo – 769px hadi 1024px */
@media (max-width: 1024px) {
  .news-layout {
    grid-template-columns: 1fr 1fr;
  }

  .news-main {
    order: -1; /* Habari kuu iwe juu */
  }

  .news-side {
    width: 100%;
  }
}

/* Simu za wima (orientation) */
@media (orientation: portrait) {
  .section-title {
    font-size: 1.5rem;
  }
  h3 {
    font-size: 1.1rem;
  }
}

/* Muundo wa awali kwa desktop */
.news-layout {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 2rem;
}
.article-preview {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}
.article-preview h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.article-preview img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}
.read-button {
  background-color: #2e8b57;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-radius: 5px;
  cursor: pointer;
}
.read-button:hover {
  background-color: #256d45;
}


/* 📱 Simu ndogo: layout ya safu moja */
@media (max-width: 768px) {
  .news-layout {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .article-preview img {
    height: auto;
  }

  .read-button {
    width: 100%;
  }

  .modal-content {
    width: 95%;
    padding: 1.2rem;
  }

  h2.section-title {
    font-size: 1.5rem;
    text-align: center;
  }
}


/* 📲 Tablets: layout ya safu mbili, habari kuu juu */
@media (min-width: 769px) and (max-width: 1024px) {
  .news-layout {
    grid-template-columns: 1fr 1fr;
  }

  .news-main {
    order: -1;
  }

  .read-button {
    width: auto;
  }

  .modal-content {
    width: 90%;
    padding: 1.5rem;
  }
}
/* MWISHO WA GRID */
.sports-hero {
  text-align: center;
  padding: 10px 10px;
  background: linear-gradient(to right, #006400, #228B22);
  color: white;
  border-radius: 0 0 40px 40px;
}

.sports-hero h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.social-wall {
  position: fixed;
  top: 30%;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
}

.social-wall a {
  font-size: 22px;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.social-wall a:hover {
  transform: scale(1.1);
}

.social-wall a:nth-child(1) { background-color: #1877F2; }   /* Facebook */
.social-wall a:nth-child(2) { background-color: #FF0000 }   /* WhatsApp */
.social-wall a:nth-child(3) { background-color: #1DA1F2 }   /* Twitter */
.social-wall a:nth-child(4) { background-color: #E1306C; }   /* Instagram */.

/* Hii niyakupunguza nakuondoa social media za kwenye ukuta, kwenye vifa vidogo */
    @media (max-width: 600px) {
      .social-wall {
        display: none;
      }
    }

.tech-hero {
    background: linear-gradient(135deg, #006400, #003366);
    color: white;
    padding: 1rem;
    text-align: center;
    margin-bottom: 1rem;
    border-radius: 0 0 30px 30px;
}

.tech-hero h1 {
    font-size: 2.5rem;
}
        .tech-hero p {
            font-size: 1.2rem;
            max-width: 900px;
            margin: 0 auto;
        }

        /* Modal Styles */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.8);
            z-index: 9999;
            overflow-y: auto;
        }

        .modal-content {
            background: white;
            margin: 5% auto;
            padding: 20px;
            width: 80%;
            max-width: 800px;
            border-radius: 10px;
            position: relative;
        }

        .close {
            position: absolute;
            top: 10px;
            right: 20px;
            font-size: 2rem;
            cursor: pointer;
        }

        .article-date {
            display: block;
            color: #888;
            font-size: 0.9rem;
            margin-bottom: 10px;
        }



/* CSS KWAAJILI YA KURASA ZOTE ZAKUANDIKIA HABARI */
          .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

  .news-image {
      width: 100%;
      height: auto;
      border-radius: 10px;
    }

    h1 {
      font-size: 2rem;
      margin: 1rem 0 0.5rem;
    }

    .meta {
      color: #777;
      font-size: 0.9rem;
      margin-bottom: 1rem;
    }

    .content {
      font-size: 1.05rem;
      text-align: justify;
    }

    .buttons {
      margin-top: 1.5rem;
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .btn {
      padding: 10px 20px;
      border: none;
      text-decoration: none;
      border-radius: 5px;
      font-size: 0.95rem;
      transition: background 0.3s;
    }

    .btn:hover {
      background: #a00000;
    }

    .share-icons {
      margin-top: 1rem;
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    .share-icons a {
      font-size: 1.2rem;
      color: #333;
      text-decoration: none;
      transition: transform 0.3s;
    }

    .share-icons a:hover {
      transform: scale(1.2);
    }

    /*.other-news {
      margin-top: 3rem;
    }

    /*.other-news h2 {
      font-size: 1.3rem;
      margin-bottom: 1rem;
    }*/

    .news-item {
      display: flex;
      gap: 10px;
      margin-bottom: 1rem;
      align-items: center;
    }

    .news-item img {
      width: 100px;
      height: 60px;
      object-fit: cover;
    }

    .news-item a {
      font-weight: bold;
    }

    a {
    color: black; /* Rangi ya kawaida ya link */
    text-decoration: none; /* Kuondoa mstari wa chini */
    transition: color 0.3s ease; /* Animation laini */
  }

  a:hover {
    color: #e74c3c; /* Rangi itakayobadilika wakati wa hover */
  }

    @media(max-width: 600px) {
      h1 {
        font-size: 1.5rem;
      }

      .content {
        font-size: 1rem;
      }

      .news-item img {
        width: 80px;
        height: 60px;
      }

      .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
      }

      .share-icons a {
        font-size: 1rem;
      }
    }

    /* --- IMPROVED SHARING SECTION --- */
    .social-share {
      margin: 30px 0;
      padding: 15px 0;
      border-top: 1px solid #eee;
      border-bottom: 1px solid #eee;
      text-align: center;
    }

    .social-share h4 {
      margin-top: 0;
      margin-bottom: 15px;
      font-size: 18px;
      color: #1e5799;
    }

    .social-share-container {
      position: relative;
      display: inline-block;
    }

    .share-trigger-btn {
      background-color: #1e5799;
      color: white;
      padding: 8px 16px;
      border: none;
      border-radius: 4px;
      font-size: 14px;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .share-trigger-btn:hover {
      background-color: #154279;
    }

    .social-share-dropdown {
      display: none;
      position: absolute;
      bottom: 100%;
      left: 50%;
      transform: translateX(-50%);
      background-color: white;
      min-width: 180px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
      border-radius: 6px;
      z-index: 100;
      padding: 8px 0;
      margin-bottom: 8px;
      flex-direction: column;
    }

    .social-share-dropdown.show {
      display: flex;
      animation: fadeIn 0.2s ease-out;
    }

    .social-share-link {
      padding: 8px 12px;
      text-decoration: none;
      color: #333;
      display: flex;
      align-items: center;
      gap: 8px;
      transition: all 0.2s;
      font-size: 13px;
      border-left: 3px solid transparent;
    }

    .social-share-link:hover {
      background-color: #f8f9fa;
      border-left: 3px solid #1e5799;
    }

    .social-share-link i {
      width: 16px;
      text-align: center;
      font-size: 14px;
    }

    /* --- IMPROVED SOCIAL SHARING SECTION --- */
    .social-share {
        margin: 25px 0;
        padding: 12px 0;
        text-align: center;
    }

    .social-share h4 {
        margin: 0 0 12px 0;
        font-size: 16px;
        color: #1e5799;
    }

    .social-share-container {
        position: relative;
        display: inline-block;
    }

    .share-trigger-btn {
        background-color: #f8f9fa;
        color: #333;
        padding: 6px 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 13px;
        cursor: pointer;
        transition: all 0.2s ease;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .share-trigger-btn:hover {
        background-color: #e9ecef;
    }

    .social-share-dropdown {
        display: none;
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        background-color: white;
        min-width: 220px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        border-radius: 6px;
        border: 1px solid #eee;
        z-index: 100;
        padding: 6px 0;
        margin-bottom: 8px;
    }

    .social-share-dropdown.show {
        display: block;
        animation: fadeIn 0.15s ease-out;
    }

    .social-share-link {
        padding: 6px 12px;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
        transition: all 0.15s;
        color: #333;
        border-left: 3px solid transparent;
    }

    .social-share-link:hover {
        background-color: #f8f9fa;
    }

    .social-share-link i {
        width: 16px;
        text-align: center;
        font-size: 14px;
    }

    /* Platform-specific styles */
    .facebook-share {
        border-left-color: #3b5998;
        color: #3b5998;
    }
    .facebook-share:hover {
        background-color: rgba(59, 89, 152, 0.05);
    }

    .twitter-share {
        border-left-color: #1da1f2;
        color: #1da1f2;
    }
    .twitter-share:hover {
        background-color: rgba(29, 161, 242, 0.05);
    }

    .whatsapp-share {
        border-left-color: #25d366;
        color: #25d366;
    }
    .whatsapp-share:hover {
        background-color: rgba(37, 211, 102, 0.05);
    }

    .linkedin-share {
        border-left-color: #0077b5;
        color: #0077b5;
    }
    .linkedin-share:hover {
        background-color: rgba(0, 119, 181, 0.05);
    }

    .email-share {
        border-left-color: #6c757d;
        color: #6c757d;
    }
    .email-share:hover {
        background-color: rgba(108, 117, 125, 0.05);
    }

    .copy-link {
        border-left-color: #6c757d;
        color: #6c757d;
        background: none;
        border: none;
        width: 100%;
        text-align: left;
        cursor: pointer;
        padding: 6px 12px;
        font-family: inherit;
        font-size: 13px;
    }
    .copy-link:hover {
        background-color: rgba(108, 117, 125, 0.05);
    }

    /* Animation */
    @keyframes fadeIn {
        from { opacity: 0; transform: translateX(-50%) translateY(3px); }
        to { opacity: 1; transform: translateX(-50%) translateY(0); }
    }

    /* Responsive adjustments */
    @media (max-width: 768px) {
        .social-share-dropdown {
            left: 0;
            transform: none;
            right: auto;
            min-width: 150px;
        }
        
        .share-trigger-btn {
            padding: 5px 10px;
            font-size: 12px;
        }
        
        .social-share-link {
            padding: 5px 10px;
            font-size: 12px;
        }

    /* Platform-specific colors */
    .facebook-share { color: #3b5998; }
    .twitter-share { color: #1da1f2; }
    .whatsapp-share { color: #25d366; }
    .linkedin-share { color: #0077b5; }
    .email-share { color: #6c757d; }
    .copy-link { 
      color: #6c757d;
      background: none;
      border: none;
      width: 100%;
      text-align: left;
      cursor: pointer;
    }

    /* Animation */
    @keyframes fadeIn {
      from { opacity: 0; transform: translateX(-50%) translateY(5px); }
      to { opacity: 1; transform: translateX(-50%) translateY(0); }
    }

      /* Improved mobile sharing */
      .social-share-dropdown {
        left: 0;
        transform: none;
        right: auto;
        min-width: 160px;
      }
      
      .share-trigger-btn {
        padding: 8px 12px;
        font-size: 13px;
      }
      
      .social-share-link {
        padding: 6px 10px;
        font-size: 12px;
      }
    }

 /* Platform-specific icon colors */
.social-share-item .fa-facebook-f { color: #3b5998; }
.social-share-item .fa-twitter { color: #1da1f2; }
.social-share-item .fa-whatsapp { color: #25d366; }
.social-share-item .fa-envelope { color: #6c757d; }
.social-share-item .fa-linkedin { color: #0077b5; }
.social-share-item .fa-link { color: #6c757d; }

@media (max-width: 600px) {
  .social-share {
    padding: 12px 0;
  }

  .social-share h4 {
    font-size: 15px;
  }

  .share-trigger-btn {
    padding: 6px 10px;
    font-size: 12px;
    gap: 5px;
  }

  .social-share-dropdown {
    position: static;
    transform: none;
    left: auto;
    margin: 10px auto;
    width: 100%;
    max-width: 320px;
  }

  .social-share-link,
  .copy-link {
    padding: 6px 10px;
    font-size: 12px;
    border-left: none;
    border-bottom: 1px solid #eee;
  }

  .social-share-link i {
    font-size: 13px;
    width: 18px;
  }

  .social-share-link span {
    font-size: 12px;
    margin-left: 6px;
  }

  .social-share-dropdown.show {
    animation: none;
  }
}

.social-share-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  text-decoration: none;
  background: none;
  border: none;
  border-left: 3px solid transparent;
  font-size: 14px;
  color: #333;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.social-share-item:hover {
  background-color: #f8f9fa;
  border-left: 3px solid #6c757d;
}

.social-share-item i {
  width: 16px;
  font-size: 14px;
  text-align: center;
  color: #6c757d;
}

.social-share-item span {
  flex: 1;
  margin-left: 6px;
  font-size: 13px;
}


.social-share-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  text-decoration: none;
  font-size: 14px;
  color: #333;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease;
  border-left: 3px solid transparent;
}

.social-share-item:hover {
  background-color: #f5f5f5;
}

.social-share-item i {
  width: 20px;
  font-size: 15px;
  text-align: center;
  color: #6c757d;
}

.copy-link {
  border-left-color: #6c757d;
  color: #6c757d;
}

.copy-link:hover {
  background-color: rgba(108, 117, 125, 0.05);
  border-left: 3px solid #6c757d;
}

.social-share-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 10px;
  text-decoration: none;
  border-left: 3px solid transparent;
  color: #333;
  transition: background-color 0.15s ease;
}

.social-share-link:hover {
  background-color: #f5f5f5;
}

.social-share-link i {
  width: 17px;
  text-align: center;
  font-size: 15px;
  color: currentColor;
}

.copy-link {
  color: #6c757d;
  border-left-color: #6c757d;
}

.copy-link:hover {
  background-color: rgba(108, 117, 125, 0.05);
}

/* Container ya habari */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
    font-family: "Arial", sans-serif;
    line-height: 1.6;
    color: #222;
}

/* Picha ya habari */
.article-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin-bottom: 1rem;
}

/* Maandishi ya habari */
.article-content {
    font-size: 1.1rem;
    text-align: justify;
    word-spacing: normal;
}

/* Vifaa vidogo: punguza nafasi ya maandishi */
@media (max-width: 600px) {
    .article-content {
        font-size: 1rem;
        line-height: 1.5;
        padding: 0.5rem;
    }

    .article-container {
        padding: 0.8rem;
    }
}

/* Share icons */
.share-icons {
    display: flex;
    gap: 12px;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.share-icons a {
    text-decoration: none;
    font-size: 1.3rem;
    color: #555;
    transition: transform 0.2s ease;
}

.share-icons a:hover {
    transform: scale(1.2);
    color: #1da1f2;
}

    /* Hii niyakupunguza nakuondoa social media za kwenye ukuta, kwenye vifa vidogo */
    @media (max-width: 600px) {
      .social-wall {
        display: none;
      }
    }


/*KWA KURASA MUHIMU ZA NYUMBANI*/

     /* Style za ukurasa wa uchambuzi */
    .analysis-hero {
      background: linear-gradient(135deg, #1e5799, #207cca);
      color: white;
      padding: 2rem 1rem;
      text-align: center;
      margin-bottom: 2rem;
    }

    .analysis-container {
      max-width: 1220px;
      margin: 0 auto;
      padding: 0 25px;
      margin-top: 5px;
      /*font-family: 'Noto Serif', serif;font-weight: 700;*/
    }

    .analysis-content {
      display: flex;
      flex-wrap: wrap;
      gap: 30px;
      margin-bottom: 40px;
    }

    .analysis-main {
      flex: 3;
      min-width: 300px;
    }

    .analysis-sidebar {
      flex: 1;
      min-width: 250px;
    }

    .analysis-image {
      width: 100%;
      max-height: 400px;
      object-fit: cover;
      margin-bottom: 0px;
    }

  a {
    color: black; /* Rangi ya kawaida ya link */
    text-decoration: none; /* Kuondoa mstari wa chini */
    transition: color 0.3s ease; /* Animation laini */
  }

  a:hover {
    color: #e74c3c; /* Rangi itakayobadilika wakati wa hover */
  }


/* MPANGILIO MPYA WA HABARI 1-KUBWA KUSHOTO, 2-NDOGO KULIA */
.analysis-content {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-bottom: 40px;
  border-bottom: 1px solid #ddd;
}

.analysis-main {
  flex: 2;
  min-width: 0; /* Ili kuzuia overflow */
}

.analysis-sidebar {
  flex: 1;
  min-width: 550px;
  font-family: 'Noto Serif', serif;font-weight: 500;
}

/* MPANGILIO WA HABARI 2 KWA KILA SAFU */
.right-articles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.right-articles-grid .related-article {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  padding-bottom: 0;
}

.right-articles-grid .related-article img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  margin-bottom: 13px;
}

.right-articles-grid .related-article h4 {
  font-size: 17px;
  line-height: 1.4;
  margin: 0;
}

.right-articles-grid .related-article p {
  display: none; /* Sionyeshi maelezo mafupi */
}

.right-articles-grid .related-article span {
  font-size: 13px;
  color: darkblue;
}


@media (max-width: 768px) {
  /* Rekebisha grid kuwa safu moja */
  .right-articles-grid {
    grid-template-columns: 1fr; /* Safu moja tu */
    gap: 10px;
  }
  
  /* Muundo wa picha kushoto, maandishi kulia */
  .right-articles-grid .related-article {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee; /* Mstari wa kutenganisha */
  }
  
  /* Rekebisha picha */
  .right-articles-grid .related-article img {
    width: 110px;
    height: 110px;
    margin-bottom: 0;
  }
  
  /* Rekebisha maandishi */
  .right-articles-grid .related-article div {
    flex: 1;
  }
  
  .right-articles-grid .related-article h4 {
    font-size: 15px;
    margin-bottom: 4px;
    line-height: 1.4;
  }
  
  .right-articles-grid .related-article span {
    font-size: 13px;
    color: #666;
  }
  
  /* Ondoa border ya mwisho */
  .right-articles-grid .related-article:last-child {
    border-bottom: none;
  }
}

 /* --- RESPONSIVE DESIGN --- */
    @media (max-width: 768px) {
      .analysis-container {
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
        overflow-x: hidden;
      }

      .analysis-content {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 30px;
      }

      .analysis-main,
      .analysis-sidebar {
        width: 100%;
        min-width: 100%;
      }

      .analysis-image {
        max-height: 250px;
        border-radius: 0;
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);
      }

      .analysis-meta {
        flex-wrap: wrap;
        gap: 10px;
        font-size: 14px;
      }

      .analysis-meta span {
        flex: 1 1 45%;
      }

      .analysis-text {
        font-size: 15px;
        line-height: 1.6;
      }

      .analysis-text h2 {
        font-size: 1.5rem;
      }

      .analysis-points,
      .related-articles {
        padding: 15px;
        margin: 20px 0;
      }

      .related-article img {
        width: 100px;
        height: 100px;
        margin-bottom: 10px;
      }

      /* Improved mobile sharing */
      .social-share-dropdown {
        left: 0;
        transform: none;
        right: auto;
        min-width: 160px;
      }
      
      .share-trigger-btn {
        padding: 8px 12px;
        font-size: 13px;
      }
      
      .social-share-link {
        padding: 6px 10px;
        font-size: 12px;
      }
    }

    @media (max-width: 480px) {
      .analysis-text h2 {
        font-size: 1.3rem;
      }

      .analysis-meta span {
        flex: 1 1 100%;
      }
      .analysis-points h3
      .related-articles h3 {
        font-size: 1.1rem;
      }
    }

    /* Hii niyakupunguza nakuondoa social media za kwenye ukuta, kwenye vifa vidogo */
    @media (max-width: 600px) {
      .social-wall {
        display: none;
      }
    }


         /*Hizi ni za nav kamili Top Bar Styles */
        .top-bar {
            background-color: var(--dark-color);
            color: white;
            font-size: 0.85rem;
            padding: 8px 0;
        }
        
        .top-bar .nav-link {
            color: rgba(255, 255, 255, 0.8);
            padding: 0 15px;
            border-right: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .top-bar .nav-link:hover {
            color: var(--secondary-color);
        }
        
        .top-bar .nav-link:last-child {
            border-right: none;
        }
        
        .social-icons .nav-link {
            color: white;
            padding: 0 8px;
            font-size: 0.9rem;
        }
        
        /* Logo Area */
        .logo-area {
            padding: 9px 0;
            background: white;
        }
        
        .logo-text {
            font-weight: 900;
            font-size: 2.5rem;
            letter-spacing: 1px;
        }
        
        .logo-primary {
            color: var(--primary-color);
        }
        
        .logo-secondary {
            color: var(--secondary-color);
        }
        
        /* Main Navigation */
        .main-navbar {
            background-color: var(--primary-color) !important;
            padding: 0;
            margin-bottom: 10px;
        }
        
        .main-navbar .nav-link {
            color: white !important;
            font-weight: 600;
            text-transform: uppercase;
            padding: 17px 18px !important;
            font-size: 1.0rem;
            letter-spacing: 0.3px;
            transition: all 0.3s ease;
        }
        
        .main-navbar .nav-link:hover,
        .main-navbar .nav-link.active {
            color: white !important;
            background-color: var(--secondary-color);
        }
        
        .dropdown-menu {
            border: none;
            border-radius: 0;
            margin-top: 0;
            box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
            font-family: 'Noto Serif', serif; font-weight: 700; 
        
        .dropdown-item {
            padding: 8px 20px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        }
        
        .dropdown-item:hover {
            background-color: var(--primary-color);
            color: white;
        }