/* ==============================================
   Medication Hero Banner Component - Modern & Reusable
   ============================================== */

.medication-hero {
    /* CSS Custom Properties for dynamic configuration */
    --medication-hero-image: none;
    --medication-hero-text-color: #ffffff;

    /* Layout */
    width: 100%;
    position: relative;
    overflow: hidden;

    /* Background setup - no overlay */
    background-image: var(--medication-hero-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* Spacing */
    min-height: clamp(20rem, 30vh, 25rem);
    padding: clamp(1.5rem, 3vw, 2rem) 0;

    /* Text color */
    color: var(--medication-hero-text-color);
}

/* Left Column Content */
.medication-hero__left-content {
    position: relative;
    z-index: 2;
}

.medication-hero__title {
    font-size: clamp(2.5rem, 5vw, 5rem);
    line-height: 1.1;
    margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
    color: var(--medication-hero-text-color);
    font-weight: 900;
}

.medication-hero__subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    line-height: 1.4;
    color: var(--medication-hero-text-color);
    margin-bottom: 0;
}

/* Right Column Content */
.medication-hero__right-content {
    position: relative;
    z-index: 2;
    text-align: left;
}

.medication-hero__secondary-title {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
    color: var(--medication-hero-text-color);
    font-weight: 700;
}

.medication-hero__text {
    font-size: clamp(1.05rem, 2.4vw, 1.3rem);
    line-height: 1.5;
    color: var(--medication-hero-text-color);
    margin-bottom: 0;
}

/* Auto-scaling title classes for long medication names */
.medication-hero-title-medium {
    font-size: clamp(2rem, 4.5vw, 4rem) !important;
    line-height: 1.1;
    word-break: break-word;
}

.medication-hero-title-small {
    font-size: clamp(1.75rem, 4vw, 3rem) !important;
    line-height: 1.1;
    word-break: break-word;
    hyphens: auto;
}

/* Tablet adjustments (768-991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .medication-hero {
        min-height: clamp(18rem, 28vh, 22rem);
    }

    .medication-hero__title {
        font-size: clamp(2rem, 4.5vw, 3.5rem);
    }

    .medication-hero-title-medium {
        font-size: clamp(1.75rem, 4vw, 3rem) !important;
    }

    .medication-hero-title-small {
        font-size: clamp(1.5rem, 3.5vw, 2.5rem) !important;
    }

    .medication-hero__secondary-title {
        font-size: clamp(1.3rem, 3vw, 2rem);
    }

    .medication-hero__text {
        font-size: clamp(1rem, 2.2vw, 1.15rem);
    }
}

/* Mobile adjustments (≤767px) */
@media (max-width: 767px) {
    .medication-hero {
        min-height: clamp(14rem, 22vh, 18rem);
        padding: clamp(1rem, 2.5vw, 1.5rem) 0;
    }

    /* Center content on mobile */
    .medication-hero__left-content,
    .medication-hero__right-content {
        text-align: center;
    }

    /* Add text shadow for better readability */
    .medication-hero__title,
    .medication-hero__subtitle,
    .medication-hero__secondary-title,
    .medication-hero__text {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    }

    .medication-hero__title {
        font-size: clamp(1.5rem, 4.5vw, 2rem);
        margin-bottom: clamp(0.5rem, 1.5vw, 1rem);
    }

    .medication-hero-title-medium,
    .medication-hero-title-small {
        font-size: clamp(1.35rem, 4vw, 1.75rem) !important;
    }

    .medication-hero__subtitle {
        font-size: clamp(0.95rem, 2.2vw, 1.1rem);
    }

    .medication-hero__secondary-title {
        font-size: clamp(1.2rem, 3.5vw, 1.5rem);
        margin-bottom: clamp(0.5rem, 1.5vw, 0.75rem);
    }

    .medication-hero__text {
        font-size: clamp(0.9rem, 2vw, 1.05rem);
    }

    /* Adjust margins for mobile */
    .hero-content-wrapper {
        margin-top: 1rem !important;
    }

    .hero-content-row {
        margin-top: 1rem !important;
    }
}

/* Small mobile screens (≤575px) */
@media (max-width: 575px) {
    .medication-hero {
        min-height: clamp(12rem, 20vh, 16rem);
        padding: clamp(0.75rem, 2vw, 1.25rem) 0;
    }

    .medication-hero__title {
        font-size: clamp(1.25rem, 4vw, 1.75rem);
    }

    .medication-hero-title-medium,
    .medication-hero-title-small {
        font-size: clamp(1.2rem, 3.8vw, 1.5rem) !important;
    }

    .medication-hero__subtitle {
        font-size: clamp(0.9rem, 2vw, 1rem);
    }

    .medication-hero__secondary-title {
        font-size: clamp(1.15rem, 3.2vw, 1.35rem);
    }

    .medication-hero__text {
        font-size: clamp(0.85rem, 1.8vw, 1rem);
    }
}

/* Ultra small screens (≤420px) */
@media (max-width: 420px) {
    .medication-hero {
        min-height: clamp(10rem, 18vh, 14rem);
        padding: clamp(0.5rem, 1.5vw, 1rem) 0;
    }

    .medication-hero__title {
        font-size: clamp(1.1rem, 3.5vw, 1.5rem);
        line-height: 1.15;
    }

    .medication-hero-title-medium,
    .medication-hero-title-small {
        font-size: clamp(1.05rem, 3.3vw, 1.35rem) !important;
        line-height: 1.2;
    }

    .medication-hero__subtitle {
        font-size: clamp(0.85rem, 1.8vw, 0.95rem);
    }

    .medication-hero__secondary-title {
        font-size: clamp(1.05rem, 3vw, 1.2rem);
    }

    .medication-hero__text {
        font-size: clamp(0.8rem, 1.6vw, 0.9rem);
    }
}

/* Spacing utilities for hero sections */
.hero-content-wrapper {
    position: relative;
    z-index: 2;
}

.hero-content-row {
    position: relative;
    z-index: 2;
}

/* Performance optimization */
@media (prefers-reduced-motion: reduce) {
    .medication-hero {
        background-attachment: scroll;
    }
}
