/* ===========================
   GLOBAL STYLES
   =========================== */
body {
  font-family: "Inter", sans-serif;
  margin: 0;
  padding: 0;
  color: #111827;
  background: #f9fafb;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* ===========================
   HEADER (NAVIGATION)
   =========================== */
.site-header {
  background: #1e3a8a !important;
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 9999;
}

.site-header a {
  color: #ffffff !important;
  font-weight: 500;
}

.site-header a:hover {
  color: #facc15 !important;
}

/* ===========================
   HERO SECTION — CURVED + CENTERED
   =========================== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, #3b82f6, #1e3a8a, #facc15);
  background-size: 300% 300%;
  color: #ffffff;
  padding: 120px 20px 100px;
  min-height: 70vh;
  border-radius: 0 0 60px 60px;
  animation: gradientShift 10s ease infinite, fadeInHero 1s ease-out forwards;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3);
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 100px;
  background: #f9fafb;
  clip-path: ellipse(70% 100% at 50% 100%);
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  font-weight: 700;
  animation: slideUp 0.8s ease-out forwards;
}

.hero p {
  font-size: 1.2rem;
  max-width: 650px;
  line-height: 1.6;
  opacity: 0;
  animation: fadeIn 1s ease-out 0.4s forwards;
}

.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(90deg, #facc15, #fbbf24, #3b82f6);
  background-size: 200%;
  color: #1e3a8a;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.4s ease;
  transform: scale(1);
  opacity: 0;
  animation: fadeIn 1.2s ease-out 0.6s forwards;
}

.btn-primary:hover {
  background-position: right center;
  transform: scale(1.08);
  color: #fff;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

/* ===========================
   LATEST POSTS SECTION
   =========================== */
.latest-posts-title, h2 {
  text-align: center;
  font-size: 1.8rem;
  color: #1e3a8a;
  margin-top: 60px;
  margin-bottom: 40px;
  font-weight: 700;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 40px 20px 80px;
  max-width: 1100px;
  margin: 0 auto;
}

.post-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: all 0.4s ease, transform 0.2s ease;
}

.post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.25);
}

.post-card-content {
  padding: 20px;
}

.post-card-content h3 {
  font-size: 1.3rem;
  color: #1e3a8a;
  margin-bottom: 10px;
}

.post-card-content p {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* Buttons inside post cards */
.post-card-content a {
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  color: white !important;
  padding: 8px 16px;
  border-radius: 6px;
  display: inline-block;
  text-decoration: none;
  transition: all 0.3s ease;
}

.post-card-content a:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

/* ===========================
   PAGINATION
   =========================== */
.pagination, .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 60px auto 80px;
  padding: 10px 0;
}

.pagination a, .nav-links a, .pagination span, .nav-links span {
  background: #fff;
  color: #1e3a8a;
  border: 1px solid #dbeafe;
  border-radius: 6px;
  padding: 8px 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pagination a:hover, .nav-links a:hover {
  background: #1e3a8a;
  color: #fff;
  transform: translateY(-2px);
}

/* ===========================
   FOOTER — MATCHED CURVE
   =========================== */
.footer-container {
  position: relative;
  background: #111827;
  color: #e5e7eb;
  text-align: center;
  padding: 60px 20px;
  border-top: 4px solid #3b82f6;
  margin-top: 80px;
}

.footer-container::before {
  content: "";
  position: absolute;
  top: -60px;
  left: 0;
  width: 100%;
  height: 80px;
  background: #f9fafb;
  clip-path: ellipse(70% 100% at 50% 0%);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #facc15;
  transform: translateY(-2px);
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fadeInHero {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===========================
   RESPONSIVE STYLES
   =========================== */
@media (max-width: 768px) {
  .hero {
    padding: 80px 20px;
    min-height: 60vh;
  }

  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }

  .posts-grid {
    gap: 25px;
    padding: 30px 15px 60px;
  }

  .post-card { margin: 0 10px; }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}

/* ===========================
   MOBILE MENU INLINE FIX
   =========================== */
.menu-toggle { display: none !important; }

.main-navigation .main-nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation .main-nav ul li a {
  display: inline-block;
  padding: 8px 14px;
  color: #ffffff;
  background: #1e3a8a;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item a {
  background: #facc15;
  color: #1e3a8a;
}
/* ==========================
   Floating Social Sidebar (Desktop + Mobile)
   ========================== */
.social-sidebar {
  position: fixed;
  top: 40%;
  left: 15px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999999; /* ensure it's above everything */
}

.social-sidebar a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

/* Brand Colors */
.social-sidebar a[aria-label="WhatsApp"] { background-color: #25D366; }
.social-sidebar a[aria-label="Telegram"] { background-color: #0088cc; }
.social-sidebar a[aria-label="Facebook"] { background-color: #1877F2; }
.social-sidebar a[aria-label="Instagram"] {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

/* Hover */
.social-sidebar a:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* ==========================
   MOBILE VIEW — bottom bar
   ========================== */
@media (max-width: 768px) {
  .social-sidebar {
    bottom: 15px;
    left: 50%;
    top: auto;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 18px;
    padding: 8px 14px;
    background: rgba(30,58,138,0.9);
    backdrop-filter: blur(10px);
    border-radius: 40px;
  }

  .social-sidebar a {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }
}




