* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: #0c1324;
    color: #e2e8f0;
    line-height: 1.6;
}

/* ==================== HEADER ==================== */
.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(12, 19, 36, 0.98);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(203, 213, 225, 0.15);
}

header h1 {
    font-size: 26px;
    color: #e2e8f0;
    font-weight: 700;
}

.verified {
    font-size: 0.78rem;
    background: #22c55e;
    color: #0f172a;
    padding: 2px 8px;
    border-radius: 30px;
    margin-left: 8px;
}

nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

nav a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
}

.login-btn {
    background: #cbd5e1;
    color: #0f172a;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
}
/* 🔥 Offer Banner */
.offer-banner {
  width: 100%;
  background: linear-gradient(90deg, #6a11cb, #2575fc);
  color: white;
  text-align: center;
  padding: 10px;
  font-size: 14px;
  font-weight: 500;
  position: sticky;
  top: 0;
  z-index: 999;
}
/* ==================== HERO ==================== */
.hero {
  height: 90vh;
  background: url('images/hero.jpg') no-repeat center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12,19,36,0.4), rgba(12,19,36,0.9));
}


.hero-content {
  background: rgba(0,0,0,0.5);
  padding: 20px;
  border-radius: 12px;
}

.hero h2 {
    font-size: 2.3rem;
    line-height: 1.2;
    margin-bottom: 14px;
    color: #f1f5f9;
}

.tagline {
    font-size: 1.1rem;
    color: #bae6fd;
    margin-bottom: 24px;
}

.hero-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: #ffcc00;
  color: black;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}

.hero-stats {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 1.05rem;
}

/* Trust Bar */
.trust-bar {
    background: #1e2937;
    padding: 14px 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: #cbd5e1;
}

/* Blog Section */
.blog-section {
    max-width: 1280px;
    margin: 60px auto;
    padding: 0 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.section-header h2 {
    font-size: 2.1rem;
    color: #e2e8f0;
}

.view-all {
    color: #cbd5e1;
    text-decoration: none;
}

.blog-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
}

.card {
    background: #1e2937;
    border-radius: 18px;
    overflow: hidden;
    transition: 0.4s;
}

.card:hover {
    transform: translateY(-8px);
}

.card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.card-content {
    padding: 18px;
}

.category {
    background: linear-gradient(90deg, #cbd5e1, #94a3b8);
    color: #0f172a;
    font-size: 0.8rem;
    padding: 4px 14px;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 12px;
}

.card h3 {
    font-size: 1.28rem;
    margin-bottom: 10px;
}

.card p {
    color: #94a3b8;
    margin-bottom: 16px;
}

.btn {
    background: #cbd5e1;
    color: #0f172a;
    padding: 9px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

/* Footer */
footer {
    background: #0a101f;
    padding: 30px 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
    border-top: 1px solid rgba(203, 213, 225, 0.1);
}

.footer-links a {
    color: #cbd5e1;
    margin: 0 12px;
    text-decoration: none;
}

/* ==================== MOBILE RESPONSIVE ==================== */
/* ==================== MOBILE RESPONSIVE ==================== */
@media (max-width: 768px) {

  /* Header */
  .header-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .menu-toggle {
    display: block;
    font-size: 26px;
    color: white;
    cursor: pointer;
  }

  /* Navbar Dropdown */
  /* Desktop default */
nav {
  display: flex;
}

/* Mobile me nav hide */
@media (max-width: 768px) {

  nav {
    display: none;
    position: absolute;
    top: 60px;
    right: 15px;
    width: 200px;
    background: #020617;
    border-radius: 12px;
    padding: 10px;
    flex-direction: column;
  }

  nav.active {
    display: flex;
  }

}

  nav a {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #1e293b;
  }

  nav a:last-child {
    border-bottom: none;
  }

  #authArea {
    margin-top: 10px;
    text-align: center;
  }

  #authArea button {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
  }

  /* HERO FIX (MAIN PROBLEM SOLVED) */
  .hero {
    height: 300px;
  }

  .hero-content {
    width: 95%;
    padding: 0 10px;
  }

  .hero h2 {
    font-size: 1.6rem;
    line-height: 1.3;
    word-break: break-word;
  }

  .tagline {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .hero-btn {
    width: 100%;
    font-size: 1rem;
    padding: 12px 18px;
  }

  .hero-stats {
    font-size: 0.9rem;
    gap: 10px;
  }

  /* Blog */
  .blog-container {
    grid-template-columns: 1fr;
  }

  /* Content */
  .container {
    padding: 15px;
  }

  h1 {
    font-size: 22px;
  }

  h2 {
    font-size: 18px;
  }

  p {
    font-size: 14px;
  }
}


/* Extra small devices */
@media (max-width: 480px) {

  .hero {
    height: 260px;
  }

  .hero h2 {
    font-size: 1.4rem;
  }

}
/* 👤 Profile Box */
.profile-box {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

/* Icon */
.profile-icon {
  font-size: 20px;
  color: #cbd5e1;
}

/* Dropdown */
.profile-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 40px;
  background: #020617;
  padding: 12px;
  border-radius: 10px;
  width: 220px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 999;
}

/* Email Text */
.profile-dropdown p {
  font-size: 13px;
  margin-bottom: 10px;
  color: #cbd5e1;
  word-break: break-all;
}

/* Logout Button */
.profile-dropdown button {
  width: 100%;
  padding: 8px;
  background: #ef4444;
  border: none;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}

/* Show Dropdown */
.profile-box.active .profile-dropdown {
  display: block;
}

/* Blog Image */
.blog-img {
  width: 100%;
  border-radius: 10px;
  margin: 15px 0;
}

/* Container */
.container {
  max-width: 900px;
  margin: auto;
  padding: 20px;
}

/* ================= MOBILE FIX ================= */
@media (max-width: 768px) {

  .profile-dropdown {
    right: -10px;
    width: 200px;
  }

}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.section-header h2 {
  font-size: 1.8rem;
  line-height: 1.2;
}

/* Mobile Fix */
@media (max-width: 768px) {

  .section-header {
    flex-direction: row;
    align-items: center;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .view-all {
    font-size: 0.9rem;
    white-space: nowrap;
  }

}
/* Default (Desktop) */
.menu-toggle {
  display: none;
}

/* Mobile only */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
  }

  nav {
    display: none;
  }

  nav.active {
    display: flex;
  }
}