﻿
    :root {
      --white: #ffffff;
      --off-white: #f4f4f5;
      --blue: #6366f1;
      --blue-mid: #818cf8;
      --blue-light: #a5b4fc;
      --teal: #10b981;
      --teal-mid: #34d399;
      --teal-light: #6ee7b7;
      --gold: #fbbf24;
      --gold-mid: #fcd34d;
      --gold-light: #fde68a;
      --navy: #22223b;
      --navy-mid: #393953;
      --sky-pale: #f0f9ff;
      --teal-pale: #d1fae5;
      --gold-pale: #fef3c7;
      --text-dark: #22223b;
      --text-mid: #4b5563;
      --text-soft: #9ca3af;
      --border: #e5e7eb;
      --sh-blue: rgba(99, 102, 241, 0.15);
      --sh-teal: rgba(16, 185, 129, 0.15);
      --sh-gold: rgba(251, 191, 36, 0.2);
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    /* Hide scrollbars globally but keep scrolling */
    * {
      -ms-overflow-style: none;  /* IE and Edge */
      scrollbar-width: none;  /* Firefox */
    }
    *::-webkit-scrollbar {
      display: none; /* Chrome, Safari and Opera */
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: 'EB Garamond', Georgia, serif;
      background: var(--white);
      color: var(--text-dark);
      overflow-x: hidden;
    }

    /* NAV */
    nav {
      position: fixed;
      top: 0;
      width: 100%;
      z-index: 900;
      padding: 0 3.5rem;
      height: 68px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: transparent;
      backdrop-filter: none;
      border-bottom: 1px solid transparent;
      box-shadow: none;
      transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Scrolled state - solid white background */
    nav.scrolled {
      background: rgba(255, 255, 255, 0.97);
      backdrop-filter: blur(18px);
      border-bottom: 1px solid var(--border);
      box-shadow: 0 2px 18px var(--sh-blue);
    }

    .nav-logo {
      display: flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
      cursor: pointer;
      pointer-events: auto !important;
    }

    .nav-icon {
      width: 50px;
      height: 50px;
      border-radius: 11px;
      object-fit: cover;
      box-shadow: 0 4px 12px var(--sh-blue);
    }

    .nav-name {
      font-family: 'Playfair Display', serif;
      font-size: 1rem;
      font-weight: 700;
      color: white;
      line-height: 1.2;
      transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    nav.scrolled .nav-name {
      color: var(--navy);
    }

    .nav-tag {
      font-size: 0.65rem;
      color: rgba(255, 255, 255, 0.85);
      letter-spacing: 0.25em;
      text-transform: uppercase;
      transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    nav.scrolled .nav-tag {
      color: var(--blue);
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 1.8rem;
      list-style: none;
      transition: all 0.3s ease;
    }

    .nav-links a {
      font-size: 0.92rem;
      color: white;
      text-decoration: none;
      transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    nav.scrolled .nav-links a {
      color: var(--text-mid);
    }

    .nav-links a:hover {
      color: var(--gold-light);
    }

    nav.scrolled .nav-links a:hover {
      color: var(--blue);
    }

    .nav-phone {
      display: flex !important;
      align-items: center;
      justify-content: center;
      width: 52px;
      height: 52px;
      background: var(--white);
      color: var(--blue) !important;
      border: 2px solid var(--blue);
      border-radius: 50%;
      font-size: 1.4rem !important;
      transition: all 0.25s !important;
      box-shadow: 0 2px 10px var(--sh-blue);
      animation: phonePulse 2.5s infinite;
    }

    .nav-phone:hover {
      background: var(--blue) !important;
      color: white !important;
      transform: translateY(-3px) scale(1.05);
      box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
    }

    @keyframes phonePulse {

      0%,
      100% {
        box-shadow: 0 2px 10px var(--sh-blue);
      }

      50% {
        box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
      }
    }

    .phone-icon {
      animation: vibrate 2s ease-in-out infinite;
      display: inline-block;
    }

    .nav-phone-text {
      display: none;
    }

    @keyframes vibrate {
      0% {
        transform: translate(0, 0) rotate(0deg);
      }

      2% {
        transform: translate(-1.5px, -0.5px) rotate(-2deg);
      }

      4% {
        transform: translate(1.5px, 0.5px) rotate(2deg);
      }

      6% {
        transform: translate(-1.5px, 0.5px) rotate(-1.5deg);
      }

      8% {
        transform: translate(1.5px, -0.5px) rotate(1.5deg);
      }

      10% {
        transform: translate(-1px, -0.5px) rotate(-2deg);
      }

      12% {
        transform: translate(1px, 0.5px) rotate(2deg);
      }

      14% {
        transform: translate(-1px, 0.5px) rotate(-1.5deg);
      }

      16% {
        transform: translate(1px, -0.5px) rotate(1.5deg);
      }

      18% {
        transform: translate(-0.5px, 0px) rotate(-1deg);
      }

      20% {
        transform: translate(0.5px, 0px) rotate(1deg);
      }

      22% {
        transform: translate(0, 0) rotate(0deg);
      }

      50% {
        transform: translate(0, 0) rotate(0deg);
      }

      100% {
        transform: translate(0, 0) rotate(0deg);
      }
    }

    .nav-give {
      background: linear-gradient(135deg, var(--teal), var(--teal-mid));
      color: white !important;
      padding: 8px 20px;
      border-radius: 50px;
      font-weight: 600 !important;
      box-shadow: 0 4px 14px var(--sh-teal);
      transition: transform 0.2s, box-shadow 0.2s !important;
    }

    .nav-give:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 22px rgba(16, 185, 129, 0.35) !important;
    }

    /* HAMBURGER MENU */
    .hamburger {
      display: none;
      flex-direction: column;
      gap: 5px;
      cursor: pointer;
      padding: 8px;
      z-index: 901;
      transition: all 0.3s;
    }

    .hamburger span {
      width: 26px;
      height: 3px;
      background: white;
      border-radius: 3px;
      transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    nav.scrolled .hamburger span {
      background: var(--navy);
    }

    .hamburger.active span:nth-child(1) {
      transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
      opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
      transform: rotate(-45deg) translate(7px, -7px);
    }

    .nav-shop {
      background: linear-gradient(135deg, #FF9F1C, #FFB84D);
      color: #fff !important;
      padding: 10px 24px;
      border-radius: 50px;
      font-weight: 600 !important;
      box-shadow: 0 4px 14px rgba(255, 159, 28, 0.3);
      transition: all 0.3s ease !important;
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }
    .nav-shop:hover {
      transform: scale(1.05) translateY(-2px);
      box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15) !important;
    }
    .nav-shop svg {
      width: 18px;
      height: 18px;
      stroke-width: 2.5;
    }

    /* Shop Books — subtle specular sheen (international-friendly) */
    .shop-books-btn {
      position: relative;
      overflow: hidden;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      z-index: 0;
    }

    .shop-books-btn::after {
      content: '';
      position: absolute;
      top: -50%;
      left: -150%;
      width: 100%;
      height: 200%;
      background: linear-gradient(
        60deg,
        transparent 30%,
        rgba(255, 255, 255, 0.45) 50%,
        transparent 70%
      );
      transform: rotate(25deg);
      animation: lightSweep 3.5s infinite ease-in-out;
      pointer-events: none;
      z-index: 1;
      mix-blend-mode: soft-light;
    }

    .shop-books-btn > * {
      position: relative;
      z-index: 2;
    }

    @keyframes lightSweep {
      0% { left: -150%; }
      20% { left: 150%; }
      100% { left: 150%; }
    }

    .shop-books-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    }

    @media (prefers-reduced-motion: reduce) {
      .shop-books-btn::after {
        animation: none !important;
        display: none !important;
      }
    }

    /* WHATSAPP FLOAT */
    .wa-float {
      position: fixed;
      bottom: 28px;
      left: 24px;
      z-index: 990;
      filter: drop-shadow(0 6px 20px rgba(37, 211, 102, 0.45));
      animation: waBounce 3s ease-in-out infinite;
    }

    @keyframes waBounce {

      0%,
      100% {
        transform: translateY(0);
      }

      50% {
        transform: translateY(-6px);
      }
    }

    .wa-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 58px;
      height: 58px;
      background: #25D366;
      color: white;
      padding: 14px;
      border-radius: 50%;
      font-family: 'EB Garamond', serif;
      text-decoration: none;
      border: none;
      cursor: pointer;
      box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
      transition: transform 0.2s, box-shadow 0.2s;
    }

    .wa-btn:hover {
      transform: scale(1.1);
      box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
    }

    .wa-logo {
      width: 34px;
      height: 34px;
      flex-shrink: 0;
    }

    .wa-float::before {
      content: '';
      position: absolute;
      width: 58px;
      height: 58px;
      background: rgba(37, 211, 102, 0.25);
      border-radius: 50%;
      left: 0;
      top: 50%;
      transform: translateY(-50%);
      animation: waPulse 2s infinite;
    }

    @keyframes waPulse {
      0% {
        transform: translateY(-50%) scale(1);
        opacity: 0.7;
      }

      100% {
        transform: translateY(-50%) scale(1.8);
        opacity: 0;
      }
    }

    /* BIBLE CHATBOT & QUIZ BUTTONS */
    #bible-chat-btn {
      position: fixed;
      bottom: 28px;
      right: 28px;
      width: 62px;
      height: 62px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--blue), var(--blue-mid));
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 26px;
      box-shadow: 0 4px 24px var(--sh-blue), 0 8px 32px rgba(0,0,0,0.15);
      z-index: 998;
      transition: transform 0.2s, box-shadow 0.2s;
      animation: chatGlow 2.5s infinite;
      color: white;
    }

    #bible-chat-btn:hover {
      transform: scale(1.08);
      box-shadow: 0 6px 30px rgba(99,102,241,0.5), 0 10px 40px rgba(0,0,0,0.2);
    }

    #bible-chat-btn .chat-badge {
      position: absolute;
      top: -3px;
      right: -3px;
      width: 18px;
      height: 18px;
      background: var(--teal);
      border-radius: 50%;
      border: 2px solid white;
      animation: pulse 2s infinite;
    }

    @keyframes chatGlow {
      0%, 100% {
        box-shadow: 0 4px 24px var(--sh-blue), 0 8px 32px rgba(0,0,0,0.15);
      }
      50% {
        box-shadow: 0 6px 32px var(--sh-blue), 0 12px 40px rgba(0,0,0,0.2);
      }
    }

    #bible-quiz-btn {
      position: fixed;
      bottom: 100px;
      left: 24px;
      width: 62px;
      height: 62px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--gold), var(--gold-mid));
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 28px;
      box-shadow: 0 4px 24px var(--sh-gold), 0 8px 32px rgba(0,0,0,0.15);
      z-index: 996;
      transition: transform 0.2s, box-shadow 0.2s;
      animation: quizPulse 3s infinite;
      color: white;
    }

    #bible-quiz-btn:hover {
      transform: scale(1.08) rotate(5deg);
      box-shadow: 0 6px 30px rgba(251,191,36,0.6), 0 10px 40px rgba(0,0,0,0.2);
    }

    @keyframes quizPulse {
      0%, 100% {
        box-shadow: 0 4px 24px var(--sh-gold), 0 8px 32px rgba(0,0,0,0.15);
      }
      50% {
        box-shadow: 0 6px 32px var(--sh-gold), 0 12px 40px rgba(0,0,0,0.2);
      }
    }

    #bible-chat-panel {
      position: fixed;
      bottom: 104px;
      right: 28px;
      width: 400px;
      height: 680px;
      z-index: 997;
      display: none;
      flex-direction: column;
      border-radius: 20px;
      overflow: hidden;
      box-shadow: 0 0 0 1px rgba(99,102,241,0.2), 0 0 60px rgba(99,102,241,0.15), 0 20px 60px rgba(0,0,0,0.25);
      transform-origin: bottom right;
    }

    #bible-chat-panel.open {
      display: flex;
      animation: popIn 0.25s ease forwards;
    }

    @keyframes popIn {
      from {
        opacity: 0;
        transform: scale(0.8);
      }
      to {
        opacity: 1;
        transform: scale(1);
      }
    }

    /* HERO */
    .hero {
      min-height: 100vh;
      display: flex;
      align-items: center;
      position: relative;
      overflow: hidden;
      background: #111;
    }

    .hero-bg {
      position: absolute;
      inset: 0;
      background: transparent;
      background-size: cover;
      background-position: center;
    }

    /* Gradient overlay for header legibility */
    .hero-bg::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, transparent 15%);
      pointer-events: none;
      z-index: 1;
    }

    .hero-rays {
      position: absolute;
      inset: 0;
      overflow: hidden;
      display: none;
    }

    .ray {
      position: absolute;
      top: -20%;
      left: 55%;
      width: 2px;
      height: 180%;
      background: linear-gradient(to bottom, rgba(255, 255, 255, 0.09), transparent);
      transform-origin: top center;
    }

    .ray:nth-child(1) {
      transform: rotate(-16deg);
      opacity: .7;
    }

    .ray:nth-child(2) {
      transform: rotate(-7deg);
      opacity: .4;
      left: 61%;
    }

    .ray:nth-child(3) {
      transform: rotate(2deg);
      opacity: .5;
      left: 67%;
    }

    .ray:nth-child(4) {
      transform: rotate(12deg);
      opacity: .3;
      left: 73%;
    }

    .ray:nth-child(5) {
      transform: rotate(22deg);
      opacity: .55;
      left: 78%;
      width: 3px;
    }

    .ray:nth-child(6) {
      transform: rotate(32deg);
      opacity: .18;
      left: 84%;
    }

    /* Fix: clamp cross to prevent right-edge bleed */
    .hero-cross {
      position: absolute;
      right: 7%;
      top: 50%;
      transform: translateY(-50%);
      opacity: .055;
      animation: float 9s ease-in-out infinite;
      pointer-events: none;
      max-width: 42vw;
      overflow: hidden;
    }

    .hero-cross svg {
      width: 400px;
      height: 400px;
      max-width: 100%;
    }

    @keyframes float {

      0%,
      100% {
        transform: translateY(-50%);
      }

      50% {
        transform: translateY(-52%) translateX(8px);
      }
    }

    /* Hero background video */
    .hero-video {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0;
      transition: opacity 2.5s ease-in-out;
      z-index: 1;
      pointer-events: none;
    }

    .hero-video.playing {
      opacity: 1;
    }

    .hero-bg,
    .hero-rays,
    .hero-cross {
      z-index: 0;
    }

    .hero-content,
    .hero-stats {
      z-index: 10;
    }

    .hero-content {
      position: relative;
      z-index: 10;
      padding: 0 4rem;
      max-width: 720px;
      margin-top: 68px;
      animation: fadeUp 1.1s ease both;
    }

    @keyframes fadeUp {
      from {
        opacity: 0;
        transform: translateY(28px);
      }

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

    @keyframes slideIn {
      from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
      }
      to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
      }
    }

    .hero-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(255, 255, 255, 0.07);
      border: 1px solid rgba(255, 255, 255, 0.14);
      border-radius: 30px;
      padding: 6px 16px;
      font-size: 0.76rem;
      letter-spacing: 0.3em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, 0.62);
      margin-bottom: 1.4rem;
      animation: fadeUp 1s 0.1s ease both;
    }

    .hero-pill em {
      color: var(--gold-light);
      font-style: normal;
    }

    .hero-title {
      font-family: 'Playfair Display', serif;
      font-size: clamp(2.8rem, 6.5vw, 5.2rem);
      font-weight: 900;
      line-height: 1.08;
      color: white;
      margin-bottom: 1.2rem;
      animation: fadeUp 1s 0.2s ease both;
    }

    .accent-blue {
      color: #38bdf8;
      font-style: italic;
    }

    .accent-gold {
      color: var(--gold-light);
    }

    .hero-verse {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.22rem;
      font-style: italic;
      color: rgba(200, 220, 255, 0.82);
      line-height: 1.75;
      margin-bottom: .35rem;
      animation: fadeUp 1s 0.3s ease both;
    }

    .hero-ref {
      font-size: 0.83rem;
      letter-spacing: 0.15em;
      color: var(--gold-light);
      margin-bottom: 2.8rem;
      animation: fadeUp 1s 0.38s ease both;
    }

    .hero-btns {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
      animation: fadeUp 1s 0.46s ease both;
    }

    .btn-hero-primary {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: white;
      color: var(--navy);
      padding: 13px 28px;
      border-radius: 50px;
      font-family: 'EB Garamond', serif;
      font-size: 0.98rem;
      font-weight: 600;
      text-decoration: none;
      border: none;
      cursor: pointer;
      box-shadow: 0 8px 26px rgba(0, 0, 0, 0.22);
      transition: transform .2s, box-shadow .2s;
    }

    .btn-hero-primary:hover {
      transform: translateY(-3px);
      box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
    }

    .btn-hero-teal {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: linear-gradient(135deg, var(--teal), var(--teal-mid));
      color: white;
      padding: 13px 28px;
      border-radius: 50px;
      font-family: 'EB Garamond', serif;
      font-size: 0.98rem;
      font-weight: 600;
      text-decoration: none;
      border: none;
      cursor: pointer;
      box-shadow: 0 6px 22px var(--sh-teal);
      transition: transform .2s, box-shadow .2s;
    }

    .btn-hero-teal:hover {
      transform: translateY(-3px);
      box-shadow: 0 12px 30px rgba(16, 185, 129, 0.45);
    }


    /* TICKER */
    .ticker {
      background: linear-gradient(90deg, var(--blue), var(--blue-mid), var(--teal-mid), var(--blue-mid), var(--blue));
      background-size: 300% 100%;
      animation: gradShift 8s linear infinite;
      padding: .8rem 0;
      overflow: hidden;
    }

    @keyframes gradShift {
      0% {
        background-position: 0% 50%;
      }

      100% {
        background-position: 100% 50%;
      }
    }

    .ticker-track {
      display: flex;
      gap: 4rem;
      animation: tickerRoll 38s linear infinite;
      white-space: nowrap;
    }

    .ticker-item {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1rem;
      font-style: italic;
      color: rgba(255, 255, 255, 0.9);
      display: flex;
      align-items: center;
      gap: 1rem;
      flex-shrink: 0;
    }

    .ticker-item::before {
      content: 'âœ¦';
      font-style: normal;
      font-size: .68rem;
      color: var(--gold-light);
    }

    @keyframes tickerRoll {
      from {
        transform: translateX(0)
      }

      to {
        transform: translateX(-50%)
      }
    }

    /* SECTIONS */
    section {
      padding: 5.5rem 4rem;
    }

    .sec-label {
      font-size: .71rem;
      letter-spacing: .38em;
      text-transform: uppercase;
      display: flex;
      align-items: center;
      gap: 7px;
      margin-bottom: .5rem;
    }

    .sec-label::before,
    .sec-label::after {
      content: '';
      width: 20px;
      height: 1px;
      opacity: .35;
    }

    .blue-label {
      color: var(--blue);
    }

    .blue-label::before,
    .blue-label::after {
      background: var(--blue);
    }

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

    .teal-label::before,
    .teal-label::after {
      background: var(--teal);
    }

    .gold-label {
      color: var(--gold);
    }

    .gold-label::before,
    .gold-label::after {
      background: var(--gold);
    }

    .sec-title {
      font-family: 'Playfair Display', serif;
      font-size: clamp(1.85rem, 3.5vw, 2.6rem);
      font-weight: 700;
      color: var(--navy);
      line-height: 1.2;
      margin-bottom: .85rem;
    }

    .sec-sub {
      font-size: 1.02rem;
      color: var(--text-soft);
      line-height: 1.75;
      max-width: 530px;
    }

    .bar-blue {
      width: 46px;
      height: 3px;
      background: linear-gradient(90deg, var(--blue), var(--blue-light));
      border-radius: 2px;
      margin: 1rem 0;
    }

    .bar-teal {
      width: 46px;
      height: 3px;
      background: linear-gradient(90deg, var(--teal), var(--teal-light));
      border-radius: 2px;
      margin: 1rem 0;
    }

    .bar-gold {
      width: 46px;
      height: 3px;
      background: linear-gradient(90deg, var(--gold), var(--gold-light));
      border-radius: 2px;
      margin: 1rem 0;
    }

    /* MINISTRIES */
    .ministries {
      background: var(--off-white);
    }

    .min-hdr {
      text-align: center;
      margin-bottom: 3.8rem;
    }

    .min-hdr .sec-label {
      justify-content: center;
    }

    .min-hdr .bar-blue {
      margin: 1rem auto;
    }

    .min-hdr .sec-sub {
      margin: 0 auto;
      text-align: center;
    }

    .min-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1.3rem;
      max-width: 1200px;
      margin: 0 auto;
      overflow-x: auto;
    }

    .min-card {
      background: white;
      border: 1px solid var(--border);
      border-radius: 17px;
      padding: 1.8rem 1.6rem 1.5rem;
      text-align: center;
      transition: transform .3s, box-shadow .3s, border-color .3s;
      cursor: pointer;
      position: relative;
      overflow: visible;
      display: flex;
      flex-direction: column;
      gap: 0.8rem;
    }

    .min-card::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 3px;
      border-radius: 0 0 17px 17px;
      transform: scaleX(0);
      transition: transform .3s;
    }

    .blue-card::after {
      background: linear-gradient(90deg, var(--blue), var(--blue-light));
    }

    .teal-card::after {
      background: linear-gradient(90deg, var(--teal), var(--teal-light));
    }

    .gold-card::after {
      background: linear-gradient(90deg, var(--gold), var(--gold-light));
    }

    .min-card:hover {
      transform: translateY(-6px);
    }

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

    .blue-card:hover {
      box-shadow: 0 15px 38px var(--sh-blue);
      border-color: rgba(26, 79, 196, .2);
    }

    .teal-card:hover {
      box-shadow: 0 15px 38px var(--sh-teal);
      border-color: rgba(13, 122, 110, .2);
    }

    .gold-card:hover {
      box-shadow: 0 15px 38px var(--sh-gold);
      border-color: rgba(181, 130, 14, .2);
    }

    .min-icon {
      width: 56px;
      height: 56px;
      border-radius: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      margin: 0 auto 1.1rem;
      transition: background .3s;
    }

    .blue-card .min-icon {
      background: var(--sky-pale);
    }

    .teal-card .min-icon {
      background: var(--teal-pale);
    }

    .gold-card .min-icon {
      background: var(--gold-pale);
    }

    .blue-card:hover .min-icon {
      background: var(--blue);
    }

    .teal-card:hover .min-icon {
      background: var(--teal);
    }

    .gold-card:hover .min-icon {
      background: var(--gold-mid);
    }

    .min-name {
      font-family: 'Playfair Display', serif;
      font-size: 1rem;
      font-weight: 700;
      color: var(--navy);
      margin-bottom: .4rem;
    }

    .min-desc {
      font-size: .88rem;
      color: var(--text-soft);
      line-height: 1.6;
      flex-grow: 1;
    }

    .min-badge {
      position: absolute;
      top: 12px;
      right: 12px;
      padding: 4px 10px;
      border-radius: 20px;
      font-size: 0.7rem;
      font-weight: 600;
      letter-spacing: 0.02em;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .blue-badge {
      background: linear-gradient(135deg, var(--blue-light), var(--blue));
      color: white;
    }

    .teal-badge {
      background: linear-gradient(135deg, var(--teal-mid), var(--teal));
      color: white;
    }

    .gold-badge {
      background: linear-gradient(135deg, var(--gold-light), var(--gold));
      color: var(--navy);
    }

    .min-stats {
      display: flex;
      justify-content: space-around;
      gap: 0.5rem;
      padding: 0.8rem 0;
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      margin: 0.3rem 0;
    }

    .min-stat {
      text-align: center;
    }

    .stat-num {
      font-family: 'Playfair Display', serif;
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--blue);
      margin-bottom: 0.15rem;
    }

    .teal-card .stat-num {
      color: var(--teal);
    }

    .stat-label {
      font-size: 0.7rem;
      color: var(--text-soft);
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .min-schedule {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.4rem;
      padding: 0.5rem;
      background: var(--off-white);
      border-radius: 8px;
      font-size: 0.8rem;
      color: var(--text-mid);
    }

    .schedule-icon {
      font-size: 1rem;
    }

    .schedule-text {
      font-weight: 500;
    }

    .min-btn {
      padding: 0.65rem 1.2rem;
      border: none;
      border-radius: 25px;
      font-family: 'Inter', sans-serif;
      font-size: 0.85rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.25s;
      margin-top: 0.3rem;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .blue-btn {
      background: linear-gradient(135deg, var(--blue), var(--blue-mid));
      color: white;
    }

    .teal-btn {
      background: linear-gradient(135deg, var(--teal), var(--teal-mid));
      color: white;
    }

    .min-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    }

    .min-btn:active {
      transform: translateY(0);
    }

    /* Ministry Modal */
    .ministry-modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.7);
      z-index: 1000;
      align-items: center;
      justify-content: center;
      backdrop-filter: blur(5px);
    }

    .ministry-modal.active {
      display: flex;
    }

    .ministry-modal-content {
      background: white;
      border-radius: 20px;
      padding: 2.5rem;
      max-width: 600px;
      width: 90%;
      max-height: 85vh;
      overflow-y: auto;
      position: relative;
      box-shadow: 0 20px 60px rgba(0,0,0,0.3);
      animation: modalSlideUp 0.3s ease-out;
    }

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

    .ministry-modal-close {
      position: absolute;
      top: 1.2rem;
      right: 1.2rem;
      background: var(--off-white);
      border: none;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      font-size: 1.3rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
    }

    .ministry-modal-close:hover {
      background: var(--border);
      transform: rotate(90deg);
    }

    .modal-header {
      text-align: center;
      margin-bottom: 2rem;
    }

    .modal-icon {
      font-size: 3.5rem;
      margin-bottom: 1rem;
    }

    .modal-title {
      font-family: 'Playfair Display', serif;
      font-size: 2rem;
      font-weight: 700;
      color: var(--navy);
      margin-bottom: 0.5rem;
    }

    .modal-subtitle {
      font-size: 1rem;
      color: var(--text-mid);
      line-height: 1.6;
    }

    .modal-section {
      margin-bottom: 1.8rem;
    }

    .modal-section-title {
      font-family: 'Playfair Display', serif;
      font-size: 1.2rem;
      font-weight: 600;
      color: var(--blue);
      margin-bottom: 0.8rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .modal-section-content {
      font-size: 0.95rem;
      color: var(--text-mid);
      line-height: 1.7;
    }

    .modal-section ul {
      list-style: none;
      padding: 0;
    }

    .modal-section li {
      padding: 0.5rem 0;
      padding-left: 1.5rem;
      position: relative;
    }

    .modal-section li:before {
      content: 'âœ“';
      position: absolute;
      left: 0;
      color: var(--teal);
      font-weight: 700;
    }

    .modal-actions {
      display: flex;
      gap: 1rem;
      margin-top: 2rem;
    }

    .modal-btn {
      flex: 1;
      padding: 0.9rem 1.5rem;
      border: none;
      border-radius: 30px;
      font-family: 'Inter', sans-serif;
      font-size: 0.95rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.25s;
    }

    .modal-btn-primary {
      background: linear-gradient(135deg, var(--blue), var(--blue-mid));
      color: white;
      box-shadow: 0 4px 15px var(--sh-blue);
    }

    .modal-btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 25px var(--sh-blue);
    }

    .modal-btn-secondary {
      background: var(--off-white);
      color: var(--navy);
      border: 2px solid var(--border);
    }

    .modal-btn-secondary:hover {
      background: var(--border);
    }
    .join-form-grid {
      display: grid;
      gap: 10px;
      margin-top: 8px;
    }
    .join-form-grid input,
    .join-form-grid textarea {
      width: 100%;
      padding: 10px 12px;
      border-radius: 10px;
      border: 1px solid #d9dbe7;
      font-family: inherit;
      font-size: 14px;
      color: #1f2937;
      background: #fff;
    }
    .join-form-grid textarea {
      min-height: 72px;
      resize: vertical;
    }

    @media (max-width: 768px) {
      .min-grid {
        gap: 0.8rem;
      }

      .ministry-modal-content {
        padding: 2rem 1.5rem;
        width: 95%;
      }

      .modal-actions {
        flex-direction: column;
      }

      .min-stats {
        flex-direction: row;
      }
    }

    /* SERMONS */
    .sermons {
      background: white;
    }

    .serm-inner {
      max-width: 1200px;
      margin: 0 auto;
    }

    .serm-top {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      margin-bottom: 2.8rem;
    }

    .link-more {
      font-size: .88rem;
      color: var(--teal);
      text-decoration: none;
      border-bottom: 1px solid var(--teal);
      padding-bottom: 2px;
      transition: color .2s;
    }

    .link-more:hover {
      color: var(--navy);
      border-color: var(--navy);
    }

    /* â”€â”€â”€ SERMONS / LATEST MESSAGES GRID â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
    .serm-grid {
      display: grid;
      grid-template-columns: 2.15fr 0.9fr 0.8fr;
      gap: 1rem;
      align-items: start;
    }

    .serm-grid.no-shorts {
      grid-template-columns: 2.15fr 1fr;
    }

    .serm-grid.no-shorts #serm-card-2 {
      grid-column: 2;
      grid-row: 2;
    }

    /* â”€â”€ Featured Card (Slot 1) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
    .serm-feat {
      background: linear-gradient(160deg, var(--navy), var(--navy-mid));
      border-radius: 20px;
      padding: 0;
      grid-column: 1;
      grid-row: span 2;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      aspect-ratio: 16 / 9;
      position: relative;
      overflow: hidden;
      cursor: pointer;
      transition: transform .3s;
    }

    .serm-feat:hover {
      transform: scale(1.01);
    }

    /* 16:9 thumbnail layer inside featured card */
    .serm-feat-thumb {
      position: absolute;
      inset: 0;
      z-index: 0;
      overflow: hidden;
      border-radius: 20px;
      background: linear-gradient(135deg, #1a1f36 0%, #2d3748 100%);
    }

    .serm-feat-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      display: block;
      transition: transform .5s ease;
      min-width: 100%;
      min-height: 100%;
      max-width: none;
      max-height: none;
    }

    .serm-feat:hover .serm-feat-thumb img {
      transform: scale(1.04);
    }

    .serm-feat-overlay {
      position: absolute;
      inset: 0;
      z-index: 1;
      background: linear-gradient(to top,
        rgba(22, 22, 59, 0.95) 0%,
        rgba(22, 22, 59, 0.40) 45%,
        transparent 80%);
      border-radius: 20px;
    }

    .serm-feat-content {
      position: relative;
      z-index: 2;
      padding: 1.5rem 1.8rem 1.5rem;
      margin-top: auto;
    }

    .serm-glow {
      position: absolute;
      inset: 0;
      z-index: 1;
      background: radial-gradient(ellipse 75% 55% at 30% 20%, rgba(59, 130, 246, .18) 0%, transparent 60%),
                  radial-gradient(ellipse 45% 45% at 80% 80%, rgba(20, 184, 166, .10) 0%, transparent 55%);
      pointer-events: none;
    }

    /* â”€â”€ Standard Video Small Cards (Slots 2 & 3) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
    .serm-card {
      background: white;
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 0;
      overflow: hidden;
      cursor: pointer;
      transition: box-shadow .3s, border-color .3s, transform .2s;
    }

    .serm-card:hover {
      box-shadow: 0 8px 24px var(--sh-blue);
      border-color: rgba(26, 79, 196, .22);
      transform: translateY(-3px);
    }

    /* 16:9 thumbnail for small standard cards */
    .serm-card-thumb {
      width: 100%;
      aspect-ratio: 16 / 9;
      overflow: hidden;
      background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
      position: relative;
      display: block;
    }

    .serm-card-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      display: block;
      transition: transform .4s ease;
      min-width: 100%;
      min-height: 100%;
      max-width: none;
      max-height: none;
      position: absolute;
      top: 0;
      left: 0;
    }

    .serm-card:hover .serm-card-thumb img {
      transform: scale(1.05);
    }

    .serm-card-body {
      padding: 0.8rem 1rem 1rem;
    }

    .serm-card .serm-title {
      font-size: .88rem;
      color: var(--navy);
      margin-bottom: .26rem;
    }

    .serm-card .serm-meta {
      color: var(--text-soft);
      font-size: .75rem;
      margin-bottom: .6rem;
    }

    /* â”€â”€ Shorts Card (Slot 4) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
    .serm-shorts {
      background: white;
      border: 1px solid var(--border);
      border-radius: 14px;
      overflow: hidden;
      cursor: pointer;
      transition: box-shadow .3s, transform .2s;
      display: flex;
      flex-direction: column;
      grid-column: 3;
      grid-row: 1 / span 2;
    }

    .serm-shorts:hover {
      box-shadow: 0 10px 28px var(--sh-blue);
      transform: translateY(-3px);
    }

    /* 9:16 portrait thumbnail for Shorts */
    .serm-shorts-thumb {
      width: 100%;
      aspect-ratio: 9 / 16;
      overflow: hidden;
      background: linear-gradient(180deg, #1a1f36 0%, #111827 100%);
      position: relative;
      flex-shrink: 0;
    }

    .serm-shorts-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center top;
      display: block;
      transition: transform .4s ease;
      min-width: 100%;
      min-height: 100%;
      max-width: none;
      max-height: none;
    }

    .serm-shorts:hover .serm-shorts-thumb img {
      transform: scale(1.05);
    }

    /* Play overlay icon on shorts thumb */
    .serm-shorts-play-overlay {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(0,0,0,0.18);
      transition: background .3s;
    }

    .serm-shorts:hover .serm-shorts-play-overlay {
      background: rgba(0,0,0,0.32);
    }

    .serm-shorts-play-overlay svg {
      width: 52px;
      height: 52px;
      filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
    }

    .serm-shorts-info {
      padding: 0.8rem 1rem 1rem;
      display: flex;
      flex-direction: column;
      gap: 0.3rem;
    }

    .shorts-badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      background: #ff0000;
      color: white;
      font-size: .63rem;
      letter-spacing: .1em;
      text-transform: uppercase;
      padding: 3px 9px;
      border-radius: 20px;
      width: fit-content;
      margin-bottom: .3rem;
      font-weight: 700;
      font-family: 'Inter', sans-serif;
    }

    .serm-shorts .serm-title {
      font-size: .9rem;
      color: var(--navy);
      margin-bottom: .2rem;
    }

    .serm-shorts .serm-meta {
      color: var(--text-soft);
      font-size: .75rem;
      margin-bottom: .6rem;
    }

    /* â”€â”€ Shared badge / label styles â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
    .stag {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-size: .65rem;
      letter-spacing: .15em;
      text-transform: uppercase;
      padding: 4px 10px;
      border-radius: 20px;
      margin-bottom: .7rem;
      width: fit-content;
    }

    .stag-gold {
      color: var(--gold-light);
      background: rgba(240, 187, 58, .13);
      border: 1px solid rgba(240, 187, 58, .28);
    }

    .stag-blue {
      color: var(--blue);
      background: var(--sky-pale);
      border: 1px solid rgba(26, 79, 196, .2);
    }

    .stag-teal {
      color: var(--teal);
      background: var(--teal-pale);
      border: 1px solid rgba(13, 122, 110, .2);
    }

    .stag-amber {
      color: var(--gold);
      background: var(--gold-pale);
      border: 1px solid rgba(181, 130, 14, .2);
    }

    /* â”€â”€ Shared text/button styles â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
    .serm-title {
      font-family: 'Playfair Display', serif;
      font-size: 1.2rem;
      font-weight: 700;
      color: white;
      line-height: 1.35;
      margin-bottom: .35rem;
      position: relative;
    }

    .serm-feat .serm-title {
      font-size: 1.05rem;
      font-weight: 500;
      margin-bottom: .20rem;
      font-family: 'Inter', sans-serif; /* Use modern sans-serif for featured to look unbold/cleaner */
    }

    .serm-meta {
      font-size: .8rem;
      color: rgba(200, 220, 255, .55);
      margin-bottom: 1.1rem;
      position: relative;
    }

    .serm-feat .serm-meta {
      font-size: .72rem;
      margin-bottom: 0.8rem;
    }

    .play-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: white;
      color: var(--navy);
      padding: 10px 20px;
      border-radius: 30px;
      font-family: 'EB Garamond', serif;
      font-size: .88rem;
      font-weight: 600;
      border: none;
      cursor: pointer;
      width: fit-content;
      position: relative;
      transition: background .2s, transform .2s;
    }

    .play-btn:hover {
      background: var(--sky-pale);
      transform: translateY(-2px);
    }

    .play-sm {
      background: var(--blue);
      color: white;
      font-size: .76rem;
      padding: 6px 14px;
    }

    .play-sm:hover {
      background: var(--navy) !important;
    }

    /* â”€â”€â”€ EVENTS + PRAYER â€” Refactored Layout â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
    .events {
      background: linear-gradient(160deg, #f0fdf9 0%, #e8f5f1 50%, #f0f9ff 100%);
      padding: 6rem 3rem;
    }

    .ev-inner {
      max-width: 1280px;
      margin: 0 auto;
    }

    /* Section header centered */
    .ev-section-header {
      text-align: center;
      margin-bottom: 3rem;
    }
    .ev-section-header .sec-label { justify-content: center; }
    .ev-section-header .bar-teal  { margin: 1rem auto; }
    .ev-section-header .sec-sub   { margin: 0 auto; text-align: center; }

    /* TOP ROW: Calendar (70%) | Prayer form (30%) */
    .ev-top-row {
      display: grid;
      grid-template-columns: 1fr 380px;
      gap: 2rem;
      align-items: start;
      margin-bottom: 2.5rem;
    }

    /* Glass card base */
    .ev-glass {
      background: rgba(255,255,255,0.72);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border: 1px solid rgba(16,185,129,0.14);
      border-radius: 24px;
      box-shadow: 0 8px 32px rgba(16,185,129,0.08), 0 2px 8px rgba(0,0,0,0.04);
    }

    /* Calendar wrapper */
    .ev-calendar-wrap {
      padding: 28px 28px 24px;
    }

    /* Mini Calendar FullCalendar overrides */
    #mini-calendar {
      font-family: 'Inter', 'EB Garamond', Georgia, sans-serif;
    }
    #mini-calendar .fc-toolbar-title {
      font-family: 'Playfair Display', serif !important;
      font-size: 1.4rem !important;
      color: var(--navy) !important;
      font-weight: 700;
    }
    #mini-calendar .fc-toolbar {
      margin-bottom: 1.2rem !important;
    }
    #mini-calendar .fc-button {
      background: var(--teal) !important;
      border: none !important;
      color: white !important;
      padding: 7px 14px !important;
      border-radius: 10px !important;
      font-size: 0.82rem !important;
      font-weight: 600 !important;
      letter-spacing: 0.02em !important;
      box-shadow: 0 3px 10px rgba(16,185,129,0.25) !important;
      transition: background 0.2s !important;
    }
    #mini-calendar .fc-button:hover {
      background: #059669 !important;
    }
    #mini-calendar .fc-button-active, #mini-calendar .fc-button:active {
      background: var(--navy) !important;
      box-shadow: none !important;
    }
    #mini-calendar .fc-daygrid-day-number {
      color: var(--text-dark) !important;
      font-size: 0.88rem !important;
      font-weight: 500;
      padding: 6px 8px !important;
    }
    #mini-calendar .fc-day-today {
      background: rgba(16,185,129,0.1) !important;
    }
    #mini-calendar .fc-day-today .fc-daygrid-day-number {
      background: var(--teal);
      color: white !important;
      border-radius: 50%;
      width: 30px;
      height: 30px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700 !important;
    }
    #mini-calendar .fc-event {
      cursor: pointer;
      font-size: 0.74rem !important;
      border-radius: 8px !important;
      border: none !important;
      font-weight: 600 !important;
      margin: 2px 4px !important;
      padding: 0 !important;
      box-shadow: 0 2px 8px rgba(15,23,42,0.12) !important;
      overflow: hidden !important;
    }
    #mini-calendar .fc-col-header-cell {
      background: transparent;
      font-weight: 700;
      font-size: 0.75rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--text-soft);
      padding: 10px 4px !important;
      border: none !important;
    }
    #mini-calendar .fc-daygrid-day {
      min-height: 70px !important;
    }
    #mini-calendar .fc-daygrid-day-events {
      margin-top: 2px !important;
    }
    #mini-calendar .fc-daygrid-event-harness {
      margin-top: 3px !important;
    }
    .mini-event-chip {
      display: flex;
      align-items: center;
      gap: 5px;
      width: 100%;
      min-height: 20px;
      padding: 3px 7px;
      color: #fff;
      font-size: 11px;
      line-height: 1.2;
      letter-spacing: 0.01em;
      border-radius: 8px;
      background: rgba(15,23,42,0.35);
    }
    .mini-event-chip-dot {
      width: 6px;
      height: 6px;
      border-radius: 999px;
      background: rgba(255,255,255,0.95);
      flex-shrink: 0;
    }
    .mini-event-chip-text {
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      font-weight: 600;
    }
    #mini-calendar .fc-more-link {
      color: var(--blue) !important;
      font-size: 11px !important;
      font-weight: 700 !important;
      text-decoration: none !important;
    }
    #mini-calendar .fc-theme-standard td,
    #mini-calendar .fc-theme-standard th,
    #mini-calendar .fc-theme-standard .fc-scrollgrid {
      border-color: rgba(16,185,129,0.1) !important;
    }
    #mini-calendar .fc-daygrid-day.fc-day-other .fc-daygrid-day-number {
      color: rgba(156,163,175,0.5) !important;
    }
    .ev-modal-overlay {
      position: fixed;
      inset: 0;
      display: none;
      align-items: center;
      justify-content: center;
      background: rgba(2, 6, 23, 0.6);
      backdrop-filter: blur(5px);
      z-index: 1200;
      padding: 20px;
    }
    .ev-modal-overlay.open {
      display: flex;
      animation: fadeUp 0.2s ease;
    }
    .ev-modal-card {
      width: min(560px, calc(100vw - 30px));
      background: #fff;
      border-radius: 18px;
      border: 1px solid var(--border);
      box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
      overflow: hidden;
    }
    .ev-modal-head {
      padding: 16px 18px 14px;
      background: linear-gradient(135deg, #eef2ff, #f0f9ff);
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
    }
    .ev-modal-title-wrap { min-width: 0; }
    .ev-modal-tag {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 11px;
      font-weight: 700;
      color: var(--blue);
      background: rgba(99,102,241,0.12);
      border: 1px solid rgba(99,102,241,0.2);
      border-radius: 999px;
      padding: 3px 9px;
      margin-bottom: 7px;
    }
    .ev-modal-title {
      font-family: 'Playfair Display', serif;
      font-size: 1.3rem;
      color: var(--navy);
      line-height: 1.25;
      margin: 0;
      word-break: break-word;
    }
    .ev-modal-close {
      border: none;
      background: rgba(99,102,241,0.12);
      color: var(--blue);
      width: 30px;
      height: 30px;
      border-radius: 999px;
      cursor: pointer;
      font-size: 16px;
      flex-shrink: 0;
    }
    .ev-modal-body {
      padding: 16px 18px 18px;
      display: grid;
      gap: 12px;
    }
    .ev-modal-meta {
      display: grid;
      gap: 8px;
    }
    .ev-modal-meta-row {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      font-size: 0.92rem;
      color: var(--text-mid);
      line-height: 1.45;
    }
    .ev-modal-meta-row strong {
      color: var(--text-dark);
      min-width: 76px;
      font-weight: 700;
    }
    .ev-modal-description {
      background: var(--sky-pale);
      border: 1px solid rgba(99,102,241,0.12);
      border-radius: 12px;
      padding: 12px;
      font-size: 0.92rem;
      color: var(--text-mid);
      line-height: 1.6;
      white-space: pre-wrap;
    }

    /* Prayer form sidebar */
    .prayer-sidebar {
      position: sticky;
      top: 88px;
      background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
      border-radius: 24px;
      padding: 2rem 1.8rem;
      box-shadow: 0 20px 60px rgba(15,23,42,0.25), 0 4px 16px rgba(0,0,0,0.12);
      border: 1px solid rgba(255,255,255,0.06);
      overflow: hidden;
    }
    .prayer-sidebar::before {
      content: '';
      position: absolute;
      top: -60px; right: -60px;
      width: 220px; height: 220px;
      background: radial-gradient(circle, rgba(16,185,129,0.15) 0%, transparent 70%);
      border-radius: 50%;
      pointer-events: none;
    }
    .prayer-sidebar::after {
      content: '';
      position: absolute;
      bottom: -40px; left: -40px;
      width: 160px; height: 160px;
      background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, transparent 70%);
      border-radius: 50%;
      pointer-events: none;
    }
    .prayer-sidebar-icon {
      font-size: 2rem;
      margin-bottom: 0.5rem;
      display: block;
    }
    .prayer-sidebar h3 {
      font-family: 'Playfair Display', serif;
      font-size: 1.3rem;
      color: white;
      margin-bottom: .35rem;
      position: relative;
      line-height: 1.3;
    }
    .prayer-sidebar > p {
      font-size: .82rem;
      color: rgba(200,220,255,0.55);
      line-height: 1.7;
      margin-bottom: 1.4rem;
      position: relative;
    }
    .pfield {
      width: 100%;
      background: rgba(255,255,255,0.07);
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: 12px;
      padding: 11px 14px;
      color: white;
      font-family: 'Inter', 'EB Garamond', sans-serif;
      font-size: 0.93rem;
      margin-bottom: 0.65rem;
      outline: none;
      transition: border-color .25s, background .25s;
      display: block;
      position: relative;
    }
    .pfield::placeholder { color: rgba(200,220,255,0.3); }
    .pfield:focus {
      border-color: rgba(16,185,129,0.55);
      background: rgba(255,255,255,0.1);
    }
    textarea.pfield {
      height: 88px;
      resize: none;
    }
    .btn-teal-block {
      width: 100%;
      background: linear-gradient(135deg, #10b981, #34d399);
      color: white;
      padding: 13px;
      border-radius: 12px;
      border: none;
      font-family: 'Inter', sans-serif;
      font-size: 0.95rem;
      font-weight: 700;
      cursor: pointer;
      transition: opacity .2s, transform .2s, box-shadow .2s;
      position: relative;
      box-shadow: 0 6px 20px rgba(16,185,129,0.35);
      letter-spacing: 0.02em;
    }
    .btn-teal-block:hover {
      opacity: .92;
      transform: translateY(-2px);
      box-shadow: 0 10px 28px rgba(16,185,129,0.45);
    }

    /* BOTTOM ROW: 2-column event cards grid */
    .ev-cards-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 1.4rem;
      gap: 1rem;
      flex-wrap: wrap;
    }
    .ev-cards-header h3 {
      font-family: 'Playfair Display', serif;
      font-size: 1.3rem;
      color: var(--navy);
      font-weight: 700;
    }
    .btn-teal-outline {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: transparent;
      border: 1.5px solid var(--teal);
      color: var(--teal);
      padding: 8px 20px;
      border-radius: 50px;
      font-size: 0.85rem;
      font-weight: 600;
      font-family: 'Inter', sans-serif;
      text-decoration: none;
      transition: background .2s, color .2s;
      white-space: nowrap;
    }
    .btn-teal-outline:hover {
      background: var(--teal);
      color: white;
    }

    .ev-events-list {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.2rem;
    }

    /* Premium event card */
    .ev-item {
      background: rgba(255,255,255,0.85);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border-radius: 20px;
      overflow: hidden;
      box-shadow: 0 4px 20px rgba(13,122,110,0.06), 0 1px 4px rgba(0,0,0,0.04);
      border: 1px solid rgba(16,185,129,0.12);
      transition: box-shadow .3s, transform .3s;
      cursor: pointer;
      position: relative;
    }
    .ev-item:hover {
      box-shadow: 0 16px 48px rgba(13,122,110,0.15), 0 4px 12px rgba(0,0,0,0.06);
      transform: translateY(-5px);
    }
    .ev-card-body {
      display: flex;
      gap: 0;
      align-items: stretch;
    }
    .ev-date {
      background: linear-gradient(180deg, #10b981 0%, #34d399 100%);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 1.4rem 0.9rem;
      min-width: 68px;
      flex-shrink: 0;
    }
    .ev-day {
      font-family: 'Playfair Display', serif;
      font-size: 2rem;
      font-weight: 900;
      color: white;
      line-height: 1;
      display: block;
    }
    .ev-mon {
      font-size: .58rem;
      letter-spacing: .2em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.8);
      margin-top: 4px;
      display: block;
      font-weight: 700;
    }
    .ev-info {
      padding: 1.1rem 1.3rem;
      flex: 1;
    }
    .ev-event-tag {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      background: rgba(16,185,129,0.08);
      color: #059669;
      border: 1px solid rgba(16,185,129,0.2);
      border-radius: 20px;
      padding: 3px 10px;
      font-size: .67rem;
      font-weight: 700;
      letter-spacing: .07em;
      text-transform: uppercase;
      margin-bottom: .55rem;
      font-family: 'Inter', sans-serif;
    }
    .ev-info h4 {
      font-family: 'Playfair Display', serif;
      font-size: 0.97rem;
      font-weight: 800;
      color: var(--navy);
      margin-bottom: .28rem;
      line-height: 1.35;
    }
    .ev-desc {
      font-size: .8rem;
      color: var(--text-soft);
      line-height: 1.6;
      margin-bottom: .35rem;
    }
    .ev-loc {
      font-size: .73rem;
      color: #059669;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 4px;
      margin-top: 2px;
      font-family: 'Inter', sans-serif;
    }
    .ev-poster-toggle {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      margin-top: .65rem;
      padding: 5px 12px;
      border-radius: 20px;
      border: 1.5px solid rgba(16,185,129,0.3);
      color: #059669;
      font-size: .7rem;
      font-weight: 700;
      letter-spacing: .05em;
      background: rgba(16,185,129,0.05);
      transition: background .2s, color .2s;
      width: fit-content;
      font-family: 'Inter', sans-serif;
    }
    .ev-item:hover .ev-poster-toggle {
      background: var(--teal);
      color: white;
      border-color: var(--teal);
    }
    .ev-poster-wrap {
      max-height: 0;
      overflow: hidden;
      transition: max-height .55s cubic-bezier(.4,0,.2,1), opacity .4s ease;
      opacity: 0;
    }
    .ev-poster-wrap.open { opacity: 1; }
    .ev-poster-wrap img { width: 100%; display: block; object-fit: cover; }
    .ev-no-events {
      text-align: center;
      padding: 3rem 2rem;
      color: var(--text-soft);
      font-style: italic;
      background: rgba(255,255,255,0.7);
      border-radius: 20px;
      border: 1.5px dashed rgba(16,185,129,0.2);
      grid-column: 1/-1;
    }

    /* Legacy .prayer-box â€” keep for potential reuse */
    .prayer-box {
      background: linear-gradient(160deg, var(--navy), var(--navy-mid));
      border-radius: 22px;
      padding: 2.6rem;
      position: relative;
      overflow: hidden;
    }
    .prayer-box::before {
      content: '';
      position: absolute;
      top: -40px; right: -40px;
      width: 180px; height: 180px;
      background: radial-gradient(circle, rgba(20,184,166,.18) 0%, transparent 70%);
      border-radius: 50%;
    }
    .prayer-box h3 {
      font-family: 'Playfair Display', serif;
      font-size: 1.4rem;
      color: white;
      margin-bottom: .4rem;
      position: relative;
    }
    .prayer-box p {
      font-size: .9rem;
      color: rgba(200,220,255,.62);
      line-height: 1.7;
      margin-bottom: 1.5rem;
      position: relative;
    }

    /* DEVOTION */
    .devotion {
      background: white;
      padding: 6.5rem 4rem;
    }

    .dev-inner {
      max-width: 920px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1fr 2.2fr;
      gap: 5rem;
      align-items: center;
    }

    .dev-circle {
      width: 140px;
      height: 140px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--gold-pale), var(--sky-pale));
      border: 3px solid var(--gold-light);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      box-shadow: 0 8px 28px var(--sh-gold);
    }

    .dev-day {
      font-family: 'Playfair Display', serif;
      font-size: 3rem;
      font-weight: 900;
      color: var(--navy);
      line-height: 1;
    }

    .dev-month {
      font-size: .72rem;
      letter-spacing: .2em;
      text-transform: uppercase;
      color: var(--gold);
      margin-top: 2px;
    }

    .dev-year {
      font-size: .7rem;
      color: var(--text-soft);
    }

    .dev-right blockquote {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.62rem;
      font-style: italic;
      color: var(--navy);
      line-height: 1.62;
      border-left: 4px solid var(--gold-mid);
      padding-left: 1.4rem;
      margin-bottom: .42rem;
    }

    .dev-ref {
      font-size: .82rem;
      letter-spacing: .15em;
      color: var(--gold);
      margin-bottom: 1.4rem;
      padding-left: 1.4rem;
    }

    .dev-body {
      font-size: .98rem;
      color: var(--text-mid);
      line-height: 1.88;
      margin-bottom: 1.8rem;
    }

    .btn-blue {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: linear-gradient(135deg, var(--blue), var(--blue-mid));
      color: white;
      padding: 11px 26px;
      border-radius: 50px;
      font-family: 'EB Garamond', serif;
      font-size: .98rem;
      font-weight: 600;
      text-decoration: none;
      border: none;
      cursor: pointer;
      box-shadow: 0 6px 18px var(--sh-blue);
      transition: transform .2s, box-shadow .2s;
    }

    .btn-blue:hover {
      transform: translateY(-3px);
      box-shadow: 0 12px 28px rgba(26, 79, 196, .38);
    }

    /* TESTIMONIES - MODERN REDESIGN */
    .testimonies {
      background: linear-gradient(180deg, #fff9f0 0%, #fef3e2 100%);
      position: relative;
      overflow: hidden;
    }

    .testimonies::before {
      content: '';
      position: absolute;
      top: -50%;
      right: -10%;
      width: 500px;
      height: 500px;
      background: radial-gradient(circle, rgba(251, 191, 36, 0.08) 0%, transparent 70%);
      border-radius: 50%;
      pointer-events: none;
    }

    .test-inner {
      max-width: 1200px;
      margin: 0 auto;
      position: relative;
      z-index: 1;
    }

    .test-hdr {
      text-align: center;
      margin-bottom: 4rem;
    }

    .test-hdr .sec-label {
      justify-content: center;
    }

    .test-hdr .bar-gold {
      margin: 1rem auto;
    }

    .test-loading {
      text-align: center;
      padding: 3rem;
      color: var(--gold-mid);
      font-size: 1.1rem;
    }

    .test-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 2rem;
      padding: 0 1rem;
    }

    .test-card {
      background: white;
      border: 2px solid rgba(251, 191, 36, 0.15);
      border-radius: 20px;
      padding: 2.5rem;
      position: relative;
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
      overflow: hidden;
    }

    .test-card::before {
      content: '"';
      position: absolute;
      top: 15px;
      left: 20px;
      font-size: 80px;
      font-family: Georgia, serif;
      color: rgba(251, 191, 36, 0.1);
      line-height: 0;
      pointer-events: none;
    }

    .test-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 12px 35px rgba(251, 191, 36, 0.25);
      border-color: rgba(251, 191, 36, 0.4);
    }

    .stars {
      font-size: 0.9rem;
      letter-spacing: 4px;
      margin-bottom: 1.2rem;
      color: #fbbf24;
      text-shadow: 0 1px 2px rgba(251, 191, 36, 0.3);
    }

    .test-text {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.1rem;
      font-style: italic;
      color: var(--text-dark);
      line-height: 1.9;
      margin-bottom: 1.5rem;
      position: relative;
      z-index: 1;
    }

    .test-actions {
      display: flex;
      gap: 0.8rem;
      margin-top: 1.2rem;
    }

    .read-more-btn {
      background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
      color: white;
      border: none;
      padding: 0.6rem 1.3rem;
      border-radius: 10px;
      font-size: 0.85rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
      flex: 1;
    }

    .read-more-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
    }

    .share-btn {
      background: white;
      color: var(--gold-mid);
      border: 2px solid var(--gold-mid);
      padding: 0.6rem 1rem;
      border-radius: 10px;
      font-size: 1rem;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .share-btn:hover {
      background: var(--gold-mid);
      color: white;
      transform: scale(1.05);
    }

    .test-author {
      display: flex;
      align-items: center;
      gap: 1rem;
      border-top: 2px solid rgba(251, 191, 36, 0.15);
      padding-top: 1.2rem;
      margin-top: 1.2rem;
    }

    .test-av {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: 'Playfair Display', serif;
      font-size: 1.1rem;
      font-weight: 700;
      color: white;
      flex-shrink: 0;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .av-blue {
      background: linear-gradient(135deg, #3b82f6, #1e40af);
    }

    .av-teal {
      background: linear-gradient(135deg, #14b8a6, #0d9488);
    }

    .av-gold {
      background: linear-gradient(135deg, #fbbf24, #f59e0b);
    }

    .test-name {
      font-family: 'Playfair Display', serif;
      font-size: 1rem;
      font-weight: 700;
      color: var(--navy);
      margin-bottom: 0.2rem;
    }

    .test-loc {
      font-size: 0.85rem;
      color: var(--text-soft);
      display: flex;
      align-items: center;
      gap: 0.3rem;
    }

    .test-loc::before {
      content: 'ðŸ“';
      font-size: 0.75rem;
    }

    /* TESTIMONY MODAL */
    .testimony-modal {
      display: none;
      position: fixed;
      z-index: 10000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.7);
      backdrop-filter: blur(8px);
      animation: fadeIn 0.3s ease;
    }

    .testimony-modal.active {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 2rem;
    }

    .testimony-modal-content {
      background: white;
      border-radius: 25px;
      max-width: 700px;
      width: 100%;
      max-height: 85vh;
      overflow-y: auto;
      position: relative;
      animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    }

    .testimony-modal-header {
      background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
      padding: 2rem;
      border-radius: 25px 25px 0 0;
      position: relative;
    }

    .testimony-modal-close {
      position: absolute;
      top: 1rem;
      right: 1rem;
      background: rgba(255, 255, 255, 0.3);
      border: none;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      font-size: 1.5rem;
      color: white;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .testimony-modal-close:hover {
      background: rgba(255, 255, 255, 0.5);
      transform: rotate(90deg);
    }

    .testimony-modal-stars {
      color: white;
      font-size: 1.2rem;
      letter-spacing: 5px;
      margin-bottom: 0.8rem;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .testimony-modal-title {
      color: white;
      font-family: 'Playfair Display', serif;
      font-size: 1.8rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
    }

    .testimony-modal-meta {
      color: rgba(255, 255, 255, 0.9);
      font-size: 0.95rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .testimony-modal-body {
      padding: 2.5rem;
    }

    .testimony-modal-text {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.25rem;
      line-height: 2;
      color: var(--text-dark);
      margin-bottom: 2rem;
    }

    .testimony-modal-footer {
      padding: 1.5rem 2.5rem;
      border-top: 2px solid rgba(251, 191, 36, 0.15);
      display: flex;
      gap: 1rem;
    }

    .testimony-modal-share {
      flex: 1;
      background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
      color: white;
      border: none;
      padding: 0.8rem 1.5rem;
      border-radius: 12px;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
    }

    .testimony-modal-share:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
    }

    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

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

    @media (max-width: 768px) {
      .test-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
      }

      .testimony-modal-content {
        margin: 1rem;
        max-height: 90vh;
      }

      .testimony-modal-body {
        padding: 1.5rem;
      }
    }

    /* DONATE */
    .donate {
      background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 60%, #0e2d58 100%);
      padding: 6.5rem 4rem;
      text-align: center;
      position: relative;
      overflow: hidden;
    }

    .donate-bg {
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(37, 99, 235, .18) 0%, transparent 68%), radial-gradient(ellipse 40% 30% at 15% 80%, rgba(13, 149, 135, .1) 0%, transparent 55%);
    }

    .donate-inner {
      position: relative;
      max-width: 650px;
      margin: 0 auto;
    }

    .donate-title {
      font-family: 'Playfair Display', serif;
      font-size: clamp(1.9rem, 4vw, 2.85rem);
      font-weight: 900;
      color: white;
      line-height: 1.15;
      margin-bottom: .85rem;
    }

    .donate-verse {
      font-family: 'Cormorant Garamond', serif;
      font-style: italic;
      font-size: 1.06rem;
      color: rgba(200, 220, 255, .7);
      margin-bottom: 2.3rem;
    }

    .amt-row {
      display: flex;
      gap: .75rem;
      justify-content: center;
      flex-wrap: wrap;
      margin-bottom: 1.8rem;
    }

    .amt-btn {
      background: rgba(255, 255, 255, .1);
      border: 1px solid rgba(255, 255, 255, .2);
      color: rgba(255, 255, 255, .76);
      padding: 9px 20px;
      border-radius: 30px;
      font-family: 'Playfair Display', serif;
      font-size: .87rem;
      cursor: pointer;
      transition: all .2s;
    }

    .amt-btn:hover,
    .amt-btn.on {
      background: var(--gold-mid);
      border-color: var(--gold-mid);
      color: var(--navy);
      font-weight: 700;
      transform: translateY(-2px);
      box-shadow: 0 6px 18px var(--sh-gold);
    }

    .donate-btn {
      background: linear-gradient(135deg, var(--gold-mid), var(--gold-light));
      color: var(--navy);
      padding: 15px 46px;
      border-radius: 50px;
      font-family: 'Playfair Display', serif;
      font-size: 1.02rem;
      font-weight: 700;
      border: none;
      cursor: pointer;
      box-shadow: 0 10px 32px var(--sh-gold);
      transition: transform .2s, box-shadow .2s;
    }

    .donate-btn:hover {
      transform: translateY(-3px);
      box-shadow: 0 16px 40px rgba(181, 130, 14, .48);
    }
    
    /* Quick UPI buttons hover effect */
    button[onclick^="openQuickUPI"]:hover {
      transform: translateY(-2px) scale(1.02) !important;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
    }
    
    button[onclick^="openQuickUPI"]:active {
      transform: translateY(0) scale(0.98) !important;
    }

    /* CONTACT */
    .contact {
      background: white;
    }

    .contact-inner {
      max-width: 1100px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 5rem;
      align-items: start;
    }

    .c-detail {
      display: flex;
      align-items: center;
      gap: .95rem;
      padding: 1.05rem;
      border-radius: 12px;
      border: 1px solid var(--border);
      margin-bottom: .72rem;
      transition: border-color .3s, box-shadow .3s;
    }

    .c-detail.blue-d:hover {
      border-color: rgba(26, 79, 196, .3);
      box-shadow: 0 4px 16px var(--sh-blue);
    }

    .c-detail.teal-d:hover {
      border-color: rgba(13, 122, 110, .3);
      box-shadow: 0 4px 16px var(--sh-teal);
    }

    .c-icon {
      width: 40px;
      height: 40px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.05rem;
      flex-shrink: 0;
    }

    .blue-ic {
      background: var(--sky-pale);
    }

    .teal-ic {
      background: var(--teal-pale);
    }

    .c-lbl {
      font-size: .63rem;
      letter-spacing: .2em;
      text-transform: uppercase;
      margin-bottom: 2px;
    }

    .blue-lbl {
      color: var(--blue);
    }

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

    .c-val {
      font-size: .88rem;
      color: var(--text-dark);
    }

    .c-form-box {
      background: var(--sky-pale);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 2.4rem;
      margin-top: 8.8rem;
    }

    .c-form-box h3 {
      font-family: 'Playfair Display', serif;
      font-size: 1.15rem;
      color: var(--navy);
      margin-bottom: 1.3rem;
    }
    .office-spotlight-row {
      max-width: 1100px;
      margin: 2rem auto 0;
    }
    .office-spotlight-card {
      display: none;
      background: linear-gradient(135deg, rgba(14,165,233,0.08), rgba(99,102,241,0.08));
      border: 1px solid rgba(99,102,241,0.2);
      border-radius: 18px;
      padding: 1rem 1.1rem;
      box-shadow: 0 8px 24px rgba(30,41,59,0.08);
    }
    .office-spotlight-head {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 10px;
      margin-bottom: 0.5rem;
    }
    .office-spotlight-eyebrow {
      font-size: 0.72rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--blue);
      font-weight: 700;
    }
    .office-spotlight-name {
      font-family: 'Playfair Display', serif;
      font-size: 1.08rem;
      color: var(--navy);
      margin-top: 3px;
    }
    .office-spotlight-map-link {
      text-decoration: none;
      font-size: 0.76rem;
      font-weight: 700;
      color: var(--blue);
      background: #fff;
      border: 1px solid var(--blue-light);
      border-radius: 999px;
      padding: 5px 10px;
      white-space: nowrap;
    }
    .office-spotlight-address {
      margin-top: 0.25rem;
      font-size: 0.9rem;
      color: var(--text-mid);
      line-height: 1.5;
    }
    .office-spotlight-phone {
      margin-top: 0.35rem;
      font-size: 0.88rem;
      color: var(--text-mid);
    }
    .office-spotlight-hours {
      margin-top: 0.2rem;
      font-size: 0.84rem;
      color: var(--text-soft);
    }
    .office-spotlight-map-shell {
      margin-top: 0.75rem;
      border-radius: 12px;
      overflow: hidden;
      border: 1px solid rgba(99,102,241,0.18);
      background: #fff;
    }
    .office-spotlight-route {
      margin-top: 0.45rem;
      font-size: 0.82rem;
      color: var(--text-soft);
    }
    .office-spotlight-actions {
      margin-top: 0.55rem;
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }
    .office-spotlight-btn {
      border: 1px solid var(--blue-light);
      background: #fff;
      color: var(--blue);
      border-radius: 999px;
      padding: 6px 11px;
      font-size: 0.76rem;
      font-weight: 700;
      cursor: pointer;
    }

    .fld {
      width: 100%;
      background: white;
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 11px 14px;
      color: var(--text-dark);
      font-family: 'EB Garamond', serif;
      font-size: .98rem;
      margin-bottom: .72rem;
      outline: none;
      display: block;
      transition: border-color .3s, box-shadow .3s;
    }

    .fld:focus {
      border-color: var(--blue);
      box-shadow: 0 0 0 3px rgba(26, 79, 196, .07);
    }

    textarea.fld {
      height: 106px;
      resize: none;
    }

    /* FOOTER */
    footer {
      background: var(--navy);
      padding: 3.8rem 4rem 1.5rem;
    }

    .foot-grid {
      max-width: 1200px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 2fr 1fr 1fr 1fr;
      gap: 2.8rem;
      padding-bottom: 2.8rem;
      border-bottom: 1px solid rgba(255, 255, 255, .08);
      margin-bottom: 1.8rem;
    }

    .foot-desc {
      font-size: .87rem;
      color: rgba(200, 220, 255, .48);
      line-height: 1.7;
      margin: 1rem 0 1.4rem;
      max-width: 265px;
    }

    .soc-row {
      display: flex;
      gap: .85rem;
    }

    .soc-btn {
      width: 48px;
      height: 48px;
      border-radius: 12px;
      background: rgba(255, 255, 255, .07);
      border: 1px solid rgba(255, 255, 255, .12);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all .25s;
      text-decoration: none;
      position: relative;
      overflow: hidden;
    }
    
    .soc-btn img {
      width: 24px;
      height: 24px;
      object-fit: contain;
      transition: transform .25s;
    }

    .soc-btn:hover {
      transform: translateY(-4px);
      box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    }
    
    .soc-btn:hover img {
      transform: scale(1.1);
    }

    .soc-btn.fb:hover {
      background: #1877f2;
      border-color: #1877f2;
    }

    .soc-btn.yt:hover {
      background: #ff0000;
      border-color: #ff0000;
    }

    .soc-btn.ig:hover {
      background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
      border-color: #fd1d1d;
    }

    .soc-btn.wa:hover {
      background: #25D366;
      border-color: #25D366;
    }
    
    .soc-btn.tw:hover {
      background: #1DA1F2;
      border-color: #1DA1F2;
    }

    .foot-col h4 {
      font-family: 'Playfair Display', serif;
      font-size: .87rem;
      color: white;
      margin-bottom: 1.05rem;
    }

    .foot-col ul {
      list-style: none;
    }

    .foot-col ul li {
      margin-bottom: .5rem;
    }

    .foot-col ul li a {
      font-size: .85rem;
      color: rgba(200, 220, 255, .46);
      text-decoration: none;
      transition: color .2s;
    }

    .foot-col ul li a:hover {
      color: rgba(200, 220, 255, .88);
    }

    .foot-btm {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: .77rem;
      color: rgba(200, 220, 255, .28);
      letter-spacing: .04em;
    }

    .reveal {
      opacity: 0;
      transform: translateY(22px);
      transition: opacity .7s ease, transform .7s ease;
    }

    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .toast {
      position: fixed;
      bottom: 90px;
      right: 24px;
      z-index: 995;
      background: var(--navy);
      color: white;
      padding: 14px 22px;
      border-radius: 12px;
      font-family: 'EB Garamond', serif;
      font-size: 1rem;
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
      border-left: 4px solid var(--teal);
      transform: translateX(calc(100% + 50px));
      transition: transform 0.4s ease;
      visibility: hidden;
    }

    .toast.show {
      transform: translateX(0);
      visibility: visible;
    }

    /* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
       NEW FEATURES STYLES
    â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

    /* Printable Prayer Cards */
    .btn-teal-outline {
      width: 100%;
      margin-top: 0.75rem;
    }

    /* QR Code Cards */
    .qr-card {
      text-align: center;
      transition: transform 0.3s;
    }
    .qr-card:hover {
      transform: translateY(-5px);
    }

    .btn-outline-light {
      background: rgba(255,255,255,0.1);
      border: 2px solid rgba(255,255,255,0.4);
      color: white;
      padding: 10px 24px;
      border-radius: 50px;
      font-family: 'Inter', sans-serif;
      font-size: 0.9rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s;
    }
    .btn-outline-light:hover {
      background: white;
      color: var(--navy);
    }

    /* Bible Maps Styles */
    .map-nav-btn {
      background: white;
      border: 2px solid var(--border);
      color: var(--text-dark);
      padding: 10px 20px;
      border-radius: 50px;
      font-family: 'Inter', sans-serif;
      font-size: 0.9rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s;
    }
    .map-nav-btn:hover, .map-nav-btn.active {
      background: var(--gold);
      border-color: var(--gold);
      color: white;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px var(--sh-gold);
    }

    #map-leaflet {
      width: 100%;
      height: 100%;
      background: #e8dbc0;
    }

    .map-integration-pill {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      margin-top: 0.65rem;
      padding: 0.25rem 0.55rem;
      border-radius: 999px;
      font-size: 0.72rem;
      border: 1px solid var(--border);
      background: #fff;
      color: var(--text-mid);
    }

    .route-control-row {
      margin-top: 0.55rem;
      display: flex;
      flex-wrap: wrap;
      gap: 0.45rem;
      align-items: center;
    }

    .route-profile-select {
      border: 1px solid var(--border);
      background: #fff;
      color: var(--text-mid);
      border-radius: 8px;
      font-size: 0.78rem;
      padding: 0.35rem 0.45rem;
    }

    .route-steps-box {
      margin-top: 0.75rem;
      border-top: 1px solid var(--border);
      padding-top: 0.65rem;
    }

    .route-steps-title {
      font-size: 0.78rem;
      color: var(--text-soft);
      margin-bottom: 0.35rem;
    }

    .route-steps-list {
      margin: 0;
      padding-left: 1rem;
      max-height: 130px;
      overflow: auto;
      display: grid;
      gap: 0.28rem;
    }

    .route-steps-list li {
      font-size: 0.78rem;
      color: var(--text-mid);
      line-height: 1.35;
    }

    #map-info-overlay {
      z-index: 850;
      width: min(360px, calc(100% - 40px));
      transition: opacity .2s ease, transform .2s ease;
    }
    #map-info-open-btn {
      position: absolute;
      top: 20px;
      left: 20px;
      z-index: 851;
      width: 36px;
      height: 36px;
      border-radius: 10px;
      border: none;
      background: rgba(255,255,255,0.95);
      box-shadow: 0 6px 18px rgba(0,0,0,0.18);
      display: none;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 16px;
    }
    #map-info-open-btn:hover {
      background: #fff;
      transform: translateY(-1px);
    }

    .leaflet-pane .custom-journey-marker {
      width: 18px;
      height: 18px;
      border-radius: 50%;
      border: 2px solid #f6f0e2;
      box-shadow: 0 0 0 2px rgba(47, 36, 24, 0.55);
      background: radial-gradient(circle at 35% 30%, #ffd6a0, #c65426 72%);
    }

    .leaflet-container {
      font-family: 'Inter', sans-serif;
    }
    .leaflet-control-attribution {
      font-size: 10px !important;
      background: rgba(255,255,255,0.72) !important;
      border-radius: 8px 0 0 0;
      padding: 2px 6px !important;
      color: #4b5563 !important;
    }

    /* Ensure canvas overlay renders properly at all zoom levels */
    .leaflet-overlay-pane canvas {
      image-rendering: -webkit-optimize-contrast;
      image-rendering: crisp-edges;
      will-change: transform;
    }
    
    .leaflet-overlay-pane svg path {
      vector-effect: non-scaling-stroke;
    }

    .nearby-drawer {
      position: absolute;
      top: 0;
      right: 0;
      width: min(420px, 88%);
      height: 100%;
      background: rgba(255, 255, 255, 0.98);
      box-shadow: -12px 0 30px rgba(0,0,0,0.16);
      z-index: 480;
      transform: translateX(105%);
      transition: transform .35s ease;
      display: flex;
      flex-direction: column;
      border-left: 1px solid var(--border);
    }

    .nearby-drawer.open {
      transform: translateX(0);
    }

    .nearby-drawer-header {
      padding: 1rem 1rem 0.75rem;
      border-bottom: 1px solid var(--border);
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 0.75rem;
    }

    .nearby-drawer-title {
      font-size: 1rem;
      color: var(--navy);
      font-weight: 700;
      margin: 0;
    }

    .nearby-drawer-close {
      border: none;
      background: #f3f4f6;
      color: var(--text-mid);
      width: 30px;
      height: 30px;
      border-radius: 8px;
      cursor: pointer;
      font-size: 1.05rem;
    }

    .nearby-drawer-content {
      padding: 0.9rem;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 0.6rem;
    }

    .nearby-search-input {
      width: 100%;
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 0.55rem 0.65rem;
      font-size: 0.85rem;
      color: var(--text-dark);
      outline: none;
    }

    .nearby-search-input:focus {
      border-color: var(--blue);
      box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
    }

    .nearby-suggestion {
      background: #f9fafb;
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 0.45rem 0.55rem;
      font-size: 0.8rem;
      color: var(--text-mid);
      cursor: pointer;
    }

    .nearby-place-card {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 0.65rem 0.75rem;
    }

    .nearby-place-name {
      font-size: 0.9rem;
      color: var(--navy);
      font-weight: 700;
      margin-bottom: 0.2rem;
    }

    .nearby-place-meta {
      font-size: 0.76rem;
      color: var(--text-soft);
      line-height: 1.45;
    }

    .story-card {
      background: white;
      padding: 2rem;
      border-radius: 15px;
      border: 1px solid var(--border);
      text-align: center;
      cursor: pointer;
      transition: all 0.3s;
    }
    .story-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 15px 40px rgba(0,0,0,0.1);
      border-color: var(--gold);
    }

    /* Timeline Styles */
    .timeline-event {
      position: relative;
      padding: 1.5rem 2rem;
      margin-bottom: 2rem;
      background: white;
      border-radius: 12px;
      border: 1px solid var(--border);
      margin-left: 50%;
      width: calc(50% - 30px);
      box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }
    .timeline-event:nth-child(even) {
      margin-left: 0;
      margin-right: 50%;
      width: calc(50% - 30px);
    }
    .timeline-event::before {
      content: '';
      position: absolute;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: var(--gold);
      border: 4px solid white;
      box-shadow: 0 0 0 2px var(--gold);
      left: -40px;
      top: 24px;
    }
    .timeline-event:nth-child(even)::before {
      left: auto;
      right: -40px;
    }

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

    @media(max-width:900px) {
      nav {
        padding: 0 1.5rem;
      }

      section {
        padding: 4rem 1.5rem;
      }

      .hero-content {
        padding: 0 1.5rem;
      }

      /* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
         SERMONS/VIDEOS - MOBILE RESPONSIVE IMPROVEMENTS
         â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

      .sermons {
        padding-bottom: 80px !important;
      }

      .serm-inner {
        padding: 0 1rem;
      }

      .serm-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 2rem;
      }

      /* Change grid to flex for better mobile control */
      .serm-grid {
        display: flex !important;
        flex-direction: column;
        gap: 0;
        grid-template-columns: none !important;
      }

      /* All video cards - uniform spacing and width */
      .serm-feat,
      .serm-card,
      .serm-shorts {
        width: 100% !important;
        margin: 0 0 30px 0 !important;
        grid-column: auto !important;
        grid-row: auto !important;
      }

      /* Featured card adjustments */
      .serm-feat {
        min-height: 320px;
        border-radius: 16px;
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
      }

      /* FIX #2: Apply same rigid aspect ratio fix to featured card */
      .serm-feat-thumb {
        border-radius: 16px;
        position: absolute !important;
        inset: 0 !important;
        overflow: hidden !important;
        aspect-ratio: 16 / 9 !important;
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
      }

      /* FIX #2: Ensure featured thumbnail fills completely */
      .serm-feat-thumb img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        min-width: 100% !important;
        min-height: 100% !important;
        max-width: none !important;
        max-height: none !important;
      }

      /* Ensure overlay and content are also full width */
      .serm-feat-overlay {
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
      }

      .serm-feat-content {
        padding: 1.3rem 1.5rem 1.3rem;
        width: 100% !important;
        max-width: 100% !important;
      }

      .serm-glow {
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
      }

      .serm-feat .serm-title {
        font-size: 1.1rem !important;
        line-height: 1.35;
        margin-bottom: 0.5rem;
      }

      .serm-feat .serm-meta {
        font-size: 0.8rem !important;
      }

      /* Standard video cards */
      .serm-card {
        border-radius: 14px;
      }

      /* FIX #2: Force rigid 16:9 aspect ratio on thumbnail container to eliminate black bars */
      .serm-card-thumb {
        width: 100% !important;
        aspect-ratio: 16 / 9 !important; /* Rigid aspect ratio */
        overflow: hidden !important;
        position: relative !important;
        background: #000 !important; /* Fallback color */
        height: auto !important; /* Remove any fixed heights */
      }

      /* FIX #2: Ensure image fills container completely with no black space */
      .serm-card-thumb img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important; /* Fill container, crop if needed */
        object-position: center !important; /* Center the image */
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        min-width: 100% !important;
        min-height: 100% !important;
      }

      .serm-card-body {
        padding: 1rem 1.2rem 1.2rem;
      }

      .serm-card .serm-title {
        font-size: 0.95rem !important;
        line-height: 1.4;
        margin-bottom: 0.4rem;
      }

      .serm-card .serm-meta {
        font-size: 0.78rem !important;
      }

      /* Shorts card adjustments */
      .serm-shorts {
        flex-direction: row;
        align-items: stretch;
        min-height: 160px;
      }

      /* FIX #2: Apply rigid 9:16 aspect ratio for shorts (vertical video) */
      .serm-shorts-thumb {
        width: 45% !important;
        max-height: none !important;
        aspect-ratio: 9 / 16 !important;
        flex-shrink: 0 !important;
        overflow: hidden !important;
        position: relative !important;
      }

      /* FIX #2: Ensure shorts thumbnail fills completely with no black bars */
      .serm-shorts-thumb img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        min-width: 100% !important;
        min-height: 100% !important;
      }

      .serm-shorts-info {
        width: 55%;
        padding: 1rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
      }

      .serm-shorts .serm-title {
        font-size: 0.88rem !important;
        line-height: 1.35;
      }

      .serm-shorts .serm-meta {
        font-size: 0.7rem !important;
      }

      /* Badges - better padding */
      .stag {
        padding: 5px 12px !important;
        font-size: 0.7rem !important;
        margin-bottom: 0.6rem;
      }

      .stag-gold {
        padding: 6px 14px !important;
      }

      .shorts-badge {
        padding: 4px 10px !important;
        font-size: 0.65rem !important;
      }

      /* Play buttons */
      .play-btn {
        padding: 8px 18px !important;
        font-size: 0.85rem !important;
      }

      .play-sm {
        padding: 7px 16px !important;
        font-size: 0.8rem !important;
      }

      .serm-grid,
      .dev-inner,
      .contact-inner {
        grid-template-columns: 1fr;
      }

      .ev-top-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
      }

      .ev-events-list {
        grid-template-columns: 1fr;
      }

      .ev-calendar-wrap {
        padding: 18px 15px;
      }

      .prayer-sidebar {
        position: relative;
        top: 0;
      }

      #mini-calendar {
        padding: 0 !important;
      }
      
      #mini-calendar .fc-toolbar {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 1rem !important;
      }
      
      #mini-calendar .fc-toolbar-title {
        font-size: 1.15rem !important;
      }

      .foot-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
      }

      .foot-btm {
        flex-direction: column;
        gap: .5rem;
        text-align: center;
      }

      .donate {
        padding: 4rem 1.5rem;
      }
      .bible-maps {
        padding: 4rem 1rem !important;
      }
      .bible-maps > div,
      .map-main-container,
      .map-right-main,
      .map-left-sidebar,
      #map-leaflet,
      #map-info-overlay {
        max-width: 100% !important;
      }
      #map-info-overlay {
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
      }
      .hero-content,
      .ev-inner {
        max-width: 100% !important;
      }
      html, body {
        width: 100%;
        overflow-x: hidden;
      }

      .wa-float {
        bottom: 20px;
        left: 16px;
      }

      /* Verse Generator - Make Fully Responsive */
      .verse-generator,
      #verse-generator {
        padding: 3.5rem 1.5rem !important;
      }

      #verse-generator > div {
        max-width: 100% !important;
      }

      /* Header text adjustments */
      #verse-generator .sec-title {
        font-size: clamp(1.5rem, 5vw, 1.8rem) !important;
      }

      #verse-generator .sec-sub {
        font-size: 0.9rem !important;
      }

      /* Force single column layout on mobile */
      #verse-generator > div > div:nth-child(2) {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
        grid-template-columns: 1fr !important;
      }

      /* Generator form adjustments */
      #verse-generator > div > div:nth-child(2) > div:first-child {
        padding: 1.5rem !important;
        border-radius: 16px !important;
      }

      #verse-generator h3 {
        font-size: 1.1rem !important;
        margin-bottom: 1.2rem !important;
      }

      /* Preview canvas container */
      #verse-generator > div > div:nth-child(2) > div:last-child {
        position: static !important;
        top: auto !important;
        order: 2;
        margin-top: 1rem;
      }

      #verse-canvas {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        border-radius: 12px !important;
      }

      /* Form inputs */
      #verse-generator select,
      #verse-generator input[type="text"],
      #verse-generator button {
        font-size: 0.9rem !important;
        padding: 10px !important;
      }

      #verse-generator label {
        font-size: 0.85rem !important;
      }

      /* AI Theme button - Full width on mobile */
      #verse-generator button[onclick="generateAITheme()"] {
        width: 100%;
        margin-top: 0.5rem;
      }

      #verse-generator > div > div:nth-child(2) > div:first-child > div:nth-child(10) {
        flex-direction: column !important;
      }

      #verse-generator > div > div:nth-child(2) > div:first-child > div:nth-child(10) select {
        width: 100% !important;
      }

      /* Verse display text sizing */
      #verse-display p,
      #verse-loading p {
        font-size: 0.88rem !important;
      }

      .timeline-event, .timeline-event:nth-child(even) {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        padding-left: 2.5rem;
      }

      .timeline-event::before, .timeline-event:nth-child(even)::before {
        left: 0 !important;
        right: auto !important;
      }

      .map-nav-btn {
        font-size: 0.8rem;
        padding: 8px 14px;
      }

      #map-info-overlay {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        max-width: 100% !important;
        margin-top: 1rem;
      }

      .nearby-drawer {
        width: 100%;
      }
    }

    /* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
       ENHANCED MOBILE RESPONSIVE STYLES
       â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

    /* â”€â”€â”€ TABLET & SMALL DESKTOP (max-width: 1024px) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
    @media (max-width: 1024px) {
      nav {
        padding: 0 2rem;
      }

      .nav-links {
        gap: 1.2rem;
      }

      .nav-links a {
        font-size: 0.85rem;
      }

      .min-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
      }

      section {
        padding: 4.5rem 2rem;
      }

      .hero-content {
        padding: 0 2rem;
      }
    }

    /* â”€â”€â”€ MOBILE (max-width: 768px) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
    @media (max-width: 992px) {
      /* Reset body and html to prevent horizontal scroll */
      html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        position: relative;
      }

      /* NAVIGATION */
      nav {
        padding: 0 1rem;
        height: 60px;
      }

      .nav-icon {
        width: 40px;
        height: 40px;
      }

      .nav-name {
        font-size: 0.9rem;
      }

      .nav-tag {
        font-size: 0.55rem;
      }

      .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1.5rem 1rem;
        gap: 0;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
        border-top: 1px solid var(--border);
        z-index: 899;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
      }

      .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
      }

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

      .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--border);
      }

      .nav-links li:last-child {
        border-bottom: none;
      }

      .nav-links a {
        display: block;
        padding: 0.9rem 1rem;
        font-size: 1rem;
        color: var(--navy);
        transition: background 0.2s;
      }

      .nav-links a:hover {
        background: var(--off-white);
      }

      .nav-phone {
        width: auto !important;
        height: auto !important;
        border-radius: 8px !important;
        padding: 0.9rem 1rem !important;
        justify-content: flex-start !important;
        gap: 10px;
      }

      .nav-phone .phone-icon {
        font-size: 1.2rem;
      }

      .nav-phone-text {
        display: inline;
      }

      .nav-give,
      .nav-shop {
        border-radius: 8px !important;
        padding: 0.9rem 1rem !important;
        text-align: center;
        justify-content: center;
      }

      .nav-links li:has(.nav-shop) {
        margin-top: 0.5rem;
        border-bottom: none;
        padding-top: 0.25rem;
      }

      .nav-shop.shop-books-btn {
        font-size: 1.05rem !important;
        box-shadow: 0 6px 18px rgba(255, 159, 28, 0.35);
      }

      .hamburger {
        display: flex;
      }

      /* HERO SECTION */
      /* FIX #1: Increase hero height and reduce title size to show more of background image */
      .hero {
        min-height: 80vh !important; /* Increased from 85vh to show more image */
      }

      .hero-content {
        padding: 0 1.5rem;
        margin-top: 60px;
        max-width: 100%;
      }

      .hero-pill {
        font-size: 0.65rem;
        padding: 5px 12px;
        gap: 6px;
      }

      .hero-title {
        /* FIX #1: Significantly reduced font size to prevent text from covering hero image */
        font-size: clamp(1.3rem, 5.5vw, 1.9rem) !important; /* Reduced from clamp(1.6rem, 7vw, 2.5rem) */
        line-height: 1.25 !important;
        margin-bottom: 0.9rem;
        padding-right: 10px;
      }

      .hero-verse {
        font-size: 1.05rem;
        line-height: 1.6;
        margin-bottom: 0.3rem;
      }

      .hero-ref {
        font-size: 0.75rem;
        margin-bottom: 2rem;
      }

      .hero-btns {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
      }

      .btn-hero-primary,
      .btn-hero-teal {
        width: 100%;
        justify-content: center;
        padding: 11px 22px;
        font-size: 0.92rem;
      }

      .hero-cross {
        right: 2%;
        opacity: 0.04;
        max-width: 38vw;
      }

      .hero-cross svg {
        width: 100%;
        height: auto;
        max-width: min(220px, 38vw);
      }

      /* TICKER */
      .ticker {
        padding: 0.6rem 0;
      }

      .ticker-item {
        font-size: 0.9rem;
      }

      /* SECTIONS */
      section {
        padding: 3.5rem 1.5rem;
      }

      .sec-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
      }

      .sec-sub {
        font-size: 0.95rem;
        max-width: 100%;
      }

      /* MINISTRIES */
      .min-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
      }

      .min-card {
        padding: 1.5rem 1.3rem;
      }

      .min-icon {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
      }

      .min-name {
        font-size: 0.95rem;
      }

      .min-desc {
        font-size: 0.85rem;
      }

      .min-stats {
        flex-direction: row;
        gap: 0.8rem;
      }

      /* FLOATING ACTION BUTTONS - ORIGINAL MOBILE POSITIONS */
      .wa-float {
        bottom: 20px;
        left: 14px;
        right: auto;
        z-index: 980;
      }

      .wa-btn {
        width: 54px;
        height: 54px;
      }

      .wa-logo {
        width: 30px;
        height: 30px;
      }

      .wa-float::before {
        width: 54px;
        height: 54px;
      }

      /* Bible Quiz Button - Stacked above WhatsApp */
      #bible-quiz-btn {
        bottom: 88px;
        left: 14px;
        right: auto;
        width: 54px;
        height: 54px;
        font-size: 24px;
        z-index: 979;
      }

      /* Bible Chat Button - Right side, stacked if needed */
      #bible-chat-btn {
        bottom: 20px;
        right: 14px;
        width: 54px;
        height: 54px;
      }

      /* Bible Chat Panel */
/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
         BIBLE STUDY ASSISTANT - MOBILE FULL-SCREEN MODE
         â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
      
      #bible-chat-panel { 
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        z-index: 9999 !important;
      }

      #bible-chat-panel.expanded {
        width: 100vw !important;
        height: 100vh !important;
        top: 0 !important;
        left: 0 !important;
      }

      /* Input area - sticky at bottom */
      .bible-input-area {
        position: sticky;
        bottom: 0;
        z-index: 10;
        background: white;
        padding: 12px 16px 16px !important;
        box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
      }

      /* Chat messages area */
      .bible-chat-messages {
        padding: 16px 12px 80px !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
      }

      /* Header adjustments */
      .bible-chat-header {
        padding: 14px 16px !important;
        position: sticky;
        top: 0;
        z-index: 11;
      }

      /* Close button more prominent on mobile */
      .bible-close-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 22px !important;
        border-radius: 8px !important;
        background: rgba(255,255,255,0.2) !important;
      }

      .bible-close-btn:hover {
        background: rgba(255,255,255,0.3) !important;
      }

      /* Suggestion chips - larger touch targets */
      .floating-chips-container {
        gap: 10px !important;
        margin-left: 0 !important;
        padding: 0 12px;
        max-width: 100% !important;
      }

      .chip-pill {
        padding: 12px 16px !important;
        font-size: 14px !important;
        min-height: 44px !important;
        border-radius: 24px !important;
        text-align: center;
        justify-content: center;
      }

      /* Input box adjustments */
      .bible-input-box {
        padding: 10px 14px !important;
      }

      .bible-input-box textarea {
        font-size: 15px !important;
        min-height: 32px !important;
      }

      .bible-send-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
      }

      /* Message bubbles */
      .bible-bubble {
        max-width: 85% !important;
        font-size: 15px !important;
        padding: 12px 16px !important;
      }

      /* Tool buttons */
      .bible-tool-btn {
        min-height: 36px !important;
        padding: 0 12px !important;
        font-size: 14px !important;
      }

      /* Hide floating buttons when chat is open */
      body.bible-chat-active .wa-float,
      body.bible-chat-active #bible-quiz-btn,
      body.bible-chat-active #bible-chat-btn {
        display: none !important;
      }

      /* Expand button - hide on mobile (always full screen) */
      #bible-expand-btn {
        display: none !important;
      }

      /* Language toggle */
      .bible-lang-toggle button {
        min-height: 32px !important;
        padding: 6px 10px !important;
      }

      /* FORMS - Ensure 100% width on mobile */
      input[type="text"],
      input[type="email"],
      input[type="tel"],
      input[type="number"],
      input[type="date"],
      input[type="password"],
      select,
      textarea {
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
        font-size: 16px !important; /* Prevents zoom on iOS */
      }

      .join-form-grid input,
      .join-form-grid textarea,
      .join-form-grid select {
        width: 100%;
        font-size: 16px;
      }

      /* Donation amounts */
      .amt-row {
        gap: 0.5rem;
      }

      .amt-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
      }

      /* FOOTER */
      .foot-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
      }

      .foot-btm {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
      }

      /* Extra padding at bottom for floating button clearance */
      footer {
        padding-bottom: 100px !important;
      }
    }

    /* â”€â”€â”€ SMALL MOBILE (max-width: 480px) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
    @media (max-width: 480px) {
      nav {
        padding: 0 0.8rem;
      }

      .nav-icon {
        width: 36px;
        height: 36px;
      }

      .nav-name {
        font-size: 0.8rem;
      }

      .nav-tag {
        display: none;
      }

      .hero-content {
        padding: 0 1rem;
      }

      .hero-title {
        font-size: clamp(1.4rem, 8vw, 2rem);
        padding-right: 0;
      }

      .hero-verse {
        font-size: 0.95rem;
      }

      .btn-hero-primary,
      .btn-hero-teal {
        padding: 10px 20px;
        font-size: 0.9rem;
      }

      section {
        padding: 3rem 1rem;
      }

      .sec-title {
        font-size: clamp(1.3rem, 7vw, 1.8rem);
      }

      .min-card {
        padding: 1.3rem 1rem;
      }

      .wa-float {
        bottom: 16px;
        left: 10px;
        right: auto;
      }

      .wa-btn {
        width: 50px;
        height: 50px;
      }

      .wa-logo {
        width: 28px;
        height: 28px;
      }

      .wa-float::before {
        width: 50px;
        height: 50px;
      }

      #bible-quiz-btn {
        bottom: 78px;
        left: 10px;
        right: auto;
        width: 50px;
        height: 50px;
        font-size: 22px;
      }

      #bible-chat-btn {
        bottom: 16px;
        right: 10px;
        width: 50px;
        height: 50px;
      }

      .amt-btn {
        padding: 7px 14px;
        font-size: 0.75rem;
      }

      /* Verse Generator - Further optimization for small screens */
      .verse-generator,
      #verse-generator {
        padding: 3rem 1rem !important;
      }

      #verse-generator > div > div:nth-child(2) > div:first-child {
        padding: 1.2rem !important;
      }

      #verse-generator h3 {
        font-size: 1rem !important;
      }

      #verse-generator select,
      #verse-generator input[type="text"] {
        font-size: 0.85rem !important;
        padding: 9px !important;
      }

      #verse-generator button {
        font-size: 0.85rem !important;
        padding: 9px 12px !important;
      }

      #verse-generator label {
        font-size: 0.8rem !important;
      }

      /* Verse display and loading boxes */
      #verse-display,
      #verse-loading,
      #ai-theme-loading {
        padding: 0.8rem !important;
        font-size: 0.85rem !important;
      }

      #verse-display p {
        font-size: 0.85rem !important;
      }

      /* Sermons - refined card margins */
      .serm-card:last-of-type {
        margin-bottom: 15px !important;
      }

      .serm-shorts {
        margin-bottom: 20px !important;
      }

      /* CRITICAL FIX: Force featured video card thumbnail to full width */
      .serm-feat {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
      }

      .serm-feat-thumb {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        inset: 0 !important;
      }

      .serm-feat-thumb img {
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        min-width: 100% !important;
        min-height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
      }

      .serm-feat-overlay,
      .serm-feat-content,
      .serm-glow {
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
      }
    }

    /* â”€â”€â”€ LANDSCAPE MOBILE (max-height: 500px) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
    @media (max-height: 500px) and (orientation: landscape) {
      .hero {
        min-height: 120vh;
      }

      .hero-content {
        margin-top: 80px;
      }

      nav {
        height: 55px;
      }
    }

    /* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
       END ENHANCED RESPONSIVE STYLES
       â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
  

/* 
   BIBLE CHAT PANEL - COMPLETE STYLES
    */

#bible-chat-panel.expanded {
  width: min(920px, calc(100vw - 40px));
  height: min(550px, calc(100vh - 40px));
  bottom: 20px;
  right: 20px;
}

.bible-chat-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: white;
}

.bible-chat-header {
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.bible-header-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.bible-header-title {
  font-family: 'Playfair Display', serif;
  color: white;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.bible-header-sub {
  color: rgba(255, 255, 255, 0.8);
  font-size: 11.5px;
  margin-top: 2px;
  font-style: italic;
}

.bible-lang-toggle {
  margin-left: auto;
  display: flex;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
  flex-shrink: 0;
}

.bible-lang-btn {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-family: 'EB Garamond', serif;
  padding: 4px 10px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.bible-lang-btn.active {
  background: white;
  color: var(--blue);
  font-weight: 600;
}

.bible-close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.bible-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.bible-header-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.bible-header-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.bible-suggestions {
  background: var(--sky-pale);
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.bible-suggestion-btn {
  background: white;
  border: 1px solid var(--blue-light);
  border-radius: 20px;
  padding: 4px 11px;
  font-family: 'EB Garamond', serif;
  font-size: 12.5px;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.bible-suggestion-btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

.bible-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--off-white);
  scrollbar-width: thin;
  scrollbar-color: var(--blue-light) transparent;
}

.bible-messages::-webkit-scrollbar {
  width: 3px;
}

.bible-messages::-webkit-scrollbar-thumb {
  background: var(--blue-light);
  border-radius: 4px;
}

.bible-message-row {
  display: flex;
  gap: 10px;
  animation: fadeUp 0.3s ease forwards;
}

.bible-message-row.user {
  flex-direction: row-reverse;
}

.bible-msg-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.bible-msg-avatar.bot {
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  color: white;
  box-shadow: 0 2px 8px var(--sh-blue);
}

.bible-msg-avatar.user-av {
  background: var(--teal);
  color: white;
  font-family: 'EB Garamond', serif;
  font-weight: 600;
  font-size: 11px;
}

.bible-bubble {
  max-width: 80%;
  padding: 11px 15px;
  font-size: 14.5px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.bible-bubble.bot {
  background: white;
  border: 1px solid var(--border);
  border-radius: 4px 16px 16px 16px;
  color: var(--text-dark);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.bible-bubble.user {
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  border-radius: 16px 4px 16px 16px;
  color: white;
  box-shadow: 0 4px 14px var(--sh-blue);
}

.bible-bubble.tamil {
  font-family: 'Latha', 'Noto Sans Tamil', sans-serif;
  font-size: 15px;
}

.bible-bubble.bot strong {
  color: var(--blue);
  font-weight: 700;
}

.bible-inline-gif {
  display: block;
  width: 100%;
  max-width: 230px;
  max-height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin: 8px 0 4px;
  border: 1px solid var(--border);
  background: var(--off-white);
  cursor: pointer;
}

.bible-inline-link {
  color: var(--blue);
  text-decoration: underline;
  word-break: break-all;
}

.bible-bubble.user .bible-inline-link {
  color: rgba(255, 255, 255, 0.95);
}

.floating-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  margin-left: 40px;
  max-width: 80%;
  animation: fadeUp 0.4s ease forwards;
}

.chip-pill {
  background: white;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  border-radius: 20px;
  padding: 7px 15px;
  font-size: 13px;
  font-family: 'EB Garamond', serif;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(99, 102, 241, 0.1);
  white-space: normal;
  text-align: left;
  line-height: 1.4;
  min-height: 38px;
  display: flex;
  align-items: center;
}

.chip-pill:hover {
  background: var(--blue);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.chip-pill:active {
  transform: translateY(0);
}

.chip-pill::before {
  content: " ";
  opacity: 0.6;
}

.bible-typing-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.bible-typing-bubble {
  background: white;
  border: 1px solid var(--border);
  border-radius: 4px 16px 16px 16px;
  padding: 12px 16px;
  display: flex;
  gap: 5px;
  align-items: center;
}

.bible-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: bounce 1.2s infinite;
  opacity: 0.6;
}

.bible-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.bible-dot:nth-child(3) {
  animation-delay: 0.4s;
}

.bible-input-area {
  padding: 12px 14px 14px;
  background: white;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.bible-input-hint {
  text-align: center;
  font-style: italic;
  color: var(--text-soft);
  font-size: 11.5px;
  margin-bottom: 8px;
}

.bible-input-box {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 9px 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.bible-input-box:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--sh-blue);
}

.bible-input-box textarea {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-dark);
  font-size: 14.5px;
  line-height: 1.6;
  font-family: 'EB Garamond', Georgia, serif;
  resize: none;
  min-height: 26px;
  max-height: 100px;
  caret-color: var(--blue);
}

.bible-input-box textarea::placeholder {
  color: var(--text-soft);
  font-style: italic;
}

.bible-input-preview {
  display: none;
  margin-top: 8px;
  gap: 6px;
  flex-wrap: wrap;
}

.bible-input-preview.has-items {
  display: flex;
}

.bible-preview-card {
  border: 1px solid var(--border);
  background: white;
  border-radius: 9px;
  padding: 4px;
  width: 70px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bible-preview-thumb {
  width: 100%;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--off-white);
}

.bible-preview-label {
  font-size: 10px;
  color: var(--text-mid);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.bible-send-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: none;
  background: rgba(99, 102, 241, 0.15);
  color: rgba(99, 102, 241, 0.5);
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.bible-send-btn.active {
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 12px var(--sh-blue);
}

.bible-key-hint {
  text-align: center;
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 10.5px;
  font-style: italic;
}

.bible-input-tools {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  gap: 8px;
}

.bible-tools-left {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.bible-tool-btn {
  border: 1px solid var(--border);
  background: white;
  color: var(--text-mid);
  border-radius: 8px;
  height: 30px;
  min-width: 30px;
  padding: 0 10px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.bible-tool-btn:hover {
  border-color: var(--blue-light);
  color: var(--blue);
  background: var(--sky-pale);
}

.bible-tool-btn.active {
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 0 0 2px var(--sh-blue);
}

.bible-tool-label {
  font-size: 11px;
  font-family: 'EB Garamond', serif;
  letter-spacing: 0.02em;
}

.bible-popover {
  position: absolute;
  left: 0;
  bottom: 42px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  z-index: 3;
  min-width: 230px;
  display: none;
}

.bible-popover.open {
  display: block;
}

.bible-emoji-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.bible-emoji-btn {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 8px;
  height: 30px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s;
}

.bible-emoji-btn:hover {
  background: var(--sky-pale);
  border-color: var(--blue-light);
}

.bible-gif-popover {
  min-width: 300px;
  max-width: 340px;
}

.bible-gif-search-row {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.bible-gif-search-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12.5px;
  font-family: 'EB Garamond', serif;
  color: var(--text-dark);
  outline: none;
}

.bible-gif-search-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px var(--sh-blue);
}

.bible-gif-search-btn {
  border: 1px solid var(--blue-light);
  background: var(--sky-pale);
  color: var(--blue);
  border-radius: 8px;
  padding: 0 10px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.bible-gif-search-btn:hover {
  border-color: var(--blue);
  background: rgba(99, 102, 241, 0.1);
}

.bible-gif-status {
  font-size: 11px;
  color: var(--text-soft);
  margin-bottom: 8px;
  min-height: 14px;
}

.bible-gif-status.error {
  color: #b91c1c;
}

.bible-gif-results {
  max-height: 220px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-right: 2px;
}

.bible-gif-results::-webkit-scrollbar {
  width: 4px;
}

.bible-gif-results::-webkit-scrollbar-thumb {
  background: var(--blue-light);
  border-radius: 4px;
}

.bible-gif-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
  padding: 5px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bible-gif-card:hover {
  border-color: var(--blue-light);
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(99, 102, 241, 0.15);
}

.bible-gif-thumb {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--off-white);
}

.bible-gif-fallback-thumb {
  width: 100%;
  height: 80px;
  border-radius: 8px;
  background: linear-gradient(135deg, #eef2ff, #e0f2fe);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 20px;
}

.bible-gif-caption {
  font-size: 11px;
  color: var(--text-mid);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  padding: 0 2px 1px;
}

body.bible-chat-active #bible-quiz-btn,
body.bible-chat-active #bible-chat-btn {
  transform: translateY(0) !important;
}

/* ============================================
   Bible Verse Image Generator - Dropdown Styles
   ============================================ */

/* Base styling for all verse generator select dropdowns */
#verse-language,
#verse-book,
#verse-chapter,
#verse-number,
#verse-theme,
#verse-font {
  width: 100%;
  padding: 12px 40px 12px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  background-position: right center;
  background-repeat: no-repeat;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231e3a8a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-size: 20px 20px;
}

/* Hover state */
#verse-language:hover,
#verse-book:hover,
#verse-chapter:hover,
#verse-number:hover,
#verse-theme:hover,
#verse-font:hover {
  border-color: var(--blue);
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* Focus state */
#verse-language:focus,
#verse-book:focus,
#verse-chapter:focus,
#verse-number:focus,
#verse-theme:focus,
#verse-font:focus {
  outline: none;
  border-color: var(--blue);
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1),
              0 4px 16px rgba(59, 130, 246, 0.2);
}

/* Disabled state */
#verse-language:disabled,
#verse-book:disabled,
#verse-chapter:disabled,
#verse-number:disabled,
#verse-theme:disabled,
#verse-font:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

/* OptGroup styling for verse-book and verse-font */
#verse-book optgroup,
#verse-font optgroup {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  padding: 8px 12px;
  border-top: 1px solid rgba(59, 130, 246, 0.2);
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

#verse-book optgroup:first-child,
#verse-font optgroup:first-child {
  border-top: none;
}

/* Option styling */
#verse-book option,
#verse-font option,
#verse-language option,
#verse-chapter option,
#verse-number option,
#verse-theme option {
  padding: 10px;
  background: white;
  color: var(--text-dark);
  font-weight: 500;
}

/* Special styling for verse-theme to show color themes */
#verse-theme {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2306b6d4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
}

#verse-theme:hover {
  background: linear-gradient(135deg, #ccfbf1 0%, #99f6e4 100%);
  border-color: var(--teal);
}

#verse-theme:focus {
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1),
              0 4px 16px rgba(6, 182, 212, 0.2);
  border-color: var(--teal);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #verse-generator {
    scroll-margin-top: 96px;
    padding-top: 4.25rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  #verse-generator > div {
    max-width: 100% !important;
    width: 100% !important;
  }

  #verse-generator .verse-generator-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    grid-template-columns: 1fr !important;
  }

  #verse-generator .verse-generator-form,
  #verse-generator .verse-generator-preview {
    width: 100% !important;
    min-width: 0 !important;
  }

  #verse-generator .verse-generator-preview {
    position: static !important;
    top: auto !important;
    margin-top: 0.5rem !important;
  }

  #verse-generator .theme-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
  }

  #verse-generator .template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #verse-generator .bg-options-grid,
  #verse-generator .gradient-colors-grid,
  #verse-generator .export-primary-grid,
  #verse-generator .export-secondary-grid,
  #verse-generator .share-grid {
    grid-template-columns: 1fr !important;
  }

  #verse-generator .sticker-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  #verse-generator .sticker-action-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  #verse-generator #verse-canvas {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  #verse-language,
  #verse-book,
  #verse-chapter,
  #verse-number,
  #verse-theme,
  #verse-font {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 14px 40px 14px 14px;
  }
}

@media (max-width: 480px) {
  #verse-generator {
    padding-top: 4rem !important;
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
  }

  #verse-generator .template-grid,
  #verse-generator .pattern-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #verse-generator .sticker-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* Firefox-specific fix for dropdown arrow */
@-moz-document url-prefix() {
  #verse-language,
  #verse-book,
  #verse-chapter,
  #verse-number,
  #verse-theme,
  #verse-font {
    padding-right: 40px;
  }
}
