/* India First Reports - Page Specific Styles */

/* ========================================
   CATEGORY PAGE STYLES
   ======================================== */

.category-content-layout {
    display: grid;
    grid-template-columns: 3fr 2fr; /* 60-40 split */
    gap: 2.5rem;
    padding-bottom: 3rem;
}

/* Main Article Section (60%) */
.main-article-section {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.featured-article {
    position: relative;
    width: 100%;
    height: 350px;
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    background-color: #eee;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    background-size: cover;
    background-position: center;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.featured-article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%);
    z-index: 1;
}

.featured-article-title {
    position: relative;
    z-index: 2;
    font-size: 2.2rem;
    font-weight: bold;
    line-height: 1.2;
    margin: 0;
}

.featured-article-title a {
    color: white;
    text-decoration: none;
}

/* Stacked News Content */
.stacked-news {
    margin-top: 2rem;
}

.stacked-news-item {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.stacked-news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.stacked-news-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stacked-news-title a {
    text-decoration: none;
    color: #2c3e50;
    transition: color 0.3s;
}

.stacked-news-title a:hover {
    color: #f59e0b;
}

.news-meta {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 0.8rem;
}

.news-teaser {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

.read-more-link {
    color: #f59e0b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: inline-block;
    transition: color 0.3s;
}

.read-more-link:hover {
    color: #d97706;
}

/* Pagination - Google Style */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    gap: 0.5rem;
}

.pagination a, .pagination span {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    background-color: #f0f0f0;
    transition: background-color 0.3s, color 0.3s;
    font-size: 0.9rem;
    font-weight: 500;
}

.pagination a:hover {
    background-color: #f59e0b;
    color: white;
}

.pagination .current-page {
    background-color: #f59e0b;
    color: white;
    font-weight: bold;
}

.pagination .dots {
    background-color: transparent;
    cursor: default;
}

/* Sidebar Section (40%) */
.sidebar-section {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.sidebar-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #f59e0b;
}

.sidebar-news-list .news-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.sidebar-news-list .news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-news-list .news-thumbnail {
    flex-shrink: 0;
    width: 100px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
}

.sidebar-news-list .news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.sidebar-news-list .news-thumbnail:hover img {
    transform: scale(1.05);
}

.sidebar-news-list .news-content {
    flex: 1;
}

.sidebar-news-list .news-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
}

.sidebar-news-list .news-title a {
    text-decoration: none;
    color: #2c3e50;
    transition: color 0.3s;
}

.sidebar-news-list .news-title a:hover {
    color: #f59e0b;
}

/* ========================================
   ARTICLE PAGE STYLES
   ======================================== */

.content-layout {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Main content wider than sidebar */
    gap: 2.5rem;
    padding-bottom: 3rem;
}

/* Main Article Content */
.article-main {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.breadcrumbs {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 1rem;
}

.breadcrumbs a {
    text-decoration: none;
    color: #777;
}

.breadcrumbs a:hover {
    color: #f59e0b;
}

.article-title {
    font-size: 2.2rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.article-meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-share {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.social-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #555;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    font-size: 0.8rem;
    font-weight: bold;
}

.social-share a:hover {
    background-color: #f59e0b;
    color: white;
}

.article-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.article-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* ========================================
   FOOTER STYLES
   ======================================== */

.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    margin-bottom: 1.5rem;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #f59e0b;
}

.footer-description {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #bdc3c7;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #34495e;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

.footer-social a:hover {
    background-color: #f59e0b;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #f59e0b;
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: #bdc3c7;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1rem;
}

.footer-bottom-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-bottom-links a:hover {
    color: #f59e0b;
}

/* ========================================
   ARTICLE LINK STYLES
   ======================================== */

/* Article links in content areas */
.news-title a,
.slide-title a,
.featured-article-title a,
.stacked-news-title a,
.article-title,
.sidebar-news-list .news-title a {
    color: #f59e0b !important;
    text-decoration: none;
    transition: color 0.3s;
}

.news-title a:hover,
.slide-title a:hover,
.featured-article-title a:hover,
.stacked-news-title a:hover,
.sidebar-news-list .news-title a:hover {
    color: #d97706 !important;
}

/* Override any existing link colors for article titles */
.news-item .news-title a,
.category-block .news-title a,
.hero-slider .slide-title a,
.main-article-section .stacked-news-title a,
.sidebar-section .news-title a {
    color: #f59e0b !important;
}

.news-item .news-title a:hover,
.category-block .news-title a:hover,
.hero-slider .slide-title a:hover,
.main-article-section .stacked-news-title a:hover,
.sidebar-section .news-title a:hover {
    color: #d97706 !important;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 992px) {
    .category-content-layout,
    .content-layout {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
        gap: 2rem;
    }

    .featured-article {
        height: 250px;
    }

    .featured-article-title {
        font-size: 1.8rem;
    }

    .article-title {
        font-size: 1.8rem;
    }

    .article-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .main-article-section, 
    .sidebar-section,
    .article-main, 
    .sidebar {
        padding: 1rem;
    }

    .featured-article {
        height: 200px;
        padding: 1rem;
    }

    .featured-article-title {
        font-size: 1.5rem;
    }

    .stacked-news-title {
        font-size: 1.1rem;
    }

    .news-meta, 
    .news-teaser {
        font-size: 0.8rem;
    }

    .sidebar-news-list .news-thumbnail {
        width: 80px;
        height: 60px;
    }

    .sidebar-news-list .news-title {
        font-size: 0.85rem;
    }

    .article-title {
        font-size: 1.5rem;
    }

    .article-image {
        height: 200px;
    }

    .article-content p {
        font-size: 1rem;
    }

    .social-share {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .footer-sections {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
} 