/* ===== Platform Components Section ===== */
.latest-taps {
    background-color: #1f2a37;
    color: #ffffff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    direction: rtl;
}

/* Decorative Images */
.latest-taps .image-container {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.latest-taps .image-container img {
    position: absolute;
    width: 59%;
    max-width: 276px;
    object-fit: contain;
    top: 0;
    right: 0;
}

.latest-taps .container-fluid {
    padding-left: 8rem;
    padding-right: 8rem;
    position: relative;
    z-index: 10;
}
@media (max-width: 1200px) {
    .latest-taps .container-fluid {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}
@media (max-width: 768px) {
    .latest-taps .container-fluid {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* --- Section Title --- */
.latest-taps .section-title {
    margin-bottom: 6rem;
}
.latest-taps .section-title h2 {
    color: #ffffff;
    font-weight: 700;
    font-size: 3rem;
    margin-bottom: 1rem;
}
.latest-taps .section-title p {
    color: #9ca3af;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.2rem;
}

/* --- Bootstrap Tab/Pill CSS Reset/Overrides --- */
.latest-taps .nav {
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
    position: relative;
    z-index: 100;
}
.latest-taps .flex-column {
    flex-direction: column !important;
}
.latest-taps .tab-content {
    position: relative;
    z-index: 100;
}
.latest-taps .tab-content > .tab-pane {
    display: none;
}
.latest-taps .tab-content > .tab-pane.active {
    display: block;
}
.latest-taps .tab-content > .fade {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.latest-taps .tab-content > .fade.show {
    opacity: 1;
}

/* --- Nav Link (Tab Buttons) --- */
.latest-taps .nav-link {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
    border: none;
    border-right: 3px solid transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    padding: 1.25rem 1rem;
    text-align: right;
    transition: all 0.3s ease;
    font-weight: 400;
    font-size: 1rem;
    width: 100%;
    cursor: pointer;
    text-decoration: none;
}
.latest-taps .nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}
.latest-taps .nav-pills .nav-link.active,
.latest-taps .nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(270deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0) 100%) !important;
    border-right: 3px solid #10b981 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-left: none !important;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 0;
}
.latest-taps .nav-link:last-child {
    border-bottom: none;
}

/* --- Content Panels --- */
.latest-taps .tab-pane h3 {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 2rem;
    line-height: 1.4;
}

/* --- Feature Card (Content Cards) --- */
.latest-taps .feature-card {
    padding: 1.5rem;
    color: #ffffff;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    transition: all 0.3s ease;
}
.latest-taps .feature-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-5px);
}

/* --- Layout Reset (Fixing absolute positioning and margins from styles.css) --- */
.latest-taps .tab-content .feature-card .icon-wrapper {
    position: relative !important;
    margin-bottom: 0 !important;
    inset: auto !important;
    aspect-ratio: auto !important;
    width: fit-content !important;
}

.latest-taps .tab-content .feature-card h4,
.latest-taps .tab-content .feature-card .h4 {
    margin-top: 1.5rem !important; /* Proper gap for stacked layout */
}

.latest-taps .tab-content .feature-card.d-flex {
    flex-direction: row !important;
}

/* For Governance tab (side-by-side) items, keep margin-top at 0 */
.latest-taps .tab-content .feature-card.d-flex h4 {
    margin-top: 0 !important;
}

.latest-taps .feature-card.d-flex .icon-wrapper i {
    font-size: 31px !important;
}

.latest-taps .tab-content .feature-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important; /* Alignment for RTL */
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

/* --- Icon Wrapper --- */
.latest-taps .feature-card.d-flex {
    display: flex !important;
}
.latest-taps .feature-card.d-flex.flex-column {
    flex-direction: column !important;
}
.latest-taps .feature-card.d-flex .icon-wrapper {
    flex-shrink: 0;
}
.latest-taps .feature-card.d-flex .icon-wrapper.mb-0 {
    margin-bottom: 0 !important;
}
.latest-taps .feature-card.d-flex .icon-wrapper.ms-3 {
    margin-left: 0 !important;
    margin-right: 1.5rem !important; /* Spacing for RTL */
}

.latest-taps .icon-wrapper {
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    display: block;
    margin-bottom: 1rem;
    position: relative;
}
.latest-taps .icon-wrapper i {
    font-size: 2rem;
    color: #10b981;
}
.latest-taps .icon-wrapper svg,
.latest-taps .icon-wrapper img {
    width: 31px !important;
    height: 31px !important;
    object-fit: contain;
    filter: invert(56%) sepia(87%) saturate(415%) hue-rotate(113deg) brightness(97%) contrast(85%);
}
.latest-taps .icon-wrapper::before {
    display: none !important;
}

/* --- Content Styling --- */
.latest-taps .feature-card h4,
.latest-taps .feature-card .h4 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    margin-top: 1rem !important; /* Adjusted from 0 to 1rem for reasonable spacing after reset */
}
.latest-taps .feature-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* --- Committee Cards --- */
.latest-taps .committee-cards {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}
.latest-taps .committee-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.75rem 1.25rem;
    color: #ffffff;
    font-size: 0.9rem;
    text-align: center;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- AI Tags --- */
.latest-taps .ai-tags {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    width: 100%;
}
.latest-taps .ai-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0.5rem;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
    color: #ffffff;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}
.latest-taps .ai-tag:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
    color: #10b981;
    transform: translateY(-2px);
}

/* --- Supervision Types Grid --- */
.latest-taps .supervision-types-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}
.latest-taps .supervision-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    text-align: right;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.02);
    min-height: 70px;
}
.latest-taps .supervision-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
    transform: translateY(-2px);
}
.latest-taps .supervision-card .icon-wrapper {
    margin: 0;
    width: auto;
    flex-shrink: 0;
}
.latest-taps .supervision-card .icon-wrapper img {
    width: 24px;
    height: 24px;
    opacity: 0.7;
    filter: invert(56%) sepia(87%) saturate(415%) hue-rotate(113deg) brightness(97%) contrast(85%);
}
.latest-taps .supervision-card .card-title {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
}

/* --- Sub List --- */
.latest-taps .sub-list {
    list-style: disc inside;
    padding: 0;
    margin-top: 1rem;
    color: #9ca3af;
}
.latest-taps .sub-list li {
    color: #9ca3af;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-align: right;
    padding-right: 0;
}

/* --- Decorative Graphic --- */
.latest-taps .graphic-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.latest-taps .graphic-container img {
    position: absolute;
    width: 40%;
    max-width: 493px;
    object-fit: contain;
    bottom: 0;
    left: 0;
}
.latest-taps .glow-orb {
    position: absolute;
    bottom: -319px;
    left: -209px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(27, 131, 84, 0.9);
    filter: blur(120px);
    z-index: 3;
    pointer-events: none;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .latest-taps {
        padding: 50px 0;
    }
    .latest-taps .section-title h2 {
        font-size: 2rem;
    }
    .latest-taps .section-title {
        margin-bottom: 3rem;
    }
    .latest-taps .nav-pills {
        flex-direction: row !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
        gap: 12px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-bottom: 2rem;
    }
    .latest-taps .nav-pills::-webkit-scrollbar {
        display: none;
    }
    .latest-taps .nav-link {
        white-space: nowrap;
        font-size: 0.9rem;
        padding: 12px 24px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 50px;
        background: rgba(255, 255, 255, 0.03);
        color: rgba(255, 255, 255, 0.7);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .latest-taps .nav-link.active {
        background: #10b981 !important;
        border-color: #10b981 !important;
        color: #ffffff !important;
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    }
    .latest-taps .supervision-types-grid,
    .latest-taps .ai-tags {
        grid-template-columns: repeat(2, 1fr);
    }
    .latest-taps .graphic-container {
        display: none;
    }
}
@media (max-width: 576px) {
    .latest-taps .supervision-types-grid,
    .latest-taps .ai-tags {
        grid-template-columns: 1fr;
    }
}
