/* India First Reports - Main Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: hidden;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100; 
}

/* Header Top Bar */
.header-top {
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.last-updated {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.clock-icon {
    font-size: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-icons a {
    text-decoration: none;
    color: #666;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #1e40af;
}

.social-icon {
    font-size: 1.2rem;
}

/* Header Main with Centered Logo */
.header-main {
    padding: 0.5rem 0;
    text-align: center;
}

.logo-container {
    display: inline-block;
}

.logo-link {
    text-decoration: none;
    display: block;
}

.logo-image {
    max-height: 120px;
    width: auto;
    display: block;
}

/* Banner Container and Image */
.banner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}

.banner-link {
    display: block;
    text-decoration: none;
    width: 100%;
    max-width: 1160px;
}

.banner-image {
    width: 100%;
    height: auto; 
    object-fit: contain;
    display: block;
}

/* Navigation Styles */
.main-nav {
    border-top: 1px solid #e5e7eb;
    background: #402cda;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
    justify-content: center;
    flex-wrap: wrap;
    min-width: 0;
    max-width: 100%;
}

.nav-item {
    position: relative;
    flex-shrink: 0;
}

.nav-link {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    padding: 0.75rem 0.75rem;
    display: block;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    font-size: 0.9rem;
}

.nav-link:hover {
    color: #fff;
    background-color: rgba(255,255,255,0.1);
    border-bottom-color: #fff;
}

.dropdown-arrow {
    font-size: 0.7rem;
    margin-left: 0.3rem;
    transition: transform 0.3s ease;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    color: #333;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    display: block;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    color: #1e40af;
    background-color: #f8f9fa;
    border-left-color: #1e40af;
}

/* Main Content */
.main-content {
    padding: 2rem 0;
}

/* Hero Slider */
.hero-slider {
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    background: url('../images/Web_Banner_BG.png') center center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 2rem 0;
}

.slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.slide:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-content-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    background: transparent;
}

.slide-video {
    flex: 0 0 70%;
    height: 100%;
    position: relative;
}

.slide-video iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.video-placeholder img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.slide-content {
    flex: 0 0 30%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: transparent;
    color: #333;
}

.slide-category {
    display: inline-block;
    background: #1e40af;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.slide-title {
    font-size: 1.62rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: white;
}

.slide-title a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.slide-title a:hover {
    color: #d97706;
}

.slide-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: white;
}

.slide-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.slide-date {
    font-size: 0.9rem;
    color: white;
}

.read-more-btn {
    background: #1e40af;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.read-more-btn:hover {
    background: #1e3a8a;
    transform: translateY(-2px);
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 3;
}

.slider-prev,
.slider-next {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    pointer-events: auto;
    z-index: 5;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    z-index: 5;
}

.slider-dot.active {
    background: white;
    transform: scale(1.2);
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Category Blocks */
.category-block {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
}

.category-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #2c3e50;
}

.view-all-link {
    color: #1e40af;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.view-all-link:hover {
    color: #1e3a8a;
}

/* News Items */
.news-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

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

.news-thumbnail {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

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

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

.news-content {
    flex: 1;
}

.news-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

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

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

.news-teaser {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.news-teaser .read-more {
    color: #1e40af;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    margin-left: 0.5rem;
}

.news-teaser .read-more:hover {
    color: #1e3a8a;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #999;
}

.news-meta span:first-child {
    color: #666;
    font-weight: 500;
}

/* Breaking News Banner */
.breaking-news {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    color: white;
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    animation: pulse 2s infinite;
}

.breaking-news h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(30, 64, 175, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(30, 64, 175, 0); }
    100% { box-shadow: 0 0 0 0 rgba(30, 64, 175, 0); }
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .nav-menu {
        display: none;
    }

    .news-item {
        flex-direction: column;
    }

    .news-thumbnail {
        width: 100%;
        height: 200px;
    }

    .header-top {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .logo-image {
        max-height: 100px;
    }
    
    /* Banner Mobile Responsive */
    .banner-container {
        padding: 0 10px;
    }
    
    .banner-image {
        max-height: 80px;
    }
    
    /* Hero Slider Mobile */
    .slider-container {
        height: 300px;
        border-radius: 8px;
    }
    
    .slide-content-wrapper {
        flex-direction: column;
    }
    
    .slide-video {
        height: 70%;
        flex: 0 0 70%;
    }
    
    .slide-content {
        height: 30%;
        flex: 0 0 30%;
        padding: 1rem;
    }
    
    .slide-title {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .slide-excerpt {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .slide-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .read-more-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .category-block {
        padding: 1rem;
    }

    .news-thumbnail {
        height: 150px;
    }
    
    /* Banner Small Mobile Responsive */
    .banner-container {
        padding: 0 5px;
    }
    
    .banner-image {
        max-height: 60px;
    }
    
    /* Hero Slider Small Mobile */
    .slider-container {
        height: 250px;
    }
    
    .slide-content {
        padding: 1rem;
    }
    
    .slide-title {
        font-size: 1.2rem;
    }
    
    .slide-excerpt {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .slide-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .read-more-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}
