:root {
  --blue: #0258E6;
  --pink: #ff3ea5;
  --red: #ff0000;
  --black: #000000;
  --white: #ffffff;
  --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.12);
  --radius: 25px;
}

/* ===== Global Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: url('../images/background.jpg') no-repeat center center fixed;
  background-size: cover;
  color: var(--black);
  line-height: 1.6;
}

/* ===== Header ===== */
header {
  position: sticky;
  top: 0;
  background: var(--white);
  box-shadow: var(--shadow-light);
  padding: 0.8rem 1rem;
  z-index: 1000;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  transition: box-shadow 0.3s ease;
}

header:hover {
  box-shadow: var(--shadow-hover);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.header-left {
  flex: 1;
}

.header-right {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex: 1;
}

.logo {
  display: flex;
  justify-content: center;
}

.logo img {
  max-height: 50px;
  width: auto;
  border-radius: 15px;
  transition: transform 0.3s ease;
  display: block;
}

.logo img:hover {
  transform: scale(1.05);
}

/* ===== Search Bar (Desktop) ===== */
.search-bar {
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  outline: none;
  font-size: 0.95rem;
  max-width: 200px;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
}

.search-bar:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 62, 165, 0.3);
}

/* ===== Buttons ===== */
.btn {
  background: var(--white);
  border: 2px solid var(--blue);
  color: var(--blue);
  padding: 8px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  box-shadow: var(--shadow-light);
}

.btn:hover {
  background: var(--pink);
  color: var(--white);
  border-color: var(--pink);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

/* ===== Hero Section ===== */
.hero {
  text-align: center;
  padding: 4rem 1rem;
  background: linear-gradient(135deg, #f7f9fc 0%, #ffffff 100%);
  border-radius: var(--radius);
  margin: 2rem auto;
  max-width: 900px;
  box-shadow: var(--shadow-light);
  transition: box-shadow 0.3s ease;
}

.hero:hover {
  box-shadow: var(--shadow-hover);
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.red-text {
  color: var(--red);
}

.black-text {
  color: var(--black);
}

.tagline {
  font-size: 1.2rem;
  color: var(--blue);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.hero h1 span {
  transition: color 0.3s ease;
}

.hero h1 span:hover {
  color: var(--pink);
}

/* ===== Icons (Hamburger & Search Mobile) ===== */
.icon-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  color: var(--blue);
  transition: transform 0.2s ease;
}

.icon-btn:hover {
  transform: scale(1.1);
}

/* ===== Mobile Menu ===== */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  box-shadow: var(--shadow-light);
  position: absolute;
  top: 70px;
  right: 15px;
  border-radius: var(--radius);
  padding: 0.8rem;
  z-index: 2000;
  min-width: 160px;
}

.mobile-menu .btn {
  margin: 0.4rem 0;
  width: 100%;
  text-align: center;
}

.mobile-menu.active {
  display: flex;
}

/* ===== Mobile Search Box ===== */
.mobile-search-box {
  display: none;
  background: var(--white);
  box-shadow: var(--shadow-light);
  padding: 0.8rem;
  margin: 0.5rem 1rem;
  border-radius: var(--radius);
  position: relative;
  z-index: 1500;
}

.mobile-search-box.active {
  display: block;
}

.mobile-search-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  outline: none;
  font-size: 1rem;
}

.mobile-search-input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 62, 165, 0.3);
}

/* ===== About Section ===== */
.about {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  text-align: center;
}

.about p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--black);
  line-height: 1.8;
}

.about strong {
  color: var(--blue);
}

/* ===== Category Grid ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.category-card {
  position: relative;
  height: 220px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  display: flex;
  align-items: flex-end;
  transition: transform 0.3s ease;
}

.category-card:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-hover);
}

.category-btn {
  background: rgba(255, 255, 255, 0.7); /* ✨ semi-transparent white */
  color: var(--blue);
  border: 2px solid rgba(255, 255, 255, 0.8);
  padding: 10px 18px;
  margin: 12px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(4px);  /* adds a frosted glass effect */
  transition: background 0.3s ease, color 0.3s ease;
}

.category-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--pink);
  border-color: rgba(255, 255, 255, 1);
}


/* Specific Background Images */
.category-card.pre {
  background-image: url('../images/pre.png');
}

.category-card.primary {
  background-image: url('../images/primary.png');
}

.category-card.secondary {
  background-image: url('../images/secondary.png');
}

.category-card.business {
  background-image: url('../images/business.png');
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    height: 180px;
  }

  .category-btn {
    padding: 8px 14px;
    font-size: 0.9rem;
  }
}


/* ============================================================
   🌐 Transparent Footer with Social Icons
   ============================================================ */
.footer {
  background: rgba(0, 0, 0, 0.3);
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
  backdrop-filter: blur(4px);
}

.footer .social-icons {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 10px;
}

.footer .social-icons a {
  color: white;
  font-size: 1.8rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer .social-icons a:hover {
  transform: scale(1.2);
  color: #ff3ea5;
}

.footer .footer-text {
  color: white;
  font-size: 0.9rem;
  opacity: 0.8;
}


/* ============================================================
   📢 Promo Section Styles
   ============================================================ */
.promo-section {
  background: linear-gradient(135deg, #3ECF8E, #8E2DE2); /* 💚 Green → 💜 Purple */
  color: #fff;
  padding: 2rem 1rem;
  margin-top: 3rem;
  border-radius: 15px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.promo-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.promo-text {
  flex: 1 1 300px;
}

.promo-text h2 {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.promo-text p {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

.promo-btn {
  display: inline-block;
  background: #fff;
  color: #0258E6;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.promo-btn:hover {
  background: #ff3ea5;
  color: #fff;
  transform: translateY(-3px);
}

.promo-image img {
  max-width: 250px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .promo-content {
    flex-direction: column;
    text-align: center;
  }
  .promo-image img {
    max-width: 80%;
  }
}



/* ===== Responsive Header ===== */
@media (max-width: 768px) {
  header {
    padding: 8px 0 0 0; /* ✅ space above logo */
  }

  .header-container {
    max-width: 100%;
    padding: 0;
    margin: 0;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .header-left,
  .header-right {
    flex: 0 0 auto;
  }

  .logo {
    flex: 0 0 auto;
    justify-content: flex-start;
    margin-left: 0;
    padding-left: 0;
  }

  .logo img {
    max-height: 40px;
    margin-left: 0;
    padding-left: 0;
    display: block;
  }

  .header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding-right: 8px;
  }

  .header-left .search-bar {
    display: none;
  }

  .header-right .btn {
    display: none;
  }

  .icon-btn {
    display: inline-block;
  }

  .btn {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero {
    margin: 1.5rem;
    padding: 2.5rem 1rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .tagline {
    font-size: 1rem;
  }
}


/* ============================================================
   🏠 Home Button at Bottom
   ============================================================ */
.home-btn-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.home-btn {
  background: linear-gradient(135deg, #0258E6, #ff3ea5);
  color: #fff;
  padding: 12px 28px;
  border-radius: 40px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, background 0.3s ease;
}

.home-btn:hover {
  transform: scale(1.08);
  background: linear-gradient(135deg, #ff3ea5, #0258E6);
}
