/* ═══════════════════════════════════════
   NAGAPATTINAM CITY GUIDE — STYLESHEET
═══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;1,400&family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

/* ── Variables ── */
:root {
  --font-sans: 'Lato', 'Open Sans', sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
  --black: #0a0a0a;
  --text-dark: #0a0a0a;
  --brand-dark: #3a0606; /* Deep rich wine/burgundy instead of black */
  --brand-dark-hover: #4e0d0d; /* Slightly lighter deep wine for hover */
  --white: #ffffff;
  --gray-100: #f7f7f7;
  --gray-200: #e8e8e8;
  --gray-300: #d0d0d0;
  --gray-500: #888;
  --gray-700: #444;
  --gray-900: #1a1a1a;
  --accent: #cc0000;
  --accent-hover: #990000;
  --accent-light: #fff5f5;
  --nav-h: 68px;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.15);
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 105%; }
body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
}
img { display: block; width: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }

/* ══════════════════════════════════════
   NAVBAR
══════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1005;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: nowrap;
  padding: 0 2rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }

.nav-brand {
  display: flex; align-items: center; gap: 8px;
  min-width: 0;
  flex-shrink: 1;
  font-family: var(--font-sans);
  font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em;
  color: var(--accent);
}
.brand-icon { font-size: 1.4rem; color: var(--accent); }

/* ── Nav Links (desktop) ── */
/* ── Nav Links (desktop) ── */
.nav-links {
  display: flex; align-items: center; gap: 0.2rem;
  list-style: none;
}

.nav-link {
  display: flex; align-items: center; gap: 4px;
  padding: 0.6rem 0.9rem;
  font-size: 0.88rem; font-weight: 600; letter-spacing: 0.01em;
  color: #333;
  transition: color var(--transition);
  white-space: nowrap;
  font-family: var(--font-sans);
  background: none;
}
.nav-link:hover, .nav-link.active {
  background: none; color: var(--accent);
}
.nav-link.active .dd-arrow { color: var(--accent); }

/* ── Dropdown arrow ── */
.dd-arrow {
  font-size: 0.65rem; margin-left: 2px;
  transition: transform 0.25s ease;
  display: inline-block;
}
.nav-dropdown.open > .dropdown-toggle .dd-arrow {
  transform: rotate(180deg);
}

/* ── Dropdown container ── */
.nav-dropdown {
  position: relative;
}

/* ── Dropdown menu (desktop) ── */
.dropdown-menu {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 230px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.14);
  list-style: none; padding: 6px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 500;
}
.dropdown-menu::before {
  content: '';
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  width: 12px; height: 12px;
  background: var(--white);
  border-left: 1px solid var(--gray-200);
  border-top: 1px solid var(--gray-200);
  transform: translateX(-50%) rotate(45deg);
}
.dropdown-menu::after {
  content: '';
  position: absolute; top: -15px; left: 0; right: 0; height: 15px;
  background: transparent;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  opacity: 1; pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

/* ── Dropdown items ── */
.dd-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
}
.dd-item:hover {
  background: var(--accent); color: var(--white);
}
.dd-icon { font-size: 1.25rem; flex-shrink: 0; line-height: 1; }

/* Divider between dd items */
.dropdown-menu li + li { border-top: 1px solid var(--gray-100); }

/* ── Hamburger ── */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 32px; height: 32px; justify-content: center; align-items: center;
  align-self: center; flex-shrink: 0; padding: 0;
  position: relative; z-index: 1002;
  margin-left: auto;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-dark);
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════
   PAGES
══════════════════════════════════════ */
.page {
  display: none; opacity: 0;
  transform: translateY(24px);
  min-height: 100vh;
  padding-top: var(--nav-h);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.page.active {
  display: block; opacity: 1; transform: translateY(0);
}
.page.entering {
  display: block; animation: pageIn 0.4s ease forwards;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════
   HERO (HOME)
══════════════════════════════════════ */
.hero {
  position: relative; height: calc(100vh - var(--nav-h));
  min-height: 480px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: var(--brand-dark);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, #440a0a 0%, #220505 100%);
  animation: bgPulse 8s ease-in-out infinite alternate;
}
@keyframes bgPulse {
  from { background-size: 100% 100%; }
  to   { background-size: 110% 110%; }
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent, transparent 2px,
    rgba(255,255,255,0.015) 2px, rgba(255,255,255,0.015) 4px
  );
}

.hero-content {
  position: relative; z-index: 2; text-align: center;
  padding: 2rem;
  animation: heroFade 1s ease 0.2s both;
}
@keyframes heroFade {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-label {
  font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-bottom: 1rem;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  font-weight: 900; color: var(--white);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.hero-sub {
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.65); margin-bottom: 2.5rem;
  font-weight: 300; letter-spacing: 0.05em;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  padding: 0.85rem 2.2rem;
  background: var(--white); color: var(--accent);
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.04em;
  border-radius: 50px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(255,255,255,0.2); }

.btn-outline {
  padding: 0.85rem 2.2rem;
  border: 1.5px solid rgba(255,255,255,0.4); color: var(--white);
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.04em;
  border-radius: 50px;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: var(--white); transform: translateY(-3px); }

.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.35); font-size: 0.75rem; letter-spacing: 0.15em;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── Stats Bar ── */
.stats-bar {
  display: flex; flex-wrap: wrap;
  background: var(--brand-dark); color: var(--white);
}
.stat {
  flex: 1 1 25%; display: flex; flex-direction: column; align-items: center;
  padding: 2rem 1rem;
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: background var(--transition);
}
.stat:hover { background: var(--brand-dark-hover); }
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-serif);
  font-size: 2rem; font-weight: 700;
}
.stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-top: 4px; letter-spacing: 0.05em; }

/* ── About Section ── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; margin-top: 2rem;
}
.about-text p {
  color: var(--gray-700); line-height: 1.8;
  margin-bottom: 1.2rem; font-size: 1rem;
}
.about-highlights { display: flex; flex-direction: column; gap: 1.2rem; }
.highlight-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.2rem; border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.highlight-item:hover {
  transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent);
}
.h-icon { font-size: 1.8rem; flex-shrink: 0; }
.highlight-item strong { font-size: 0.95rem; }
.highlight-item p { font-size: 0.82rem; color: var(--gray-500); margin-top: 2px; }

/* ── Navigation Cards (Home) ── */
.nav-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem; margin-top: 2rem;
}
.nav-card {
  position: relative; padding: 1.8rem 1.4rem;
  border: 1px solid var(--gray-200); border-radius: var(--radius);
  cursor: pointer; overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.nav-card::before {
  content: ''; position: absolute; inset: 0;
  background: var(--brand-dark); transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  z-index: 0;
}
.nav-card:hover::before { transform: translateY(0); }
.nav-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--brand-dark); }
.nav-card:hover h3, .nav-card:hover p, .nav-card:hover .nc-icon { color: var(--white); }
.nav-card:hover .nc-arrow { color: var(--white); transform: translateX(6px); }
.nav-card > * { position: relative; z-index: 1; }
.nc-icon { font-size: 2.2rem; margin-bottom: 0.8rem; transition: color var(--transition); }
.nav-card h3 { font-family: var(--font-serif); font-size: 1.1rem; margin-bottom: 0.5rem; transition: color var(--transition); }
.nav-card p { font-size: 0.82rem; color: var(--gray-500); line-height: 1.5; transition: color var(--transition); }
.nc-arrow {
  display: inline-block; margin-top: 1rem;
  font-size: 1.2rem; color: var(--gray-500);
  transition: color var(--transition), transform var(--transition);
}

/* ══════════════════════════════════════
   PAGE HERO (inner pages)
══════════════════════════════════════ */
.page-hero {
  background: var(--accent-light);
  color: var(--text-dark);
  padding: 4rem 2rem 3.5rem;
  text-align: center;
  position: relative; overflow: hidden;
  border-bottom: 1px solid rgba(204, 0, 0, 0.08);
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    45deg, transparent, transparent 40px,
    rgba(204,0,0,0.01) 40px, rgba(204,0,0,0.01) 42px
  );
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900;
  position: relative; z-index: 1;
  color: var(--accent);
}
.page-hero p {
  color: var(--gray-700); margin-top: 0.75rem;
  font-size: 1rem; position: relative; z-index: 1;
}

/* ══════════════════════════════════════
   SECTION CONTAINER
══════════════════════════════════════ */
.section-container {
  max-width: 1280px; margin: 0 auto;
  padding: 4rem 2rem;
}
.section-tag {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gray-500); margin-bottom: 0.6rem;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 700; margin-bottom: 2.5rem;
  line-height: 1.2;
}

/* ══════════════════════════════════════
   CARDS GRID
══════════════════════════════════════ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.8rem;
}

/* ── Info Card ── */
.info-card {
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  background: var(--white);
}
.info-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.card-img-wrap {
  height: 200px; overflow: hidden; position: relative;
  background: var(--gray-200);
}
.card-img-wrap img {
  height: 100%; width: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.info-card:hover .card-img-wrap img { transform: scale(1.08); }

/* Image placeholder fallback */
.img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
}

.card-tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--accent); color: var(--white);
  font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 20px;
}
.card-body { padding: 1.4rem; }
.card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem; margin-bottom: 0.55rem;
}
.card-body p {
  font-size: 0.83rem; color: var(--gray-500);
  line-height: 1.65;
}
.card-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
  font-size: 0.75rem; color: var(--gray-500);
}
.card-meta-badge {
  display: flex; align-items: center; gap: 4px;
}
.card-meta-badge span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ══════════════════════════════════════
   FILTER TABS
══════════════════════════════════════ */
.filter-tabs {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.tab-btn {
  padding: 0.55rem 1.4rem;
  border-radius: 50px;
  border: 1.5px solid var(--gray-200);
  font-size: 0.82rem; font-weight: 500;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.tab-btn:hover { border-color: var(--accent); transform: translateY(-2px); }
.tab-btn.active { background: var(--accent); color: var(--white); border-color: var(--accent); }

/* ══════════════════════════════════════
   MODAL
══════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(34, 5, 5, 0.85);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--white); border-radius: 16px;
  overflow: hidden; max-width: 640px; width: 100%;
  transform: scale(0.92);
  transition: transform 0.3s ease;
  max-height: 90vh; overflow-y: auto;
}
.modal-overlay.open .modal-box { transform: scale(1); }
.modal-box img { height: 300px; object-fit: cover; }
.modal-info { padding: 1.8rem; }
.modal-info h3 { font-family: var(--font-serif); font-size: 1.4rem; margin-bottom: 0.75rem; }
.modal-info p { color: var(--gray-700); line-height: 1.75; font-size: 0.95rem; }
.modal-badge {
  display: inline-block; margin-top: 1rem;
  padding: 4px 12px; border-radius: 20px;
  background: var(--accent); color: var(--white);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(34, 5, 5, 0.6); color: var(--white);
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  transition: background var(--transition);
}
.modal-close:hover { background: var(--accent); }

/* ══════════════════════════════════════
   FOOTER (RED BRANDING)
══════════════════════════════════════ */
footer {
  position: relative;
  background: var(--accent) !important;
  color: #ffffff !important;
  padding: 4rem 2rem 1.5rem !important;
  margin-top: 4rem !important;
}

.footer-zigzag {
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 10' width='20' height='10' preserveAspectRatio='none'%3E%3Cpolygon points='0,10 10,0 20,10' fill='%23cc0000'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 20px 10px;
  z-index: 5;
}

.footer-grid-new {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-col-new h3 {
  color: #ffffff !important;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 1.2rem;
  position: relative;
}

.footer-col-new h3::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: #ffffff;
  margin-top: 6px;
}

.footer-col-new p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 10px;
}

.footer-links-new {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 10px;
}

.footer-links-new a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s, padding-left 0.3s;
}

.footer-links-new a:hover {
  color: #ffffff;
  padding-left: 5px;
}

.footer-socials-new {
  display: flex;
  gap: 0.8rem;
  margin-top: 15px;
}

.social-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: bold;
  font-size: 0.85rem;
  transition: background 0.3s, transform 0.3s;
}

.social-circle:hover {
  background: #ffffff;
  color: var(--accent);
  transform: scale(1.1);
}

.footer-bottom-new {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 3rem;
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom-new p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 992px) {
  .footer-grid-new {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ══════════════════════════════════════
   NEW LAYOUT COMPONENTS STYLING
══════════════════════════════════════ */

/* ── Image Slider ── */
.slider-container {
  position: relative;
  height: 480px;
  width: 100%;
  overflow: hidden;
  background: var(--accent-light);
}
.slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 1;
}
.slide.active {
  opacity: 1;
  z-index: 2;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  background: rgba(34, 5, 5, 0.6);
  color: #fff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 10;
  transition: background 0.3s;
}
.slider-btn:hover {
  background: var(--accent);
}
.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }
.slider-dots {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.dot {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.dot.active {
  background: var(--accent);
  transform: scale(1.2);
}
.slider-shadow-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: radial-gradient(ellipse at bottom, rgba(54, 8, 8, 0.25) 0%, transparent 70%);
  z-index: 5;
  pointer-events: none;
}

/* ── Slider Welcome Text Overlay ── */
.slider-text-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(34, 5, 5, 0.45);
  color: #fff;
  z-index: 5;
  pointer-events: none;
  padding: 1rem;
}

.slider-text-overlay h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 900;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
  animation: heroFade 1.2s ease;
}

.slider-text-overlay p {
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  opacity: 0.9;
  letter-spacing: 0.05em;
  animation: heroFade 1.5s ease;
}

/* ── About Section ── */
.about-grid-new {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 1.5rem;
}
.about-img-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-img-container img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}
.about-content-new h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.about-content-new p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--gray-700);
  margin-bottom: 1.2rem;
}
.btn-red {
  padding: 0.65rem 1.6rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: 4px;
  transition: background 0.3s;
  font-size: 0.88rem;
  text-transform: uppercase;
  display: inline-block;
}
/* ── Administration & Leadership ── */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: stretch;
  margin-top: 2.5rem;
}
.collector-card {
  background: #ffffff;
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.collector-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(204, 0, 0, 0.08);
  border-color: rgba(204, 0, 0, 0.15);
}
.collector-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--accent);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  margin-bottom: 1.5rem;
}
.collector-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.leadership-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .admin-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}
@media (max-width: 600px) {
  .leadership-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}

/* ── Directory blocks ── */

/* ── Directory blocks ── */
/* ── Directory blocks ── */
.directory-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  padding-top: 4rem;
}
.dir-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.2rem;
  background: var(--accent-light);
  border: 1px solid rgba(204, 0, 0, 0.1);
  border-radius: var(--radius);
  padding: 2.5rem 1.8rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  transition: transform var(--transition), box-shadow var(--transition);
}
.dir-block:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.dir-icon {
  font-size: 2.8rem;
  background: #fff;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}
.dir-info h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.dir-info p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--gray-700);
  margin-bottom: 1.2rem;
}

/* ── Places to Visit preview grid ── */
.section-title-centered {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--accent);
  text-align: center;
  margin-bottom: 2.5rem;
}
.places-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}
.preview-card {
  border: 2px solid rgba(204, 0, 0, 0.15);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}
.preview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.preview-card img {
  height: 180px;
  width: 100%;
  object-fit: cover;
  border-bottom: 2px solid rgba(204, 0, 0, 0.15);
}
.preview-card-body {
  padding: 1.2rem;
}
.preview-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.preview-card-body p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--gray-700);
}
.centered-btn-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

/* ── Transport Guide – Nagapattinam ── */
.transport-guide-section {
  background: linear-gradient(180deg, #fff0f0 0%, #ffe0e0 100%);
  padding: 4rem 0;
  border-top: 1px solid rgba(204, 0, 0, 0.08);
  border-bottom: 1px solid rgba(204, 0, 0, 0.08);
}
.transport-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.transport-card {
  background: #fff;
  border: 1px solid rgba(204, 0, 0, 0.15);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  transition: transform 0.3s;
}
.transport-card:hover {
  transform: translateY(-5px);
}
.transport-card .t-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.8rem;
}
.transport-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.transport-card p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--gray-700);
}

/* ── Nagapattinam Location Map ── */
.map-subtitle {
  text-align: center;
  color: var(--gray-700);
  font-size: 0.9rem;
  max-width: 600px;
  margin: -1.5rem auto 2rem;
  line-height: 1.6;
}
.map-iframe-container {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

/* ── Contact Page ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  margin-top: 1rem;
}
.contact-form-block h2, .contact-info-block h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.form-group {
  margin-bottom: 1.2rem;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--gray-700);
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.3s;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent);
  outline: none;
}
.form-success-msg {
  background: #e6ffe6;
  border: 1px solid #00b300;
  color: #006600;
  padding: 1rem;
  border-radius: 4px;
  margin-top: 1rem;
  text-align: center;
}
.contact-details-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.contact-details-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.ci-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.contact-details-list strong {
  font-size: 0.9rem;
  color: var(--text-dark);
}
.contact-details-list p {
  font-size: 0.85rem;
  color: var(--gray-700);
  margin-top: 2px;
}
.contact-socials h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.social-icons-contact {
  display: flex;
  gap: 0.8rem;
}
.soc-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 0.9rem;
}
.soc-icon.fb { background: #3b5998; }
.soc-icon.ig { background: #e1306c; }
.soc-icon.yt { background: #ff0000; }
.soc-icon.tw { background: var(--brand-dark); }

@media (max-width: 1024px) {
  .about-grid-new { grid-template-columns: 1fr; gap: 2rem; }
  .transport-grid { grid-template-columns: repeat(2, 1fr); }
  .places-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .directory-blocks { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .slider-container { height: 320px; }
  .dir-block { flex-direction: column; gap: 1rem; text-align: center; }
  .transport-grid { grid-template-columns: 1fr; }
  .places-preview-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ══════════════════════════════════════
   SCROLL REVEAL ANIMATION
══════════════════════════════════════ */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════
   RESPONSIVE — TABLET
══════════════════════════════════════ */
/* ── Responsive Tablet Overrides ── */
@media (max-width: 1024px) {
  .navbar { padding: 0 1rem; }
  .nav-brand {
    max-width: calc(100% - 52px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nav-links { display: none; }
  .hamburger { display: flex; margin-left: auto; }

  /* ── Fullscreen Overlay Menu ── */
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw; height: 100vh;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(16px);
    padding: calc(var(--nav-h) + 2rem) 2.2rem 2rem 2.2rem;
    gap: 0; overflow-y: auto;
    animation: slideLeft 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    border: none;
    box-shadow: none;
  }

  @keyframes slideLeft {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
  }

  .nav-links.open > li > .nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    padding: 1rem 0.8rem;
    border-bottom: 1px solid var(--gray-100);
    border-radius: 0; width: 100%;
    color: #333;
    transition: color var(--transition), padding-left var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .nav-links.open > li > .nav-link:hover,
  .nav-links.open > li > .nav-link.active {
    color: var(--accent);
    padding-left: 14px;
  }

  .about-grid { grid-template-columns: 1fr; }
  .nav-cards { grid-template-columns: repeat(2, 1fr); }
  .stat { flex: 1 1 50%; }

  /* ── Mobile Dropdown Accordion ── */
  .dropdown-menu {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: all !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    padding: 0 0 0 1.5rem !important;
    display: none;
    min-width: 100% !important;
  }
  .dropdown-menu::before {
    display: none !important;
  }
  .nav-dropdown.open .dropdown-menu {
    display: block;
  }
  .dropdown-menu li + li {
    border-top: none !important;
  }
  .dd-item {
    padding: 8px 12px !important;
    background: transparent !important;
    color: #333 !important;
  }
  .dd-item:hover {
    color: var(--accent) !important;
    background: var(--accent-light) !important;
  }
}

/* ── Responsive Mobile Overrides ── */
@media (max-width: 600px) {
  .nav-links.open {
    width: 100vw !important;
    height: 100vh !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    border: none !important;
    padding-top: calc(var(--nav-h) + 2rem) !important;
    z-index: 1001 !important;
  }
}

/* ══════════════════════════════════════
   RESPONSIVE — MOBILE
══════════════════════════════════════ */
@media (max-width: 600px) {
  .navbar { padding: 0 1rem; }
  .nav-brand { font-size: 0.95rem; }

  .hero-title { font-size: 2.8rem; }
  .hero-btns { flex-direction: column; align-items: center; }
  .btn-primary, .btn-outline { width: 100%; max-width: 260px; text-align: center; }

  .stat { flex: 1 1 50%; padding: 1.5rem 0.5rem; }
  .stat-num { font-size: 1.5rem; }

  .nav-cards { grid-template-columns: 1fr; }

  .cards-grid { grid-template-columns: 1fr; }

  .section-container { padding: 3rem 1rem; }

  .page-hero { padding: 3rem 1rem 2.5rem; }

  .modal-box img { height: 220px; }
  .modal-info { padding: 1.3rem; }

  .filter-tabs { gap: 0.35rem; }
  .tab-btn { padding: 0.45rem 1rem; font-size: 0.78rem; }
}

/* ══════════════════════════════════════
   DETAILS PAGE
   ══════════════════════════════════════ */
.details-hero {
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--brand-dark);
  color: var(--white);
  text-align: center;
}

.details-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(4px) brightness(0.4);
  transform: scale(1.05);
  z-index: 1;
}

.details-hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  max-width: 800px;
}

.details-breadcrumbs {
  font-size: 0.82rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.breadcrumb-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-link:hover {
  color: var(--white);
}

.breadcrumb-current {
  color: var(--white);
  font-weight: 500;
}

.details-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 10px rgba(204, 0, 0, 0.3);
}

.details-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.details-container {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.details-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.details-main-content {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.03);
  border: 1px solid var(--gray-200);
}

.details-image-wrapper {
  width: 100%;
  height: 420px;
  overflow: hidden;
  background: var(--gray-100);
}

.details-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.details-description {
  padding: 2.5rem;
}

.details-description h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.details-description h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent);
}

.details-description p {
  color: var(--gray-700);
  font-size: 1.05rem;
  line-height: 1.8;
}

.details-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.details-info-box {
  background: #ffffff;
  padding: 2.2rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.info-box-title {
  font-family: var(--font-serif);
  color: var(--accent);
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
}

.info-item {
  margin-bottom: 1.2rem;
}

.info-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.info-item p {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 1rem;
  margin: 0;
}

.map-action-wrap {
  margin-top: 1.8rem;
}

.map-btn {
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.go-back-btn {
  text-align: center;
  color: var(--text-dark) !important;
  border-color: var(--gray-300) !important;
}

.go-back-btn:hover {
  background: var(--gray-100) !important;
  border-color: var(--text-dark) !important;
  transform: translateY(-2px);
}

.related-section-wrap {
  background: var(--accent-light);
  border-top: 1px solid rgba(204, 0, 0, 0.05);
  border-bottom: 1px solid rgba(204, 0, 0, 0.05);
}

/* ── Details Responsive ── */
@media (max-width: 992px) {
  .details-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .details-image-wrapper {
    height: 300px;
  }
  .details-description {
    padding: 1.8rem;
  }
}

/* ══════════════════════════════════════
   UTILITY
══════════════════════════════════════ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
