/* ================= GLOBAL VARIABLES ================= */
:root {
  --primary: #0077cc;
  --secondary: #ff6600;
  --success: #00cc99;
  --muted: #666666;
  --border-radius: 24px;
  --card-shadow: 0 6px 18px rgba(0,0,0,0.1);
  --transition-speed: 0.3s;
  --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ================= GLOBAL RESET ================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--muted);
  background-color: #f9f9f9;
}

a {
  text-decoration: none;
  color: var(--primary);
}

a:hover {
  text-decoration: underline;
}

/* ================= HEADER ================= */
.site-header {
  background: #fff;
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-header .brand-logo {
  height: 40px;
  width: auto;
}

.site-header .brand-text {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--primary);
}

.main-nav a {
  margin-left: 2rem;
  font-weight: 600;
  transition: color var(--transition-speed);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--secondary);
}

/* ================= HERO ================= */
.hero {
  border-radius: var(--border-radius);
  padding: 5rem 2rem;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  font-weight: 500;
  line-height: 1.6;
}

/* ================= CONTAINER ================= */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ================= CARDS ================= */
.directory-grid,
.pricing-grid,
.packages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.directory-card,
.package-card {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  position: relative;
}

/* -------------------- DIRECTORY CARD -------------------- */
.directory-card.basic { border: 3px solid #e0e0e0; }
.directory-card.featured { border: 3px solid var(--secondary); }
.directory-card.premium { border: 3px solid var(--success); }

/* Glow effect on hover (directory) */
.directory-card.featured:hover { box-shadow: 0 12px 28px rgba(245,166,35,0.4); }
.directory-card.premium:hover { box-shadow: 0 12px 28px rgba(0,204,153,0.4); }

.directory-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
  text-align: center;
}

.card-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.card-content p {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

/* Tags */
.tags span {
  display: inline-block;
  margin: 0.2rem 0.3rem;
  background: #f1f1f1;
  padding: 0.3rem 0.6rem;
  border-radius: 16px;
  font-size: 0.85rem;
}

/* Badges */
.badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  color: #fff;
}

.badge.featured { background: var(--secondary); }
.badge.premium { background: var(--success); }

/* -------------------- PACKAGE CARD -------------------- */
.package-card {
  height: 480px; /* uniform height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.package-card:hover {
  transform: none; /* hover disabled */
  box-shadow: var(--card-shadow);
}

.package-card h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.package-card p {
  color: #666;
  margin: 0.75rem 0;
}

.package-card .price {
  font-size: 2rem;
  font-weight: 900;
  margin: 1.2rem 0;
}

.plan-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
  height: 60px;
  width: 60px;
  border-radius: 50%;
  font-size: 1.8rem;
  color: #fff;
}

/* Bright Colors Style B */
.basic .plan-icon { background-color: #4A90E2; }
.featured .plan-icon { background-color: #F5A623; }
.premium .plan-icon { background-color: #7ED321; }

/* Premium Glow & Ribbon */
.package-card.premium::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(45deg, #ff6600, #ffcc00, #0077cc, #00ccff);
  background-size: 400% 400%;
  animation: gradientMove 6s ease infinite;
  opacity: 0.25;
  border-radius: 40px;
  z-index: 0;
}

.ribbon {
  position: absolute;
  top: 12px;
  right: -28px;
  background: #00cc99;
  color: #fff;
  padding: 6px 50px;
  transform: rotate(45deg);
  font-weight: bold;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 2;
  font-size: 0.9rem;
}

/* ================= BUTTONS ================= */
.btn-outline {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  border: 2px solid var(--primary);
  border-radius: 50px;
  font-weight: 700;
  transition: 0.3s;
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ================= FEATURE COMPARISON ================= */
.feature-compare {
  margin-top: 5rem;
  background: #fff;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  overflow-x: auto;
}

.feature-compare h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  font-weight: 700;
}

.feature-compare table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

.feature-compare th {
  padding: 1rem;
  background: var(--primary);
  color: #fff;
  border-radius: 18px;
  font-size: 1.2rem;
}

.feature-compare td {
  padding: 1rem;
  border-bottom: 1px solid #eee;
}

.feature-compare tr:last-child td { border-bottom: none; }

.feature-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.6rem;
  height: 32px;
  width: 32px;
  border-radius: 50%;
  margin: 0 auto;
}

.feature-icon.yes { background: #d4f8d4; color: #2faa2f; }
.feature-icon.no { background: #ffe0e0; color: #cc0000; }

/* ================= TOGGLE SWITCH ================= */
.toggle-switch {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
  font-weight: 600;
}

.toggle-switch label {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 32px;
}

.toggle-switch input { display: none; }

.slider {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  border-radius: 34px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
}

input:checked + .slider { background-color: var(--primary); }
input:checked + .slider:before { transform: translateX(28px); }

/* ================= FOOTER ================= */
.site-footer {
  padding: 2rem 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }
  .main-nav a { margin-left: 1rem; }
  .directory-grid,
  .pricing-grid,
  .packages { grid-template-columns: 1fr; }
}

/* ================= PREMIUM CARD ANIMATION ================= */
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Advertise Packages Grid */
.packages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Package Cards */
.package-card {
  background: #fff;
  border-radius: 24px;
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 480px; /* same height for uniform grid */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Colored Borders for Packages */
.package-card.basic { border: 3px solid #e0e0e0; }
.package-card.featured { border: 3px solid #ff6600; }
.package-card.premium { border: 3px solid #00cc99; }

/* Premium Glow Effect */
.package-card.premium::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(45deg, #ff6600, #ffcc00, #0077cc, #00ccff);
  background-size: 400% 400%;
  animation: gradientMove 6s ease infinite;
  opacity: 0.25;
  border-radius: 40px;
  z-index: 0;
}

/* Ribbon stays above glow */
.ribbon {
  position: absolute;
  top: 12px;
  right: -28px;
  background: #00cc99;
  color: #fff;
  padding: 6px 50px;
  transform: rotate(45deg);
  font-weight: bold;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 2;
  font-size: 0.9rem;
}

/* Advertise Page Feature List */
.advertise-section ul {
  list-style: none; /* remove default bullets */
  padding-left: 0;
  margin-bottom: 2rem;
}

.advertise-section li {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 500;
  color: #444;
  transition: color 0.3s ease;
}

/* Bullet icon using pseudo-element */
.advertise-section li::before {
  content: "\2713"; /* Unicode checkmark */
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.2rem;
  color: var(--success); /* green checkmark */
  font-weight: bold;
}

/* Optional hover effect on feature text */
.advertise-section li:hover {
  color: var(--primary);
}

