/* =========================================
   STANDARDIZED PAGE HERO BANNER
   ========================================= */
.page-hero-banner {
    position: relative;
    width: 100%;
    height: 350px;
    padding-top: 80px;
    background-image: url('../images/about-hero.jpg'); /* Make sure this path matches your other banners */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(28, 70, 50, 0.82);
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 5%;
}

.page-hero-content h1 {
    font-size: 3.2rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #efe5db;
    letter-spacing: 3px;
    margin: 0;
}

.page-hero-content p {
    color: #efe5db;
    font-size: 1.2rem;
    margin-top: 15px;
}

/* =========================================
   WELFARE HUB GLOBAL STYLES
   ========================================= */
.hub-page-section {
    background-color: #efe5db;
    padding: 60px 5% 100px;
    min-height: 70vh;
}
.hub-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* CARDS & GRID */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.hub-card {
    background: #ffffff;
    border: 2px solid #1c4632;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: #1c4632;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hub-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(28, 70, 50, 0.1);
    background: #faf6f0;
}
.hub-card h3 {
    font-size: 1.5rem;
    text-transform: uppercase;
    margin-bottom: 15px;
}
.hub-card p {
    font-size: 1rem;
    opacity: 0.85;
}

/* FORMS */
.hub-form-wrapper {
    background: #ffffff;
    padding: 50px;
    border: 2px solid #1c4632;
    box-shadow: 0 15px 35px rgba(28, 70, 50, 0.08);
}
.hub-form-group {
    margin-bottom: 25px;
}
.hub-form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #1c4632;
    margin-bottom: 10px;
}
.hub-form-group input[type="text"],
.hub-form-group input[type="date"],
.hub-form-group select,
.hub-form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #1c4632;
    background: #faf6f0;
    color: #1c4632;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    box-sizing: border-box;
}
.hub-form-group input[type="file"] {
    font-family: inherit;
    font-size: 0.9rem;
    width: 100%;
}
.radio-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: normal;
    text-transform: none;
    margin-bottom: 10px;
    cursor: pointer;
}

/* CASE TRACKER TIMELINE */
.tracker-status-box {
    margin-top: 40px;
    background: #ffffff;
    border: 2px solid #1c4632;
    padding: 40px;
    text-align: center;
}
.tracker-id {
    font-size: 2rem;
    font-weight: 900;
    color: #1c4632;
    margin-bottom: 30px;
    word-break: break-all; /* Prevents long IDs from breaking mobile screens */
}
.timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 4px;
    background: #d5c8b8;
    z-index: 1;
}
.timeline-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}
.step-circle {
    width: 34px;
    height: 34px;
    background: #d5c8b8;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    border: 4px solid #ffffff;
}
.timeline-step.active .step-circle {
    background: #1c4632;
}
.timeline-step span {
    font-size: 0.85rem;
    font-weight: 800;
    color: #1c4632;
    text-transform: uppercase;
}

/* GUIDANCE LISTS */
.guidance-content h3 {
    font-size: 1.8rem;
    color: #1c4632;
    text-transform: uppercase;
    margin: 40px 0 20px;
}
.guidance-list {
    list-style: none;
    padding: 0;
}
.guidance-list li {
    background: #ffffff;
    border-left: 5px solid #1c4632;
    padding: 20px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #1c4632;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* =========================================
   RESPONSIVENESS (MOBILE & TABLET)
   ========================================= */
@media (max-width: 900px) {
    /* Scale down hero banners */
    .page-hero-banner {
        height: 280px;
    }
    .page-hero-content h1 {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }
    .page-hero-content p {
        font-size: 1.05rem;
    }
}

@media (max-width: 768px) {
    /* Adjust overall padding */
    .hub-page-section {
        padding: 40px 5% 60px;
    }
    
    /* Shrink form wrappers */
    .hub-form-wrapper {
        padding: 30px 20px;
    }
    
    /* Force inline 2-column grids to stack on mobile (Report Form) */
    .hub-form-wrapper div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
    
    /* Force inline flex rows to stack on mobile (Directory & Clinic Forms) */
    .hub-form-wrapper form[style*="display: flex"] {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 15px !important;
    }
    .hub-form-wrapper form[style*="display: flex"] .hub-form-group,
    .hub-form-wrapper form[style*="display:flex"] .hub-form-group {
        width: 100% !important;
        margin-bottom: 0 !important;
    }
    
    /* Make buttons full width on small screens */
    .hub-form-wrapper button[type="submit"] {
        width: 100% !important;
        margin-top: 10px !important;
    }

    /* Change Tracker Timeline from Horizontal to Vertical */
    .tracker-status-box {
        padding: 30px 20px;
    }
    .tracker-id {
        font-size: 1.5rem;
    }
    .timeline {
        flex-direction: column;
        gap: 25px;
        align-items: flex-start;
        padding-left: 20px;
    }
    .timeline::before {
        /* Turn the horizontal line into a vertical line */
        top: 0;
        bottom: 0;
        left: 35px;
        width: 4px;
        height: 100%;
    }
    .timeline-step {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 20px;
    }
    .step-circle {
        margin: 0; /* Remove auto margins to align left */
    }
}

@media (max-width: 480px) {
    .page-hero-content h1 {
        font-size: 1.8rem;
    }
    .hub-card {
        padding: 30px 20px;
    }
    .guidance-list li {
        font-size: 1rem;
        padding: 15px;
    }
}