/* --- Custom Styles --- */
:root {
    --rh-primary: #E8AA8C;   /* Peach */
    --rh-secondary: #5E616A; /* Dark Slate Gray */
    --rh-light: #F9F3E6;     /* Alabaster */
    --rh-accent: #E2DCD5;    /* Light Grayish */
    --rh-action-red: #C0392B; /* A touch of red for emphasis */
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--rh-secondary);
    background-color: var(--rh-light);
}

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

/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    overflow: hidden;
    background: var(--rh-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

#preloader .spinner-border {
    width: 3rem;
    height: 3rem;
    color: var(--rh-primary);
}

/* --- Top Bar --- */
#topbar {
    background: var(--rh-accent);
    height: 40px;
    font-size: 0.9rem;
    color: var(--rh-secondary);
}
#topbar .contact-info i {
    font-style: normal;
    color: var(--rh-primary);
    margin-right: 5px;
}
#topbar .contact-info a {
    padding-left: 5px;
    color: var(--rh-secondary);
    text-decoration: none;
}
#topbar .contact-info i + i {
    margin-left: 15px;
}
#topbar .social-links a {
    color: var(--rh-secondary);
    padding: 4px 12px;
    display: inline-block;
    line-height: 1px;
    transition: 0.3s;
}
#topbar .social-links a:hover {
    color: var(--rh-primary);
}

/* --- Navbar --- */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s;
    background-color: rgba(249, 243, 230, 0.95);
}

#header.header-scrolled {
    box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--rh-secondary);
    font-family: 'Poppins', sans-serif;
}

.navbar-brand span {
    color: var(--rh-primary);
}

.navbar .nav-link {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: var(--rh-secondary);
    margin: 0 0.5rem;
    transition: color 0.3s;
}

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

.btn-donate {
    background-color: var(--rh-action-red);
    color: #fff;
    border-radius: 50px;
    padding: 0.6rem 1.6rem;
    transition: all 0.3s;
    border: 2px solid var(--rh-action-red);
    font-weight: 600;
}
.btn-donate:hover {
    background-color: transparent;
    color: var(--rh-action-red);
    transform: translateY(-2px);
}
.navbar .btn-donate {
     padding: 0.5rem 1.5rem;
}

/* --- Offcanvas Menu --- */
.offcanvas.offcanvas-start {
    width: 280px;
}
.offcanvas {
    background-color: var(--rh-secondary);
}
.offcanvas-header {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.offcanvas-title {
    color: var(--rh-light);
}
.offcanvas .nav-link {
    font-family: 'Poppins', sans-serif;
    color: var(--rh-light);
    font-size: 1.1rem;
    padding: 0.8rem 1rem;
}
.offcanvas .nav-link:hover {
    color: var(--rh-primary);
}


/* --- Hero Carousel --- */
#hero-carousel {
    height: 100vh;
    min-height: 700px;
    width: 100%;
    position: relative;
    margin-top: 110px;
}
.carousel-item {
    height: 100vh;
    min-height: 700px;
    background-size: cover;
    background-position: center;
}
.carousel-caption {
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    text-align: center;
    padding: 0 5%;
}
.carousel-caption h2 {
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}
.carousel-caption p {
    font-size: 1.2rem;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.carousel-indicators [data-bs-target] {
    background-color: var(--rh-primary);
}

/* --- Sections General --- */
section {
    padding: 60px 0;
    overflow: hidden;
}
.section-title {
    text-align: center;
    padding-bottom: 30px;
}
.section-title h2 {
    font-size: 2.2rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 1rem;
}
.section-title h2::after {
    content: '';
    position: absolute;
    display: block;
    width: 50px;
    height: 3px;
    background: var(--rh-primary);
    bottom: 0;
    left: calc(50% - 25px);
}
.section-bg {
     background-color: #fff;
}

/* --- Inner Page Hero Section --- */
.page-hero {
    padding: 80px 0;
    height: 50vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 110px;
}
.page-hero:before {
    content: "";
    background-color: rgba(0,0,0,0.5);
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}
.page-hero .container {
    position: relative;
}
.page-hero h1 {
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
}
.breadcrumbs {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}
.breadcrumbs .breadcrumb {
    margin-bottom: 0;
}
.breadcrumbs .breadcrumb-item a {
    color: var(--rh-light);
    text-decoration: none;
}
.breadcrumbs .breadcrumb-item.active {
    color: var(--rh-primary);
}

/*
|--------------------------------------------------------------------------
| Page & Component Specific Styles
|--------------------------------------------------------------------------
*/

/* --- Homepage specific components --- */
#about .icon-box {
    margin-top: 2rem;
    text-align: center;
}
#about .icon-box i {
    font-size: 2.5rem;
    color: var(--rh-primary);
}
#about .icon-box h4 {
    font-size: 1.2rem;
    font-weight: 600;
}
.service-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0px 0 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease-in-out;
    height: 100%;
}
.service-card:hover {
    transform: translateY(-10px);
}
.service-card .icon {
    font-size: 3rem;
    color: var(--rh-primary);
    margin-bottom: 1rem;
}

/* --- Call to Action (CTA) Section --- */
#cta {
    background: linear-gradient(rgba(94, 97, 106, 0.9), rgba(94, 97, 106, 0.9)), url('https://rhemahaven.ca/contents/templates/Rhema/assets/img/img13.jpg') fixed center center;
    background-size: cover;
    padding: 120px 0;
    color: #fff;
}


/* --- About Page --- */
.mission-vision-box {
    padding: 30px;
    box-shadow: 0px 0 25px rgba(0,0,0,0.08);
    border-radius: 10px;
    background-color: #fff;
    height: 100%;
}
.mission-vision-box i {
    font-size: 2.5rem;
    color: var(--rh-primary);
}
.team-member {
    text-align: center;
    margin-bottom: 20px;
    background: #fff;
    box-shadow: 0px 0 25px rgba(0,0,0,0.08);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
}
.team-member:hover {
    transform: translateY(-5px);
}
.team-member img {
    max-width: 100%;
}
.team-member .member-info {
    padding: 25px 15px;
}
.team-member h4 {
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 1.2rem;
}
.team-member span {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    color: #888;
}

/* --- Services Page --- */
.service-details .service-img {
    border-radius: 10px;
    box-shadow: 0px 5px 25px rgba(0,0,0,0.1);
}
.service-details h3 {
    color: var(--rh-secondary);
    font-weight: 700;
    border-left: 5px solid var(--rh-primary);
    padding-left: 15px;
    margin-bottom: 20px;
}

/* --- Resources Page --- */
.resource-card {
    background: #fff;
    box-shadow: 0 0 25px rgba(0,0,0,0.08);
    padding: 30px;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.resource-card .icon {
    font-size: 3rem;
    color: var(--rh-primary);
}
 .resource-card h3 {
     font-size: 1.5rem;
     margin-top: 1rem;
 }
.resource-card .btn-read-more {
    margin-top: auto;
    color: var(--rh-secondary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.resource-card .btn-read-more i {
    margin-left: 5px;
    transition: margin-left 0.3s;
}
 .resource-card:hover .btn-read-more {
     color: var(--rh-action-red);
 }
.resource-card:hover .btn-read-more i {
     margin-left: 10px;
 }
.safety-plan-accordion .accordion-button {
    background-color: var(--rh-accent);
    color: var(--rh-secondary);
    font-weight: 600;
}
.safety-plan-accordion .accordion-button:not(.collapsed) {
    background-color: var(--rh-primary);
    color: #fff;
}
.safety-plan-accordion .accordion-body ul {
    padding-left: 1rem;
}
.safety-plan-accordion .accordion-body ul li {
    margin-bottom: 0.5rem;
}
.safety-plan-accordion .accordion-item {
    border: 1px solid var(--rh-accent);
}
.rights-list .icon {
    font-size: 1.5rem;
    color: var(--rh-primary);
}
.rights-list h4 {
    font-size: 1.2rem;
    font-weight: 600;
}

/* --- How to Help Pages --- */
.help-card {
    background: #fff;
    box-shadow: 0 0 25px rgba(0,0,0,0.08);
    padding: 30px;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
}
.help-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.help-card .icon {
    font-size: 3rem;
    color: var(--rh-primary);
}
 .help-card h3 {
     font-size: 1.5rem;
     margin-top: 1rem;
 }
.help-card .btn-learn-more {
    margin-top: auto;
}
.donation-form-container {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
}
.donation-form-container .amount-options .btn {
    border: 1px solid var(--rh-accent);
    color: var(--rh-secondary);
    font-weight: 600;
}
.donation-form-container .amount-options .btn.active {
    background-color: var(--rh-primary);
    border-color: var(--rh-primary);
    color: #fff;
}
.donation-form-container .form-label {
    font-weight: 600;
}
.donation-form-container .btn-submit-donation {
    background-color: var(--rh-action-red);
    border-color: var(--rh-action-red);
    color: #fff;
    font-weight: 600;
    padding: 12px 30px;
}
.impact-item i {
    font-size: 2rem;
    color: var(--rh-primary);
}
.gift-card {
    background: #fff;
    box-shadow: 0 0 25px rgba(0,0,0,0.08);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.gift-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.gift-card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}
.gift-card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.gift-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.gift-card-text {
    flex-grow: 1;
}
.gift-card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--rh-primary);
    margin-top: 15px;
    margin-bottom: 20px;
}
.gift-card .btn {
    width: 100%;
}
.partnership-level {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(0,0,0,0.08);
    height: 100%;
}
.partnership-level h3 {
    color: var(--rh-primary);
    font-weight: 700;
}
.partnership-level .price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--rh-secondary);
}
.partnership-level ul {
    list-style: none;
    padding: 0;
}
.partnership-level ul li {
    padding-bottom: 10px;
}
.partnership-level ul i {
    color: var(--rh-action-red);
    margin-right: 5px;
}

/* --- Events Page --- */
.event-card {
    background: #fff;
    box-shadow: 0 0 25px rgba(0,0,0,0.08);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}
.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.event-card .event-img {
    height: 250px;
    background-size: cover;
    background-position: center;
}
.event-card .event-content {
    padding: 25px;
}
.event-card .event-date {
    font-weight: 700;
    color: var(--rh-primary);
}
.event-card h3 {
    font-size: 1.4rem;
}
.event-card .event-location {
    color: #888;
}

/* --- Contact Page --- */
.contact .info-box {
    display: flex;
    align-items: flex-start;
}
.contact .info-box i {
    font-size: 2rem;
    color: var(--rh-primary);
    width: 40px;
}
.contact .info-box h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}
.contact .info-box p {
    padding: 0 0 10px 40px;
}
.contact .contact-form {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0,0,0,0.08);
}


/* --- Footer --- */
footer {
    background: var(--rh-secondary);
    color: var(--rh-light);
}
.footer-top {
    padding: 60px 0 30px 0;
}
.footer-top .footer-links a {
    color: var(--rh-light);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-top .footer-links a:hover {
    color: var(--rh-action-red);
}
.footer-top .social-links a {
    font-size: 1.5rem;
    color: var(--rh-light);
    margin: 0 0.5rem;
    transition: color 0.3s;
}
 .footer-top .social-links a:hover {
    color: var(--rh-primary);
}
.copyright-bar {
    background: #1a1a1a;
    padding: 15px 0;
}
.copyright-bar a {
    color: var(--rh-primary);
    text-decoration: none;
    transition: color 0.3s;
}
.copyright-bar a:hover {
    color: var(--rh-light);
}

/* --- Dropdown on Hover for Desktop --- */
@media (min-width: 992px) {
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0; /* Adjust if needed */
    }
}
