/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --hh-bg: #FDFBF7;
  --hh-card-bg: #FFFFFF;
  --hh-primary: #1E293B;
  --hh-primary-light: #334155;
  --hh-accent: #C27B66;
  --hh-accent-hover: #A66350;
  --hh-accent-soft: #F9EFEA;
  --hh-sage: #5B7065;
  --hh-sage-soft: #EEF3F0;
  --hh-text: #2D3748;
  --hh-text-muted: #64748B;
  --hh-border: #EAE5DC;
  --hh-font-serif: 'Playfair Display', Georgia, serif;
  --hh-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --hh-shadow-sm: 0 2px 8px rgba(30, 41, 59, 0.04);
  --hh-shadow-md: 0 8px 24px rgba(30, 41, 59, 0.07);
  --hh-shadow-lg: 0 16px 36px rgba(30, 41, 59, 0.1);
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  font-family: var(--hh-font-sans);
  background-color: var(--hh-bg);
  color: var(--hh-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

#form1, main#main {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

img, video, iframe, svg {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, .font-serif {
  font-family: var(--hh-font-serif);
  font-weight: 600;
  color: var(--hh-primary);
  line-height: 1.3;
}

a {
  color: var(--hh-accent);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--hh-accent-hover);
}

/* Announcement Top Bar */
.announcement-bar {
  background-color: var(--hh-primary);
  color: #F8F5F0;
  font-size: 0.85rem;
  padding: 8px 0;
  letter-spacing: 0.3px;
}

.announcement-bar a {
  color: #E8A598;
  text-decoration: underline;
  font-weight: 600;
}

/* Navbar */
.hh-navbar {
  background-color: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hh-border);
  padding: 16px 0;
  transition: all 0.3s ease;
}

.hh-logo {
  font-family: var(--hh-font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--hh-primary);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hh-logo .heart-symbol {
  color: var(--hh-accent);
  font-size: 1.3rem;
}

.navbar-nav .nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--hh-text);
  padding: 8px 16px;
  transition: color 0.2s;
}

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

/* Buttons */
.btn-hh-accent {
  background-color: var(--hh-accent);
  border-color: var(--hh-accent);
  color: #FFFFFF;
  padding: 10px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(194, 123, 102, 0.25);
  transition: all 0.2s;
}

.btn-hh-accent:hover {
  background-color: var(--hh-accent-hover);
  border-color: var(--hh-accent-hover);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(194, 123, 102, 0.35);
}

.btn-hh-outline {
  border: 2px solid var(--hh-primary);
  color: var(--hh-primary);
  padding: 9px 22px;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.2s;
  background: transparent;
}

.btn-hh-outline:hover {
  background-color: var(--hh-primary);
  color: #FFFFFF;
}

.btn-hh-sage {
  background-color: var(--hh-sage);
  border-color: var(--hh-sage);
  color: #FFFFFF;
  padding: 10px 24px;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.2s;
}

.btn-hh-sage:hover {
  background-color: #4A5B52;
  color: #FFFFFF;
}

/* Hero Section */
.hero-section {
  padding: 90px 0 70px 0;
  position: relative;
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--hh-accent-soft);
  color: var(--hh-accent);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(194, 123, 102, 0.2);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--hh-primary);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--hh-text-muted);
  max-width: 600px;
  margin-bottom: 36px;
  line-height: 1.7;
}

/* Daily Reflection Widget */
.reflection-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  border: 1px solid var(--hh-border);
  padding: 36px;
  box-shadow: var(--hh-shadow-md);
  position: relative;
  overflow: hidden;
}

.reflection-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--hh-accent), var(--hh-sage));
}

.reflection-verse {
  font-family: var(--hh-font-serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--hh-primary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.reflection-reference {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--hh-accent);
  margin-bottom: 20px;
  display: block;
}

/* Audio Player */
.audio-player-pill {
  background-color: var(--hh-sage-soft);
  border: 1px solid rgba(91, 112, 101, 0.2);
  border-radius: 50px;
  padding: 8px 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.audio-play-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--hh-sage);
  color: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.audio-play-btn:hover {
  transform: scale(1.05);
}

/* Cards */
.hh-card {
  background-color: var(--hh-card-bg);
  border: 1px solid var(--hh-border);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.hh-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hh-shadow-lg);
}

.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.card-img-wrap {
  position: relative;
  overflow: hidden;
  padding-top: 60%;
  background-color: #F1EFEA;
}

.card-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.resource-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--hh-primary);
}

.resource-format {
  font-size: 0.82rem;
  color: var(--hh-text-muted);
}

/* Prayer Wall Cards */
.prayer-card {
  background: #FFFFFF;
  border: 1px solid var(--hh-border);
  border-radius: 10px;
  padding: 24px;
  position: relative;
  transition: box-shadow 0.2s ease;
}

.prayer-card:hover {
  box-shadow: var(--hh-shadow-md);
}

.prayer-count-btn {
  background-color: var(--hh-accent-soft);
  color: var(--hh-accent);
  border: 1px solid rgba(194, 123, 102, 0.3);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.prayer-count-btn:hover, .prayer-count-btn.prayed {
  background-color: var(--hh-accent);
  color: #FFFFFF;
}

/* Footer */
.hh-footer {
  background-color: var(--hh-primary);
  color: #CBD5E1;
  padding: 80px 0 30px 0;
  font-size: 0.95rem;
}

.hh-footer h5 {
  color: #FFFFFF;
  font-family: var(--hh-font-serif);
  font-size: 1.15rem;
  margin-bottom: 20px;
}

.hh-footer a {
  color: #94A3B8;
  transition: color 0.2s;
}

.hh-footer a:hover {
  color: #FFFFFF;
}

.hh-footer-bottom {
  border-top: 1px solid #334155;
  margin-top: 60px;
  padding-top: 24px;
  font-size: 0.85rem;
  color: #64748B;
}

/* Dashboard Layout */
.dashboard-wrap {
  display: flex;
  min-height: calc(100vh - 80px);
}

.dashboard-sidebar {
  width: 270px;
  background-color: #FFFFFF;
  border-right: 1px solid var(--hh-border);
  padding: 30px 20px;
  flex-shrink: 0;
}

.dashboard-content {
  flex-grow: 1;
  padding: 40px;
  background-color: var(--hh-bg);
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--hh-text);
  font-weight: 500;
  border-radius: 6px;
  margin-bottom: 4px;
  transition: all 0.2s;
}

.sidebar-nav-item:hover, .sidebar-nav-item.active {
  background-color: var(--hh-accent-soft);
  color: var(--hh-accent);
}

.sidebar-nav-item i {
  font-size: 1.1rem;
  width: 24px;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .dashboard-wrap {
    flex-direction: column;
  }
  .dashboard-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--hh-border);
  }
  .dashboard-content {
    padding: 24px 16px;
  }
  .row.g-5, .row.g-4, .row.gx-5, .row.gx-4 {
    --bs-gutter-x: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2rem;
  }
  .reflection-card {
    padding: 24px 18px;
  }
  .row.g-5, .row.g-4, .row.gx-5, .row.gx-4 {
    --bs-gutter-x: 1rem;
  }
  .container, .container-fluid {
    padding-left: 16px;
    padding-right: 16px;
    max-width: 100%;
  }
}

/* Centering Prayer Breath Timer Widget */
.breath-card {
  background: linear-gradient(180deg, #F5F8F6 0%, #FFFFFF 100%);
  border: 1px solid #DCE5E0;
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.breath-circle-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 1.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.breath-pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(91, 112, 101, 0.08);
  transform: scale(0.9);
  transition: transform 4s ease, opacity 4s ease;
}

.breath-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5B7065 0%, #46594F 100%);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(91, 112, 101, 0.25);
  transform: scale(0.85);
  transition: transform 4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 4s ease;
  z-index: 2;
  user-select: none;
}

.breath-circle.inhale {
  transform: scale(1.15);
  box-shadow: 0 16px 36px rgba(91, 112, 101, 0.4);
}

.breath-circle.hold {
  transform: scale(1.15);
  box-shadow: 0 16px 36px rgba(194, 123, 102, 0.35);
  background: linear-gradient(135deg, #6B8074 0%, #5B7065 100%);
}

.breath-circle.exhale {
  transform: scale(0.8);
  box-shadow: 0 4px 12px rgba(91, 112, 101, 0.15);
}

.breath-circle.rest {
  transform: scale(0.8);
  box-shadow: 0 4px 12px rgba(91, 112, 101, 0.1);
}

.breath-state-label {
  font-family: var(--hh-font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.breath-timer-seconds {
  font-size: 0.85rem;
  opacity: 0.85;
}

