/* ================= AI NEWS HERO ================= */

.ai-news-hero {
    padding: 80px 8%;
    background: #f9fafc;
}

.ai-news-hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
}

/* LEFT */

.ai-news-left {
    flex: 1;
    min-width: 300px;
}

.ai-news-left h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #111;
}

.ai-news-left p {
    margin: 25px 0;
    font-size: 18px;
    color: #555;
    line-height: 1.7;
}

/* RIGHT IMAGES */

.ai-news-right {
    flex: 1;
    min-width: 300px;
    display: flex;
    gap: 20px;
}

.ai-img-large img {
    width: 100%;
    border-radius: 20px;
}

.ai-img-small {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ai-img-small img {
    width: 180px;
    border-radius: 20px;
}

/* RESPONSIVE */

@media (max-width: 992px) {

    .ai-news-hero-container {
        flex-direction: column;
        text-align: center;
    }

    .ai-news-right {
        justify-content: center;
    }

    .ai-img-small img {
        width: 140px;
    }

    .ai-news-left h1 {
        font-size: 36px;
    }

}
/* ================= FEATURED NEWS ================= */

.featured-news-section {
    padding: 80px 8%;
    background: #f9fafc;
}

.featured-news-container {
    max-width: 1200px;
    margin: auto;
}

.featured-news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.featured-news-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #111;
}

.news-tag {
    font-size: 14px;
    background: #111;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
}

/* GRID */

.featured-news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* MAIN FEATURE */

.featured-main img {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 20px;
}

.featured-main-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 10px 0;
    color: #111;
}

.featured-main-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

.news-date {
    font-size: 13px;
    color: #888;
}

/* SIDE NEWS */

.featured-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.featured-item {
    display: flex;
    gap: 15px;
    align-items: center;
}

.featured-item img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
}

.featured-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    margin: 5px 0;
}

/* RESPONSIVE */

@media(max-width: 900px) {

    .featured-news-grid {
        grid-template-columns: 1fr;
    }

    .featured-item img {
        width: 70px;
        height: 70px;
    }
}
/* ================= AI NEWS GRID ================= */

.ai-news-grid-section {
    padding: 80px 8%;
    background: #ffffff;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    color: #000;
}

.ai-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.ai-news-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    transition: 0.3s ease;
    border: 1px solid #eee;
}

.ai-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.news-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #000;
}

.news-content p {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

.news-meta {
    font-size: 13px;
    color: #777;
    display: flex;
    gap: 6px;
}

/* LOAD MORE */

.load-more-wrap {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    padding: 12px 28px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.load-more-btn:hover {
    background: #222;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {
    .ai-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .ai-news-grid {
        grid-template-columns: 1fr;
    }
}
/* ================= NEWS LAYOUT (LEFT + RIGHT) ================= */

.news-layout {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 40px;
    align-items: start;
}

/* LEFT SIDE */
.news-left {
    width: 100%;
}

/* RIGHT SIDE SPONSOR */

.news-right {
    width: 100%;
}

.sponsor-box {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    padding: 35px;
    border-radius: 18px;
    color: #fff;
    position: sticky;
    top: 100px;
}

.sponsor-badge {
    display: inline-block;
    background: #3b82f6;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 20px;
}

.logo-placeholder {
    border: 2px dashed rgba(255,255,255,0.4);
    border-radius: 12px;
    padding: 35px;
    text-align: center;
    margin-bottom: 25px;
    font-weight: 500;
    color: #cbd5e1;
}

.sponsor-box h3 {
    font-size: 20px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.sponsor-box p {
    font-size: 14px;
    color: #cbd5e1;
    margin-bottom: 25px;
}

.sponsor-btn {
    display: inline-block;
    background: #fff;
    color: #111;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s ease;
}

.sponsor-btn:hover {
    background: #e2e8f0;
    transform: translateY(-3px);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {

    .news-layout {
        grid-template-columns: 1fr;
    }

    .ai-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sponsor-box {
        position: relative;
        top: 0;
        margin-top: 50px;
    }
}

@media (max-width: 600px) {
    .ai-news-grid {
        grid-template-columns: 1fr;
    }
}
/* ================= GLOBAL RESPONSIVE IMPROVEMENTS ================= */

img {
    max-width: 100%;
    height: auto;
    display: block;
}

body {
    overflow-x: hidden;
}

/* Adaptive padding */
.ai-news-hero,
.featured-news-section,
.ai-news-grid-section {
    padding: 60px 5%;
}

/* Better small device typography */

@media (max-width: 768px) {

    .ai-news-left h1 {
        font-size: 30px;
    }

    .ai-news-left p {
        font-size: 16px;
    }

    .section-title {
        font-size: 26px;
    }

    .featured-main-content h3 {
        font-size: 20px;
    }

    .news-content h3 {
        font-size: 16px;
    }

    .news-content p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {

    .ai-news-left h1 {
        font-size: 24px;
    }

    .ai-news-left p {
        font-size: 14px;
    }

    .news-image img {
        height: 180px;
    }

    .news-meta {
        flex-wrap: wrap;
        gap: 4px;
    }

    .featured-news-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .featured-item {
        gap: 10px;
    }

    .featured-item img {
        width: 65px;
        height: 65px;
    }
}

/* Pagination mobile fix */

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.page-btn {
    padding: 8px 14px;
    font-size: 14px;
}
/* Hide mobile badge on desktop */
.mobile-top-news {
    display: none;
}
/* Desktop badge visible by default */
.desktop-top-news {
    display: inline-block;
}

/* Mobile badge hidden by default */
.mobile-top-news {
    display: none;
}

/* On mobile */
@media (max-width: 768px) {

    .desktop-top-news {
        display: none;
    }

    .mobile-top-news {
        display: inline-block;
        width: fit-content;
        margin: 20px 0;
    }

}

/* ================= BREADCRUMB ================= */

.breadcrumb-strip {
    background: #ffffff;
    padding: 18px 8%;
    border-bottom: 1px solid #f1f5f9;
}

.breadcrumb-container {
    font-size: 14px;
    color: #64748b;
}

.breadcrumb-container a {
    text-decoration: none;
    color: #3b82f6;
    font-weight: 500;
}

.breadcrumb-container span {
    margin: 0 6px;
}

.breadcrumb-container .current {
    color: #0f172a;
    font-weight: 500;
}

/* ================= SPONSOR MODAL ================= */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-box {
    background: #fff;
    width: 420px;
    max-width: 95%;
    padding: 35px;
    border-radius: 16px;
    position: relative;
    animation: popupFade 0.3s ease;
}

@keyframes popupFade {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-box h2 {
    margin-bottom: 20px;
    font-size: 22px;
}

.modal-box input,
.modal-box textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.modal-submit-btn {
    width: 100%;
    background: #0f172a;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.modal-submit-btn:hover {
    background: #1e293b;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 18px;
    font-size: 22px;
    cursor: pointer;
}
.success-message {
    text-align: center;
    padding: 20px;
}

.success-message h2 {
    color: #16a34a;
    margin-bottom: 15px;
}

.success-message p {
    color: #444;
    margin-bottom: 8px;
}