/* =========================================
   LCNL CORE THEME
   -----------------------------------------
   Tokens, utilities, buttons, cards, alerts,
   pagination, and global motion styles
   ========================================= */

/* --- Core Theme Tokens --- */
:root {
  --brand: #7a1d3c;
  /* LCNL maroon */
  --brand-600: #6c1936;
  /* hover */
  --brand-700: #5e1630;
  /* active */
  --accent1: #d4af37;
  /* gold */
  --accent: var(--accent1);
  --muted: #f6f2f2;
  --radius: 14px;
}

/* --- Color Utilities --- */
.bg-brand {
  background: var(--brand) !important;
}

.bg-accent1 {
  background: var(--accent1) !important;
}

.text-brand {
  color: var(--brand) !important;
}

.text-accent1 {
  color: var(--accent1) !important;
}

.text-pink {
  color: #e4405f !important;
}

/* Mahila */
.text-primary {
  color: #0d6efd !important;
}

/* YLS */
.text-bereavement {
  color: #d63384 !important;
}

/* replaces .text-danger */

/* --- Motto Headings --- */
.motto {
  font-weight: 700;
  font-size: 1.75rem;
  color: #fff;
}

.motto .script {
  color: var(--accent1);
}

.motto-sub {
  font-size: 1rem;
  font-weight: 400;
  color: #f8f9fa;
  font-style: italic;
  margin-top: .5rem;
}

/* =========================
   GLOBAL CARDS / CONTAINERS
   ========================= */
.card {
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
  transition: transform .3s ease, box-shadow .3s ease;
}

.card:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
  z-index: 2;
}

.card.no-hover,
.card.no-hover:hover {
  transform: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .05) !important;
}

/* Constitution / info box */
.constitution-box {
  background: #fff;
  border: 2px solid rgba(0, 0, 0, .08);
  border-left: 6px solid var(--accent1);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
  transition: transform .2s ease, box-shadow .2s ease;
}

.constitution-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .1);
}

/* LCNL Reading Box */
.lcnl-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-left: 6px solid color-mix(in srgb, var(--brand) 20%, transparent);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lcnl-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}

.lcnl-card h1,
.lcnl-card h2,
.lcnl-card h3,
.lcnl-card h4,
.lcnl-card h5,
.lcnl-card h6 {
  margin-top: 0;
  margin-bottom: .75rem;
  font-weight: 700;
  color: #222;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  padding-bottom: .35rem;
}

.lcnl-card p {
  margin-bottom: .85rem;
  line-height: 1.65;
  color: #333;
}

.lcnl-card ul,
.lcnl-card ol {
  margin-bottom: .85rem;
  padding-left: 1.1rem;
}

.lcnl-card> :last-child {
  margin-bottom: 0;
}

/* Hover utility */
.hover-card {
  transition: transform .2s ease, box-shadow .2s ease;
  border-radius: var(--radius);
}

.hover-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
}

/* =========================
   BUTTONS
   ========================= */
.btn-brand {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-600);
  --bs-btn-active-bg: var(--brand-700);
  border: none;
  border-radius: var(--radius);
}

.btn-outline-brand {
  --bs-btn-color: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--brand);
  border: 2px solid var(--brand);
  border-radius: var(--radius);
}

.btn-outline-brand:hover,
.btn-outline-brand:focus {
  color: #fff !important;
  background-color: var(--brand) !important;
  border-color: var(--brand) !important;
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent1) 0%, #c9a227 100%);
  color: #fff;
  border: none;
  font-weight: 600;
  letter-spacing: .5px;
  transition: all .3s ease;
}

.btn-accent:hover {
  background: linear-gradient(135deg, #c9a227 0%, var(--accent1) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(212, 175, 55, .3);
}

.btn-link-brand {
  color: var(--brand) !important;
  font-weight: 600;
}

.btn-link-brand:hover {
  color: var(--brand-600) !important;
  text-decoration: underline;
}

/* Focus ring */
.btn-brand:focus-visible,
.btn-outline-brand:focus-visible,
.btn-link-brand:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 .2rem rgba(122, 29, 60, .25);
}

/* =========================
   PAGINATION
   ========================= */
.pagination {
  justify-content: center;
  margin-top: 2rem;
  gap: .4rem;
}

.page-link {
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, .1);
  color: var(--brand);
  font-weight: 600;
  padding: .6rem 1.1rem;
  background-color: #fff;
  transition: all .25s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .05);
}

.page-link:hover {
  color: #fff;
  background-color: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 3px 8px rgba(122, 29, 60, .25);
  transform: translateY(-1px);
}

.page-item.active .page-link {
  background-color: var(--accent1);
  border-color: var(--accent1);
  color: #fff;
  box-shadow: 0 3px 8px rgba(212, 175, 55, .3);
}

.page-item.disabled .page-link {
  color: #aaa;
  background-color: #f9f9f9;
  border-color: #eee;
  box-shadow: none;
}

/* =========================
   ALERTS / DIVIDERS / MOTION
   ========================= */
.alert-success {
  background: linear-gradient(135deg, #d1e7dd 0%, #e8f5e9 100%);
  border-left: 5px solid #28a745 !important;
  box-shadow: 0 4px 12px rgba(40, 167, 69, .15);
}

hr.my-4 {
  border: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent1), transparent);
  margin: 2.5rem 0;
  opacity: .3;
}

/* Animations */
@keyframes bounce {

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

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

.text-center h2 i {
  display: inline-block;
  animation: bounce 2s ease-in-out infinite;
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* =======================================
   LCNL — REMOVE HOVER MOTION ON CARDS
   ======================================= */

.card,
.card:hover {
  transform: none !important;
  transition: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}