/* Applications Page Custom Styles */

:root {
    --accent-yellow: #CAA554;
    --dark-green: #01321E;
}

.applications-hero {
    position: relative;
    width: 100%;
    min-height: 50vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--dark-green);
    padding: 80px 0;
}

/* Background Image */
.applications-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/applications-page/hero-banner.png') no-repeat center center;
    background-size: cover;
    z-index: 1;
}

/* Content Container */
.applications-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

/* Badge Styling */
.applications-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--accent-yellow);
    border-radius: 50px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    font-weight: 500;
}

.applications-badge .badge-tag {
    background-color: var(--accent-yellow);
    color: #000;
    padding: 2px 10px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.applications-badge .badge-text {
    color: #fff;
    font-weight: 400;
}

/* Headline Styling */
.applications-title {
    font-family: 'Outfit', sans-serif;
    font-size: 4.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.1;
}

/* Paragraph Styling */
.applications-desc {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
    max-width: 600px;
}

/* Reveal Animations */
.reveal-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--delay, 0s);
}

.reveal-fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Animation Delays */
.delay-1 {
    --delay: 0.1s;
}

.delay-2 {
    --delay: 0.2s;
}

.delay-3 {
    --delay: 0.3s;
}

.delay-4 {
    --delay: 0.4s;
}

.delay-5 {
    --delay: 0.5s;
}

/* Section 2: Application Matrix */
.application-matrix-section {
    padding: 60px 0;
    position: relative;
    background-color: #fff;
    overflow: hidden;
}

/* Background Circles (Row Specific) */
.bg-circle {
    position: absolute;
    border-radius: 50%;
    background-color: #F7F5F0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6 !important;
}

/* Circle Version 1: Big */
.bg-circle-v1 {
    width: 250px !important;
    height: 250px !important;
}

/* Circle Version 2: Right Small (Medium) */
.bg-circle-v2 {
    width: 180px !important;
    height: 180px !important;
}

/* Circle Version 3: Left Bottom (Smallest) */
.bg-circle-v3 {
    width: 100px !important;
    height: 100px !important;
}

/* Positions for Normal Rows (A, C, E) */
.pos-right-big {
    top: 15%;
    right: -120px;
}

.pos-right-small {
    top: 50%;
    right: 5%;
}

.pos-left-bottom {
    bottom: 10%;
    left: -50px;
}

/* Positions for Swapped/Reversed Rows (B, D, F) */
.pos-left-big {
    top: 15%;
    left: -120px;
}

.pos-left-small {
    top: 50%;
    left: 5%;
}

.pos-right-bottom {
    bottom: 10%;
    right: -50px;
}

.matrix-header {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
    z-index: 5;
}

.badge-application {
    display: inline-block;
    color: #CAA554;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
    position: relative;
    padding: 0 40px;
}

.badge-application::before,
.badge-application::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background-color: #CAA554;
}

.badge-application::before {
    left: 0;
}

.badge-application::after {
    right: 0;
}

.matrix-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #01321E;
}

.matrix-section-title span {
    color: #CAA554;
}

/* Matrix Card Styling */
.matrix-card {
    background-color: #fff;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    z-index: 3;
}

.matrix-card-img-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.matrix-card-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.matrix-card:hover .matrix-card-img-wrapper img {
    transform: scale(1.1);
}

.matrix-card-badge {
    position: absolute;
    top: 25px;
    left: 25px;
    background-color: #CAA554;
    color: #01321E;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    z-index: 3;
}

.matrix-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(1, 45, 26, 0.98) 75%);
    z-index: 2;
    color: #fff;
}

.matrix-card-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 8px;
    display: block;
}

.matrix-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.matrix-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.matrix-pill {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.7rem;
    padding: 5px 12px;
    border-radius: 50px;
}

/* Detail Content Side */
.matrix-detail-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 40px;
}

.detail-inclusion-ratio {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.detail-inclusion-ratio .ratio-val {
    color: #CAA554;
    font-weight: 700;
    display: flex;
    align-items: center;
}

/* Line AFTER ratio-val for Normal Layout (Cards A, C, E) */
.detail-inclusion-ratio:not(.flex-lg-row-reverse) .ratio-val::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 1px;
    background-color: #CAA554;
    margin-left: 12px;
    opacity: 0.8;
}

/* Line BEFORE ratio-val for Reversed Layout (Cards B, D, F) */
.detail-inclusion-ratio.flex-lg-row-reverse .ratio-val::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 1px;
    background-color: #CAA554;
    margin-right: 12px;
    opacity: 0.8;
}

/* Ensure no double lines or wrong placement */
.detail-inclusion-ratio.flex-lg-row-reverse .ratio-val::after {
    display: none;
}

.detail-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #01321E;
    margin-bottom: 20px;
}

.detail-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 12px;
}

.detail-item .icon {
    color: #CAA554;
    margin-top: 6px;
    font-size: 4px;
}

/* Formulation Notes */
.formulation-notes-box {
    background-color: #F7F5F0;
    padding: 20px;
    position: relative;
    border: 1px solid #eee;
    margin-top: 25px;
    border-radius: 4px;
}

.notes-badge-wrapper {
    position: absolute;
    top: -30px;
    right: 0px;
}

.notes-badge-wrapper.left {
    left: 0px;
    right: auto;
}

.notes-badge {
    background-color: #01321E;
    color: #CAA554;
    padding: 5px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 1px;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
    font-weight: 700;
}

.notes-content {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}



/* Responsive */
@media (max-width: 1400px) {
    .applications-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 991px) {
    .applications-hero {
        padding: 60px 0;
        min-height: auto;
    }

    .applications-hero-content {
        text-align: center;
        margin: 0 auto;
    }

    .applications-title {
        font-size: 2.8rem;
    }

    .applications-desc {
        margin: 0 auto;
    }

    .application-matrix-section {
        padding: 60px 0;
    }

    .matrix-section-title {
        font-size: 2.2rem;
        text-align: center;
        margin-bottom: 40px;
    }

    .matrix-detail-col {
        padding: 0 15px;
        margin-top: 30px;
        text-align: center !important;
    }

    .detail-inclusion-ratio {
        justify-content: center;
        margin-bottom: 20px;
        gap: 10px;
    }

    .detail-inclusion-ratio.flex-lg-row-reverse {
        flex-direction: row !important;
    }

    .detail-inclusion-ratio.flex-lg-row-reverse .ratio-val::before {
        display: none;
    }

    .detail-inclusion-ratio .ratio-val::after {
        display: none;
    }

    .detail-list {
        list-style: none;
        padding: 0 15px;
        margin: 0 0 30px 0;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: start !important;
    }

    .detail-item {
        justify-content: flex-start !important;
        text-align: start !important;
        flex-direction: row !important;
        width: 100%;
        gap: 12px;
    }

    .detail-item .icon {
        margin: 6px 0 0 0 !important;
    }

    .formulation-notes-box {
        margin-top: 40px;
    }

    .notes-badge-wrapper {
        position: absolute;
        top: -47px;
        left: 50% !important;
        transform: translateX(-50%);
        right: auto !important;
    }

    .notes-badge {
        clip-path: none !important;
    }

    .bg-circle {
        display: none;
    }

    .benefits-promo-section {
        padding: 40px 0;
    }

    .promo-img-wrapper {
        border-radius: 12px;
    }
}

@media (max-width: 576px) {
    .applications-title {
        font-size: 2.2rem;
    }

    .matrix-section-title {
        font-size: 1.8rem;
    }

    .matrix-card-title {
        font-size: 1.5rem;
    }

    .detail-subtitle {
        font-size: 1.3rem;
    }

    .matrix-card-content {
        padding: 20px;
    }

    .matrix-card-badge {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
        left: 15px;
        top: 15px;
    }
}


/* Section 4: Promotional Banner Styles */
.benefits-promo-section {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
    background-color: #fff;
}

.promo-img-wrapper {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.promo-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}