/* ==========================
   🔷 CSS Variables
========================== */
:root {
  --primary: #f97316;
  --secondary: #f43f5e;
  --text-dark: #1e293b;
  --brand-dark: #1e3a8a;
  --light-bg: #f1f5f9;
  --genz-bg: #fff7ed;
}

/* ==========================
   🔷 Base Reset & General
========================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #fff;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================
   🔷 Header & Navbar
========================== */
.header {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  color: white;
  padding: 22px 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 25px;
  font-weight: bold;
}

.logo a {
  text-decoration: none;
  color: inherit;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #ffeb3b;
}

.btn-primary {
  background-color: var(--brand-dark);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.btn-secondary {
  background-color: white;
  color: var(--brand-dark);
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.hamburger {
  display: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 10;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    margin: 12px 0;
  }

  .hamburger {
    display: block;
  }
}

.hero {
  text-align: center;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  padding: 10px 10px;
  border-radius: 0 0 20px 20px;
}

.hero h1 {
  color: white;
  font-size: 35px;
  margin-bottom: 0px;
  margin-top: 10px;
}

.hero p {
  color: white;
  font-size: 15px;
  margin-top: 0px;
  margin-bottom: 35px;
}

/* ==========================
   🔷 Blog Section
========================== */


.search-bar-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap; /* Prevents wrapping to next line */
  margin: 30px 20px;
  overflow-x: auto;
}

#searchInput {
  flex: 1;
  min-width: 0;
  max-width: 400px;
  padding: 12px 16px;
  border: 2px solid var(--brand-dark);
  border-radius: 8px;
  font-size: 16px;
  outline: none;
}

#searchBtn {
  flex-shrink: 0;
  padding: 12px 16px;
  background-color: var(--brand-dark);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 16px;
  cursor: pointer;
}

#searchBtn:hover {
  background-color: var(--primary);
}





.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 0 20px 90px;
}

.blog-card {
  background-color: var(--light-bg);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  text-align: left;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.blog-card h2 {
  font-size: 20px;
  color: var(--secondary);
  margin-bottom: 10px;
}

.blog-card p {
  color: var(--text-dark);
  font-size: 15px;
}

/* ==========================
   🔷 Modal
========================== */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  overflow-y: auto;
}

.modal-content {
  background: white;
  margin: 80px auto;
  padding: 30px;
  border-radius: 12px;
  max-width: 600px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  position: relative;
}

.modal-content h2 {
  color: var(--primary);
  margin-bottom: 20px;
}

.modal-content p {
  color: var(--text-dark);
}

.close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.close:hover {
  color: #000;
}

/* ==========================
   🔷 Footer
========================== */
footer {
  background-color: var(--brand-dark);
  color: white;
  padding: 40px 20px;
  text-align: center;
  width: 100%;
  border-radius: 20px 20px 0 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-follow,
.footer-links {
  width: 45%;
}

h3 {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 600;
}

ul {
  list-style-type: none;
  padding: 0;
}

ul li {
  margin-bottom: 10px;
}

ul li a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

ul li a:hover {
  color: var(--primary);
}

.footer-disclaimer,
.footer-copyright {
  font-size: 14px;
  margin-top: 10px;
  margin-bottom: 10px;
}