/* ---------- GLOBAL ---------- */

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Trebuchet MS', sans-serif;
  background: #f4f7fb;
  overflow-x: hidden;
}

/* --------------------- STANDARD HEADER ----------------------------- */
header {
    background-color: #000000;
    color: #fff;
    padding: 10px 0;
    top: 0;
    width: 100%;
    z-index: 1000;
    position: fixed;
}
  
.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}
  
.logo-left, .logo-right {
    width: 200px; 
    margin: 0; 
    padding-right: 20px;
}
  
nav {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
    padding-right: 20px;
}
  
.menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 60px;
    font-weight: 600;
    font-family: Trebuchet MS, sans-serif;
}
  
.menu li {
    display: inline;
}
  
.menu li a {
    text-decoration: none;
    color: #ffffff;
    font-size: 16px;
    transition: color 0.3s;
}
  
.menu-toggle {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.menu li a:hover {
    color: #4dc1e7; /* Text color on hover */
}

/* ---------- INSIGHTS SECTION ---------- */

#insights {
  padding: 140px 8% 60px 8%; /* Increased top padding for fixed header */
}

.insights-title {
  text-align: center;
  margin-bottom: 40px;
}

.insights-title h2 {
  font-size: 36px;
}

.insights-title span {
  color: #25b4e8;
}

.insights-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

/* ---------- CARDS ---------- */

.post-card {
  background: white;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 5px 14px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 10px;
}

.video-tag {
  background: #ffe5e5;
  color: #e63946;
}

.article-tag {
  background: #e8f5e9;
  color: #2e7d32;
}

.author {
  color: #777;
  font-size: 14px;
}

/* ---------- VIDEO ---------- */

video {
  width: 100%;
  border-radius: 10px;
  margin-top: 15px;
}

/* ---------- BUTTON ---------- */

.read-btn {
  display: inline-block;
  margin-top: 15px;
  background: #25b4e8;
  color: white;
  padding: 8px 15px;
  border-radius: 7px;
  text-decoration: none;
  transition: 0.3s;
}

.read-btn:hover {
  background: black;
}

/* ===== ARTICLE PAGE STYLING (Kept for compatibility) ===== */

.article-page {
  background: #f5f7fb;
  min-height: 100vh;
  padding: 60px 20px;
}

.article-container {
  max-width: 850px;
  margin: auto;
  background: #fff;
  padding: 50px 60px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.article-container h1 {
  font-size: 2.4rem;
  margin-bottom: 10px;
  color: #111;
  line-height: 1.2;
}

.article-container .author {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 30px;
  font-weight: 500;
}

.article-container p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 18px;
}

.article-divider {
  border: none;
  height: 1px;
  background: #eee;
  margin: 20px 0 30px;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  text-decoration: none;
  color: #0077ff;
  font-weight: 600;
}

.back-link:hover {
  text-decoration: underline;
}

/* ---------- MOBILE RESPONSIVE ---------- */

@media (max-width: 768px) {
  /* Header Responsive */
  header {
    padding: 5px 0;
    background-color: black;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
  }
  
  .navbar-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 0px 30px; 
  }
  
  .logo-left, .logo-right {
    width: 120px; 
    margin-bottom: 5px;
  }
  
  .logo-right {
    padding-left: 15px;
  }
  
  nav {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
  
  .menu {
    display: none;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
    gap: 30px;
  }
  
  .menu li {
    width: 100%;
    border-top: 1px solid #fff;
    text-align: left;
    padding: 5px;
    padding-top: 20px;
    padding-left: 10px;
  }
  
  .menu li:first-child {
    border-top: none;
  }
  
  .menu-toggle {
    padding-right: 15px;
    padding-left: 15px;
    display: inline-block;
    align-self: flex-end;
  }
  
  .show-menu {
    display: flex;
    padding-left: 0px;
    padding-bottom: 30px;
  }

  /* Article Responsive */
  .article-container {
    padding: 30px 24px;
  }

  .article-container h1 {
    font-size: 1.8rem;
  }

  .article-container p {
    font-size: 1rem;
  }
}