/* ========================================
   STICKY TITLE SYSTEM
   ======================================== */

.sticky-h1 {
    position: fixed;
    top: 90px; /* Positioned below navbar */
    left: 0;
    right: 0;
    background: #fff;
    z-index: 100;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    transform: translateY(-100%);
    text-align: center;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: var(--primary-color) !important;
    letter-spacing: 0.5px !important;
    border-bottom: 2px solid var(--primary-color) !important;
    padding: 8px 0 !important; /* Reduced padding for professional look */
    display: block;
    pointer-events: none; /* Allow clicks to pass through when hidden */
}

.sticky-h1.visible {
    pointer-events: auto; /* Enable clicks when visible */
}

/* Container for sticky headers */
#sticky-headers-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99;
    pointer-events: none;
}

.sticky-h1.visible {
    transform: translateY(0);
}

/* Sticky title icon styling removed */

/* Responsive adjustments for sticky titles */
@media (max-width: 991px) {
    .sticky-h1 {
        font-size: 1.2rem !important;
        padding: 6px 0 !important;
    }
}

@media (max-width: 767px) {
    .sticky-h1 {
        font-size: 1.1rem !important;
        padding: 5px 0 !important;
    }
}

/* Add padding to body to prevent content jump when h1 becomes sticky */
body {
    padding-top: 0px; /* Adjust based on your navbar height */
}

/* Adjust section padding to account for sticky h1 */
.section-title {
    padding-top: 20px;
} 