/* ============================================
   HeartClinic Global Mission - Custom Beauty CSS
   Red (#bf0a30) + Blue (#1a3a6b) dual-tone
   ============================================ */

/* === CSS VARIABLES === */
:root {
    --hcm-red: #bf0a30;
    --hcm-red-light: #e84363;
    --hcm-blue: #1a3a6b;
    --hcm-blue-light: #2a5298;
    --hcm-gradient: linear-gradient(135deg, var(--hcm-red) 0%, var(--hcm-blue) 100%);
    --hcm-gradient-soft: linear-gradient(135deg, rgba(191,10,48,0.08) 0%, rgba(26,58,107,0.08) 100%);
}

/* === GLOBAL TYPOGRAPHY === */
body {
    font-family: 'Poppins', 'Open Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #1a1a2e;
}

p {
    line-height: 1.8;
    color: #555;
}

/* === SMOOTH TRANSITIONS === */
a, .btn, .card, img, .feature-box-wrap, .team-inner, .events-inner {
    transition: all 0.3s ease;
}

/* === BUTTONS - Red primary, Blue secondary === */
.btn-default {
    border-radius: 30px !important;
    padding: 12px 32px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 13px !important;
    background: var(--hcm-gradient) !important;
    border: none !important;
    color: #fff !important;
}

.btn-default:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 58, 107, 0.35);
    opacity: 0.95;
}

.btn-outline-light {
    border-radius: 30px !important;
}

.btn-outline-light:hover {
    transform: translateY(-2px);
}

/* Blue variant button */
.btn-blue {
    background: var(--hcm-blue) !important;
    color: #fff !important;
    border-radius: 30px !important;
    padding: 12px 32px !important;
    border: none;
}

.btn-blue:hover {
    background: var(--hcm-blue-light) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 58, 107, 0.3);
}

/* === CARDS === */
.card {
    border: none !important;
    border-radius: 12px !important;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1) !important;
}

/* === PAGE TITLE BANNER - Red+Blue gradient overlay === */
.page-title-wrap {
    position: relative;
}

.page-title-wrap-inner {
    padding: 80px 0 !important;
}

.page-title-wrap-inner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    pointer-events: none;
}

.page-title {
    font-size: 2.5em !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px;
}

.breadcrumb {
    font-size: 14px;
    letter-spacing: 1px;
}

/* === SECTION TITLES === */
.section-title .sub-title {
    font-size: 13px;
    letter-spacing: 3px;
    font-weight: 700;
    background: var(--hcm-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title h2 {
    font-size: 2em;
    line-height: 1.3;
}

.border-bottom {
    width: 60px;
    height: 3px;
    background: var(--hcm-gradient);
    display: block;
    margin-top: 12px;
}

.border-bottom.center {
    margin-left: auto;
    margin-right: auto;
}

/* === FEATURE BOXES - Alternating red/blue accents === */
.feature-box-wrap {
    background: #fff;
    border-radius: 16px !important;
    padding: 35px 25px !important;
    margin-bottom: 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
    border-top: 3px solid transparent;
    border-image: var(--hcm-gradient) 1;
}

.feature-box-wrap:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.feature-box-wrap h4 {
    font-size: 1.2em;
    color: var(--hcm-blue);
}

/* Alternate feature box colors */
.col-lg-4:nth-child(2) .feature-box-wrap h4 {
    color: var(--hcm-red);
}

/* === TEAM / PASTORS CARDS === */
.team-inner {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    background: #fff;
}

.team-inner:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(26, 58, 107, 0.15);
}

.team-inner .team-thumb img {
    transition: transform 0.5s ease;
}

.team-inner:hover .team-thumb img {
    transform: scale(1.05);
}

.team-details {
    padding: 20px !important;
}

.team-details h3 {
    font-size: 1.15em;
}

.team-details h3 a {
    color: var(--hcm-blue) !important;
}

.team-details h3 a:hover {
    color: var(--hcm-red) !important;
}

/* === NAVBAR === */
.bg-theme {
    background: linear-gradient(90deg, var(--hcm-blue) 0%, #0d2247 100%) !important;
}

.navbar-main > li > a {
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    font-size: 14px !important;
    text-transform: uppercase;
}

/* === TOPBAR === */
.topbar {
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 2px solid;
    border-image: var(--hcm-gradient) 1;
}

.header-address {
    letter-spacing: 0.3px;
}

/* === FOOTER === */
#footer {
    font-size: 14px;
}

#footer .widget-title h3 {
    font-size: 1.3em;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 12px;
}

#footer .widget-title h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--hcm-gradient);
}

.footer-copyright {
    font-size: 13px;
    opacity: 0.9;
}

/* === IMAGES === */
.img-fluid {
    border-radius: 8px;
}

.about-img img, .b-radius-10 {
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(26, 58, 107, 0.15);
}

/* === FORM INPUTS === */
.form-control {
    border-radius: 8px !important;
    border: 1px solid #e0e0e0 !important;
    padding: 12px 16px !important;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    border-color: var(--hcm-blue) !important;
    box-shadow: 0 0 0 3px rgba(26, 58, 107, 0.1) !important;
}

/* === CONTACT CARDS === */
.f-box.c-page {
    padding: 40px 25px !important;
    border-radius: 20px;
}

.f-box .feature-icon i {
    font-size: 2.5em;
}

/* === SCROLLBAR - Red to Blue gradient === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--hcm-red), var(--hcm-blue));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--hcm-blue);
}

/* === SELECTION COLOR === */
::selection {
    background: var(--hcm-blue);
    color: #fff;
}

::-moz-selection {
    background: var(--hcm-blue);
    color: #fff;
}

/* === THEME OVERLAY - Red+Blue blend === */
.theme-overlay {
    background: linear-gradient(135deg, rgba(26,58,107,0.7) 0%, rgba(191,10,48,0.5) 100%) !important;
}

/* === SOCIAL ICONS === */
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    margin-right: 5px;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: var(--hcm-red);
    transform: translateY(-3px);
}

/* === BLOCKQUOTE ACCENT === */
blockquote {
    position: relative;
    border-left-color: var(--hcm-blue) !important;
}

/* === DROPDOWN MENU === */
.dropdown-menu {
    border: none !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12) !important;
    border-radius: 10px !important;
    border-top: 3px solid;
    border-image: var(--hcm-gradient) 1;
}

.dropdown-menu li a:hover {
    color: var(--hcm-red) !important;
    padding-left: 20px;
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 991px) {
    .page-title {
        font-size: 1.8em !important;
    }
    .section-title h2 {
        font-size: 1.5em;
    }
    .feature-box-wrap {
        margin-bottom: 20px;
    }
    .hero-section h1 {
        font-size: 2em !important;
    }
}

@media (max-width: 576px) {
    .page-title-wrap-inner {
        padding: 50px 0 !important;
    }
    .hero-section {
        min-height: 55vh !important;
    }
    .hero-section h1 {
        font-size: 1.6em !important;
    }
    .btn-default {
        padding: 10px 24px !important;
        font-size: 12px !important;
    }
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
