/* ---------- MAIN ---------- */
main.index-content {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
}

main.index-content h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* ---------- SECTION ICONS ---------- */
.section-icon {
    width: 32px;
    height: 32px;
    vertical-align: middle;
    margin-right: 10px;
    object-fit: contain;
}

/* ---------- SECTION DIVIDER ---------- */
.section-divider {
    border: none;
    border-top: 2px solid #e0e0e0;
    margin: 50px 0 30px;
}

/* ---------- BACK TO TOP BUTTON ---------- */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 1000;
    font-size: 40px;
    font-weight: bold;
    background-color: white;
    color: #001070;
    border: none;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    cursor: pointer;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: background-color 0.3s, color 0.3s;
}

#backToTop:hover {
    background-color: #001070;
    color: white;
}

/* ========== LATEST TRENDING SECTION ========== */
.latest-trending {
    margin-top: 30px;
}

.latest-trending h2 {
    font-size: 26px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.trending-grid {
    display: flex;
    align-items: stretch;
    gap: 20px;
}

.featured-post {
    flex: 2;
    display: flex;
    flex-direction: column;
}

.featured-post img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 10px;
}

.featured-post h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: #000;
}

.featured-post a {
    text-decoration: none;
}

.featured-post a:hover h3 {
    color: #001070;
    text-decoration: underline;
    text-decoration-color: #f08c00;
}

.featured-post a img {
    transition: transform 0.3s ease;
}

.featured-post a:hover img {
    transform: scale(1.03);
}

.stacked-posts {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
}

.stacked-post {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    text-decoration: none;
}

.stacked-post img {
    width: 40%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.stacked-post-text {
    flex: 1;
}

.stacked-post p {
    font-size: 16px;
    margin: 0;
    color: #111;
    line-height: 1.4;
}

.horizontal-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.horizontal-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s;
}

.horizontal-card:hover {
    transform: translateY(-3px);
}

.horizontal-card img {
    width: 100%;
    height: auto;
}

.horizontal-card h4 {
    font-size: 16px;
    padding: 10px;
    margin: 0;
    color: #000;
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
}

.horizontal-card a {
    text-decoration: none;
}

.horizontal-card a:hover {
    text-decoration: underline;
    text-decoration-color: #f08c00;
}

.horizontal-card a:hover h4 {
    color: #001070;
}

.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

a:hover h3,
a:hover h4,
a:hover p {
    color: #001070;
    text-decoration: underline #f08c00;
    transition: color 0.2s ease;
}

.no-underline {
    text-decoration: none;
}

.hover-zoom {
    transition: transform 0.3s ease;
}

.hover-zoom:hover {
    transform: scale(1.05);
}

@media (max-width: 767px) {
    .trending-grid {
        flex-direction: column;
    }

    .featured-post,
    .stacked-posts {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .featured-post {
        min-width: 0;
    }

    .stacked-posts {
        min-width: 0;
        flex: 1;
    }

    .trending-grid {
        flex-wrap: nowrap;
    }
}

/* ========== LATEST BY CATEGORY ========== */
.latest-by-category {
    background-color: #001070;
    color: white;
    padding: 30px 0;
    margin-top: 40px;
}

.latest-by-category h2 {
    color: #fff;
    text-align: center;
    margin-bottom: 25px;
    font-size: 24px;
    position: relative;
}

.latest-by-category h2::before {
    content: "\f02c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 10px;
    color: #f08c00;
}

.card-grid.blue {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 15px;
}

.card-grid .card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.card-grid .card:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.card-grid .card h3 {
    font-size: 16px;
    color: white;
    margin-bottom: 10px;
}

.card-grid .tag {
    background-color: #ffffff;
    color: #001070;
    font-size: 17px;
    padding: 4px 8px;
    border-radius: 10px;
    display: inline-block;
    font-weight: bold;
}

@media (max-width: 767px) {
    .card-grid.blue {
        grid-template-columns: 1fr;
    }
}

/* ========== WEB STORIES ========== */
.web-stories {
    margin-top: 40px;
}

.web-stories h2 {
    font-size: 26px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
}

.story {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.story:hover {
    transform: translateY(-4px);
}

.story img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.story p {
    padding: 10px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    background: #fff;
    color: #111;
}

.story a {
    text-decoration: none;
}

.story a:hover p {
    color: #001070;
}

/* ========== CATEGORY SECTIONS ========== */
.category-block {
    margin-top: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 24px;
    margin: 0;
    display: flex;
    align-items: center;
}

.section-header .more-btn {
    background: linear-gradient(135deg, #001070 0%, #0018a0 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 16, 112, 0.3);
}

.section-header .more-btn:hover {
    background: linear-gradient(135deg, #f08c00 0%, #ff9900 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(240, 140, 0, 0.4);
}

.section-header .more-btn i {
    transition: transform 0.3s ease;
}

.section-header .more-btn:hover i {
    transform: translateX(4px);
}

.big-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.big-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.big-card:hover {
    transform: translateY(-4px);
}

.big-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.big-card h3 {
    padding: 12px;
    margin: 0;
    font-size: 18px;
    background: #fff;
    color: #111;
}

.big-card a {
    text-decoration: none;
}

.big-card a:hover h3 {
    color: #001070;
    text-decoration: underline;
    text-decoration-color: #f08c00;
}

.small-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.small-card {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s;
}

.small-card:hover {
    transform: translateY(-2px);
}

.small-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.small-card p {
    padding: 8px;
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    background: #fff;
    color: #111;
    line-height: 1.45;
}

.small-card a {
    text-decoration: none;
}

.small-card a:hover p {
    color: #001070;
}

/* ========== MEDIA THUMB OVERLAY (Video & Photo grids) ========== */

.media-thumb-wrap {
    position: relative;
    overflow: hidden;
    display: block;
}

/* Small white circle badge — bottom-left corner, Font Awesome icon inside */
.media-icon-overlay {
    position: absolute;
    bottom: 7px;
    left: 7px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.93);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.30);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    z-index: 2;
    pointer-events: none;
}

/* Font Awesome icon inside the badge */
.media-icon-overlay i {
    font-size: 11px;
    color: #001070;
    line-height: 1;
}

/* Small card badge — slightly smaller */
.small-card .media-icon-overlay {
    width: 20px;
    height: 20px;
    bottom: 5px;
    left: 5px;
}

.small-card .media-icon-overlay i {
    font-size: 9px;
}

/* Hover — scale up + solid white */
.big-card:hover .media-icon-overlay,
.small-card:hover .media-icon-overlay {
    transform: scale(1.15);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* Video badge: orange accent ring on hover */
.big-card:hover .video-overlay,
.small-card:hover .video-overlay {
    box-shadow: 0 0 0 2px #f08c00, 0 2px 8px rgba(0,0,0,0.25);
}
.big-card:hover .video-overlay i,
.small-card:hover .video-overlay i {
    color: #f08c00;
}

/* Photo badge: navy accent ring on hover */
.big-card:hover .photo-overlay-icon,
.small-card:hover .photo-overlay-icon {
    box-shadow: 0 0 0 2px #001070, 0 2px 8px rgba(0,0,0,0.25);
}

/* ========== VIDEO SLIDER (kept, unused after grid migration) ========== */
.video-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-slider {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: #001070 #f0f0f0;
}

.video-slider::-webkit-scrollbar {
    height: 8px;
}

.video-slider::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.video-slider::-webkit-scrollbar-thumb {
    background: #001070;
    border-radius: 10px;
}

.video-slide {
    min-width: 300px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s;
}

.video-slide:hover {
    transform: translateY(-6px);
}

.video-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.video-slide .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    color: rgba(255, 255, 255, 0.9);
    pointer-events: none;
    transition: color 0.3s;
}

.video-slide:hover .play-icon {
    color: #f08c00;
}

.video-slide h4 {
    padding: 12px;
    margin: 0;
    font-size: 16px;
    background: #fff;
    color: #111;
}

.video-slide a {
    text-decoration: none;
}

.video-slide a:hover h4 {
    color: #001070;
}

.slider-btn {
    background-color: #001070;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.slider-btn:hover {
    background-color: #f08c00;
}

/* ========== PHOTO SLIDER ========== */
.photo-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.photo-slider {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: #f08c00 #f0f0f0;
}

.photo-slider::-webkit-scrollbar {
    height: 8px;
}

.photo-slider::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.photo-slider::-webkit-scrollbar-thumb {
    background: #f08c00;
    border-radius: 10px;
}

.photo-slide {
    min-width: 280px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.photo-slide:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.photo-slide img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 15px;
    color: white;
}

.photo-overlay i {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

.photo-overlay p {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.photo-slide a {
    text-decoration: none;
}

.photo-slide:hover .photo-overlay {
    background: linear-gradient(to top, rgba(240, 140, 0, 0.9), transparent);
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .section-header h2 {
        font-size: 20px;
    }

    .section-icon {
        width: 28px;
        height: 28px;
    }

    .big-cards {
        grid-template-columns: 1fr;
    }

    .small-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .video-slide,
    .photo-slide {
        min-width: 250px;
    }

    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }

    .stories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .card-grid.blue {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-grid.blue {
        grid-template-columns: 1fr;
    }

    .small-cards {
        grid-template-columns: 1fr;
    }

    .section-header .more-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}