/* --- Firebird Branded Hero Area --- */

.firebird-hero-wrapper {
    position: relative;
    width: 100%;
    min-height: 450px;
    padding: 4rem 2rem 6rem 2rem; /* Added extra bottom padding (6rem) so the tab buttons don't overlap the text */
    border-radius: 16px;
    margin-bottom: 3rem;
    overflow: hidden;

    /* KEEPING YOUR ORIGINAL FLEX LAYOUT */
    display: flex;
    align-items: center;

    /* Base Dark Background Color fallback */
    background-color: #1a1515;

    /* Original Background Image rules */
    background-image:
        linear-gradient(135deg, rgba(26, 21, 21, 0.95) 30%, rgba(216, 67, 21, 0.15) 100%),
        url('../images/hero-bg-2.jpg');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* THE FIX: Modify the panels to position on top of each other using an absolute container shortcut */
.hero-content-overlay {
    max-width: 650px;
    z-index: 2;
    width: 100%;

    /* Hide by default using a safe transition method */
    opacity: 0;
    visibility: hidden;
    display: none; /* Keeps hidden tabs completely out of layout computation */
    transition: opacity 0.4s ease-in-out;
}

/* Show the active panel naturally */
.hero-content-overlay.active {
    opacity: 1;
    visibility: visible;
    display: block; /* Restores the block structure to the active tab */
}

.firebird-hero-wrapper .badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: rgba(216, 67, 21, 0.2);
    color: #ff7043;
    border: 1px solid rgba(216, 67, 21, 0.4);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.firebird-hero-wrapper h1 {
    font-size: 2.75rem !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
    letter-spacing: -0.02em;
}

.hero-tagline {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #e0e0e0;
    margin-bottom: 2.5rem;
    text-align: left;
}

/* Hero Action CTA Buttons */
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-hero-primary, .btn-hero-secondary {
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out;
}

.btn-hero-primary {
    background-color: #e65100; /* Deep Firebird Orange */
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(230, 81, 0, 0.4);
}

.btn-hero-primary:hover {
    background-color: #ff6d00;
    transform: translateY(-1px);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   NEW ADDITIONS: Tab Bar Controls (Styled to fit the Firebird theme)
   ========================================================================== */

.hero-tabs {
    position: absolute;
    bottom: 20px;
    left: 2rem; /* Aligns left side precisely with your layout text padding */
    display: flex;
    gap: 0.75rem;
    z-index: 10;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #b0b0b0;
    padding: 0.5rem 1.25rem;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease-in-out;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.tab-btn.active {
    background-color: #e65100; /* Matches your brand deep orange primary CTA button */
    border-color: #e65100;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(230, 81, 0, 0.3);
}

/* Justify all standard paragraph text blocks across the site */
.md-typeset p {
    text-align: justify;
    text-justify: inter-word; /* Optimizes spacing between words for cleaner text blocks */
}

/* Except hero-taglne */
.md-typeset p.hero-tagline,
.hero-tagline {
    text-align: left !important;
}

