/* --- Header Category Section --- */
.header-category-section {
    background-image: url("https://www.f-106deltadart.com/assets/images/bg-title.webp");
    position: relative;
    text-align: center;
    height: 45vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 7vh; /* or adjust to taste */
    justify-content: center;
    overflow: hidden;
    color: #fff;
}

.header-category-section .heading-text h1 {
    font-family: "Segoe UI", Arial, sans-serif;
    color: #fff;
    font-weight: 900;
    font-style: italic;
    margin: 0;
    line-height: 1.1;
    font-size: clamp(1.8rem, 3vw, 4.8rem); /* responsive size scaling */
}

.header-category-section .heading-text h2 {
    font-family: "Segoe UI", Arial, sans-serif;
    color: #fff;
    font-weight: 400;
    text-shadow: 2px 2px 2px #000000;
    margin: 0;
    line-height: 1.1;
    font-size: clamp(1.8rem, 3vw, 3.1rem); /* responsive size scaling */
    padding-top: 5px;
}

.header-category-section .overlay {
    background: rgba(0,64,128,0.75);
    padding: 3rem;
    border-radius: 12px;
    z-index: 1;
}

.header-category-section .heading-icon img {
    height: 9rem;
    width: auto;
    flex-shrink: 0;/* prevents icon from squishing */
}

.header-category-section .heading-icon img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.5));
    transition: all 0.3s ease;
}

/* --- F-106 FIS Page Header Side-by-Side DIV for IMG in front of text --*/
.header-category-section .heading-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; /* allows icon/text to stack on small screens */
    gap: 0.25rem;  /* consistent spacing between icon and text */
    text-align: center;
}

/* On mobile, swap to static image */
@media (max-width: 768px) {
    .header-category-section .heading-text h1 {
        font-size: 2rem !important;
    }
    .header-category-section .heading-text h2 {
        font-size: 1.4rem !important;
    }
    .header-category-section .heading-icon img {
        height: 5rem;
        padding: 0.5rem 0 0 0;
    }
}