/*
 * Theme Name: Doctor Portfolio
 * Version: 2.0.0
 * Author: BasketHunt Cloud Computing
 * Description: A premium, modern, responsive theme for Dr. Pranav Kumar, spine rehabilitation, ergonomics, Pro Spine, workshops, media, and public health education.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  --navy: #0b1121;       /* Darker, tech-focused navy */
  --navy-light: #151e32; /* Slightly lighter navy for cards */
  --blue: #0ea5e9;       /* Vibrant tech blue */
  --teal: #10b981;       /* Bright emerald/teal for tech pop */
  --teal-dark: #059669;  /* Darker emerald for hover states */
  --teal-light: #34d399; /* Light emerald */
  --mint: #ecfdf5;       /* Emerald-50 */
  --mint-dark: #d1fae5;  /* Emerald-100 */
  --ice: #f8fafc;        /* Slate-50: cool crisp background */
  --white: #ffffff;
  --line: #e2e8f0;       /* Slate-200 */
  --text: #334155;       /* High contrast text */
  --muted: #64748b;      /* Muted text */
  --soft: #f1f5f9;       /* Slate-100 */
  --accent: #f59e0b;     /* Amber-500 */
  --heading: 'Outfit', sans-serif;
  --body: 'Inter', sans-serif;
  --container: 1180px;
  --radius: 12px;
  
  /* Modern Elevation System */
  --shadow-sm: 0 1px 3px rgba(11, 17, 33, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(11, 17, 33, 0.05), 0 2px 4px -2px rgba(11, 17, 33, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(11, 17, 33, 0.08), 0 4px 6px -4px rgba(11, 17, 33, 0.08);
  --shadow-xl: 0 20px 25px -5px rgba(11, 17, 33, 0.06), 0 8px 10px -6px rgba(11, 17, 33, 0.06);
  --shadow-premium: 0 25px 50px -12px rgba(11, 17, 33, 0.15);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ice);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
}

img,
iframe {
  max-width: 100%;
}

img {
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--navy);
  font-family: var(--heading);
  font-weight: 800;
  line-height: 1.25;
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

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

@keyframes pulse-teal {
  0% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(13, 148, 136, 0); }
  100% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0); }
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 0.75rem;
  flex-wrap: nowrap;
  overflow: hidden;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 0.75rem;
  color: var(--navy);
  text-decoration: none;
}

.site-brand-mark,
.footer-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  font-family: var(--heading);
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: var(--shadow-md);
}

.site-brand-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.site-brand-name {
  font-family: var(--heading);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.site-brand-tagline {
  display: none;
  max-width: 320px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* Desktop Top Nav */
.desktop-top-nav {
  display: none; /* hidden on mobile */
  align-items: center;
  gap: 0.5rem;
}

.desktop-top-nav .nav-link {
  position: relative;
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 0.8rem;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.desktop-top-nav .nav-link:hover,
.desktop-top-nav .nav-link.active {
  background: var(--mint);
  color: var(--teal-dark);
}

/* Global Menu Toggle Button */
.menu-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--navy);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius);
  transition: background 0.2s;
  order: -1; /* Place it before the logo on desktop and mobile if we want, but let's just use flex layout */
}

.menu-toggle-btn:hover {
  background: var(--soft);
}

/* Sidebar Overlay */
.sidebar-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(11, 17, 33, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Off-Canvas Sidebar */
.site-sidebar {
  position: fixed;
  top: 0; left: -320px;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: var(--white);
  z-index: 1001;
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.site-sidebar.open {
  transform: translateX(320px);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.sidebar-title {
  font-family: var(--heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy);
}
.sidebar-close {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s;
}
.sidebar-close:hover {
  color: var(--text);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.sidebar-link {
  padding: 0.85rem 1.5rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
}
.sidebar-link:hover, .sidebar-link.active {
  color: var(--teal-dark);
  background: var(--mint);
  padding-left: 1.85rem;
}

.sidebar-contact-actions {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.sidebar-section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.sidebar-action-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--soft);
  transition: all 0.2s;
}
.sidebar-action-btn:hover {
  background: var(--line);
  transform: translateY(-1px);
}
.sidebar-action-btn.whatsapp {
  background: #ecfdf5;
  color: #059669;
}
.sidebar-action-btn.whatsapp:hover {
  background: #d1fae5;
}
.sidebar-action-btn.appointment {
  background: var(--navy);
  color: var(--white);
}
.sidebar-action-btn.appointment:hover {
  background: var(--navy-light);
}

.header-actions {
  display: none;
}

.header-quick,
.header-cta,
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-quick {
  color: var(--teal-dark);
  padding: 0.62rem 1rem;
}

.header-quick:hover {
  background: var(--mint);
  transform: translateY(-1px);
}

.header-cta,
.btn-primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: var(--white);
  padding: 0.65rem 1rem;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.25);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.85rem;
}

.header-cta:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.35);
  filter: brightness(1.05);
}

.btn-secondary {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  padding: 0.78rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
  background: var(--mint);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}



.mobile-menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  transition: all 0.25s ease;
}

.mobile-menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  background:
    radial-gradient(120% 120% at top right, rgba(231, 248, 246, 0.7) 0%, rgba(255, 255, 255, 0.9) 60%, var(--ice) 100%);
  border-bottom: 1px solid var(--line);
  padding: 4rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  width: 100%;
}

.hero-grid > div {
  min-width: 0;
  max-width: 100%;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: fadeInUp 0.6s ease;
}

.hero-tag,
.section-tag,
.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  background: var(--mint-dark);
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(13, 148, 136, 0.1);
}

.hero-title {
  margin-top: 1.25rem;
  font-size: 2.75rem;
  max-width: 760px;
  background: linear-gradient(135deg, var(--navy) 40%, var(--teal-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.hero-highlight {
  margin-top: 1.1rem;
  color: var(--teal);
  font-family: var(--heading);
  font-size: 1.4rem;
  font-weight: 700;
  position: relative;
  padding-left: 1rem;
  border-left: 3px solid var(--teal);
}

.hero-desc {
  max-width: 680px;
  margin-top: 1.25rem;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-media {
  position: relative;
  min-height: 380px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--navy);
  box-shadow: var(--shadow-xl);
  border: 4px solid var(--white);
  transition: all 0.3s ease;
}

.hero-media:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-premium);
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.hero-visual {
  display: grid;
  min-height: 380px;
  place-items: center;
  padding: 2.5rem;
  background:
    linear-gradient(140deg, rgba(15, 23, 42, 0.95), rgba(13, 148, 136, 0.75)),
    var(--navy);
  color: var(--white);
}

.spine-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 2rem;
}

.spine-visual::before {
  position: absolute;
  top: -20px;
  bottom: -20px;
  left: 50%;
  width: 3px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0.05));
  content: "";
  transform: translateX(-50%);
}

.spine-visual span {
  position: relative;
  width: 58px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.spine-visual span:hover {
  background: rgba(45, 212, 191, 0.2);
  border-color: var(--teal-light);
  box-shadow: 0 0 15px rgba(45, 212, 191, 0.6);
  transform: scale(1.1) !important;
}

.spine-visual span:nth-child(odd) {
  transform: translateX(-10px);
}

.spine-visual span:nth-child(even) {
  transform: translateX(10px);
}

.hero-visual-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-align: center;
}

.hero-visual-copy strong {
  color: var(--white);
  font-family: var(--heading);
  font-size: 1.85rem;
  letter-spacing: -0.01em;
}

.hero-visual-copy span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.hero-card {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 180px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.85);
  padding: 1rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
  animation: float 6s ease-in-out infinite;
}

.hero-card span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-card strong {
  display: block;
  color: var(--navy);
  font-family: var(--heading);
  font-size: 1.25rem;
  margin-top: 0.15rem;
}

.metric-strip {
  display: grid;
  gap: 1rem;
  margin-top: 3rem;
  animation: fadeInUp 0.8s ease;
}

.metric-item {
  position: relative;
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.metric-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--teal);
  transition: all 0.3s ease;
}

.metric-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-premium);
}

.metric-item:hover::before {
  width: 8px;
}

.metric-item strong {
  display: block;
  color: var(--teal-dark);
  font-family: var(--heading);
  font-size: 1.85rem;
  line-height: 1;
}

.metric-item span {
  display: block;
  margin-top: 0.5rem;
  color: var(--navy);
  font-weight: 800;
  font-size: 0.95rem;
}

.metric-item small {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.section {
  padding: 4.5rem 0;
}

.section-white {
  background: var(--white);
}

.section-header {
  max-width: 720px;
  margin-bottom: 3rem;
  text-align: center;
}

.section-header .section-tag {
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  margin-top: 1rem;
  font-size: 2.25rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--navy) 50%, var(--teal-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.split-heading {
  display: grid;
  gap: 1.25rem;
  align-items: end;
  margin-bottom: 3rem;
}

.split-heading .section-title {
  margin-top: 0.85rem;
  margin-bottom: 0;
}

.split-heading .section-desc {
  margin-top: 0;
}

.services-grid,
.initiative-grid,
.testimonial-grid,
.posts-grid,
.video-grid {
  display: grid;
  gap: 1.25rem;
}

.service-card,
.initiative-card,
.testimonial-card,
.post-card,
.video-card,
.entry-card,
.widget,
.awards-panel,
.coverage-list,
.contact-panel,
.empty-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card {
  min-height: 220px;
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--teal);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-premium);
  border-color: var(--teal-light);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal-dark) 100%);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.service-title {
  margin-top: 1.25rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}

.service-desc,
.initiative-card p,
.testimonial-card p,
.post-card-excerpt,
.video-card p,
.event-body p,
.coverage-list p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.65;
}

.service-desc {
  margin-top: 0.6rem;
  color: var(--muted);
}

.initiative-card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  align-items: flex-start;
  padding: 2rem 1.5rem;
}

.initiative-card:hover {
  transform: translateY(-5px);
  border-color: var(--teal);
  box-shadow: var(--shadow-premium);
}

.initiative-card h3 {
  margin-top: 1.1rem;
  font-size: 1.35rem;
  color: var(--navy);
}

.initiative-card p {
  margin-top: 0.75rem;
  color: var(--muted);
}

.initiative-card a,
.resource-row a,
.coverage-list a,
.post-card-link,
.event-link {
  margin-top: 1.25rem;
  color: var(--teal-dark);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.2s ease;
}

.initiative-card a::after,
.resource-row a::after,
.coverage-list a::after,
.post-card-link::after,
.event-link::after {
  content: '→';
  transition: transform 0.2s ease;
}

.initiative-card a:hover,
.resource-row a:hover,
.coverage-list a:hover,
.post-card-link:hover,
.event-link:hover {
  color: var(--teal);
}

.initiative-card a:hover::after,
.resource-row a:hover::after,
.coverage-list a:hover::after,
.post-card-link:hover::after,
.event-link:hover::after {
  transform: translateX(4px);
}

.timeline-list {
  display: grid;
  gap: 1.1rem;
}

.event-card {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  border-left: 4px solid var(--teal);
  background: var(--white);
  padding: 1.5rem;
}

.event-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-premium);
  border-left-color: var(--teal-light);
}

.event-date {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 82px;
  border-radius: var(--radius);
  background: var(--ice);
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--line);
}

.event-date span {
  color: var(--teal-dark);
  font-family: var(--heading);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
}

.event-date small {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.15rem;
}

.event-body h3 {
  font-size: 1.2rem;
  color: var(--navy);
}

.event-location {
  margin-top: 0.25rem;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.88rem;
}

.event-body p {
  margin-top: 0.5rem;
  color: var(--muted);
}

.event-link {
  margin-top: 0;
}

.resource-layout,
.media-grid-home,
.content-wrap {
  display: grid;
  gap: 1.5rem;
}

.resource-list {
  display: grid;
  gap: 0.85rem;
}

.resource-row {
  display: grid;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.resource-row:hover {
  transform: translateX(4px);
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
}

.resource-row > span {
  width: fit-content;
  border-radius: 999px;
  background: var(--mint);
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.3rem 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(13, 148, 136, 0.08);
}

.resource-row h3 {
  font-size: 1.1rem;
  color: var(--navy);
  font-weight: 700;
}

.resource-row p {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.15rem;
}

.resource-row a {
  margin-top: 0;
}

.awards-panel {
  padding: 1.75rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: rgba(255, 255, 255, 0.85);
  border: none;
}

.awards-panel h3 {
  margin-bottom: 1.25rem;
  font-size: 1.35rem;
  color: var(--white);
  position: relative;
  padding-bottom: 0.75rem;
}

.awards-panel h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--teal-light);
  border-radius: 2px;
}

.award-item {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
}

.award-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.award-item strong {
  display: block;
  color: var(--white);
  font-size: 1.05rem;
}

.award-item span {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-card {
  min-height: 200px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: all 0.3s ease;
}

.gallery-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-premium);
}

.gallery-card img,
.gallery-placeholder {
  width: 100%;
  height: 145px;
  transition: transform 0.5s ease;
}

.gallery-card img {
  object-fit: cover;
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-placeholder {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(13, 148, 136, 0.7)),
    var(--navy);
}

.gallery-placeholder span {
  color: var(--white);
  font-family: var(--heading);
  font-size: 1.05rem;
  font-weight: 800;
  text-align: center;
}

.gallery-card figcaption {
  padding: 0.85rem;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.gallery-card strong,
.gallery-card span {
  display: block;
}

.gallery-card strong {
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 700;
}

.gallery-card span {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 0.15rem;
}

.coverage-list {
  padding: 1.75rem;
}

.coverage-list h3 {
  margin-bottom: 1.25rem;
  font-size: 1.35rem;
  color: var(--navy);
  position: relative;
  padding-bottom: 0.75rem;
}

.coverage-list h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--teal);
  border-radius: 2px;
}

.coverage-list article {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
  transition: all 0.2s ease;
}

.coverage-list article:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.coverage-list article:hover {
  transform: translateY(-2px);
  padding-left: 8px;
  border-left: 3px solid var(--teal);
}

.coverage-list span {
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.coverage-list h4 {
  margin-top: 0.3rem;
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.4;
}

.coverage-list p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.coverage-list a {
  margin-top: 0.5rem;
}

.video-card {
  overflow: hidden;
}

.video-card:hover {
  transform: translateY(-5px);
  border-color: var(--teal);
  box-shadow: var(--shadow-premium);
}

.video-card iframe,
.video-placeholder {
  width: 100%;
  height: 220px;
  border: 0;
}

.video-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal-dark) 100%);
  color: var(--white);
  font-family: var(--heading);
  font-size: 1.35rem;
  font-weight: 800;
}

.video-card > div {
  padding: 1.25rem;
}

.video-card h3 {
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: 700;
}

.testimonial-card {
  min-height: 230px;
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '“';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 5rem;
  line-height: 1;
  color: rgba(13, 148, 136, 0.08);
  font-family: Georgia, serif;
}

.testimonial-card p {
  color: var(--text);
  font-family: var(--body);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.testimonial-card footer {
  margin-top: 1.5rem;
  position: relative;
  z-index: 1;
}

.testimonial-card strong,
.testimonial-card span {
  display: block;
}

.testimonial-card strong {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
}

.testimonial-card span {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.15rem;
}

.testimonial-rating {
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--mint-dark);
  flex-shrink: 0;
}

.testimonial-avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  font-family: var(--heading);
  text-transform: uppercase;
  flex-shrink: 0;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
}

.post-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.post-card-body {
  display: flex;
  min-height: 245px;
  flex-direction: column;
  padding: 1.5rem;
  flex-grow: 1;
}

.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-card-title {
  margin-top: 0.85rem;
  font-size: 1.25rem;
  line-height: 1.4;
}

.post-card-title a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-card-title a:hover {
  color: var(--teal);
}

.post-card-excerpt {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
  flex-grow: 1;
}

.empty-panel {
  padding: 3rem 2rem;
  color: var(--muted);
  text-align: center;
  background: var(--white);
  border: 1px dashed var(--line);
}

.contact-section {
  padding: 4.5rem 0;
  background: var(--navy);
}

.contact-panel {
  display: grid;
  gap: 2rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--white) 0%, var(--mint) 100%);
  border: 1px solid rgba(13, 148, 136, 0.15);
  box-shadow: var(--shadow-xl);
}

.contact-panel h2 {
  margin-top: 0.85rem;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--navy) 40%, var(--teal-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.01em;
}

.contact-panel p {
  margin-top: 0.85rem;
  color: var(--text);
  font-size: 1.05rem;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.site-main {
  padding: 4.5rem 0;
}

.entry-card {
  padding: 2.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.entry-header {
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
}

.entry-title {
  font-size: 2.45rem;
  background: linear-gradient(135deg, var(--navy) 50%, var(--teal-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.entry-content {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.8;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
  margin-bottom: 1.25rem;
}

.entry-content h2,
.entry-content h3 {
  margin: 2rem 0 1rem;
  color: var(--navy);
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.5rem;
}

.entry-content blockquote {
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--mint);
  margin: 1.75rem 0;
  padding: 1.25rem;
  color: var(--teal-dark);
  font-weight: 600;
  font-size: 1.05rem;
}

.sidebar {
  display: grid;
  gap: 1.25rem;
}

.widget {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.widget-title {
  margin-bottom: 1.1rem;
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: 700;
  border-bottom: 2px solid var(--teal);
  padding-bottom: 0.4rem;
  display: inline-block;
}

.widget-links {
  display: grid;
  gap: 0.85rem;
  list-style: none;
}

.widget-links a {
  color: var(--text);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.widget-links a:hover {
  color: var(--teal);
  padding-left: 2px;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
  transition: all 0.2s ease;
}

.page-link.current,
.page-link:hover {
  border-color: var(--teal);
  background: var(--mint);
  color: var(--teal-dark);
  box-shadow: var(--shadow-sm);
}

.site-footer {
  background: linear-gradient(135deg, var(--navy) 0%, #090f1d 100%);
  color: #94a3b8;
  padding: 4.5rem 0 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.footer-brand-mark {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  box-shadow: 0 4px 10px rgba(13, 148, 136, 0.2);
}

.footer-brand-name,
.footer-heading {
  color: var(--white);
  font-family: var(--heading);
  font-weight: 800;
}

.footer-brand-name {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.footer-desc,
.footer-note {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.65;
}

.footer-note {
  margin-top: 1.25rem;
  padding-left: 0.75rem;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.footer-heading {
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  display: grid;
  gap: 0.75rem;
  list-style: none;
}

.footer-links a,
.footer-contact li {
  color: #94a3b8;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 2px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 3rem;
  padding-top: 1.5rem;
  color: #64748b;
  font-size: 0.88rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }

  .site-brand-tagline {
    display: block;
  }

  .metric-strip,
  .services-grid,
  .initiative-grid,
  .testimonial-grid,
  .posts-grid,
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-card {
    grid-template-columns: 180px 1fr auto;
  }

  .resource-row {
    grid-template-columns: 120px 1fr auto;
  }

  .contact-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (min-width: 900px) {
  
/* Desktop Top Nav */
.desktop-top-nav {
  display: none; /* hidden on mobile */
  align-items: center;
  gap: 0.5rem;
}

.desktop-top-nav .nav-link {
  position: relative;
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 0.8rem;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.desktop-top-nav .nav-link:hover,
.desktop-top-nav .nav-link.active {
  background: var(--mint);
  color: var(--teal-dark);
}

/* Global Menu Toggle Button */
.menu-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--navy);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius);
  transition: background 0.2s;
  order: -1; /* Place it before the logo on desktop and mobile if we want, but let's just use flex layout */
}

.menu-toggle-btn:hover {
  background: var(--soft);
}

/* Sidebar Overlay */
.sidebar-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(11, 17, 33, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Off-Canvas Sidebar */
.site-sidebar {
  position: fixed;
  top: 0; left: -320px;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: var(--white);
  z-index: 1001;
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.site-sidebar.open {
  transform: translateX(320px);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.sidebar-title {
  font-family: var(--heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy);
}
.sidebar-close {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s;
}
.sidebar-close:hover {
  color: var(--text);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.sidebar-link {
  padding: 0.85rem 1.5rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
}
.sidebar-link:hover, .sidebar-link.active {
  color: var(--teal-dark);
  background: var(--mint);
  padding-left: 1.85rem;
}

.sidebar-contact-actions {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.sidebar-section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.sidebar-action-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--soft);
  transition: all 0.2s;
}
.sidebar-action-btn:hover {
  background: var(--line);
  transform: translateY(-1px);
}
.sidebar-action-btn.whatsapp {
  background: #ecfdf5;
  color: #059669;
}
.sidebar-action-btn.whatsapp:hover {
  background: #d1fae5;
}
.sidebar-action-btn.appointment {
  background: var(--navy);
  color: var(--white);
}
.sidebar-action-btn.appointment:hover {
  background: var(--navy-light);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.3rem;
  }

  .hero {
    padding: 5rem 0 3.5rem;
  }

  .hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: 3rem;
  }

  .hero-grid > div {
    min-width: 0;
  }

  .hero-title {
    font-size: 3.25rem;
  }

  .metric-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .section {
    padding: 5rem 0;
  }

  .section-title {
    font-size: 2.45rem;
  }

  .split-heading {
    grid-template-columns: 1fr minmax(260px, 420px);
  }

  .services-grid,
  .initiative-grid,
  .testimonial-grid,
  .posts-grid,
  .video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .resource-layout,
  .media-grid-home,
  .content-wrap {
    grid-template-columns: 1fr 340px;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-panel {
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    padding: 2rem;
  }

  .entry-card {
    padding: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1.3fr 0.8fr 1fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1180px) {
  .hero-title {
    font-size: 3.7rem;
  }
}

@media (max-width: 420px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-highlight {
    font-size: 1.12rem;
  }

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

  .header-inner {
    min-height: 66px;
  }

  
}

/* Custom Appended Styling for Interactive Forms, Events & Projects */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  display: flex;
  gap: 1.25rem;
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.info-icon {
  font-size: 1.75rem;
  flex: 0 0 40px;
  text-align: center;
}

.info-details h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: var(--navy);
}

.info-details p {
  color: var(--text);
  font-size: 0.95rem;
}

.form-wrapper {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

@media (min-width: 640px) {
  .form-wrapper {
    padding: 3rem;
  }
}

.form-title {
  font-size: 1.75rem;
  margin-bottom: 0.3rem;
  color: var(--navy);
}

.form-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.appointment-form .form-group {
  margin-bottom: 1.25rem;
}

.appointment-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.appointment-form .req {
  color: #c53030;
}

.appointment-form input[type="text"],
.appointment-form input[type="email"],
.appointment-form input[type="tel"],
.appointment-form select,
.appointment-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ice);
  color: var(--text);
  font-family: var(--body);
  font-size: 0.95rem;
  transition: all 0.3s;
  outline: none;
}

.appointment-form input[type="file"] {
  width: 100%;
  padding: 0.5rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--ice);
  cursor: pointer;
}

.appointment-form input[type="text"]:focus,
.appointment-form input[type="email"]:focus,
.appointment-form input[type="tel"]:focus,
.appointment-form select:focus,
.appointment-form textarea:focus {
  border-color: var(--teal);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--mint);
}

.form-row.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-row.split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.form-submit-btn {
  background: var(--navy);
  color: var(--white);
  transition: all 0.3s;
}

.form-submit-btn:hover {
  background: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 159, 154, 0.25);
}

/* Timeline & Tabs Override styling */
.tab-btn {
  transition: all 0.3s ease;
}

.tab-btn:hover {
  color: var(--teal);
}

.tab-btn.active:hover {
  color: var(--white);
}

.event-timeline-item {
  transition: opacity 0.3s ease;
}

.past-event-item {
  transition: all 0.3s ease;
}

.past-event-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--teal);
}

.text-teal {
  color: var(--teal);
}

.text-teal:hover {
  color: var(--teal-dark);
}

/* ==========================================================================
   Dr. Pranav Kumar Digital HQ v1.3.0 Additions
   ========================================================================== */

/* Premium Newsletter Card in Footer */
.footer-newsletter-card {
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-bottom: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: var(--shadow-xl);
}

@media (min-width: 768px) {
  .footer-newsletter-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .newsletter-info {
    max-width: 60%;
  }
}

.newsletter-info h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.newsletter-info p {
  color: var(--soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  max-width: 450px;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-family: var(--body);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  outline: none;
}

.newsletter-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--teal-light);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.2);
}

.btn-newsletter {
  background: var(--teal);
  color: var(--white);
  border: none;
  padding: 0.85rem 1.75rem;
  font-weight: 700;
  font-family: var(--heading);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-newsletter:hover {
  background: var(--teal-light);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 212, 191, 0.25);
}

/* Footer Social Icons */
.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.footer-social .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social .social-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--soft);
  transition: fill 0.3s ease;
}

.footer-social .social-icon:hover {
  background: var(--teal);
  border-color: var(--teal-light);
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(13, 148, 136, 0.3);
}

.footer-social .social-icon:hover svg {
  fill: var(--white);
}

/* Social Sharing Buttons (Post Detail) */
.social-sharing-block {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.social-sharing-block a {
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-sharing-block a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  opacity: 0.9;
}

/* Quick Credibility Stats 5-Column Grid responsive alignment */
@media (max-width: 640px) {
  #credibility-stats .container > div {
    grid-template-columns: 1fr 1fr !important;
  }
}
@media (max-width: 480px) {
  #credibility-stats .container > div {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
}

/* Template Page Styles */
.site-main {
  padding: 5rem 0;
}

.section-header {
  max-width: 800px;
  margin-bottom: 3rem;
}

.section-header .section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.section-header .section-title {
  font-size: 2.5rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.section-header .section-desc {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .education-layout {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .site-main {
    padding: 3rem 0;
  }
}

/* Sidebar Widget styling enhancements */
.widget {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.5rem;
}

.widget-links {
  list-style: none;
}

.widget-links li {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.widget-links li:last-child {
  margin-bottom: 0;
}

.widget-links a {
  text-decoration: none;
  color: var(--text);
  transition: color 0.3s;
}

.widget-links a:hover {
  color: var(--teal);
}

/* Contact Page Tab and Dynamic Map Layout Extensions */
.contact-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--line);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.contact-tabs::-webkit-scrollbar {
  display: none;
}

.contact-tabs .tab-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1rem;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: color 0.3s ease, border-color 0.3s ease;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.contact-tabs .tab-btn:hover {
  color: var(--teal);
}

.contact-tabs .tab-btn.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: contactFadeIn 0.4s ease;
}

@keyframes contactFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Aggressive Mobile Responsiveness (v1.6.4)
   ========================================================================== */
@media (max-width: 768px) {
  /* Enforce vertical stacking for all major grids */
  .hero-grid,
  .metric-strip,
  .services-grid,
  .initiative-grid,
  .testimonial-grid,
  .posts-grid,
  .video-grid,
  .gallery-grid,
  .contact-panel,
  .footer-grid,
  .resource-layout,
  .contact-grid,
  .content-wrap {
    grid-template-columns: 1fr !important;
  }
  
  /* Reset special row grids */
  .event-card,
  .resource-row {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  /* Make images fluid */
  img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Padding adjustments */
  .section {
    padding: 3.5rem 0 !important;
  }
  .hero {
    padding: 6rem 0 3rem !important;
  }
  .container {
    padding: 0 1.25rem !important;
    width: 100% !important;
    overflow-x: hidden !important;
  }

  /* Text Scaling */
  .hero-title {
    font-size: 2.2rem !important;
    line-height: 1.2 !important;
  }
  .section-title {
    font-size: 1.85rem !important;
  }
  .split-heading {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    text-align: center;
  }
  .split-heading .btn-secondary {
    margin: 0 auto;
  }

  /* Side Menu Nav Height Fixes */
  
  
  .site-nav a {
    width: 100% !important;
    display: block !important;
    padding: 0.75rem 0 !important;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
  .site-nav a:last-child {
    border-bottom: none;
  }

  /* Footer fix */
  .footer-newsletter-card {
    padding: 1.5rem !important;
  }
  .newsletter-form {
    flex-direction: column !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    text-align: center !important;
  }
  .footer-social {
    justify-content: center !important;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.85rem !important;
  }
  .hero-desc {
    font-size: 1rem !important;
  }
}
