/* =========================
   LIGHT THEME (DEFAULT)
========================= */
:root,
[data-bs-theme="light"] {

  /* Core Brand Colors */
  --ar-primary: #D5B75F;              /* Gold */
  --ar-primary-rgb: 213, 183, 95;

  --ar-secondary: #F4E6B2;            /* Warm yellow */
  --ar-secondary-rgb: 244, 230, 178;

  --ar-danger: #A94438;               /* Terracotta red */
  --ar-danger-rgb: 169, 68, 56;

  --ar-info: #2E5B8C;                 /* Royal blue */
  --ar-info-rgb: 46, 91, 140;

  --ar-dark: #1F3A5F;                 /* Deep icon blue */
  --ar-dark-rgb: 31, 58, 95;

  --ar-light: #FBF7EC;                /* Ivory */
  --ar-light-rgb: 251, 247, 236;

  /* Neutrals */
  --ar-gray-100: #FBF7EC;
  --ar-gray-200: #F4E6B2;
  --ar-gray-300: #D5B75F;
  --ar-gray-400: #D6C28A;
  --ar-gray-500: #8A8A8A;
  --ar-gray-600: #6B6B6B;
  --ar-gray-700: #4A4A4A;
  --ar-gray-800: #2B2B2B;
  --ar-gray-900: #1F1F1F;

  /* Background + Text */
  --ar-body-bg: #FBF7EC;
  --ar-body-bg-rgb: 251, 247, 236;

  --ar-body-color: #2B2B2B;
  --ar-body-color-rgb: 43, 43, 43;

  --ar-heading-color: #1F3A5F;

  /* Borders */
  --ar-border-color: #D5B75F;

  /* Subtle backgrounds */
  --ar-primary-bg-subtle: #F8F1D9;
  --ar-secondary-bg-subtle: #FBF7EC;
  --ar-danger-bg-subtle: #F6E3E0;
  --ar-info-bg-subtle: #E6EEF6;
}
[data-bs-theme="light"] h1, [data-bs-theme="light"] h2, [data-bs-theme="light"] h3, [data-bs-theme="light"] h4, [data-bs-theme="light"] h5, [data-bs-theme="light"] h6,
[data-bs-theme="light"] .h1, [data-bs-theme="light"] .h2, [data-bs-theme="light"] .h3, [data-bs-theme="light"] .h4, [data-bs-theme="light"] .h5, [data-bs-theme="light"] .h6 {
  color: #1F3A5F;
}
[data-bs-theme="light"] .online-chapel img.shadow-sm,
[data-bs-theme="dark"] .online-chapel img.shadow-sm {
    box-shadow: rgba(0, 0, 0, 0.2) 0px 0.1375rem 1rem !important;
}
/* =========================
   DARK THEME
========================= */
[data-bs-theme="dark"] {

  /* Core Brand Colors (slightly adjusted for contrast) */
  --ar-primary: #D5B75F;
  --ar-primary-rgb: 230, 199, 107;

  --ar-secondary: #2B2B2B;
  --ar-secondary-rgb: 43, 43, 43;

  --ar-danger: #A94438;
  --ar-danger-rgb: 169, 68, 56;

  --ar-info: #4A7BB5;
  --ar-info-rgb: 74, 123, 181;

  --ar-dark: #0F1E33;
  --ar-dark-rgb: 15, 30, 51;

  --ar-light: #FBF7EC;
  --ar-light-rgb: 251, 247, 236;

  /* Background + Text */
  --ar-body-bg: #121519;
  --ar-body-bg-rgb: 18, 21, 25;

  --ar-body-color: rgba(255, 255, 255, 0.85);
  --ar-body-color-rgb: 255, 255, 255;

  --ar-heading-color: #FBF7EC;

  /* Neutrals (dark mode adjusted) */
  --ar-gray-100: #1A1D21;
  --ar-gray-200: #23272D;
  --ar-gray-300: #2E333A;
  --ar-gray-400: #3A4048;
  --ar-gray-500: #8A8A8A;
  --ar-gray-600: #B0B0B0;
  --ar-gray-700: #D0D0D0;
  --ar-gray-800: #E6E6E6;
  --ar-gray-900: #FFFFFF;

  /* Borders */
  --ar-border-color: rgba(230, 199, 107, 0.35);

  /* Subtle backgrounds */
  --ar-primary-bg-subtle: rgba(230, 199, 107, 0.1);
  --ar-secondary-bg-subtle: rgba(255, 255, 255, 0.03);
  --ar-danger-bg-subtle: rgba(169, 68, 56, 0.15);
  --ar-info-bg-subtle: rgba(74, 123, 181, 0.15);
}

[data-bs-theme="dark"] .bg-white h1, [data-bs-theme="dark"] .bg-white h2, [data-bs-theme="dark"] .bg-white h3, [data-bs-theme="dark"] .bg-white h4, [data-bs-theme="dark"] .bg-white h5, [data-bs-theme="dark"] .bg-white h6,
[data-bs-theme="dark"] .bg-white .h1, [data-bs-theme="dark"] .bg-white .h2, [data-bs-theme="dark"] .bg-white .h3, [data-bs-theme="dark"] .bg-white .h4, [data-bs-theme="dark"] .bg-white .h5, [data-bs-theme="dark"] .bg-white .h6,
[data-bs-theme="dark"] .bg-white {
  color: var(--ar-dark);
}
  
/* =========================
   NAVBAR
========================= */
.navbar {
    --ar-navbar-color: var(--ar-dark);
    --ar-navbar-brand-color: var(--ar-dark);
    --ar-navbar-brand-hover-color: var(--ar-dark);
    --ar-navbar-toggler-color: var(--ar-dark);
}
[data-bs-theme="dark"] .navbar {
    --ar-navbar-brand-color: #FFFFFF;
    --ar-navbar-brand-hover-color: #FFFFFF;
    --ar-navbar-toggler-color: #FFFFFF;
}
[data-bs-theme="dark"] a.navbar-brand {
    color: #FFFFFF;
}
/* =========================
   BUTTONS
========================= */
.btn { border-width: 1.5px;}
.btn-primary {
  --ar-btn-color: #2B2B2B;
  --ar-btn-bg: #D5B75F;
  --ar-btn-border-color: #D5B75F;

  --ar-btn-hover-color: #2B2B2B;
  --ar-btn-hover-bg: #D4B75F;
  --ar-btn-hover-border-color: #C9AC58;

  --ar-btn-focus-shadow-rgb: 230, 199, 107;

  --ar-btn-active-color: #2B2B2B;
  --ar-btn-active-bg: #C9AC58;
  --ar-btn-active-border-color: #BFA24F;

  --ar-btn-active-shadow: unset;

  --ar-btn-disabled-color: #2B2B2B;
  --ar-btn-disabled-bg: #D5B75F;
  --ar-btn-disabled-border-color: #D5B75F;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.btn-primary:hover {
    --ar-btn-hover-color: #FFFFFF;
}
[data-bs-theme="dark"] .btn-primary {
    color: #FFFFFF;
}
.btn-outline-primary {
  --ar-btn-color: #D5B75F;
  --ar-btn-border-color: #D5B75F;

  --ar-btn-hover-color: #2B2B2B;
  --ar-btn-hover-bg: #D5B75F;
  --ar-btn-hover-border-color: #D5B75F;

  --ar-btn-focus-shadow-rgb: 230, 199, 107;

  --ar-btn-active-color: #2B2B2B;
  --ar-btn-active-bg: #D4B75F;
  --ar-btn-active-border-color: #D4B75F;

  --ar-btn-active-shadow: unset;

  --ar-btn-disabled-color: #D5B75F;
  --ar-btn-disabled-bg: transparent;
  --ar-btn-disabled-border-color: #D5B75F;

  --ar-gradient: none;
}
.btn-secondary {
  --ar-btn-color: #FBF7EC;
  --ar-btn-bg: #1F3A5F;
  --ar-btn-border-color: #1F3A5F;

  --ar-btn-hover-color: #FBF7EC;
  --ar-btn-hover-bg: #2A4C7A;
  --ar-btn-hover-border-color: #25456F;

  --ar-btn-focus-shadow-rgb: 31, 58, 95;

  --ar-btn-active-color: #FBF7EC;
  --ar-btn-active-bg: #25456F;
  --ar-btn-active-border-color: #203E63;

  --ar-btn-active-shadow: unset;

  --ar-btn-disabled-color: #FBF7EC;
  --ar-btn-disabled-bg: #1F3A5F;
  --ar-btn-disabled-border-color: #1F3A5F;
}
.btn-outline-secondary {
  --ar-btn-color: #1F3A5F;
  --ar-btn-border-color: #1F3A5F;

  --ar-btn-hover-color: #FBF7EC;
  --ar-btn-hover-bg: #1F3A5F;
  --ar-btn-hover-border-color: #1F3A5F;

  --ar-btn-focus-shadow-rgb: 31, 58, 95;

  --ar-btn-active-color: #FBF7EC;
  --ar-btn-active-bg: #2A4C7A;
  --ar-btn-active-border-color: #2A4C7A;

  --ar-btn-active-shadow: unset;

  --ar-btn-disabled-color: #1F3A5F;
  --ar-btn-disabled-bg: transparent;
  --ar-btn-disabled-border-color: #1F3A5F;

  --ar-gradient: none;
}  

/* =========================
   CARDS
========================= */
.card {
  --ar-card-bg: #FFFFFF;
  --ar-card-border-color: rgba(31, 58, 95, 0.08);
  --ar-card-box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  --ar-card-color: #8A8A8A;
  border-radius: 0.75rem;
}
.card-title {
  color: #1F3A5F;
}
.card-featured {
  background-color: #FBF7EC;
  border-left: 4px solid #D5B75F;
}
.card-hover-primary:hover {
  --ar-card-color: #FFFFFF;
}

/* =========================
   LINKS
========================= */
a {
  color: #2E5B8C;
}

a:hover {
  color: #A94438;
}

[data-bs-theme="dark"] a {
  color: #D5B75F;
}

[data-bs-theme="dark"] a:hover {
  color: #FBF7EC;
}

/* =========================
   TYPOGRAPHY
========================= */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  letter-spacing: 0.02em;
}

.text-muted {
  color: #8A8A8A !important;
}

/* =========================
   SECTIONS
========================= */
.section-light {
  background-color: #FBF7EC;
}

.section-warm {
  background-color: #F4E6B2;
}

.section-accent {
  background-color: #1F3A5F;
  color: #FBF7EC;
}

/* =========================
   DIVIDERS
========================= */
hr {
  border-color: rgba(31, 58, 95, 0.15);
}

.divider-gold {
  height: 2px;
  background-color: #D5B75F;
  border: none;
}

/* =========================
   ACCORDION
========================= */
[data-bs-theme=light] .accordion-button::after,
[data-bs-theme=dark] .accordion-button::after {
    --ar-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23E6C76B'%3e%3cpath d='M.5 6.3c.6-.6 1.6-.6 2.3 0l9.3 9.3 9.3-9.3c.6-.6 1.6-.6 2.3 0 .6.6.6 1.6 0 2.3L13.3 18.8c-.6.6-1.6.6-2.3 0L.8 8.5c-.9-.8-.9-1.6-.3-2.2z'/%3e%3c/svg%3e");
}
[data-bs-theme=light] .accordion {
    --ar-accordion-bg: #FFFFFF;
}
.accordion {
    --ar-accordion-border-radius: var(--ar-border-radius-sm);
    --ar-accordion-inner-border-radius: calc(var(--ar-border-radius-sm) - 0);
}
/* =========================
   FORMS
========================= */
.form-control:focus {
  border-color: #D5B75F;
  box-shadow: 0 0 0 0.2rem rgba(230, 199, 107, 0.25);
}

.form-check-input:checked {
  background-color: #1F3A5F;
  border-color: #1F3A5F;
}

/* =========================
   FOOTER
========================= */
footer a.btn-facebook, footer a.btn-youtube, footer a.btn-instagram, footer .text-light a {
    color: #D5B75F !important;
}

/* =========================
   Color Themes
========================= */
/* Lent */
body.theme-lent .online-chapel,
body.theme-lent .gcal-calendar-fragment .gcal-header {
    background-color: #4a235a !important;
}

body.theme-lent .gcal-calendar-fragment .gcal-view-tab.active {
    color: #4a235a !important;
}

body.theme-lent .online-chapel h1,
body.theme-lent .online-chapel h2,
body.theme-lent .online-chapel h3,
body.theme-lent .online-chapel h4,
body.theme-lent .online-chapel h5,
body.theme-lent .online-chapel h6,
body.theme-lent .online-chapel .list-group-item-action,
body.theme-lent .online-chapel .text-body-secondary {
    color: #FFFFFF !important;
}
body.theme-lent .online-chapel a {
    color: gold;
}
body.theme-lent .online-chapel a:hover,
body.theme-lent .online-chapel .list-group-item-action:hover {
    color: #D5B75F !important;
}

/* Pascha */
body.theme-pascha .online-chapel,
body.theme-pascha .gcal-calendar-fragment .gcal-header {
    background-color: #FFFFFF !important;
}

body.theme-pascha .gcal-calendar-fragment .gcal-view-tab.active,
body.theme-pascha .gcal-calendar-fragment .gcal-header,
body.theme-pascha .gcal-calendar-fragment .gcal-nav-btn {
    color: #A94438 !important;
}

body.theme-pascha .online-chapel h1,
body.theme-pascha .online-chapel h2,
body.theme-pascha .online-chapel h3,
body.theme-pascha .online-chapel h4,
body.theme-pascha .online-chapel h5,
body.theme-pascha .online-chapel h6,
body.theme-pascha .online-chapel a:hover,
body.theme-pascha .online-chapel .list-group-item-action:hover,
body.theme-pascha .online-chapel .text-body-secondary {
    color: #A94438 !important;
}
body.theme-pascha .online-chapel a,
body.theme-pascha .online-chapel .list-group-item-action {
    color: #D5B75F;
}


/* Pentecost */
body.theme-pentecost .online-chapel,
body.theme-pentecost .gcal-calendar-fragment .gcal-header {
    background-color: #1e8449 !important;
}

body.theme-pentecost .gcal-calendar-fragment .gcal-view-tab.active {
    color: #1e8449 !important;
}

body.theme-pentecost .online-chapel h1,
body.theme-pentecost .online-chapel h2,
body.theme-pentecost .online-chapel h3,
body.theme-pentecost .online-chapel h4,
body.theme-pentecost .online-chapel h5,
body.theme-pentecost .online-chapel h6,
body.theme-pentecost .online-chapel .list-group-item-action,
body.theme-pentecost .online-chapel .text-body-secondary {
    color: #FFFFFF !important;
}
body.theme-pentecost .online-chapel a {
    color: gold;
}
body.theme-pentecost .online-chapel a:hover,
body.theme-pentecost .online-chapel .list-group-item-action:hover {
    color: #D5B75F !important;
}


/* Dormition */
body.theme-dormition .online-chapel,
body.theme-dormition .gcal-calendar-fragment .gcal-header {
    background-color: #2874a6 !important;
}

body.theme-dormition .gcal-calendar-fragment .gcal-view-tab.active {
    color: #2874a6 !important;
}

body.theme-dormition .online-chapel h1,
body.theme-dormition .online-chapel h2,
body.theme-dormition .online-chapel h3,
body.theme-dormition .online-chapel h4,
body.theme-dormition .online-chapel h5,
body.theme-dormition .online-chapel h6,
body.theme-dormition .online-chapel .list-group-item-action,
body.theme-dormition .online-chapel .text-body-secondary {
    color: #FFFFFF !important;
}
body.theme-dormition .online-chapel a,
body.theme-dormition .online-chapel .list-group-item-action:hover {
    color: #D5B75F !important;
}
body.theme-dormition .online-chapel a:hover {
    color: #A94438 !important;
}

/*  Nativity Fast (Maroon/Red) */
body.theme-nativity-fast .online-chapel,
body.theme-nativity-fast .gcal-calendar-fragment .gcal-header {
    background-color: #800000 !important;
}

body.theme-nativity-fast .gcal-calendar-fragment .gcal-view-tab.active {
    color: #800000 !important;
}

body.theme-nativity-fast .online-chapel h1,
body.theme-nativity-fast .online-chapel h2,
body.theme-nativity-fast .online-chapel h3,
body.theme-nativity-fast .online-chapel h4,
body.theme-nativity-fast .online-chapel h5,
body.theme-nativity-fast .online-chapel h6,
body.theme-nativity-fast .online-chapel .list-group-item-action,
body.theme-nativity-fast .online-chapel .text-body-secondary {
    color: #FFFFFF !important;
}

body.theme-nativity-fast .online-chapel a {
    color: #D4AF37;
}

body.theme-nativity-fast .online-chapel a:hover,
body.theme-nativity-fast .online-chapel .list-group-item-action:hover {
    color: #F1C40F !important;
}


/* Dormition Fast (Marian Blue) */
body.theme-dormition-fast .online-chapel,
body.theme-dormition-fast .gcal-calendar-fragment .gcal-header {
    background-color: #1A5276 !important;
}

body.theme-dormition-fast .gcal-calendar-fragment .gcal-view-tab.active {
    color: #1A5276 !important;
}

body.theme-dormition-fast .online-chapel h1,
body.theme-dormition-fast .online-chapel h2,
body.theme-dormition-fast .online-chapel h3,
body.theme-dormition-fast .online-chapel h4,
body.theme-dormition-fast .online-chapel h5,
body.theme-dormition-fast .online-chapel h6,
body.theme-dormition-fast .online-chapel .list-group-item-action,
body.theme-dormition-fast .online-chapel .text-body-secondary {
    color: #FFFFFF !important;
}

body.theme-dormition-fast .online-chapel a {
    color: #85C1E9;
}

body.theme-dormition-fast .online-chapel a:hover,
body.theme-dormition-fast .online-chapel .list-group-item-action:hover {
    color: #D5B75F !important;
}


/* Theophany (Gold) */
body.theme-theophany .online-chapel {
    background-color: #fdecb9 !important;
}
body.theme-theophany .gcal-calendar-fragment .gcal-header {
    background-color: #D5B75F !important;
}
body.theme-theophany .gcal-calendar-fragment .gcal-view-tab.active {
    color: #D4AF37 !important;
}

body.theme-theophany .online-chapel h1,
body.theme-theophany .online-chapel h2,
body.theme-theophany .online-chapel h3,
body.theme-theophany .online-chapel h4,
body.theme-theophany .online-chapel h5,
body.theme-theophany .online-chapel h6,
body.theme-theophany .online-chapel .list-group-item-action,
body.theme-theophany .online-chapel .text-body-secondary,
body.theme-theophany .online-chapel i.text-primary {
    color: #212529 !important;
}

body.theme-theophany .online-chapel a {
    color: #1A5276;
}

body.theme-theophany .online-chapel a:hover,
body.theme-theophany .online-chapel .list-group-item-action:hover {
    color: #800000 !important;
}