/* =========================================
   CSS VARIABLES (Custom Properties)
   ========================================= */
:root {
  --primary-color: #3399cc;
  --secondary-color: #33cc99;
  --primary-hover: #000000;
  --accent-color: #FFD700;
  --title-color: #FF6347;
  --text-dark: #2c3e50;
  --bg-light: #f8f9fa;
  
  --card-color-one: #f7fbff;
  --card-color-two: #fffbf7;
  --card-color-three: #fffff7;

  --card-color-parihara: #FAEEDA;        /* card background — amber tint     */
  --card-parihara-accent: #854F0B;       /* deep amber — header/icons        */
  --card-parihara-accent-light: #FAC775; /* amber tint for header bg         */
  --card-parihara-border: #EF9F27;       /* amber border                     */
  --card-parihara-text: #412402;         /* dark amber body text             */
  --card-parihara-source-bg: #FAC775;    /* source badge background          */
  --card-parihara-source-text: #633806;  /* source badge text                */
  
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

  --card-pathikam-bg:           #FDF3F0;
  --card-pathikam-border:       #F0997B;
  --card-pathikam-header-bg:    #FAD8CC;
  --card-pathikam-header-left:  #993C1D;
  --card-pathikam-accent:       #993C1D;
  --card-pathikam-accent-light: #F5C4B3;
  --card-pathikam-text:         #4A1B0C;
  --card-pathikam-link:         #D85A30;
  --card-pathikam-link-hover:   #712B13;

  --card-nearby-border:       #D8CFC4;
  --card-nearby-h1-bg:        #FAF5EE;
  --card-nearby-h1-left:      #9B7040;
  --card-nearby-h2-bg:        #F5EEE4;
  --card-nearby-h2-left:      #7A5230;
  --card-nearby-h3-bg:        #FFF3E0;
  --card-nearby-h3-left:      #C07A1A;
  --card-nearby-body-bg:      #fffbf7;
  --card-nearby-row-divider:  #F5EEE4;
  --card-nearby-text:         #7A5230;
  --card-nearby-link:         #7A5230;  /* was #9B7040 */
  --card-nearby-link-hover:   #5C3D22;  /* was #7A5230 */
  --card-nearby-num:          #999;
  --card-nearby-dist:         #888;
}

/* =========================================
   BASE STYLES
   ========================================= */

body {
  font-family: 'Noto Serif Tamil', serif;
  font-size: 14px;
  color: var(--text-dark);
  
}

a {
  text-decoration: none;
}

.unselectable {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* for table with 3 columns */
.text-wrap {
  word-break: break-word;
  white-space: normal;
}

/* =========================================
   NAVIGATION
   ========================================= */

.navbar {
  background-color: var(--primary-color) !important;
  position: relative;   /* was relative */
  top: 0;
  width: 100%;
  z-index: 1030;
  transition: transform 0.3s ease-in-out;
  min-height: 70px;
}

.navbar a {
  color: white !important;
  font-size: 15px;
}

.navbar-brand img,
.navbar-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}

.navbar-logo:hover {
  transform: scale(1.2);
}

.navbar-nav .nav-link:hover {
  background-color: rgba(228, 241, 254, 0.2);
  border-radius: 4px;
  color: white !important;
}

.dropdown-menu {
  border: none;
  box-shadow: var(--shadow);
  z-index: 1050;
}

.dropdown-menu a {
  color: black !important;
  font-size: 15px;
}

.dropdown-menu .dropdown-item:hover {
  background-color: #f8f9fa;
}

/* Breadcrumb Navigation */
.breadcrumb {
  background: var(--bg-light);
  border-radius: 0;
  font-size: 11px;
}

.breadcrumb-item a {
  color: var(--primary-color);
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: var(--secondary-color);
}


/* =========================================
   BANNER SECTION
   ========================================= */
.site-banner {
  width: 100%;
  height: 400px;
  background-image: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.2)), 
                    url('../images/banner-image.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.banner-container h1, 
.banner-container h2, 
.banner-container h4 {
  text-shadow: 0 1px 2px rgba(0,0,0,0.9);
  font-family: serif;
}

/* Banner Divider */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem 0;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 2px solid #fff;
  margin: 0 1rem;
}

.divider-icon {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
}

/* =========================================
   CARD COMPONENTS
   ========================================= */
.card {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-title {
  
  border-bottom: 2px solid #e9ecef !important;

}

.card-img-top {
  max-width: 200px;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* Card Color Variations */
.one   { background-color: var(--card-color-one);   padding: 10px; }
.two   { background-color: var(--card-color-two);   padding: 10px; }
.three { background-color: var(--card-color-three); padding: 10px; }
.four  { background-color: var(--card-color-one);   padding: 10px; }
.five  { background-color: var(--card-color-two);   padding: 10px; }
.six   { background-color: var(--card-color-three); padding: 10px; }
.seven { background-color: var(--card-color-one);   padding: 10px; }
.eight { background-color: var(--card-color-two);   padding: 10px; }
.nine  { background-color: var(--card-color-three); padding: 10px; }
.ten   { background-color: var(--card-color-one);   padding: 10px; }
.eleven { background-color: var(--card-color-two);   padding: 10px; }
.twelve { background-color: var(--card-color-three); padding: 10px; }
.thirteen { background-color: var(--card-color-one); padding: 10px; }
.fourteen { background-color: var(--card-color-two); padding: 10px; }
.fifteen { background-color: var(--card-color-three); padding: 10px; }

/* =========================================
   CARD BASIC INFO (card-basic-info.php)
   ========================================= */

.card-basic-info {
  border: 1.5px solid #d0e8f5 !important;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --bs-card-spacer-y: 0;
  --bs-card-spacer-x: 0;
  --bs-card-cap-padding-y: 0;
  --bs-card-cap-padding-x: 0;
  padding: 0 !important;
}

.card-basic-header {
  background-color: #e4f2fa;
  border-bottom: 1px solid #b8ddf0;
  border-left: 5px solid #3399cc;
  padding: 0.85rem 1.25rem;
}

.card-basic-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
}

.card-basic-subtitle {
  margin: 2px 0 0;
  font-size: 12px;
  color: #2272a0;
}

.card-basic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: var(--card-color-one); /* #f7fbff */
}

.card-basic-cell {
  padding: 1rem 1.25rem;
}

.card-basic-cell.border-right {
  border-right: 1px solid #d0e8f5 !important;
}

.card-basic-cell.border-bottom {
  border-bottom: 1px solid #d0e8f5 !important;
}

.card-basic-label {
  margin: 0 0 3px;
  font-size: 11px;
  color: #2d5570;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/*#5a8fa8; original color for card basic label*/

.card-basic-value {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-basic-icon {
  font-size: 14px;
  color: #3399cc;
  flex-shrink: 0;
}

/* Responsive: stack to single column on mobile */
@media screen and (max-width: 720px) {
  .card-basic-grid {
    grid-template-columns: 1fr;
  }

  .card-basic-cell.border-right {
    border-right: none !important;
  }

  .card-basic-cell.border-bottom {
    border-bottom: 1px solid #d0e8f5 !important;
  }

  .card-basic-cell:not(:last-child) {
    border-bottom: 1px solid #d0e8f5 !important;
  }
}

/* =========================================
   ADDRESS-INFO CARD (card-address-info.php)
   ========================================= */

/* ── CARD WRAPPER ─────────────────────────────────────────
   Resets Bootstrap card spacing and applies custom border
   with a soft shadow for elevation.
───────────────────────────────────────────────────────── */
.card-address-info {
  border: 1.5px solid #d0e8f5 !important;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --bs-card-spacer-y: 0;
  --bs-card-spacer-x: 0;
  --bs-card-cap-padding-y: 0;
  --bs-card-cap-padding-x: 0;
  padding: 0 !important;
}

/* ── CARD HEADER ──────────────────────────────────────────
   Full-width title bar with a left accent border and
   a light blue tinted background.
───────────────────────────────────────────────────────── */
.card-address-header {
  background-color: #e4f2fa;
  border-bottom: 1px solid #b8ddf0;
  border-left: 5px solid #3399cc;
  padding: 0.85rem 1.25rem;
}

.card-address-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

/* ── TWO-COLUMN GRID ──────────────────────────────────────
   Splits the card body into equal left (address) and
   right (hours + contact) columns.
───────────────────────────────────────────────────────── */
.card-address-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: var(--card-color-one);
}

/* ── SHARED CELL BASE ─────────────────────────────────────
   Common padding for both left and right cells.
───────────────────────────────────────────────────────── */
.card-address-cell {
  padding: 1rem 1.25rem;
}

/* Left cell gets a right divider to separate the two columns */
.card-address-cell.border-right {
  border-right: 1px solid #d0e8f5 !important;
}

/* ── RIGHT CELL : flex column layout ─────────────────────
   Stacks the hours sub-section on top and the contact
   sub-section on the bottom when contact info is present.
   When contact info is absent, hours fills the full height.
───────────────────────────────────────────────────────── */
.card-address-cell-right {
  display: flex;
  flex-direction: column;
}

/* ── TOP SUB-SECTION : Temple hours ──────────────────────
   flex: 1 makes this grow and fill all available height
   when there is no contact sub-section below it.
───────────────────────────────────────────────────────── */
.card-address-hours {
  flex: 1;
}

/* ── BOTTOM SUB-SECTION : Contact info ───────────────────
   Rendered only when $phone is set (see address-info.php).
   The top border acts as a visual divider between the two
   sub-sections inside the right cell.
───────────────────────────────────────────────────────── */
.card-address-contact {
  border-top: 1px solid #d0e8f5;
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

/* ── SECTION LABEL ────────────────────────────────────────
   Small uppercase label used above hours and contact blocks.
───────────────────────────────────────────────────────── */
.card-address-label {
  margin: 0 0 6px;
  font-size: 13px;
  color: #2d5570;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── TEXT BLOCK ───────────────────────────────────────────
   Shared wrapper for address lines and timing rows.
───────────────────────────────────────────────────────── */
.card-address-block {
  font-size: 14px;
  line-height: 1.9;
  padding-left: 0.5rem;
}

/* ── TIMING / CONTACT ROW ─────────────────────────────────
   Flex row for icon + text pairs (morning, evening, phone).
───────────────────────────────────────────────────────── */
.card-address-timing-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--text-dark);
}

/* ── ROW ICON ─────────────────────────────────────────────
   Keeps Bootstrap Icons fixed-size and prevents shrinking
   inside the flex timing row.
───────────────────────────────────────────────────────── */
.card-address-icon {
  font-size: 14px;
  color: #3399cc;
  flex-shrink: 0;
}

/* ── RESPONSIVE : single column below 720 px ─────────────
   Stacks left and right cells vertically on small screens.
   The left cell bottom border replaces the right border
   to maintain visual separation.
───────────────────────────────────────────────────────── */
@media screen and (max-width: 720px) {
  .card-address-grid {
    grid-template-columns: 1fr;
  }
  .card-address-cell.border-right {
    border-right: none !important;
    border-bottom: 1px solid #d0e8f5 !important;
  }
}

/* ==========================================================================
   pariharasthalam-card.css — Styles for .card-parihara-info
   Color theme: --card-color-parihara: #FAEEDA  (warm amber)
   Complements the site palette:
     --card-color-one:   #f7fbff  (cool blue-white)
     --card-color-two:   #fffbf7  (warm amber-white)
     --card-color-three: #fffff7  (pale yellow-white)
   ========================================================================== */

/* ── Card shell ─────────────────────────────────────────────────────────── */
.card-parihara-info {
  background-color: var(--card-color-parihara);
  border: 1.5px solid var(--card-parihara-border);
  border-radius: 0.5rem;
  overflow: hidden;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.card-parihara-header {
  background-color: var(--card-parihara-accent-light);
  border-bottom: 1.5px solid var(--card-parihara-border);
  padding: 0.6rem 1rem;
}

.card-parihara-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--card-parihara-accent);
  letter-spacing: 0.01em;
}

/* ── Body text ──────────────────────────────────────────────────────────── */
.card-parihara-body {
  padding: 0.85rem 1rem 0.5rem;
}

.card-parihara-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--card-parihara-text);
}

.card-parihara-temple {
  display: inline;          /* stays inline with the ailment sentence */
  color: var(--card-parihara-accent);
}

/* ── Links row ──────────────────────────────────────────────────────────── */
.card-parihara-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem 1rem 0.85rem;
}

/* Individual link pill */
.card-parihara-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  border: 1px solid var(--card-parihara-border);
  border-radius: 2rem;
  padding: 0.25rem 0.75rem 0.25rem 0.4rem;
  background-color: #fff;
  transition: background-color 0.18s ease, border-color 0.18s ease;
  font-size: 0.82rem;
}

.card-parihara-link:hover {
  background-color: var(--card-parihara-accent-light);
  border-color: var(--card-parihara-accent);
  text-decoration: none;
}

/* Source badge (e.g. "Dinamani") */
.card-parihara-source {
  display: inline-block;
  background-color: var(--card-parihara-source-bg);
  color: var(--card-parihara-source-text);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.1rem 0.45rem;
  border-radius: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Link label text */
.card-parihara-link-label {
  color: var(--card-parihara-accent);
  font-weight: 500;
}

/* =========================================
   CARD-MAP — unified map card, position-independent
   ========================================= */

/* ── Card shell ─────────────────────────────────────────────────────────── */
.card-map {
  border: 1.5px solid #dee2e6;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.card-map__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

/* ── Header icon ────────────────────────────────────────────────────────── */
.card-map__icon {
  font-size: 1rem;
  color: #e63946;
  flex-shrink: 0;
}

/* ── Header title ───────────────────────────────────────────────────────── */
.card-map__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #212529;
  line-height: 1.4;
}

/* ── Map body ───────────────────────────────────────────────────────────── */
.card-map__body {
  padding: 0.75rem;
}

.card-map__body .ratio {
  border-radius: 0.375rem;
  overflow: hidden;
}

.card-map__body iframe {
  border: 0;
  width: 100%;
  height: 100%;
}

/* =========================================
   PATHIKAM CARD
   ========================================= */
.card-pathikam-info {
  background-color: var(--card-pathikam-bg);
  border: 1.5px solid var(--card-pathikam-border);
  border-radius: 0.5rem;
  overflow: hidden;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.card-pathikam-header {
  background-color: var(--card-pathikam-header-bg);
  border-bottom: 1.5px solid var(--card-pathikam-border);
  border-left: 5px solid var(--card-pathikam-header-left);
  padding: 0.6rem 1rem;
}

.card-pathikam-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--card-pathikam-accent);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 0;
}

/* Separator icon between பதிகம் and திருப்புகழ் */
.card-pathikam-divider {
  display: inline-flex;
  align-items: center;
  margin: 0 0.5rem;
  color: var(--card-pathikam-accent-light);
  font-size: 1rem;
}

/* ── Body ───────────────────────────────────────────────────────────────── */
.card-pathikam-body {
  padding: 0.5rem 1rem 0.75rem;
}

/* ── Section block (one per composer) ──────────────────────────────────── */
.card-pathikam-section {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--card-pathikam-accent-light);
}

/* Remove top border and margin from the very first section */
.card-pathikam-section:first-child {
  margin-top: 0.25rem;
  padding-top: 0;
  border-top: none;
}

/* ── Composer heading ───────────────────────────────────────────────────── */
.card-pathikam-composer {
  margin: 0 0 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--card-pathikam-accent);
}

/* Thiruppugazh composer heading — slightly different shade to distinguish */
.card-pathikam-composer--thiruppugazh {
  color: var(--card-pathikam-link);
}

/* ── Ordered list ───────────────────────────────────────────────────────── */
.card-pathikam-list {
  margin: 0;
  padding-left: 1.4rem;
  line-height: 2;
}

.card-pathikam-list li {
  font-size: 0.88rem;
  color: var(--card-pathikam-text);
}

/* ── Links ──────────────────────────────────────────────────────────────── */
.card-pathikam-link {
  color: var(--card-pathikam-link);
  text-decoration: none;
  transition: color 0.18s ease;
}

.card-pathikam-link:hover {
  color: var(--card-pathikam-link-hover);
  text-decoration: underline;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media screen and (max-width: 720px) {
  .card-pathikam-body {
    padding: 0.4rem 0.75rem 0.6rem;
  }

  .card-pathikam-list {
    line-height: 1.9;
  }
}

/* =========================================
   NEARBY TEMPLES CARD
   ========================================= */

.card-nearby-info {
  border: 1.5px solid var(--card-nearby-border);
  border-radius: 0.5rem;
  overflow: hidden;
}

.card-nearby-header-siva {
  background-color: var(--card-nearby-h1-bg);
  border-left: 5px solid var(--card-nearby-h1-left);
  border-bottom: 1.5px solid var(--card-nearby-border);
  padding: 0.55rem 1rem;
}

.card-nearby-header-vaishnava {
  background-color: var(--card-nearby-h2-bg);
  border-left: 5px solid var(--card-nearby-h2-left);
  border-bottom: 1.5px solid var(--card-nearby-border);
  border-top: 1.5px solid var(--card-nearby-border);
  padding: 0.55rem 1rem;
}

.card-nearby-header-vaipu {
  background-color: var(--card-nearby-h3-bg);
  border-left: 5px solid var(--card-nearby-h3-left);
  border-bottom: 1.5px solid var(--card-nearby-border);
  border-top: 1.5px solid var(--card-nearby-border);
  padding: 0.55rem 1rem;
}

.card-nearby-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--card-nearby-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-nearby-body {
  background-color: var(--card-nearby-body-bg);
  padding: 0.4rem 0.75rem 0.55rem;
}

.card-nearby-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.33rem 0;
  border-bottom: 1px solid var(--card-nearby-row-divider);
  font-size: 0.84rem;
}

.card-nearby-row:last-child {
  border-bottom: none;
}

.card-nearby-num {
  min-width: 1.4rem;
  font-size: 0.72rem;
  color: var(--card-nearby-num);
  flex-shrink: 0;
}

.card-nearby-name {
  flex: 1;
}

.card-nearby-name a {
  color: var(--card-nearby-link);
  text-decoration: none;
  transition: color 0.18s ease;
}

.card-nearby-name a:hover {
  color: var(--card-nearby-link-hover);
  text-decoration: underline;
}

.card-nearby-dist {
  font-size: 0.75rem;
  color: var(--card-nearby-dist);
  white-space: nowrap;
  flex-shrink: 0;
}

.card-nearby-map a {
  color: #c0392b;
  font-size: 0.95rem;
}

/* =========================================
   12. ROUTE STOP CARDS  (circuit map pages)
   ========================================= */

.route-stops {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.route-stop-card {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: #fff5f5;
  border: 1px solid #f5c2c7;
  border-left: 4px solid #dc3545;
  border-radius: 0.5rem;
  padding: 0.6rem 0.75rem;
  transition: box-shadow 0.15s, background 0.15s;
}

.route-stop-card:hover {
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.15);
  background: #fde8ea;
}

/* NCN (North Kaveri) — blue theme */
.route-stop-card.ncn {
  background: #f0f4ff;
  border-color: #c7d4f5;
  border-left-color: #0d6efd;
}

.route-stop-card.ncn:hover {
  box-shadow: 0 2px 8px rgba(13, 110, 253, 0.15);
  background: #dce6ff;
}

.route-stop-num {
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  background: #dc3545;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 1px;
}

.route-stop-num.ncn {
  background: #0d6efd;
}

.route-stop-info {
  min-width: 0;
}

.route-stop-info .badge {
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  margin-bottom: 0.2rem;
  display: inline-block;
}

.route-stop-info a {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #842029;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.route-stop-card.ncn .route-stop-info a {
  color: #084298;
}

.route-stop-info a:hover {
  text-decoration: underline;
  color: #dc3545;
}

.route-stop-card.ncn .route-stop-info a:hover {
  color: #0d6efd;
}

.route-stop-info a .bi {
  font-size: 0.7rem;
  opacity: 0.7;
}

/* =========================================
   GALLERY COMPONENTS
   ========================================= */

 .temple-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.watermark {
  position: absolute;
  bottom: 80px;
  right: 10px;
  padding: 4px 10px;
  font-size: 14px;
  color: #fff;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8),
               -1px -1px 2px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.5px;
    }

.gallery-caption {
  position: static;
  background: #f8f9fa;
  color: #000;
  padding: 0.5rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/*=========================================
   PILLAR GALLERY — uses same grid as temple-gallery (used in pnt12, sct63)
   ========================================= */

.gallery-item-pillar {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.gallery-item-pillar:hover {
  transform: scale(1.02);
}

.gallery-item-pillar img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  transition: transform 0.3s ease;
  border: 3px solid #2c3e50;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.gallery-item-pillar:hover img {
  transform: scale(1.1);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}


/* =========================================
   SPECIAL CONTENT SECTIONS
   ========================================= */

.pariharasthalam {
  background-color: #fef1e4;
  font-weight: 550;
  padding: 5px;
}

.travel-tips {
  background-color: #fef1e4 !important;
  padding: 10px;
}

/* for ashta veerattan sthalam info card */
.avsection {
  background-color: #fef1e4 !important;
  padding: 10px;
}
/* =========================================
   BUTTONS & NAVIGATION
   ========================================= */
.navigation-buttons .btn {
  border-radius: 25px;
  padding: 10px 20px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.navigation-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Language Toggle Button */
.btnlang {
  position: fixed;
  bottom: 100px;
  right: 20px;
  z-index: 1000;
  padding: 12px 15px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  box-shadow: var(--shadow);
}

.btnlang:hover {
  background: var(--accent-color);
  transform: scale(1.05);
  transition: all 0.3s ease;
}

/* Scroll to Top Button */
.scroll-top {
  position: fixed;
  bottom: 40px;
  right: 20px;
  z-index: 1000;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}

/* =========================================
   PAGINATION FOR VT INDEX
   ========================================= */

/* Pagination Container */
.pagination-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 20px 0;
  flex-wrap: wrap;
}

/* Pagination Buttons */
.pagination-button {
  background-color: #fff;
  border: 1px solid #dee2e6;
  color: #dc3545;
  padding: 8px 12px;
  min-width: 40px;
  height: 40px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-button:hover:not(:disabled) {
  background-color: #f8d7da;
  border-color: #dc3545;
  color: #dc3545;
  transform: translateY(-2px);
}

.pagination-button:disabled {
  background-color: #e9ecef;
  border-color: #dee2e6;
  color: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Pagination Numbers Container */
#pagination-numbers {
  display: flex;
  gap: 5px;
  align-items: center;
}

/* Individual Page Number Button */
.pagination-number {
  background-color: #fff;
  border: 1px solid #dee2e6;
  color: #495057;
  padding: 8px 12px;
  min-width: 40px;
  height: 40px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-number:hover {
  background-color: #f8d7da;
  border-color: #dc3545;
  color: #dc3545;
}

.pagination-number.active {
  background-color: #dc3545;
  border-color: #dc3545;
  color: #fff;
  font-weight: 600;
}

/* Ellipsis */
.pagination-ellipsis {
  padding: 8px 4px;
  color: #6c757d;
  font-weight: bold;
}

.page-info {
  text-align: center;
  margin-bottom: 15px;
  font-size: 14px;
  color: #6c757d;
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
}

.page-info.fade-in {
  opacity: 1;
}

/* Table sticky header */
#sticky-tablehead th {
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Responsive */
@media (max-width: 576px) {
  .pagination-button,
  .pagination-number {
    min-width: 35px;
    height: 35px;
    padding: 6px 10px;
    font-size: 14px;
  }

  .pagination-container {
    gap: 4px;
  }

  #pagination-numbers {
    gap: 3px;
  }
}


/* =========================================
   ANIMATIONS
   ========================================= */
.animate {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation Delay Classes */
.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }
.delay-4 { animation-delay: 1.2s; }
.delay-5 { animation-delay: 1.5s; }

/* =========================================
   DINAMANI LINK
   ========================================= */

.dinamani-link {
  text-decoration: none;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
  background: var(--primary-color);
  margin-top: 3rem;
}

/* =========================================
   MEDIA QUERIES - RESPONSIVE DESIGN @media (max-width: 768px)
   ========================================= */
@media screen and (max-width: 720px)
 {
  
  /* Banner Responsive */
  .site-banner {
    min-height: 250px;
  }
  
  .site-banner h1 {
    font-size: 1.8rem;
  }
  
  .site-banner h2 {
    font-size: 1.2rem;
  }
  
  .site-banner h4 {
    font-size: 1.1rem;
  }
  
  /* Gallery Responsive */
  .temple-gallery {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .gallery-item img {
        height: 200px;
      }
      
  .watermark {
        bottom: 60px;
        right: 8px;
        font-size: 10px;
        padding: 3px 8px;
      }
  
  /* Fixed Buttons Responsive */
  .btnlang {
    bottom: 100px;
    right: 15px;
    width: 45px;
    height: 45px;
  }
  
  .scroll-top {
    width: 45px;
    height: 45px;
    bottom: 15px;
    right: 15px;
  }

  .gallery-item-pillar img {
    height: 450px;
  }

  .navigation-buttons {
    font-size: 12px;
  }
}


