﻿/* --- LAYOUT & STICKY LOGIC --- */
.health-page-wrapper {
    background-color: #f8f9fa; /* Light grey background makes white cards pop */
}

.sticky-wrapper {
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    z-index: 1000;
}

/* Ensure the sidebar track is full height */
.row.align-items-stretch {
    display: flex;
}

/* --- SIDEBAR BEAUTIFICATION --- */
.main-title.sticky-sidebar {
    background: #ffffff;
    padding: 25px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-left: 6px solid #1e5f98;
    border-top: 1px solid #eaeaea;
}

.resources-heading {
    color: #1e5f98;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.resources-list li {
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

    .resources-list li:last-child {
        border-bottom: none;
    }

.resource-link {
    color: #444;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

    .resource-link:hover {
        color: #1e5f98;
        transform: translateX(8px); /* The "Nudge" effect */
    }

/* --- MAIN CONTENT & BOXES --- */
.MainTitle {
    color: #1e5f98;
    font-weight: 800;
    font-size: 1.75rem;
    scroll-margin-top: 120px; /* Essential for navigation */
}

.SubHeading {
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
}

.ELCC-flex-itemA {
    background: linear-gradient(135deg, #1e5f98 0%, #164a77 100%);
    border: none;
    padding: 35px;
    border-radius: 12px;
    color: #fff;
    box-shadow: 0 12px 24px rgba(30, 95, 152, 0.2);
    transition: transform 0.3s ease;
}

    .ELCC-flex-itemA:hover {
        transform: translateY(-5px); /* Subtle lift on hover */
    }

.drop-shadow-image {
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}
/* Connects the text and the link visually */
.announcement-box {
    border-left: 3px solid rgba(255, 255, 255, 0.3);
    padding-left: 20px;
    margin: 20px 0;
}

.announcement-text {
    line-height: 1.6;
    font-size: 1.05rem;
    color: #ffffff;
    opacity: 0.95;
    margin-bottom: 0; /* Keeps it tight to the button */
}

/* A special version of your button for the blue background */
.ContentLink.outline-white {
    background: transparent;
    width: 220px;
    color: #ffffff !important;
    border: 2px solid #ffffff;
    box-shadow: none;
}

    .ContentLink.outline-white:hover {
        background: #ffffff;
        color: #1e5f98 !important;
        transform: translateY(-2px);
    }
.ContentLink {
    background: #ffffff;
    width: 200px;
    color: #1e5f98 !important;
    padding: 4px 12px; /* Reduced from 12px 25px */
    font-size: 0.85rem; /* Makes text smaller */
    font-weight: 600; /* Slightly lighter for a cleaner look */
    text-decoration: none;
    border-radius: 20px; /* Adjusted for smaller height */
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: inline-block;
}

    .ContentLink:hover {
        background: #f0f0f0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
        transform: scale(1.02); /* Reduced from 1.05 to keep it subtle */
    }

/* Container for the tabs */
.tabs {
    display: flex;
    gap: 10px; /* Space between buttons */
    margin-bottom: -1px; /* Overlap the container border slightly */
    border-bottom: none;
    background: transparent;
}

/* Individual tab button */
.tab {
    display: block;
    padding: 10px 20px;
    background: #f1f3f5;
    color: #495057;
    text-decoration: none !important;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid #dee2e6;
    border-bottom: none;
}

    .tab:hover {
        background: #e9ecef;
        color: #1e5f98;
    }

    /* Active tab style */
    .tab.active {
        background: #ffffff;
        color: #1e5f98;
        border-top: 3px solid #1e5f98; /* Top accent bar */
        border-bottom: 2px solid white; /* Hide the bottom border */
        position: relative;
        z-index: 2;
    }

/* Content area below the tabs */
.tab-content-container {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 0 8px 8px 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Fade animation for smooth switching */
.tab-content {
    animation: fadeInTab 0.4s ease;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* --- MOBILE --- */
@media (max-width: 991px) {
    .sticky-wrapper {
        position: relative !important;
        top: 0 !important;
    }

    .ELCC-flex-itemA {
        padding: 20px;
    }
}
