/* =============================================
   SGSSIN – Shri Guru Singh Sabha, Indore
   Pure PHP | SiteAdda Labs
   Desktop-first + Mobile Responsive
   ============================================= */

:root {
  --gold:       #c9a84c;
  --gold-light: #f0d080;
  --navy:       #1a2a5e;
  --navy-dark:  #0f1a3e;
  --saffron:    #e07b30;
  --white:      #ffffff;
  --bg-light:   #f8f5ef;
  --text:       #222222;
  --gray:       #555555;
  --border:     #e0d5c0;
  --radius:     8px;
}

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  color: var(--text); background: #fff;
  font-size: 15px; line-height: 1.7;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
h1,h2,h3,h4,h5 { line-height: 1.3; }

/* ─── TOP BAR ─── */
.topbar {
  background: var(--navy-dark);
  color: #ccc;
  padding: 7px 0;
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
}
.tb-label { color: #aaa; white-space: nowrap; }
.tb-link  { color: var(--gold-light); white-space: nowrap; }
.tb-link:hover { color: #fff; }
.tb-sep   { color: #555; }

/* ─── HEADER ─── */
.site-header {
  background: #fff;
  border-bottom: 3px solid var(--gold);
  padding: 12px 0;
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 1;
  min-width: 0;
}
.logo-area img { width: 60px; height: 60px; object-fit: contain; flex-shrink: 0; border-radius: 50%; }
.logo-text { min-width: 0; }
.logo-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.3;
  /* h1 semantics but styled small */
}
.logo-addr {
  font-size: 11.5px;
  color: var(--gray);
  line-height: 1.5;
  margin-top: 2px;
}
.header-btns { display: flex; gap: 10px; flex-shrink: 0; }
.btn-join {
  background: var(--saffron); color: #fff;
  padding: 9px 20px; border-radius: 5px;
  font-size: 13px; font-weight: 700;
  transition: background .2s;
  white-space: nowrap;
}
.btn-join:hover { background: #c86020; color: #fff; }
.btn-dir {
  background: var(--navy); color: #fff;
  padding: 9px 20px; border-radius: 5px;
  font-size: 13px; font-weight: 700;
  transition: background .2s;
  white-space: nowrap;
}
.btn-dir:hover { background: var(--navy-dark); color: #fff; }

/* ─── NAV ─── */
nav.main-nav { background: var(--navy); position: relative; }
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.nav-menu { display: flex; align-items: stretch; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: flex; align-items: center; gap: 4px;
  color: #fff; padding: 14px 13px;
  font-size: 13px; font-weight: 500;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.nav-menu > li > a:hover,
.nav-menu > li.active > a { background: var(--gold); color: var(--navy-dark); }
.nav-menu > li > a .arrow { font-size: 10px; opacity: 0.8; }

/* Dropdown */
.dropdown {
  display: none;
  position: absolute; top: 100%; left: 0;
  background: var(--navy-dark);
  min-width: 220px;
  border-top: 3px solid var(--gold);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  z-index: 2000;
}
.has-sub:hover > .dropdown { display: block; }
.dropdown li a {
  display: block; color: #ddd;
  padding: 10px 18px; font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background .2s, color .2s;
}
.dropdown li a:hover { background: var(--gold); color: var(--navy-dark); }

/* Hamburger button */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 10px 5px; flex-direction: column;
  gap: 5px; flex-shrink: 0;
}
.nav-toggle span {
  display: block; width: 26px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile-only items — hidden on desktop */


/* ─── HERO SLIDER ─── */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #111;
  line-height: 0; /* kills gap under img */
}
.hero-slider .slide { display: none; }
.hero-slider .slide.active { display: block; }
.hero-slider .slide img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center;
  opacity: 0.88;
  line-height: 0;
}
.slider-prev, .slider-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.45); color: #fff; border: none;
  width: 44px; height: 44px; border-radius: 50%;
  font-size: 22px; cursor: pointer; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.slider-prev { left: 14px; }
.slider-next { right: 14px; }
.slider-prev:hover, .slider-next:hover { background: var(--gold); }
.slider-controls {
  position: absolute; bottom: 18px;
  left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.slider-dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none; cursor: pointer;
  transition: background .3s;
}
.slider-dot.active { background: var(--gold); }

/* ─── NEWS TICKER ─── */
.news-ticker {
  background: var(--gold);
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-inner { display: flex; align-items: center; }
.ticker-label {
  background: var(--navy-dark); color: var(--gold);
  padding: 3px 14px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  flex-shrink: 0; margin-right: 0;
}
.ticker-wrap { overflow: hidden; flex: 1; }
.ticker-track {
  display: inline-block;
  animation: ticker 40s linear infinite;
  white-space: nowrap;
}
.ticker-track span {
  font-size: 13px; font-weight: 600;
  color: var(--navy-dark);
  margin: 0 28px;
}
.ticker-track span::before { content: "● "; opacity: 0.6; }
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── UTILITIES ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 28px; color: var(--navy); font-weight: 700; margin-bottom: 10px; }
.section-title .bar { width: 55px; height: 3px; background: var(--gold); margin: 0 auto 12px; border-radius: 2px; }
.section-title p { color: var(--gray); font-size: 14.5px; max-width: 580px; margin: 0 auto; }

/* ─── HOME: ABOUT ─── */
.home-about { padding: 60px 0; background: var(--bg-light); }
.home-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.home-about-grid img { width: 100%; border-radius: var(--radius); box-shadow: 0 8px 30px rgba(0,0,0,0.15); }
.home-about-text h2 { font-size: 26px; color: var(--navy); margin-bottom: 14px; }
.home-about-text p { color: var(--gray); margin-bottom: 13px; line-height: 1.8; font-size: 14.5px; }

/* ─── HEALTHCARE STRIP ─── */
.healthcare-strip { background: var(--navy); padding: 28px 20px; text-align: center; color: #fff; }
.healthcare-strip h3 { font-size: 20px; color: var(--gold); margin-bottom: 8px; }
.healthcare-strip p { color: #ccc; font-size: 13.5px; line-height: 1.7; }

/* ─── NEWS CARDS ─── */
.news-section { padding: 55px 0; }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 22px;
}
.news-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 22px 18px;
  border-left: 4px solid var(--gold);
}
.news-card .icon { font-size: 30px; margin-bottom: 10px; }
.news-card h3 { font-size: 15px; color: var(--navy); font-weight: 700; margin-bottom: 8px; }
.news-card p  { font-size: 13px; color: var(--gray); margin: 0; }

/* ─── VIDEO ─── */
.video-section { padding: 50px 0; background: var(--bg-light); text-align: center; }
.video-section video {
  width: 100%; max-width: 800px;
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}

/* ─── GURDWARAS GRID ─── */
.gurdwaras-section { padding: 60px 0; }
.gurdwaras-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.gurdwara-card {
  background: #fff; border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.09);
  transition: transform .2s, box-shadow .2s;
}
.gurdwara-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.14); }
.gurdwara-card img { width: 100%; height: 185px; object-fit: cover; }
.gurdwara-card-body { padding: 16px; border-top: 3px solid var(--gold); }
.gurdwara-card-body h3 { font-size: 14px; color: var(--navy); font-weight: 700; margin-bottom: 7px; line-height: 1.4; }
.gurdwara-card-body p  { font-size: 12.5px; color: var(--gray); line-height: 1.6; }
.gurdwara-card-body a  { display: inline-block; margin-top: 10px; color: var(--saffron); font-size: 13px; font-weight: 600; }

/* ─── GALLERY (HOME) ─── */
.gallery-section { padding: 55px 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.gallery-grid a { display: block; overflow: hidden; border-radius: 6px; }
.gallery-grid img { width: 100%; height: 155px; object-fit: cover; transition: transform .3s; }
.gallery-grid a:hover img { transform: scale(1.07); }

/* ─── PAGE HERO BANNER ─── */
.page-hero {
  background: var(--navy); padding: 38px 0; color: #fff;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,0.12) 0%, transparent 60%);
}
.page-hero h1 { font-size: 30px; font-weight: 800; color: var(--gold); margin-bottom: 6px; position: relative; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,0.65); position: relative; }
.breadcrumb a { color: var(--gold-light); }
.breadcrumb span { margin: 0 5px; }

/* ─── PAGE CONTENT ─── */
.page-content { padding: 50px 0; }
.page-content h2 {
  font-size: 23px; color: var(--navy);
  margin: 30px 0 14px; padding-bottom: 8px;
  border-bottom: 2px solid var(--gold); display: inline-block;
}
.page-content h2:first-child { margin-top: 0; }
.page-content h3 { font-size: 18px; color: var(--navy); margin: 22px 0 9px; }
.page-content h4 { font-size: 15px; color: var(--saffron); margin: 16px 0 7px; font-weight: 700; }
.page-content p  { color: var(--gray); margin-bottom: 13px; line-height: 1.85; }
.page-content ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.page-content ul li { margin-bottom: 7px; color: var(--gray); }

.content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
.content-grid .sidebar-img img { width: 100%; border-radius: var(--radius); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }

/* Table */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 22px 0; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 400px; }
.data-table th { background: var(--navy); color: #fff; padding: 12px 14px; text-align: left; white-space: nowrap; }
.data-table td { padding: 9px 14px; border-bottom: 1px solid var(--border); color: var(--gray); }
.data-table tr:nth-child(even) td { background: var(--bg-light); }
.data-table tr:hover td { background: #f0e8d0; }

/* Key Points */
.key-point {
  display: flex; gap: 14px;
  background: var(--bg-light); border-left: 4px solid var(--gold);
  border-radius: 0 6px 6px 0; padding: 15px 18px; margin-bottom: 13px;
}
.key-point-num { font-size: 22px; font-weight: 800; color: var(--gold); flex-shrink: 0; line-height: 1; margin-top: 2px; }
.key-point h4 { font-size: 14.5px; color: var(--navy); margin-bottom: 4px; }
.key-point p  { font-size: 13.5px; color: var(--gray); margin: 0; }

/* Highlight box */
.highlight-box {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: #fff; padding: 26px 28px; border-radius: var(--radius);
  margin: 28px 0; border-left: 5px solid var(--gold);
}
.highlight-box p { font-size: 15px; font-style: italic; color: #eee; margin: 0; line-height: 1.9; }

/* Principles */
.principle-list { display: flex; flex-direction: column; gap: 13px; margin: 20px 0; }
.principle-item { display: flex; gap: 14px; background: var(--bg-light); padding: 15px; border-radius: 6px; align-items: flex-start; }
.principle-icon { font-size: 26px; flex-shrink: 0; }
.principle-item h4 { color: var(--navy); margin-bottom: 4px; font-size: 14px; }
.principle-item p  { color: var(--gray); margin: 0; font-size: 13px; }

/* ─── OFFICE BEARERS ─── */
.ob-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.ob-card {
  text-align: center; background: var(--bg-light);
  border-radius: var(--radius); padding: 22px 14px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08); transition: transform .2s;
}
.ob-card:hover { transform: translateY(-3px); }
.ob-card img { width: 95px; height: 95px; object-fit: cover; border-radius: 50%; border: 3px solid var(--gold); margin: 0 auto 12px; }
.ob-card h3 { font-size: 13px; color: var(--navy); font-weight: 700; margin-bottom: 5px; line-height: 1.4; }
.ob-card p  { font-size: 11px; color: var(--saffron); font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; line-height: 1.4; }

/* ─── CONTACT ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 38px; }
.contact-info-box { background: var(--bg-light); border-radius: var(--radius); padding: 28px; }
.contact-form-box { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: 0 4px 18px rgba(0,0,0,0.08); }
.contact-info-box h3,
.contact-form-box h3 { font-size: 19px; color: var(--navy); margin-bottom: 20px; border-bottom: 2px solid var(--gold); padding-bottom: 10px; }
.contact-item { display: flex; gap: 12px; margin-bottom: 18px; align-items: flex-start; }
.contact-item .icon { width: 38px; height: 38px; background: var(--navy); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 15px; }
.contact-item p { color: var(--gray); font-size: 14px; margin: 0; }
.contact-item strong { display: block; color: var(--navy); font-size: 12px; margin-bottom: 2px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 5px; }
.form-group input,
.form-group textarea {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: 5px;
  font-size: 14px; font-family: inherit; color: var(--text);
  background: #fafafa; transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--gold); background: #fff; }
.form-group textarea { resize: vertical; min-height: 105px; }
.btn-submit {
  width: 100%; background: var(--navy); color: #fff;
  border: none; padding: 12px; border-radius: 5px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: background .2s;
}
.btn-submit:hover { background: var(--saffron); }
.form-success { background: #d4edda; border: 1px solid #c3e6cb; color: #155724; padding: 12px 16px; border-radius: 5px; margin-bottom: 16px; font-size: 13.5px; display: none; }
.form-error   { background: #f8d7da; border: 1px solid #f5c6cb; color: #721c24; padding: 12px 16px; border-radius: 5px; margin-bottom: 16px; font-size: 13.5px; display: none; }
.map-embed { margin-top: 38px; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.map-embed iframe { width: 100%; height: 330px; border: none; display: block; }

/* ─── CALENDAR ─── */
.cal-img { text-align: center; margin-bottom: 28px; }
.cal-img img { max-width: 440px; border-radius: var(--radius); box-shadow: 0 4px 18px rgba(0,0,0,0.1); margin: 0 auto; }
.cal-links { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.cal-link { background: var(--navy); color: #fff !important; padding: 9px 18px; border-radius: 5px; font-size: 13px; font-weight: 600; transition: background .2s; }
.cal-link:hover { background: var(--gold); color: var(--navy-dark) !important; }

/* ─── GALLERY PAGE ─── */
.guru-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; margin-bottom: 14px; }
.guru-card { display: flex; flex-direction: column; align-items: center; text-decoration: none; }
.guru-frame { width: 100%; aspect-ratio: 3/4; position: relative; border-radius: 4px; overflow: hidden; border: 2px solid var(--gold); background: var(--navy-dark); }
.guru-frame img { width:100%; height:100%; object-fit:cover; object-position:top center; display:block; transition:transform .35s; }
.guru-card:hover .guru-frame img { transform: scale(1.05); }
.guru-frame::before { content:''; position:absolute; top:5px; left:5px; width:12px; height:12px; border:2px solid var(--gold); border-width:2px 0 0 2px; z-index:2; }
.guru-frame::after  { content:''; position:absolute; top:5px; right:5px; width:12px; height:12px; border:2px solid var(--gold); border-width:2px 2px 0 0; z-index:2; }
.guru-frame .gc1 { content:''; position:absolute; bottom:5px; left:5px; width:12px; height:12px; border:2px solid var(--gold); border-width:0 0 2px 2px; z-index:2; }
.guru-frame .gc2 { content:''; position:absolute; bottom:5px; right:5px; width:12px; height:12px; border:2px solid var(--gold); border-width:0 2px 2px 0; z-index:2; }
.guru-name { margin-top:8px; font-size:11.5px; font-weight:600; color:var(--navy); text-align:center; line-height:1.3; }
.guru-num  { font-size:10px; color:var(--gold); font-weight:700; margin-top:2px; letter-spacing:0.5px; }

.gurdwara-gallery-grid  { display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; }
.gurdwara-gallery-card  { display: flex; flex-direction: column; text-decoration: none; }
.gurdwara-gallery-frame { width: 100%; aspect-ratio: 4/3; position: relative; border-radius: 4px; overflow: hidden; border: 2px solid var(--gold); background: var(--navy-dark); }
.gurdwara-gallery-frame img { width:100%; height:100%; object-fit:cover; object-position:center; display:block; transition:transform .35s; }
.gurdwara-gallery-card:hover .gurdwara-gallery-frame img { transform: scale(1.05); }
.gurdwara-gallery-frame::before { content:''; position:absolute; top:5px; left:5px; width:12px; height:12px; border:2px solid var(--gold); border-width:2px 0 0 2px; z-index:2; }
.gurdwara-gallery-frame::after  { content:''; position:absolute; top:5px; right:5px; width:12px; height:12px; border:2px solid var(--gold); border-width:2px 2px 0 0; z-index:2; }
.gurdwara-gallery-frame .gc1 { content:''; position:absolute; bottom:5px; left:5px; width:12px; height:12px; border:2px solid var(--gold); border-width:0 0 2px 2px; z-index:2; }
.gurdwara-gallery-frame .gc2 { content:''; position:absolute; bottom:5px; right:5px; width:12px; height:12px; border:2px solid var(--gold); border-width:0 2px 2px 0; z-index:2; }
.gurdwara-gallery-name { margin-top:8px; font-size:11px; font-weight:600; color:var(--gray); text-align:center; line-height:1.4; }

/* ─── FOOTER ─── */
footer { background: var(--navy-dark); color: #ccc; padding: 50px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 32px; max-width: 1200px; margin: 0 auto; padding: 0 20px;
}
.footer-col h4 {
  color: var(--gold); font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 16px; padding-bottom: 9px;
  border-bottom: 2px solid rgba(201,168,76,0.3);
}
.footer-col p  { font-size: 13.5px; line-height: 1.8; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #bbb; font-size: 13.5px; transition: color .2s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-ci { display: flex; gap: 10px; margin-bottom: 12px; font-size: 13.5px; align-items: flex-start; }
.footer-ci .fi { font-size: 15px; margin-top: 2px; flex-shrink: 0; }
.footer-map iframe { width: 100%; height: 155px; border: none; border-radius: 6px; margin-top: 6px; }
.footer-bottom { background: #08102a; text-align: center; padding: 15px 20px; font-size: 12.5px; color: #888; margin-top: 38px; }
.footer-bottom a { color: var(--gold); }
.footer-bottom a:hover { color: #fff; }

/* ─── MISC ─── */
.view-all-wrap { text-align: center; margin-top: 30px; }
.btn-view-all {
  display: inline-block; background: var(--navy); color: #fff;
  padding: 12px 34px; border-radius: 5px; font-size: 14px;
  font-weight: 700; transition: background .2s;
}
.btn-view-all:hover { background: var(--gold); color: var(--navy-dark); }
#back-to-top {
  position: fixed; bottom: 22px; right: 22px;
  background: var(--navy); color: #fff;
  width: 42px; height: 42px; border-radius: 50%;
  font-size: 18px; border: none; cursor: pointer;
  display: none; z-index: 1000;
  box-shadow: 0 3px 12px rgba(0,0,0,0.3);
  transition: background .2s;
  line-height: 42px; text-align: center;
}
#back-to-top:hover { background: var(--gold); color: var(--navy-dark); }

/* ══════════════════════════════════════════════════
   RESPONSIVE — Tablet (≤ 1024px)
══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-slider .slide img { height: 370px; }
  .gurdwaras-grid         { grid-template-columns: repeat(2,1fr); }
  .ob-grid                { grid-template-columns: repeat(3,1fr); }
  .gallery-page-grid      { grid-template-columns: repeat(4,1fr); }
  .guru-grid              { grid-template-columns: repeat(4,1fr); }
  .gurdwara-gallery-grid  { grid-template-columns: repeat(4,1fr); }
  .gallery-grid           { grid-template-columns: repeat(3,1fr); }
  .footer-grid            { grid-template-columns: 1fr 1fr; gap: 24px; }
  .nav-menu > li > a      { padding: 13px 10px; font-size: 12.5px; }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE — Mobile (≤ 768px)
══════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* TOP BAR */
  .topbar-inner { font-size: 12px; gap: 6px; padding: 0 12px; }
  .tb-label { display: none; } /* saves space — links remain */

  /* HEADER */
  .header-inner { padding: 0 12px; gap: 10px; }
  .logo-area img { width: 46px; height: 46px; }
  .logo-title { font-size: 12px; }
  .logo-addr  { display: none; } /* hidden on mobile */
  .header-btns { display: none; } /* moved into hamburger menu */

  /* NAV — hamburger mode */
  .nav-toggle { display: flex; }
  .nav-inner  { padding: 0 12px; }

  .nav-menu {
    display: none;                    /* hidden until .open */
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;    /* full width below nav */
    background: var(--navy-dark);
    z-index: 1500;
    box-shadow: 0 10px 24px rgba(0,0,0,0.35);
    max-height: 80vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-menu.open { display: flex; }

  .nav-menu > li > a {
    padding: 13px 18px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    justify-content: space-between;
  }
  .nav-menu > li > a:hover,
  .nav-menu > li.active > a { background: rgba(201,168,76,0.15); color: var(--gold); }

  /* Mobile dropdown — stacked, not absolute */
  .has-sub > .dropdown {
    position: static;
    display: none;
    background: rgba(255,255,255,0.06);
    border-top: none; border-left: 3px solid var(--gold);
    box-shadow: none; min-width: unset;
  }
  .has-sub.sub-open > .dropdown { display: block; }
  .dropdown li a { padding: 10px 30px; font-size: 13px; }

  

  /* SLIDER */
  .hero-slider .slide img { height: 210px; }
  .slider-prev, .slider-next { width: 34px; height: 34px; font-size: 17px; }

  /* TICKER */
  .ticker-label { font-size: 11px; padding: 2px 10px; }
  .ticker-track span { font-size: 12px; margin: 0 16px; }

  /* HOME SECTIONS */
  .home-about { padding: 36px 0; }
  .home-about-grid { grid-template-columns: 1fr; gap: 22px; }
  .home-about-text h2 { font-size: 20px; }
  .home-about-text p  { font-size: 13.5px; }

  .healthcare-strip { padding: 22px 15px; }
  .healthcare-strip h3 { font-size: 16px; }
  .healthcare-strip p  { font-size: 12.5px; }

  .news-section { padding: 36px 0; }
  .news-grid { grid-template-columns: 1fr; gap: 14px; }

  .gurdwaras-section { padding: 36px 0; }
  .gurdwaras-grid { grid-template-columns: 1fr; gap: 16px; }

  .gallery-grid { grid-template-columns: repeat(2,1fr); gap: 8px; }
  .gallery-grid img { height: 120px; }
  .gallery-section { padding: 36px 0; }

  .video-section { padding: 32px 0; }

  /* PAGE HERO */
  .page-hero { padding: 24px 0; }
  .page-hero h1 { font-size: 22px; }

  /* PAGE CONTENT */
  .page-content { padding: 32px 0; }
  .page-content h2 { font-size: 19px; }
  .page-content h3 { font-size: 16px; }
  .content-grid { grid-template-columns: 1fr; }

  /* OFFICE BEARERS */
  .ob-grid { grid-template-columns: repeat(2,1fr); gap: 14px; }
  .ob-card { padding: 16px 10px; }
  .ob-card img { width: 75px; height: 75px; }
  .ob-card h3 { font-size: 12px; }
  .ob-card p  { font-size: 10px; }

  /* CONTACT */
  .contact-grid { grid-template-columns: 1fr; gap: 22px; }
  .contact-info-box, .contact-form-box { padding: 20px; }
  .map-embed iframe { height: 250px; }

  /* CALENDAR */
  .cal-img img  { max-width: 100%; }
  .cal-links    { gap: 8px; }
  .cal-link     { font-size: 12px; padding: 8px 14px; }

  /* GALLERY PAGE */
  .gallery-page-grid { grid-template-columns: repeat(2,1fr); gap: 8px; }
  .gallery-page-grid img { height: 140px; }
  .guru-grid             { grid-template-columns: repeat(3,1fr); gap: 10px; }
  .gurdwara-gallery-grid { grid-template-columns: repeat(3,1fr); gap: 10px; }
  .guru-name             { font-size: 10px; }
  .gurdwara-gallery-name { font-size: 10px; }

  /* SECTION TITLE */
  .section-title h2 { font-size: 22px; }
  .section-title p  { font-size: 13px; }

  /* FOOTER */
  .footer-grid { grid-template-columns: 1fr; gap: 22px; padding: 0 15px; }
  footer { padding: 32px 0 0; }
  .footer-map iframe { height: 140px; }
  .footer-bottom { font-size: 11.5px; padding: 13px 15px; }

  /* BACK TO TOP */
  #back-to-top { bottom: 16px; right: 16px; width: 38px; height: 38px; line-height: 38px; font-size: 16px; }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE — Small Mobile (≤ 480px)
══════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .topbar-inner { font-size: 11.5px; }
  .logo-title { font-size: 11px; }
  .logo-area img { width: 40px; height: 40px; }
  .hero-slider .slide img { height: 180px; }
  .slider-prev, .slider-next { width: 30px; height: 30px; font-size: 15px; }
  .gallery-page-grid      { grid-template-columns: repeat(2,1fr); }
  .guru-grid              { grid-template-columns: repeat(2,1fr); }
  .gurdwara-gallery-grid  { grid-template-columns: repeat(2,1fr); }
  .page-hero h1 { font-size: 19px; }
  .section-title h2 { font-size: 20px; }
  .btn-view-all { padding: 10px 24px; font-size: 13px; }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE — Very Small (≤ 360px)
══════════════════════════════════════════════════ */
@media (max-width: 360px) {
  .logo-title { font-size: 10px; }
  .hero-slider .slide img { height: 155px; }
  .page-hero h1 { font-size: 17px; }
  .ob-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── GOOGLE TRANSLATE ─── */
#google_translate_element { display: inline-flex; align-items: center; }
#google_translate_element .goog-te-gadget-simple {
  background: transparent !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
  border-radius: 4px !important;
  padding: 2px 6px !important;
  font-size: 12px !important;
}
#google_translate_element .goog-te-gadget-simple a,
#google_translate_element .goog-te-gadget-simple a span {
  color: var(--gold-light) !important;
  text-decoration: none !important;
  font-family: 'Poppins', sans-serif !important;
}
/* Hide Google's ugly top bar */
.goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }
.skiptranslate { display: none !important; }
