/* ══════════════════════════════════════
   INLINE OFFER SECTION
   Integrated into Main Content Card
══════════════════════════════════════ */

.offer-inline-container {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: 
        grid-template-rows 0.8s cubic-bezier(0.23, 1, 0.32, 1), 
        opacity 0.6s ease, 
        padding 0.8s ease, 
        visibility 0.6s,
        transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Highly premium elastic roll down */
    background: transparent;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    padding: 0;
    position: absolute;
    top: calc(100%);
    left: 0;
    z-index: 1000;
    
    /* Advanced 3D Setup */
    perspective: 2000px;
    transform-style: preserve-3d;
    transform-origin: top center;
    transform: rotateX(-95deg) translateY(-40px) scale(0.9);
}

.offer-inline-container.active {
    grid-template-rows: 1fr;
    opacity: 1;
    visibility: visible;
    padding: 0 0 30px; 
    transform: rotateX(0deg) translateY(0) scale(1);
}

.offer-inline-content {
    max-height: 500px;
    overflow-y: auto;
    min-height: 0;
    margin: 0 15px; 
    padding: 45px 35px 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 0 0 rgba(0,0,0,0); /* Start no shadow */
    border: 1px solid #e2e8f0;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: #1a4d2e #f1f1f1;
    transition: box-shadow 0.8s ease;
}

.offer-inline-container.active .offer-inline-content {
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.15),
        0 10px 20px rgba(26, 77, 46, 0.05); /* Branded depth shadow */
}

.offer-inline-content::-webkit-scrollbar {
    width: 6px;
}

.offer-inline-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.offer-inline-content::-webkit-scrollbar-thumb {
    background: #1a4d2e;
    border-radius: 10px;
}

/* Content Styling (Brand Green Theme from Image) */
.offer-box {
    color: #1a4d2e; /* Brand Green */
    max-width: 800px;
    margin: 0 auto;
}

.offer-section {
    margin-bottom: 25px;
}

.offer-item-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
}

.offer-item-text {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
}

.offer-item-text .quote {
    font-weight: 800;
}

.underline {
    text-decoration: underline;
}

.offer-footer-info {
    margin-top: 35px;
}

.info-item {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    line-height: 1.4;
}

.star {
    font-size: 22px;
    flex-shrink: 0;
}

.notice {
    margin-top: 30px;
}

/* Close button - optionally used if you want a close trigger inside the inline block */
.offer-modal-close {
    display: none; /* Not needed for inline toggle usually */
}

/* Responsive Scaling */
@media (max-width: 991px) {
    .offer-inline-content {
        padding: 45px 25px 30px;
    }
}

@media (max-width: 768px) {
    .offer-inline-container.active {
        padding: 0 0 20px;
    }

    .offer-inline-content {
        padding: 40px 30px 25px;
        margin: 0 10px;
        max-height: 600px;
    }

    .offer-item-title {
        font-size: 19px;
        margin-bottom: 8px;
    }

    .offer-item-text, .info-item {
        font-size: 15px;
        line-height: 1.5;
    }
    
    .star {
        font-size: 18px;
    }

    .offer-section {
        margin-bottom: 20px;
    }

    .offer-footer-info {
        margin-top: 25px;
    }

    .info-item {
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .offer-inline-content {
        padding: 35px 25px 20px;
        margin: 0 5px;
        max-height: 500px;
    }

    .offer-item-title {
        font-size: 17px;
    }

    .offer-item-text, .info-item {
        font-size: 14px;
        line-height: 1.4;
    }

    .star {
        font-size: 16px;
        margin-top: 2px;
    }

    .notice {
        margin-top: 20px;
    }
}

@media (max-width: 375px) {
    .offer-item-title {
        font-size: 16px;
    }

    .offer-item-text, .info-item {
        font-size: 13px;
    }
}
