/* 
  TXEC Common Components Styles
  Organized for Traditional Laravel (Direct public access)
*/

/* --- Section Header --- */
.tx-section-header {
    margin-bottom: 3rem;
}
.tx-section-header.centered {
    text-align: center;
}
.tx-section-eyebrow {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--red);
    margin-bottom: 0;
    line-height: 1.5;
}
.tx-section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.5;
}
.tx-section-title .accent {
    color: var(--red);
}
.tx-section-subtitle {
    font-size: 1.125rem;
    color: #4B5563;
    max-width: 800px;
    line-height: 1.6;
}
.tx-section-header.centered .tx-section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* --- Premium Benefit Card --- */
.tx-benefit-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 30px;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(25,44,132,0.03);
    border: 1px solid #f1f5f9;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    text-align: center;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}
.tx-benefit-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(25,44,132,0.08);
    border-color: rgba(25,44,132,0.1);
    background: #fff;
}
.tx-benefit-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 2px solid transparent;
}
.tx-benefit-card:hover .tx-benefit-icon {
    transform: rotate(-8deg) scale(1.1);
    background: transparent !important;
}
.tx-benefit-icon.red { background: var(--red); color: #fff; }
.tx-benefit-card:hover .tx-benefit-icon.red { border-color: var(--red); color: var(--red); }
.tx-benefit-icon.blue { background: var(--blue); color: #fff; }
.tx-benefit-card:hover .tx-benefit-icon.blue { border-color: var(--blue); color: var(--blue); }

.tx-benefit-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 12px;
    transition: color 0.3s;
}
.tx-benefit-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
}

/* --- CTA Block --- */
.tx-cta-section {
    background: linear-gradient(135deg, var(--navy) 0%, #1e3a8a 100%);
    color: #fff;
    padding: 6rem 0;
    text-align: center;
    margin: 4rem 0 0; /* Remove bottom margin to sit flush with footer */
}
.tx-cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}
.tx-cta-desc {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.tx-cta-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}
.cta-btn {
    padding: 14px 36px;
    border-radius: 12px;
    font-size: 15.5px;
    font-weight: 800;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.cta-btn.white {
    background: #fff !important;
    color: var(--navy) !important;
}
.cta-btn.white:hover {
    background: #f1f5f9 !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.cta-btn.outline {
    background: transparent !important;
    color: #fff !important;
    border: 2px solid rgba(255,255,255,0.4) !important;
}
.cta-btn.outline:hover {
    border-color: #fff !important;
    background: rgba(255,255,255,0.1) !important;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .tx-cta-section {
        padding: 4rem 0;
        margin: 2rem 0 0; /* Remove bottom margin */
        width: 100% !important;
        max-width: 100% !important;
    }
    .tx-cta-title {
        font-size: 1.75rem;
    }
    .tx-cta-desc {
        font-size: 1rem;
    }
    .tx-cta-btns {
        flex-direction: column;
        align-items: center; /* Center buttons */
        gap: 12px;
    }
    .tx-cta-btns .cta-btn {
        width: 100%;
        max-width: 320px; /* Limit width for better centering look */
        text-align: center;
    }
}

/* --- Spoiler / Accordion Shortcode --- */
.txec-spoiler {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin: 24px 0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.txec-spoiler[open] {
    border-color: var(--navy);
    box-shadow: 0 4px 12px rgba(25, 44, 132, 0.08);
}
.txec-spoiler summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--navy);
    cursor: pointer;
    background: #f8fafc;
    list-style: none; /* Hide default arrow */
    user-select: none;
    transition: background 0.2s;
}
.txec-spoiler summary::-webkit-details-marker {
    display: none; /* Hide default arrow in webkit */
}
.txec-spoiler summary:hover {
    background: #f1f5f9;
}
.txec-spoiler[open] summary {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}
.txec-spoiler summary svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    color: #64748b;
}
.txec-spoiler[open] summary svg {
    transform: rotate(180deg);
    color: var(--navy);
}
.txec-spoiler .spoiler-content {
    padding: 20px;
    color: #000 !important;
    line-height: 1.8;
    animation: spoilerFadeIn 0.4s ease-out;
}
.txec-spoiler .spoiler-content p,
.txec-spoiler .spoiler-content span,
.txec-spoiler .spoiler-content div {
    color: #000 !important;
}
@keyframes spoilerFadeIn {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}
