/* ===============================
   Kajibs Capital — Business News Page (Redesigned for All Devices)
=============================== */

/* ---------- Global Page Layout ---------- */
main {
  flex: 1;
  background: #f8f9fb;
  font-family: "Inter", "Segoe UI", sans-serif;
  color: #222;
  line-height: 1.6;
}

/* ---------- Hero Section ---------- */
#hero {
  background: linear-gradient(rgba(0, 64, 128, 0.7), rgba(0, 64, 128, 0.7)),
    url("../photo/business-bg.jpg") center/cover no-repeat;
  text-align: center;
  color: #fff;
  padding: 100px 20px;
}
#hero h1 {
  font-size: clamp(1.8em, 3vw, 2.8em);
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}
#hero p {
  font-size: clamp(1em, 1.5vw, 1.2em);
  font-weight: 400;
  margin-bottom: 25px;
  opacity: 0.95;
}
.cta-btn {
  background: #ff6600;
  color: white;
  padding: 14px 36px;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.4px;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}
.cta-btn:hover {
  background: #e65c00;
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(255, 102, 0, 0.3);
}

/* ---------- Last Updated ---------- */
#last-updated {
  text-align: center;
  font-size: 0.9em;
  color: #555;
  font-style: italic;
  margin-top: 10px;
  margin-bottom: 15px;
  animation: fadeIn 0.6s ease-out;
}

/* ---------- News Cards ---------- */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin: 50px auto;
  max-width: 1300px;
  padding: 0 20px;
}
.card {
  background: white;
  padding: 24px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-left: 4px solid #004080;
  opacity: 0;
  transform: translateY(25px);
  animation: fadeUp 0.8s ease-out forwards;
}
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-left-color: #ff6600;
}
.card h4 a {
  color: #004080;
  text-decoration: none;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.3;
}
.card h4 a:hover {
  color: #0066cc;
  text-decoration: underline;
}
.card p {
  font-size: 0.96em;
  color: #444;
  margin-top: 10px;
  line-height: 1.5;
}

/* Smooth placeholder fade while loading */
.card-container p {
  text-align: center;
  font-style: italic;
  color: #666;
  animation: fadeIn 1s ease-in-out;
}

/* ---------- Section Divider Line ---------- */
.news-section::before {
  content: "";
  display: block;
  height: 3px;
  width: 100%;
  max-width: 1200px;
  margin: 60px auto 50px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #055c05 30%,
    #ff6600 70%,
    transparent 100%
  );
}

/* ---------- News Sections (Reusable Blocks) ---------- */
.news-section {
  background: #fff;
  margin: 60px auto;
  max-width: 1300px;
  padding: 35px 25px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: relative;
}
.news-section h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #004080;
  font-size: clamp(1.6em, 2.2vw, 2em);
  font-weight: 700;
}
.iframe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 24px;
  padding: 10px;
}
.iframe-grid iframe {
  width: 100%;
  height: 420px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.source {
  font-size: 0.9em;
  text-align: center;
  margin-top: 10px;
  color: #555;
}
.source a {
  color: #004080;
  text-decoration: none;
  font-weight: 500;
}
.source a:hover {
  text-decoration: underline;
}

/* ---------- TradingView Widgets ---------- */
.tradingview-widget-container {
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
}
.tradingview-widget-container > div {
  border-radius: 10px;
  overflow: hidden;
}


/* ---------- Responsive Adjustments ---------- */

/* Tablet View */
@media (max-width: 992px) {
  #hero {
    padding: 80px 20px;
  }
  .card-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  .news-section {
    margin: 40px 20px;
    padding: 25px 20px;
  }
  .iframe-grid {
    grid-template-columns: 1fr;
  }
  .news-section::before {
    margin: 40px auto 35px;
  }
}

/* Mobile View */
@media (max-width: 600px) {
  #hero {
    padding: 60px 15px;
    background-position: center top;
  }
  #hero h1 {
    font-size: 1.7em;
  }
  #hero p {
    font-size: 1em;
  }
  .cta-btn {
    padding: 12px 26px;
    font-size: 0.95rem;
  }
  .card-container {
    margin: 30px 10px;
    gap: 16px;
  }
  .card {
    padding: 18px;
  }
  .news-section {
    margin: 25px 10px;
    padding: 20px 15px;
  }
  .iframe-grid iframe {
    height: 350px;
  }
  #last-updated {
    font-size: 0.85em;
  }
  .news-section::before {
    margin: 30px auto 25px;
  }
}



/* ---------- Animations ---------- */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}



