/* ══════════════════════════════════════════════════════════════
   PorbandarOnline — Homepage Redesign (additive, non-destructive)
   Loads AFTER main/components CSS. Remove this file to revert.
   ══════════════════════════════════════════════════════════════ */

/* ---------- HERO 2 ---------- */
.hero-hp2 { min-height: 92vh; }
.hero-hp2 .hero-hp-bg { background: linear-gradient(135deg,#041824 0%,#083048 45%,#0A3A50 72%,#0E4C4B 100%); }
.hero2-inner { position: relative; z-index: 2; max-width: 620px; padding: 96px 0 120px; }
.hero2-h1 {
  font-family: 'Playfair Display', serif; font-weight: 700;
  line-height: 1.05; color: #fff; margin: 0 0 20px;
  text-shadow: 0 2px 24px rgba(0,0,0,.28); display: block;
}
/* Line 1: PorbandarOnline — ~15% smaller than the lines below */
.hero2-brand {
  display: block;
  font-size: clamp(34px, 4.8vw, 60px);
  line-height: 1.05;
}
.hero2-brand-on { color: var(--yellow); }
/* Line 2: Discover — white, full size */
.hero2-discover {
  display: block;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  color: #fff;
}
/* Line 3: typewriter — yellow, full size, height reserved so wrapping never
   pushes the search/chips/stats down */
.hero2-tw {
  display: block;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.1;
  min-height: 2.2em;            /* room for up to 2 wrapped lines */
}
.hero2-tw .hero-tw-text { color: var(--yellow); font-style: italic; }
.hero-tw-caret { display:inline-block; width:3px; height:.9em; background:var(--yellow); margin-left:4px; vertical-align:-2px; animation: h2blink 1s steps(1) infinite; }
@keyframes h2blink { 50% { opacity: 0; } }
.hero2-sub {
  font-size: 17px; color: rgba(255,255,255,.9); line-height: 1.6;
  max-width: 480px; margin: 0 0 28px; text-shadow: 0 1px 12px rgba(0,0,0,.3);
}

/* Search */
.hero2-search { display: flex; gap: 10px; max-width: 560px; margin-bottom: 18px; }
.hero2-search-field {
  flex: 1; display: flex; align-items: center; gap: 10px; background: #fff;
  border-radius: 12px; padding: 0 16px; box-shadow: 0 10px 34px rgba(0,0,0,.18);
}
.hero2-search-field i { color: var(--muted); font-size: 15px; }
.hero2-search-field input {
  flex: 1; border: 0; outline: 0; background: transparent; padding: 16px 0;
  font-family: inherit; font-size: 15px; color: var(--text);
}
.hero2-search-btn {
  border: 0; cursor: pointer; background: var(--blue); color: #fff;
  border-radius: 12px; padding: 0 24px; font-family: 'Poppins',sans-serif;
  font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 10px 30px rgba(0,130,200,.35); transition: background .15s ease, transform .15s ease;
}
.hero2-search-btn:hover { background: var(--blue-d); transform: translateY(-1px); }

/* Chips */
.hero2-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 34px; max-width: 580px; }
.hero2-chip {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
  color: #fff; border-radius: 100px; padding: 7px 16px; font-size: 13px; font-weight: 500;
  backdrop-filter: blur(4px); transition: background .15s ease, border-color .15s ease;
}
.hero2-chip:hover { background: rgba(255,255,255,.26); border-color: rgba(255,255,255,.5); }

/* Stats */
.hero2-stats { display: flex; flex-wrap: wrap; gap: 34px; }
.h2s-n { font-family: 'Playfair Display',serif; font-size: 30px; font-weight: 700; color: #fff; line-height: 1; }
.h2s-l { font-size: 12.5px; color: rgba(255,255,255,.75); margin-top: 5px; font-weight: 500; }

@media (max-width: 768px) {
  .hero-hp2 { min-height: auto; }
  .hero2-inner { padding: 60px 0 72px; }
  .hero2-search { flex-direction: column; }
  .hero2-search-btn { padding: 14px; justify-content: center; }
  .hero2-stats { gap: 22px; }
  .h2s-n { font-size: 24px; }
}

/* ---------- ICON CATEGORY ROW (floating card) ---------- */
.icon-nav-wrap { position: relative; z-index: 5; margin-top: -52px; margin-bottom: 20px; }
.icon-nav-card {
  background: #fff; border-radius: 18px; box-shadow: 0 16px 50px rgba(4,24,36,.14);
  padding: 22px 16px; display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px;
}
.icon-nav-item { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 10px 4px; border-radius: 12px; transition: background .15s ease, transform .15s ease; text-align: center; }
.icon-nav-item:hover { background: var(--sand); transform: translateY(-2px); }
.icon-nav-ic { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 19px; }
.icon-nav-label { font-size: 12px; font-weight: 600; color: var(--text-2); line-height: 1.2; }

@media (max-width: 1024px) { .icon-nav-card { grid-template-columns: repeat(5, 1fr); row-gap: 14px; } }
@media (max-width: 620px) {
  .icon-nav-wrap { margin-top: -30px; }
  .icon-nav-card { grid-template-columns: repeat(4, 1fr); padding: 18px 10px; }
  .icon-nav-label { font-size: 11px; }
  .icon-nav-ic { width: 42px; height: 42px; font-size: 17px; }
}
@media (max-width: 400px) { .icon-nav-card { grid-template-columns: repeat(3, 1fr); } }

/* ---------- SECTION HEAD (shared) ---------- */
.sec-head-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; gap: 16px; flex-wrap: wrap; }
.sec-head-title { font-family: 'Playfair Display',serif; font-size: clamp(22px,3vw,30px); color: var(--text); margin: 0; display: flex; align-items: center; gap: 10px; }
.sec-head-link { font-size: 14px; font-weight: 600; color: var(--blue); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.sec-head-link:hover { color: var(--blue-d); }

/* ---------- FEATURED BUSINESSES ---------- */
.fbiz-section { padding: 48px 0; }
.fbiz-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.fbiz-scroll::-webkit-scrollbar { height: 6px; }
.fbiz-scroll::-webkit-scrollbar-thumb { background: var(--blue-m); border-radius: 3px; }
.fbiz-card { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--sand); border-radius: 14px; padding: 16px 18px; scroll-snap-align: start; transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease; }
.fbiz-card:hover { box-shadow: 0 12px 34px rgba(4,24,36,.1); transform: translateY(-2px); border-color: var(--blue-m); }
.fbiz-logo { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: var(--dark); display: flex; align-items: center; justify-content: center; }
.fbiz-logo img { width: 100%; height: 100%; object-fit: cover; }
.fbiz-initial { font-family: 'Playfair Display',serif; font-size: 24px; font-weight: 700; color: var(--yellow); }
.fbiz-name { font-weight: 600; font-size: 15px; color: var(--text); line-height: 1.3; }
.fbiz-verified { color: var(--blue); font-size: 13px; }
.fbiz-cat { font-size: 13px; color: var(--muted); margin-top: 3px; }
.fbiz-area { font-size: 12.5px; color: var(--muted); margin-top: 5px; display: flex; align-items: center; gap: 5px; }
.fbiz-area i { color: var(--blue); font-size: 11px; }
@media (max-width: 620px) { .fbiz-scroll { grid-auto-columns: minmax(250px, 85%); } }

/* ---------- WHY CHOOSE + PRIDE CTA ---------- */
.why-section { padding: 48px 0 60px; }
.why-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: stretch; }
.why-head { font-family: 'Playfair Display',serif; font-size: 22px; color: var(--text); margin-bottom: 22px; display: flex; align-items: center; gap: 10px; }
.why-items { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.why-item { display: flex; gap: 14px; align-items: flex-start; }
.why-ic { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.why-t { font-weight: 600; font-size: 15px; color: var(--text); margin-bottom: 4px; }
.why-d { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

.pride-card { position: relative; border-radius: 18px; overflow: hidden; min-height: 240px; display: flex; align-items: center; background: linear-gradient(135deg,#041824,#0A3A50); }
.pride-overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(4,24,36,.7), rgba(4,24,36,.35)); }
.pride-content { position: relative; z-index: 2; padding: 34px; }
.pride-title { font-family: 'Playfair Display',serif; font-size: 26px; color: #fff; margin: 0 0 8px; line-height: 1.15; }
.pride-sub { color: var(--yellow-m); font-size: 15px; margin: 0 0 20px; font-weight: 500; }

@media (max-width: 860px) {
  .why-grid { grid-template-columns: 1fr; }
  .pride-card { min-height: 200px; }
}
@media (max-width: 520px) { .why-items { grid-template-columns: 1fr; } }

/* ---------- GOVERNMENT CARDS (now linked) ---------- */
.govt-card { position: relative; transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease; }
.govt-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(4,24,36,.1); border-color: var(--blue-m, #cfe6f5); }
.govt-arrow { position: absolute; top: 12px; right: 12px; opacity: 0; transform: translateX(-4px); transition: opacity .15s ease, transform .15s ease; color: var(--blue); font-size: 12px; }
.govt-card:hover .govt-arrow { opacity: 1; transform: translateX(0); }

/* ---------- FOOTER: keep 2 columns side-by-side on mobile (no blank right space) ---------- */
@media (max-width: 480px) {
  .foot-cols { grid-template-columns: 1fr 1fr !important; gap: 18px 20px !important; }
}
@media (max-width: 360px) {
  .foot-cols { gap: 16px 14px !important; }
}

/* ══════════════════════════════════════════════════════════════
   Z-INDEX FIX — mega menu must sit above sticky page elements
   (detail-page tab bar was z-index 800 and overlapping the dropdown)
   ══════════════════════════════════════════════════════════════ */
.navbar { z-index: 2000 !important; }               /* header above all page content */
.mega, .mega-wide { z-index: 2100 !important; }     /* dropdown above the header */
.tabs-bar { z-index: 700 !important; }              /* detail-page sticky tabs below the menu */
.sidebar, .dsb { z-index: 1 !important; }           /* sticky sidebars stay low */
/* keep the mobile drawer + overlay above everything (unchanged intent) */
.mobile-overlay { z-index: 2999 !important; }
.mobile-drawer  { z-index: 3000 !important; }

/* ---------- FOOTER: "Built with love" tagline ---------- */
.foot-made { text-align: center; padding: 16px 0 4px; font-size: 12.5px; color: rgba(255,255,255,.4); font-family: 'Poppins', sans-serif; letter-spacing: .02em; }
.foot-heart { color: #E0555F; font-size: 12px; margin: 0 1px; }

/* ══════════════════════════════════════════════════════════════
   MOBILE HORIZONTAL-SCROLL GUARD (hotel + school/college list & detail)
   Belt-and-braces: some mobile browsers ignore overflow-x:clip, and a
   single wide child (table, image, pre, iframe, grid) can force scroll.
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  html, body { overflow-x: hidden !important; max-width: 100% !important; }
  /* No element may exceed the viewport width */
  .page-layout, .dir-layout, .dir-main, .hero-content, .tab-section,
  .comp-table, .the-content, .entry-content, .sb-card, .am-card, .qf-strip {
    max-width: 100% !important; box-sizing: border-box;
  }
  /* Media + preformatted never overflow */
  img, video, iframe, table, pre { max-width: 100% !important; height: auto; }
  /* Wide tables scroll inside their own box, not the page */
  .comp-table, .tab-section table, .the-content table, .entry-content table {
    display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
  }
  /* Long unbroken strings (URLs, names) wrap instead of stretching */
  .dir-main, .hero-left, .sb-card, .am-card { overflow-wrap: break-word; word-break: break-word; }
}
