/* The Health Finders - Main Stylesheet */
/* Bootstrap overrides */
:root {
    --bs-primary: #0f68ca;
    --bs-primary-rgb: 15, 104, 202; /* RGB values of your color */
    --bs-danger: #ff214f;
    --bs-danger-rgb: 255, 33, 79; /* RGB values of your danger color */
}
.grey-container {
    background-color: #f3f3f3;
}
.btn {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.btn:hover {
    transform: scale(1.05);
}
.btn-primary {
    /*--bs-btn-bg: #0f68ca;*/
}
.btn-danger {
    --bs-btn-bg: #ff214f;
    --bs-btn-border-color: #ff214f;
    --bs-btn-hover-bg: #e61e46;
    --bs-btn-hover-border-color: #d91c42;
    --bs-btn-active-bg: #d91c42;
    --bs-btn-active-border-color: #cc1a3e;
}

/* Mobile-First Approach */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}
.rotating-text {
    display: inline-block;
    position: relative;
    transition: opacity 0.3s ease-in-out;
}

.rotating-text-fade {
    opacity: 0;
}
.no-select {
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
    -webkit-touch-callout: none; /* iOS Safari */
}

/* Navigation */
nav.navbar {
    box-shadow: 0 2px 4px 0 rgba(0,0,0,.2);
}
nav.navbar .navbar-brand {
    font-size: 1.25rem;
    --bs-navbar-brand-padding-y: 0;
    --bs-navbar-brand-margin-end: 0;
}

.nav-link.active {
    font-weight: bold;
}

/* Cards */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card .card-img-top {
    height: auto;
    object-fit: cover;
}

/* Blog Article Images */
.article-hero-img {
    width: 100%;
    height: auto;
    display: block;
}

.article-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Footer */
.footer {
    margin-top: auto;
}

.footer h5 {
    position: relative;
    margin-bottom: 1rem;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50%;
    border-bottom: 2px solid var(--bs-danger);
    transition: width 0.3s ease-in-out;
}

.footer > .container > .row > div:hover > h5::after {
    width: 75%;
}

.footer .nav-item .nav-link {
    color: white;
}
.footer .nav-item .nav-link:hover {
    color: var(--bs-danger);
}

/* Responsive Typography */
@media (max-width: 576px) {
    .display-4 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.75rem;
    }

    .lead {
        font-size: 1.1rem;
    }
}

/* Button Styling */
.btn-primary {
    transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.health-n-fitness-section {
    color: white;
    background-image: linear-gradient(rgba(36, 36, 36, 0.75), rgba(36, 36, 36, 0.75)), url("../images/run-forrest-shfQmnI.webp");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    width: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

/*.container-fluid > .hero-section {*/
/*    margin-left: -15px;*/
/*    margin-right: -15px;*/
/*}*/

/*@media (min-width: 768px) {*/
/*    .container-fluid > .hero-section {*/
/*        margin-left: -30px;*/
/*        margin-right: -30px;*/
/*    }*/
/*}*/

.hero-overlay {
    align-self: stretch;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero-overlay .container {
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem 1rem;
    color: #ffffff;
    align-content: center;
    height: 100%;
}

.hero-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-title span {
    color: #ff214f;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.btn-hero-cta {
    background-color: #ff6600;
    color: #ffffff;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 0.375rem;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-hero-cta:hover {
    background-color: #ff8533;
    color: #ffffff;
    transform: scale(1.05);
    text-decoration: none;
}

/* Hero Responsive Design */
@media (min-width: 576px) {
    .hero-section {
        min-height: 450px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }
}

@media (min-width: 768px) {
    .hero-section {
        min-height: 500px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

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

@media (min-width: 992px) {
    .hero-section {
        min-height: 600px;
    }

    .hero-title {
        font-size: 3.5rem;
    }
}

.full-height {
    height: 100%;
}
.img-centered {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alert-icon {
    max-width: 250px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
