/* === Content & News Cards (Simple Reference Style) === */

.shadow-ai-section {
    position: relative;
    overflow: hidden;
    padding-block: 10rem;
    background: radial-gradient(circle at 50% 50%, rgba(2, 8, 23, 0), rgba(2, 8, 23, 1) 90%);
}

.shadow-ai-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(187, 255, 0, 0.03) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 1;
    pointer-events: none;
}

/* Header Typography */
/* Header Typography - Elegant & Visible */
.section-header {
    position: relative;
    z-index: 2;
    margin-bottom: 5rem;
    /* Slightly reduced */
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: -0.02em;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;

    /* Elegant Gradient Text */
    background: linear-gradient(135deg, #ffffff 30%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    /* Deep shadow for pop */
}

.section-header p {
    font-size: 1.15rem;
    color: var(--color-gray-medium);
    max-width: 600px;
    margin: 0 auto;
}

/* Section with Image Layout */
.section-with-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    margin-bottom: 8rem;
}

/* List Styling */
.section-with-image ul li {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.section-with-image ul li:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

/* === NEW CARD DESIGN: Simple Reference === */
.risk-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    /* Generous gap */
    position: relative;
    z-index: 2;
}

.news-card.simple-reference {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center Everything */
    text-align: center;
    /* Center Text */
    padding: 3rem 2rem;
    height: 100%;
}

.news-card.simple-reference:hover {
    transform: translateY(-10px);
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.15);
    border-color: var(--color-accent-green);
}

/* Circular/Icon Image Wrapper */
.news-icon-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 2rem;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: #000;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s ease;
}

.news-card:hover .news-icon-wrapper {
    transform: scale(1.1);
    border-color: var(--color-accent-green);
}

.news-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content */
.news-content-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Tag as Pill */
.news-tag-pill {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}

.news-tag-pill.alert {
    color: #ff6b6b;
    border-color: rgba(255, 107, 107, 0.3);
}

.news-tag-pill.warning {
    color: #ffa502;
    border-color: rgba(255, 165, 2, 0.3);
}

.news-tag-pill.critical {
    color: #ff4757;
    border-color: rgba(255, 71, 87, 0.3);
}

.news-content-center h3 {
    font-size: 1.5rem;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.news-text-center {
    font-size: 1rem;
    color: var(--color-gray-light);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

/* Pill Button */
.news-btn-pill {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    background: var(--color-primary-deep);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.news-btn-pill:hover {
    background: var(--color-white);
    color: var(--color-primary-navy);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

/* === MOBILE RESPONSIVE GLOBAL RULES === */
@media (max-width: 1024px) {
    .section-with-image {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }
}

@media (max-width: 768px) {

    /* Safe Mobile Padding Global */
    .container {
        padding-inline: 1.5rem !important;
        /* Force safety margin */
    }

    .shadow-ai-section {
        padding-block: 6rem;
    }

    /* Force Single Column for ALL grids in mobile */
    .risk-news-grid,
    .section-with-image,
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .news-card.simple-reference {
        padding: 2rem 1.5rem;
        /* Slightly less padding on mobile */
    }

    .news-btn-pill {
        width: 100%;
        /* Full width button on mobile */
    }
}