/* ===========================
   Global Styles
   =========================== */
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  background: #f8f9fa;
  color: #1a1a1a;
}

/* ===========================
   Header & Navigation
   =========================== */
.site-header {
  background: #0b2c5f;
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #f4b400;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}
.main-nav a:hover {
  color: #f4b400;
}

/* ===========================
   Polished Hero Section
   =========================== */
.hero {
  position: relative;
  text-align: center;
  padding: 6rem 2rem;
  background: linear-gradient(135deg, #0b2c5f, #007b5e);
  color: #fff;
  overflow: hidden;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}
.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}
.btn-primary {
  background: #f4b400;
  color: #0b2c5f;
  padding: 0.9rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.btn-primary:hover {
  background: #007b5e;
  color: #fff;
  transform: translateY(-3px);
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  z-index: 1;
  animation: pulse 6s infinite alternate;
  background: rgba(0, 0, 0, 0.3);
}
@keyframes pulse {
  from { opacity: 0.3; }
  to { opacity: 0.6; }
}
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1.1rem;
  }
}
  

/* ===========================
   Modules Grid
   =========================== */
.modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 3rem 2rem;
}
.module {
  background: #fff;
  border: 2px solid #0b2c5f;
  padding: 2rem 1rem;
  text-align: center;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.module:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  border-color: #007b5e;
}

/* ===========================
   Footer
   =========================== */
.site-footer {
  background: #0b2c5f;
  color: #fff;
  padding: 2rem;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}
.footer-left h3 {
  color: #f4b400;
  margin-bottom: 0.5rem;
}
.footer-right .footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-right .footer-nav li {
  margin-bottom: 0.5rem;
}
.footer-right .footer-nav a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-right .footer-nav a:hover {
  color: #f4b400;
}
.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 1rem;
  font-size: 0.9rem;
}
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* ===========================
   Sidebar Design
   =========================== */
.sidebar {
  background: #f8f9fa;
  border-left: 3px solid #0b2c5f;
  padding: 2rem 1rem;
  width: 250px;
}
.sidebar h2 {
  color: #0b2c5f;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.sidebar ul {
  list-style: none;
  padding: 0;
}
.sidebar li {
  margin-bottom: 0.8rem;
}
.sidebar a {
  color: #007b5e;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}
.sidebar a:hover {
  color: #f4b400;
}
@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    border-left: none;
    border-top: 3px solid #0b2c5f;
  }
}


/* ===========================
   Animated Hover Effects for Modules
   =========================== */
.modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 3rem 2rem;
}

.module {
  background: #fff;
  border: 2px solid #0b2c5f;
  padding: 2rem 1rem;
  text-align: center;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
  position: relative;
  overflow: hidden;
}

.module::before {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(244,180,0,0.2), rgba(0,123,94,0.2));
  transition: top 0.4s ease;
  z-index: 0;
}

.module:hover::before {
  top: 0;
}

.module:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  border-color: #f4b400;
  background: #fdfdfd;
}

.module span, .module {
  position: relative;
  z-index: 1;
}

/* ===========================
   Footer Widgets Layout
   =========================== */
.site-footer {
  background: #0b2c5f;
  color: #fff;
  padding: 2rem;
}

.footer-widgets {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-column {
  flex: 1;
  min-width: 250px;
}

.footer-widget {
  margin-bottom: 1.5rem;
}

.widget-title {
  color: #f4b400;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 1rem;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .footer-widgets {
    flex-direction: column;
    text-align: center;
  }
}


/* Hero polish */
.hero {
  position: relative;
  text-align: center;
  padding: 6rem 2rem;
  background: linear-gradient(135deg, #0b2c5f, #007b5e);
  color: #fff;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.1), transparent 70%);
  animation: pulse 6s infinite alternate;
}
@keyframes pulse {
  from { opacity: 0.3; }
  to { opacity: 0.6; }
}

/* Modules hover polish */
.module {
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
  position: relative;
  overflow: hidden;
}
.module::before {
  content: "";
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(244,180,0,0.2), rgba(0,123,94,0.2));
  transition: top 0.4s ease;
  z-index: 0;
}
.module:hover::before { top: 0; }
.module:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  border-color: #f4b400;
}

/* ===========================
   404 Error Page
   =========================== */
.error-page {
  text-align: center;
  padding: 6rem 2rem;
  background: #f8f9fa;
  color: #1a1a1a;
}
.error-hero h1 {
  font-size: 3rem;
  color: #0b2c5f;
  margin-bottom: 1rem;
}
.error-hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}
.error-hero .btn-primary {
  background: #f4b400;
  color: #0b2c5f;
  padding: 0.9rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}
.error-hero .btn-primary:hover {
  background: #007b5e;
  color: #fff;
  transform: translateY(-3px);
}
/* ===========================
   Parallax Background Effect
   =========================== */
.parallax {
  background-image: url('../images/finance-bg.jpg'); /* ✅ Correct */
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.modules.parallax {
  background-image: url('../images/finance-bg.jpg'); /* ✅ Correct */
}


/* ===========================
   Articles Section
   =========================== */
.articles {
  padding: 4rem 2rem;
  background: #f8f9fa;
}
.articles h2 {
  text-align: center;
  color: #0b2c5f;
  margin-bottom: 2rem;
}
.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.article-card {
  background: #fff;
  border: 1px solid #ddd;
  padding: 1.5rem;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}
.article-card h3 a {
  color: #007b5e;
  text-decoration: none;
}
.article-card h3 a:hover {
  color: #f4b400;
}
.btn-secondary {
  display: inline-block;
  margin-top: 1rem;
  background: #0b2c5f;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s ease;
}
.btn-secondary:hover {
  background: #f4b400;
  color: #0b2c5f;
}

/* ===========================
   Featured Image Styling
   =========================== */
.featured-image {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 0; /* space above and below */
}

.featured-image img {
  width: 100%;
  max-width: 700px; /* limit width for readability */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.featured-image img:hover {
  transform: scale(1.02);
}



/* ===========================
   Header & Mobile Menu
   =========================== */
.site-header {
  background: #0b2c5f;
  color: #fff;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo a {
  color: #f4b400;
  font-weight: 700;
  font-size: 1.4rem;
  text-decoration: none;
}
.logo span {
  color: #fff;
}
.main-nav .nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.main-nav .nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}
.main-nav .nav-links a:hover {
  color: #f4b400;
}

/* Hamburger Icon */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}
.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

/* Mobile View */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #0b2c5f;
    flex-direction: column;
    text-align: center;
    padding: 1rem 0;
  }
  .main-nav.active {
    display: flex;
  }
  .main-nav .nav-links {
    flex-direction: column;
    gap: 1rem;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
    flex-direction: column;
    text-align: center;
    background: #0b2c5f;
    padding: 1rem 0;
    animation: slideDown 0.4s ease forwards;
  }
  .main-nav.active {
    display: flex;
  }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===========================
   Reading Progress Bar
   =========================== */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 5px;
  background: #f4b400;
  width: 0%;
  z-index: 9999;
  transition: width 0.25s ease;
}

.reading-time {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

/* ===========================
   Reading-Friendly Layout
   =========================== */
.article-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 2rem; /* increased padding */
  background: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  border-radius: 10px;
}

.post-title {
  font-size: 2rem;
  color: #0b2c5f;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

.post-content p {
  margin-bottom: 1.2rem;
}

.featured-image img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}

/* Background for reading comfort */
body.single {
  background: #f8f9fa;
}

/* Reading progress bar */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 5px;
  background: #f4b400;
  width: 0%;
  z-index: 9999;
  transition: width 0.25s ease;
}

/* ===========================
  /* ===========================
   Archive Meta Info Styling
   =========================== */
.post-meta {
  font-size: 0.9rem;
  color: #444;
  margin: 0.8rem 0 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  justify-content: flex-start;
  background: #fdfdfd;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: background 0.3s ease;
}

.post-meta:hover {
  background: #f8f9fa;
}

.post-meta span,
.post-meta a {
  color: #007b5e;
  text-decoration: none;
  font-weight: 500;
}

.post-meta a:hover {
  color: #f4b400;
}

/* Emoji icons spacing fix */
.post-meta::before {
  content: "";
}


/* ===========================
   Author Bio Box
   =========================== */
.author-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.author-avatar img {
  border-radius: 50%;
  border: 2px solid #007b5e;
}

.author-info h4 {
  margin: 0;
  font-size: 1.2rem;
  color: #0b2c5f;
}

.author-info p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
  color: #555;
}

.author-link {
  font-size: 0.9rem;
  color: #007b5e;
  text-decoration: none;
  font-weight: 500;
}

.author-link:hover {
  color: #f4b400;
}

/* ===========================
   Reveal on Scroll Animations
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   Animated Button Styles
   =========================== */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Primary Button */
.btn-primary {
  background: #f4b400;
  color: #0b2c5f;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #007b5e, #0b2c5f);
  transition: left 0.4s ease;
  z-index: -1;
}
.btn-primary:hover::before {
  left: 0;
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-3px);
}

/* Secondary Button */
.btn-secondary {
  background: #0b2c5f;
  color: #fff;
  border: 2px solid #f4b400;
}
.btn-secondary::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 100%;
  background: #f4b400;
  transition: width 0.4s ease;
  z-index: -1;
}
.btn-secondary:hover::before {
  width: 100%;
}
.btn-secondary:hover {
  color: #0b2c5f;
  transform: scale(1.05);
}
