/* ====== GLOBAL RESET (PC/Mobile Base) ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
  color: #2d3748;
  line-height: 1.6;
}

/* ====== CONTAINER (PC/Mobile Base) ====== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ====== HEADER (PC/Mobile Base) ====== */
header {
  background: linear-gradient(135deg, #544dd1 0%, #7c3aed 100%);
  color: white;
  padding: 15px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Toggle button for mobile (Must be added to HTML) */
.menu-toggle {
  display: none; /* Hide on PC */
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
  color: white;
  padding: 5px 10px;
}

/* ====== LOGO (PC/Mobile Base) ====== */
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-circle {
  width: 50px; /* Reduced size slightly for better mobile fit */
  height: 50px; /* Reduced size slightly for better mobile fit */
  border-radius: 50%;
  overflow: hidden;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.logo-img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.logo-text {
  font-family: 'Roboto Slab', serif;
  font-size: 1.6rem; /* Adjusted for mobile-first */
  font-weight: 700;
  color: #ffffff;
}

/* ====== NAVIGATION (PC Base) ====== */
.nav-menu {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: all 0.3s ease; /* For smooth mobile open/close */
}

.nav-menu li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-menu li a i {
  font-size: 1.1rem;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
  color: #ffffff;
}

/* ====== HERO SECTION (PC/Mobile Base) ====== */
.hero {
  padding: 60px 0; /* Reduced padding for mobile */
  text-align: center;
  background: linear-gradient(rgba(79, 70, 229, 0.85), rgba(124, 58, 237, 0.9)),
    url("https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&w=1200&q=80")
    no-repeat center center / cover;
  color: white;
  position: relative;
  border-radius: 0 0 30px 30px;
  margin-bottom: 40px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h2 {
  font-size: 2rem; /* Adjusted for mobile-first */
  margin-bottom: 15px;
  font-weight: 700;
  font-family: "Roboto Slab", serif;
}

.hero p {
  font-size: 1rem; /* Adjusted for mobile-first */
  margin: 0 auto 30px;
  opacity: 0.9;
  max-width: 700px;
}

/* ====== SEARCH BOX (PC/Mobile Base) ====== */
.search-box {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 15px 20px; /* Reduced padding for mobile */
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.search-box button {
  position: absolute;
  right: 5px; /* Adjusted position */
  top: 5px; /* Adjusted position */
  padding: 10px 20px; /* Reduced padding for mobile */
  background: linear-gradient(135deg, #ffde59 0%, #ffb347 100%);
  color: #2d3748;
  border: none;
  border-radius: 50px;
  font-size: 0.9rem; /* Adjusted for mobile */
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 179, 71, 0.4);
}

.search-box button:hover {
  transform: none; /* Removed transform on hover for touch devices */
  box-shadow: 0 6px 20px rgba(255, 179, 71, 0.5);
}

/* ====== FOOTER (PC/Mobile Base) ====== */
footer {
  background: #2d3748;
  color: #fff;
  padding: 25px 0; /* Reduced padding for mobile */
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 15px;
  margin: 15px 0;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.9rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

.footer-links a:hover {
  color: #ffde59;
}


/*
|=======================================|
|          MOBILE RESPONSIVENESS        |
|=======================================|
*/
@media (max-width: 768px) {
  /* Adjustments for tablets and smaller */
  .container {
    padding: 0 15px; /* Less padding on small screens */
  }

  /* --- HEADER --- */
  .menu-toggle {
    display: block; /* Show the menu button on mobile */
  }

  .header-content {
    flex-wrap: wrap; /* Allow wrapping */
  }

  .nav-menu {
    /* Mobile Navigation Setup */
    flex-direction: column;
    width: 100%;
    max-height: 0; /* Initially hidden */
    overflow: hidden;
    margin-top: 0;
    padding: 0;
    opacity: 0;
  }

  /* This class must be toggled by JavaScript on the 'nav-menu' when the menu button is clicked */
  .nav-menu.is-open {
    max-height: 300px; /* Adjust based on your menu items */
    padding: 10px 0;
    opacity: 1;
  }

  .nav-menu li {
    width: 100%;
    margin-bottom: 5px;
  }

  .nav-menu li a {
    width: 100%;
    padding: 12px 15px; /* Larger hit area */
    border-radius: 4px;
    justify-content: center; /* Center the links */
    background: rgba(255, 255, 255, 0.1);
  }

  .nav-menu li a:hover,
  .nav-menu li a.active {
    transform: none; /* Disable transform animation on small screens */
  }

  /* --- HERO --- */
  .hero {
    padding: 40px 0;
    margin-bottom: 20px;
    border-radius: 0 0 15px 15px;
  }

  .hero h2 {
    font-size: 1.6rem;
  }

  /* --- SEARCH BOX --- */
  .search-box button {
    position: static; /* Button below input on mobile */
    width: 100%;
    margin-top: 10px;
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: 50px;
  }
}


/*
|=======================================|
|          PC RESPONSIVENESS (Refinements) |
|=======================================|
*/
@media (min-width: 769px) {
    /* PC specific style adjustments */
    .logo-circle {
      width: 60px;
      height: 60px;
    }

    .logo-text {
      font-size: 1.8rem;
    }

    .hero h2 {
      font-size: 2.8rem;
    }

    .hero p {
      font-size: 1.25rem;
    }

    .search-box button:hover {
        transform: translateY(-2px); /* Re-enable for mouse hover */
    }
}

.home-billing-button button {
    background-color: #a16eff;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.home-billing-button button:hover {
    transform: translateY(-2px);
}

.billing-ad-card {
    background: linear-gradient(135deg, #a16eff, #6b3cff);
    color: white;
    padding: 20px;
    border-radius: 12px;
    width: 300px;
    margin: 30px auto;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.billing-ad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

.billing-ad-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.billing-ad-content p {
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.billing-ad-button {
    display: inline-block;
    background-color: white;
    color: #6b3cff;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.billing-ad-button:hover {
    background-color: #f3f3f3;
    color: #a16eff;
}
.home-container {
    padding: 30px;
}

/* Floating top-right ad card */
.billing-ad-card {
    position: fixed;       /* stays on screen even when scrolling */
    top: 150px;             /* distance from top */
    right: 20px;           /* distance from right */
    width: 300px;
    background: linear-gradient(135deg, #a16eff, #6b3cff);
    color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 1000;         /* above all content */
}

.billing-ad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

.billing-ad-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.billing-ad-content p {
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.billing-ad-button {
    display: inline-block;
    background-color: white;
    color: #6b3cff;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.billing-ad-button:hover {
    background-color: #f3f3f3;
    color: #a16eff;
}

h1 {
  font-size: 30px;  /* main header size */
  font-weight: 70;
  margin-bottom: 10px;
}

.subheading {
  font-size: 23px !important;   /* smaller than h1 */
  font-weight: 400 !important;  /* lighter */
  color: #000000 !important;       /* optional subtle gray */
  margin-top: 0;
  margin-bottom: 15px;
}

/* Container adjusts to screen width */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero section adapts to mobile */
.hero-content {
  display: flex;
  flex-direction: column; /* stack on small screens */
  align-items: center;
}

/* Search box responsive */
.search-box {
  display: flex;
  flex-direction: column; /* mobile: stack input + button */
  gap: 10px;
}

@media(min-width: 768px) {
  .search-box {
    flex-direction: row; /* desktop: inline */
  }
}


.logo-img {
  width: 89px;   /* Was maybe 50px, increase as needed */
  height: 89px;  /* Keep aspect ratio */
  transition: transform 0.3s ease;
}

.answer-box {
  background: #ffffff10;
  border: 1px solid #d6c770;
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  color: #fff;
  text-align: left;
  font-size: 15px;
  line-height: 1.6;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}
.answer-box h3 {
  margin-top: 0;
  color: #ffd86a;
  font-size: 18px;
  margin-bottom: 10px;
}
.answer-box p {
  margin: 0;
}
.answer-box:hover {
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}