:root {
  --primary: #F4A62A;
  --secondary: #6B1FA2;
  --success: #2E7D32;
  --dark: #212529;
  --light: #F8F9FA;
  --white: #FFFFFF;
  --border: #E9ECEF;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 5px 15px rgba(0,0,0,.05);
  --shadow-md: 0 8px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 15px 35px rgba(0,0,0,.12);
  --transition: .3s ease-in-out;
}

html, body {
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: var(--white);
}

body.modal-open {
  overflow: hidden;
}

.sermon-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.sermon-modal.show {
  display: flex;
}

.sermon-modal-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.88), rgba(18,18,24,0.78));
  backdrop-filter: blur(6px);
}

.sermon-modal-dialog {
  position: relative;
  width: min(100%, 980px);
  max-width: 100%;
  z-index: 1;
  margin: auto;
}

.sermon-modal-content {
  background: linear-gradient(180deg, #fff 0%, #faf7f2 100%);
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  max-height: min(92dvh, 900px);
  border: 1px solid rgba(244, 166, 42, 0.2);
}

.sermon-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(233, 236, 239, 0.8);
  background: linear-gradient(90deg, rgba(244, 166, 42, 0.1), rgba(107, 31, 162, 0.06));
}

.sermon-modal-header .modal-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--secondary);
  margin: 0;
}

.sermon-modal-close {
  border: none;
  background: linear-gradient(135deg, var(--primary), #ffbf4d);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(244, 166, 42, 0.25);
}

.sermon-modal-body {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.45);
}

.sermon-modal-body .ratio {
  width: 100%;
  max-height: 70dvh;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04), 0 12px 32px rgba(0,0,0,0.12);
}

.sermon-modal-body iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  background: #000;
}

/* Sermon card play overlay and button styles */
.video-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem 0.5rem 0 0;
}

.play-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(244,166,42,0.95), rgba(107,31,162,0.95));
  border: 3px solid rgba(255,255,255,0.12);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  color: #fff;
  cursor: pointer;
}

.play-overlay .play-icon {
  width: 0;
  height: 0;
  border-left: 16px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 4px;
}

/* hide the inline watch button on small screens (we use the overlay) */
.sermon-watch-btn.btn-sm {
  display: inline-block;
}

@media (max-width: 767px) {
  .sermon-watch-btn.btn-sm {
    display: none !important;
  }
  .play-overlay {
    width: 64px;
    height: 64px;
  }
  .play-overlay .play-icon {
    border-left-width: 14px;
    border-top-width: 9px;
    border-bottom-width: 9px;
  }
}

@media (max-width: 576px) {
  .sermon-modal {
    padding: 0;
    align-items: stretch;
  }

  .sermon-modal-dialog {
    width: 100%;
    max-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .sermon-modal-content {
    width: 100%;
    max-height: 100dvh;
    border-radius: 0;
  }

  .sermon-modal-header {
    padding: 0.9rem 1rem;
  }

  .sermon-modal-header .modal-title {
    font-size: 0.95rem;
  }

  .sermon-modal-body {
    padding: 0.75rem;
    height: 100%;
  }

  .sermon-modal-body iframe {
    min-height: 240px;
    max-height: 70dvh;
  }
}

* {
  box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

.container {
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

.navbar {
  transition: var(--transition);
  background: transparent;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
}

.navbar-toggler-icon {
  width: 1.6rem;
  height: 1.6rem;
  background-image: none;
  position: relative;
}

.navbar-toggler-icon::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0.35rem;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 6px 0 #fff, 0 12px 0 #fff;
}

.navbar.scrolled .navbar-toggler,
.navbar.scrolled .navbar-toggler-icon::before {
  background: rgba(0, 0, 0, 0.05);
  box-shadow: 0 6px 0 #212529, 0 12px 0 #212529;
}

.navbar.scrolled {
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.navbar-brand img {
  height: 48px;
  width: auto;
}

.navbar-nav .nav-link {
  color: var(--white);
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.navbar.scrolled .nav-link {
  color: var(--dark);
  text-shadow: none;
}

.navbar .nav-link.active, .navbar .nav-link:hover {
  color: var(--primary);
}

.hero-section {
  min-height: 100vh;
  position: relative;
}

.hero-section .carousel-item,
.hero-section .carousel-item img {
  height: 100vh;
}

.hero-section .carousel-item img {
  object-fit: cover;
  filter: brightness(0.7);
}

.carousel-caption {
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
  text-align: left;
  max-width: 700px;
  left: 10%;
}

.carousel-caption h1 {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  margin-bottom: 1rem;
}

.carousel-caption p {
  font-size: 1.1rem;
  max-width: 600px;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
}

.btn-primary:hover, .btn-primary:focus {
  background: var(--secondary);
  border-color: var(--secondary);
}

.btn-outline-light, .btn-outline-primary {
  border-radius: var(--radius-md);
}

.carousel-caption .btn {
  padding: 0.55rem 1rem;
  font-size: 0.95rem;
  min-width: auto;
  border-radius: 999px;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.carousel-caption .btn:hover {
  transform: translateY(-1px);
}

.carousel-caption .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.85);
  color: rgba(255, 255, 255, 0.95);
}

.carousel-caption .btn + .btn {
  margin-left: 0.8rem;
}

.popup-banner {
  display: none;
  padding: 2rem 1rem 0;
}

.popup-banner.show {
  display: block;
}

.popup-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  position: relative;
}

.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: none;
  font-size: 1.4rem;
}

.eyebrow {
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: .2rem;
  font-weight: 700;
  font-size: .8rem;
}

.welcome-section {
  padding-top: 4rem;
}

.highlight-name {
  font-weight: 700;
  color: var(--secondary);
}

.info-card, .card, .thought-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  background: var(--white);
}

.dropzone {
  border: 2px dashed rgba(107, 31, 162, 0.35);
  border-radius: 1rem;
  padding: 2rem;
  background: rgba(107, 31, 162, 0.04);
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.2s ease;
}

.dropzone:hover,
.dropzone.dropzone-active {
  border-color: rgba(107, 31, 162, 0.75);
  background: rgba(107, 31, 162, 0.08);
  transform: translateY(-1px);
}

.dropzone .dropzone-content {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 0.5rem;
  color: rgba(33, 37, 41, 0.8);
}

.dropzone i {
  color: var(--secondary);
}

.preview-card {
  position: relative;
  border: 1px solid rgba(107, 31, 162, 0.12);
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
}

.preview-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.preview-remove-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  opacity: 0.95;
  z-index: 2;
}

.preview-remove-btn:hover {
  transform: scale(1.05);
}

.preview-caption {
  padding: 0.75rem 0.75rem 0.75rem;
  font-size: 0.85rem;
  color: rgba(33, 37, 41, 0.75);
}

.existing-photo-card {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.existing-photo-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.photo-delete-form {
  z-index: 4;
}

.team-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  position: relative;
}

.team-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0));
  pointer-events: none;
}

..team-image {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeInUp 1s ease forwards;
}

.admin-dashboard {
  background: #f8fafc;
  min-height: 100vh;
  overflow: hidden;
}

.wrapper {
  display: flex;
  min-height: 100vh;
}

.main-sidebar {
  width: 260px;
  min-width: 260px;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1050;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 40px rgba(15, 23, 42, 0.12);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 1.3rem 1.2rem;
  border-bottom: 1px solid rgba(248, 250, 252, 0.08);
}

.brand-text {
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.sidebar {
  flex: 1;
  overflow-y: auto;
}

.nav-sidebar {
  list-style: none;
  margin: 0;
  padding: 1.15rem 0.85rem;
}

.nav-sidebar .nav-item {
  margin-bottom: 0.35rem;
}

.nav-sidebar .nav-link {
  color: rgba(248, 250, 252, 0.82);
  padding: 0.95rem 1rem;
  border-radius: 0.85rem;
  transition: transform var(--transition), background var(--transition), color var(--transition);
}

.nav-sidebar .nav-link:hover,
.nav-sidebar .nav-link.active {
  background: rgba(248, 250, 252, 0.12);
  color: #ffffff;
  transform: translateX(2px);
}

.nav-sidebar .nav-link.active {
  font-weight: 700;
}

.nav-icon {
  width: 1.2rem;
  margin-right: 0.8rem;
}

.nav-header {
  color: rgba(248, 250, 252, 0.62);
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
  padding-left: 1rem;
  letter-spacing: 0.16em;
}

.content-wrapper {
  margin-left: 260px;
  width: calc(100% - 260px);
  min-height: 100vh;
  background: #f8fafc;
}

.main-header {
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 1px 26px rgba(15, 23, 42, 0.05);
}

.main-header .navbar-nav .nav-link {
  color: #475569;
}

.main-header .navbar-nav .nav-link:hover {
  color: #0f172a;
}

.content {
  padding: 1.4rem 0.8rem 1.5rem;
  max-width: 100%;
}

.content-header {
  margin-bottom: 1.2rem;
}

.content-header h1 {
  font-size: 2rem;
  font-weight: 700;
}

.content-header p {
  color: #64748b;
}

.stats-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.5rem;
  background: #ffffff;
  transition: transform var(--transition), box-shadow var(--transition);
}

.stats-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 45px rgba(15, 23, 42, 0.08);
}

.stats-card .card-body {
  padding: 1.3rem 1.4rem;
}

.stats-card h3 {
  font-size: 2.2rem;
  margin-bottom: 0.15rem;
}

.stats-icon {
  width: 54px;
  height: 54px;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}

.bg-primary-soft {
  background: rgba(59, 130, 246, 0.16);
  color: #1d4ed8;
}

.bg-success-soft {
  background: rgba(34, 197, 94, 0.16);
  color: #15803d;
}

.bg-warning-soft {
  background: rgba(245, 158, 11, 0.16);
  color: #92400e;
}

.bg-danger-soft {
  background: rgba(239, 68, 68, 0.16);
  color: #b91c1c;
}

.card {
  border-radius: 1.4rem;
  border: none;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.05);
}

.card-header {
  background: transparent;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.list-group-item {
  border: none;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  padding: 1rem 1.25rem;
  background: transparent;
}

.list-group-item:last-child {
  border-bottom: none;
}

@media (max-width: 991px) {
  .main-sidebar {
    transform: translateX(-100%);
  }

  .main-sidebar.collapsed {
    transform: translateX(0);
  }

  .content-wrapper {
    margin-left: 0;
    width: 100%;
  }
}


.small-box {
  border-radius: 0.75rem;
  position: relative;
  display: block;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  color: #ffffff;
  padding: 1rem;
  overflow: hidden;
}

.small-box .inner h3 {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.small-box .inner p {
  font-size: 1rem;
}

.small-box .icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2.5rem;
  opacity: 0.25;
}

.small-box-footer {
  display: inline-block;
  margin-top: 1rem;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
}

.small-box-footer:hover {
  text-decoration: underline;
}

.bg-info { background: #17a2b8 !important; }
.bg-success { background: #28a745 !important; }
.bg-warning { background: #ffc107 !important; }
.bg-danger { background: #dc3545 !important; }

.card-outline.card-primary {
  border-top: 3px solid #0d6efd;
}

.card-outline.card-secondary {
  border-top: 3px solid #6c757d;
}

.card .card-header {
  background: transparent;
  border-bottom: none;
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #475569;
  border-radius: 0.75rem;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.04);
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.18);
}

.main-sidebar .brand-image {
  width: 40px;
  height: 40px;
  border-radius: 0.85rem;
  object-fit: cover;
}

.main-sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.main-sidebar .nav-link p {
  margin: 0;
}

.main-sidebar .nav-link .nav-icon {
  width: 1.15rem;
  min-width: 1.15rem;
}

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

.contact-panel {
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(0,0,0,0.04);
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(244,166,42,0.12);
  color: var(--secondary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-item h5 {
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.contact-item p {
  margin: 0;
  color: var(--dark);
}

.map-card {
  min-height: 450px;
  border: 1px solid rgba(0,0,0,0.06);
}

.divider {
  height: 1px;
  background: rgba(33,37,41,0.08);
}

.info-card {
  padding: 2rem;
}

.contact-form .form-control {
  border-radius: 10px;
}

.contact-form button {
  padding: 0.6rem 1.25rem;
}

/* Gallery */
.gallery-album img { height: 220px; object-fit: cover; }
.gallery-album .card-body { min-height: 140px; }
.gallery-photos img { height: 160px; object-fit: cover; }

.dropzone {
  border: 2px dashed rgba(13,110,253,.45);
  border-radius: 18px;
  transition: background .2s, border-color .2s, box-shadow .2s;
  position: relative;
  cursor: pointer;
}

.dropzone:hover,
.dropzone.dragover {
  background: rgba(13,110,253,.05);
  border-color: rgba(13,110,253,.75);
  box-shadow: 0 0 0 0.2rem rgba(13,110,253,.12);
}

.dropzone-content {
  pointer-events: none;
}

.dropzone-icon {
  font-size: 2.6rem;
  color: rgba(13,110,253,.85);
}

#selected-files-preview .preview-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(13,110,253,.2);
}

#selected-files-preview .preview-thumb img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

#selected-files-preview .preview-thumb .preview-remove {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: white;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: .95;
}

.photo-card {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,.06);
}

.photo-delete-form {
  z-index: 2;
}

.photo-card img {
  transition: transform .2s ease;
}

.photo-card:hover img {
  transform: scale(1.03);
}

.card {
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.card-img-top {
  height: 220px;
  object-fit: cover;
}

.thought-card {
  padding: 3rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(244,166,42,.12), rgba(107,31,162,.1));
}

.thought-card blockquote {
  font-size: 1.8rem;
  color: var(--secondary);
  margin: 1rem 0;
}

.footer {
  background: linear-gradient(135deg, #050505, #111111 45%, #060606);
  color: var(--white);
  padding: 4rem 0 2rem;
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(244, 166, 42, 0.12), transparent 40%);
  pointer-events: none;
}

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

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

.social-links {
  display: flex;
  gap: 0.85rem;
  margin-top: 0.75rem;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.12);
}

.social-icon:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  transform: translateY(-2px);
}

.social-icon svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1rem;
  margin-top: 1.5rem;
}

.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  border: none;
  border-radius: 999px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  display: none;
  z-index: 999;
}

/* WeeklyThought admin status indicator (green = active, red = inactive) */
.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}
.status-dot.active {
  background: #28a745;
  box-shadow: 0 0 0 6px rgba(40,167,69,0.08);
}
.status-dot.inactive {
  background: #dc3545;
  box-shadow: 0 0 0 6px rgba(220,53,69,0.06);
}

.page-hero {
  padding-top: 8rem;
  background: var(--secondary);
  color: var(--white);
}

.navbar-toggler {
  border: 1px solid rgba(255,255,255,0.75);
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
  position: relative;
  z-index: 1100;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(244, 166, 42, 0.3);
}

.navbar-toggler-icon {
  display: inline-block;
  width: 1.4rem;
  height: 1.4rem;
  position: relative;
  background-image: none !important;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #fff;
  border-radius: 999px;
}

.navbar-toggler-icon::before {
  top: 0.18rem;
  box-shadow: 0 0.45rem 0 #fff, 0 0.9rem 0 #fff;
}

.navbar-toggler-icon::after {
  top: 0.9rem;
}

.navbar.scrolled .navbar-toggler {
  border-color: rgba(0,0,0,0.15);
  background: rgba(255,255,255,0.95);
}

.navbar.scrolled .navbar-toggler-icon::before,
.navbar.scrolled .navbar-toggler-icon::after {
  background: #212529;
  box-shadow: none;
}

.navbar.scrolled .navbar-toggler-icon::before {
  background: #212529;
  box-shadow: 0 0.45rem 0 #212529, 0 0.9rem 0 #212529;
}

@media (max-width: 991px) {
  .navbar {
    padding: 0.75rem 0;
  }

  .navbar-brand img {
    height: 44px;
  }

  .navbar-collapse {
    background: rgba(255,255,255,0.98);
    border-radius: 16px;
    margin-top: 0.75rem;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    z-index: 1050;
  }

  .navbar-collapse.show {
    display: block !important;
  }

  .navbar-collapse .nav-link {
    color: var(--dark);
    text-shadow: none;
    padding: 0.7rem 0;
  }

  .navbar.scrolled .navbar-collapse {
    background: var(--white);
  }

  .navbar-nav .nav-link {
    color: var(--dark) !important;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 88vh;
  }

  .hero-section .carousel-item img {
    min-height: 88vh;
  }

  .carousel-caption {
    left: 5%;
    right: 5%;
    text-align: center;
    top: 55%;
    max-width: none;
    padding: 0 1rem;
    width: calc(100% - 2rem);
  }

  .carousel-caption h1 {
    font-size: clamp(1.7rem, 7vw, 2.4rem);
    line-height: 1.15;
    margin-bottom: 0.75rem;
  }

  .carousel-caption p {
    font-size: 1rem;
    margin: 0 auto 1rem;
  }

  .popup-card {
    padding: 1.1rem;
    margin: 0 0.5rem;
  }

  .welcome-section {
    padding-top: 3rem;
  }

  .info-card, .card, .thought-card {
    margin: 0 auto;
    max-width: 100%;
  }

  .page-hero {
    padding-top: 7rem;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  .footer {
    padding: 3rem 0 1.5rem;
  }

  .welcome-section .row {
    overflow-x: hidden;
  }

  .welcome-section .col-lg-7,
  .welcome-section .col-lg-5 {
    transform: none !important;
  }
}

@media (max-width: 576px) {
  .navbar-brand img {
    height: 38px;
  }

  .content {
    padding: 0.9rem 0.5rem 1.2rem;
  }

  .content .container-fluid {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  .content .container-fluid .row {
    margin-left: -0.15rem;
    margin-right: -0.15rem;
  }

  .content .container-fluid > .row > [class*="col-"] {
    padding-left: 0.15rem;
    padding-right: 0.15rem;
  }

  .stats-card {
    margin: 0 auto;
  }

  .stats-card .card-body {
    gap: 0.6rem;
    padding: 1rem;
  }

  .card-header {
    padding: 0.85rem 1rem;
  }

  .content-header h1 {
    font-size: 1.75rem;
  }
}
  .navbar-toggler {
    padding: 0.45rem 0.6rem;
  }

  .carousel-caption {
    top: 58%;
  }

  .carousel-caption .btn {
    display: inline-flex;
    width: auto;
    margin-bottom: 0.75rem;
  }

  .carousel-caption .btn:last-child {
    margin-bottom: 0;
  }

  .section-head h2 {
    font-size: 1.8rem;
  }

  .thought-card {
    padding: 2rem 1rem;
  }

  .thought-card blockquote {
    font-size: 1.35rem;
  }

  .footer .row > div {
    margin-bottom: 1rem;
  }
}
