/* GYODER News Redesign Styles */

:root {
    --news-bg: #FBFCFE;
    --news-dark-blue: #1F5D78;
    --news-blue: #236B8B;
    --news-light-blue: #6EC3E9;
    --news-text: #212225;
    --news-muted: #6c757d;
    --news-border: #e9ecef;
    --news-card-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    --news-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-section,
.news-index-page {
    background-color: var(--news-bg);
    color: var(--news-text);
    overflow-x: hidden;
}

/* Typography */
.news-title {
    font-weight: 700;
    line-height: 1.2;
    color: var(--news-dark-blue);
}

.section-title {
    font-weight: 700;
    color: var(--news-dark-blue);
    font-size: 1.5rem;
}

/* 
   -------------------------------------------------------------------------
   INDEX PAGE: HERO SECTION
   -------------------------------------------------------------------------
*/
.index-hero-section {
    height: 500px;
    background-color: #000;
}

@media (max-width: 768px) {
    .index-hero-section {
        height: 60vh;
    }
}

.index-hero-section .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.8;
    transition: transform 0.5s ease;
}

.index-hero-section:hover .hero-bg {
    transform: scale(1.03);
}

.index-hero-section .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

.carousel-indicators {
    z-index: 2;
    bottom: 20px;
}

.carousel-indicators button {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    margin: 0 6px !important;
    background-color: rgba(255, 255, 255, 0.5) !important;
    border: none !important;
    opacity: 1 !important;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background-color: #fff !important;
    transform: scale(1.2);
}

.carousel-control-prev,
.carousel-control-next {
    z-index: 3;
}

/* 
   -------------------------------------------------------------------------
   INDEX PAGE: MIXED LATEST NEWS LAYOUT
   -------------------------------------------------------------------------
*/

.large-latest-card {
    height: 480px;
    /* Fixed height for alignment */
}

@media (max-width: 991px) {
    .large-latest-card {
        height: 400px;
    }

    .small-latest-card {
        height: 150px;
    }
}

.card-img-overlay .overlay-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    z-index: 0;
}

.news-overlay-gradient {
    position: absolute;
    top: 0;
    right: 0;
    width: 20%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(33, 37, 41, 1));
    /* Gradient matching bg-dark */
    z-index: 2;
}

/* Hover Effects */
.hover-card {
    transition: var(--news-transition);
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.hover-card .card-img-top {
    transition: var(--news-transition);
}

.hover-card:hover .card-img-top {
    transform: scale(1.05);
}


/* 
   -------------------------------------------------------------------------
   DETAIL PAGE STYLES (Kept for consistency)
   -------------------------------------------------------------------------
*/

.detail-hero-section {
    position: relative;
    height: 60vh;
    min-height: 400px;
    width: 100%;
    overflow: hidden;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Dark overlay */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.hero-content-container {
    position: relative;
    z-index: 2;
}

.hero-title {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.article-body,
.article-body p,
.article-body span,
.article-body div,
.article-body li {
    font-size: 18px !important;
    line-height: 1.8 !important;
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    color: var(--news-text);
}

.article-body h2,
.article-body h3,
.article-body h4 {
    color: var(--news-dark-blue);
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body blockquote {
    padding: 2rem;
    background-color: #f8f9fa;
    border-left: 5px solid var(--news-dark-blue);
    font-style: italic;
    font-size: 1.25rem;
    margin: 2rem 0;
    border-radius: 0.5rem;
}

.share-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f8f9fa;
    color: var(--news-dark-blue);
    margin-left: 0.5rem;
    transition: var(--news-transition);
}

.share-link:hover {
    background-color: var(--news-dark-blue);
    color: #fff;
    transform: translateY(-2px);
}

/* Sidebar Widgets */
.widget-title {
    font-weight: 700;
    color: var(--news-dark-blue);
    position: relative;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--news-border);
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--news-dark-blue);
}

/* Social Stats Widget */
.social-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.social-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    border-radius: 8px;
    background-color: #fff;
    border: 1px solid var(--news-border);
    text-decoration: none;
    color: var(--news-text);
    transition: var(--news-transition);
}

.social-stat-item:hover {
    box-shadow: var(--news-card-shadow);
    transform: translateY(-3px);
}

.social-stat-item i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.social-stat-item.facebook:hover i {
    color: #1877F2;
}

.social-stat-item.twitter:hover i {
    color: #000;
}

.social-stat-item.linkedin:hover i {
    color: #0A66C2;
}

.social-stat-item.instagram:hover i {
    color: #E4405F;
}

/* Latest News Widget */
.latest-img-wrapper {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 6px;
}

.latest-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.latest-content h6 {
    line-height: 1.4;
}

/* Related News (You May Also Like) */
.related-card .related-img-wrapper {
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
}

.related-card .related-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--news-transition);
}

.related-card:hover .related-img-wrapper img {
    transform: scale(1.05);
}

.related-title {
    transition: var(--news-transition);
}

.related-card:hover .related-title {
    color: var(--news-dark-blue) !important;
}

/* Pagination Style Overrides */
.news-pagination {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}

.news-pagination .pagination {
    gap: 8px;
    border: none;
}

.news-pagination .page-item {
    margin: 0;
}

.news-pagination .page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--news-border);
    border-radius: 50% !important;
    color: var(--news-text);
    text-decoration: none;
    transition: var(--news-transition);
    background: transparent;
    padding: 0;
    font-weight: 500;
}

.news-pagination .page-item.active .page-link {
    background-color: var(--news-dark-blue);
    color: #fff;
    border-color: var(--news-dark-blue);
    z-index: 1;
}

.news-pagination .page-link:hover {
    background-color: var(--news-light-blue);
    color: var(--news-dark-blue);
    border-color: var(--news-dark-blue);
}

.news-pagination .page-item.disabled .page-link {
    background-color: transparent;
    color: #ccc;
    border-color: #eee;
}

.news-pagination svg {
    width: 20px;
    height: 20px;
}