/* ============================================
   SETOPATI-INSPIRED ENHANCEMENTS V2
   Overlay on existing BBC-style foundation
   ============================================ */

/* Enhanced Color Variables */
:root {
    --accent-gradient: linear-gradient(135deg, var(--primary-color) 0%, #ff6b35 100%);
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   SETOPATI-STYLE HEADER V2
   ============================================ */

/* Main Header Container */
.site-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.site-header.scrolled .header-utility-bar {
    max-height: 0;
    padding: 0;
    overflow: hidden;
}

.site-header.scrolled .header-main {
    padding: 8px 0;
}

.site-header.scrolled .site-logo {
    height: 40px;
}

/* Top Utility Bar */
.header-utility-bar {
    background: var(--secondary-color);
    padding: 6px 0;
    font-size: 12px;
    max-height: 50px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.header-utility-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.utility-left {
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
}

.current-date {
    font-weight: 500;
}

.utility-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-icon {
    color: rgba(255, 255, 255, 0.8);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    font-size: 11px;
}

.social-icon:hover {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
}

/* Language Toggle - Compact */
.lang-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2px;
    gap: 2px;
}

.lang-btn {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn:hover {
    color: #fff;
}

.lang-btn.active {
    background: var(--primary-color);
    color: #fff;
}

/* Main Header Row: Logo + Banner */
.header-main {
    background: #fff;
    padding: 12px 0;
    transition: all 0.3s ease;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo-section {
    flex-shrink: 0;
}

.logo-link {
    display: block;
}

.site-logo {
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.site-logo:hover {
    transform: scale(1.02);
}

.site-title-text {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: -1px;
}

/* Header Banner Ad */
.header-banner-ad {
    flex: 1;
    max-width: 970px;
    text-align: right;
}

.header-banner-ad img {
    max-width: 100%;
    max-height: 90px;
    object-fit: contain;
}

.ad-placeholder {
    background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
    color: #999;
    padding: 30px 50px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    display: inline-block;
}

/* Navigation Bar */
.main-nav {
    background: var(--secondary-color);
    margin: 0;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Light Nav Theme */
.main-nav.light {
    background: #fff;
    border-bottom: 2px solid var(--primary-color);
}

.main-nav.light .nav-menu li a {
    color: #444;
}

.main-nav.light .nav-menu li a:hover,
.main-nav.light .nav-menu li a.active {
    background: #f5f5f5;
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.main-nav.light .search-form-nav {
    background: #f0f0f0;
}

.main-nav.light .search-form-nav input {
    color: #333;
}

.main-nav.light .search-btn-nav {
    color: #555;
}

.main-nav.light .search-form-nav input::placeholder {
    color: #888;
}

/* Transparent Nav Theme - cute gradient */
.main-nav.transparent {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 2px;
}

.nav-menu li {
    position: relative;
    list-style: none !important;
}

.nav-menu li a {
    color: #fff !important;
    text-decoration: none;
    padding: 12px 18px;
    display: inline-block !important;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
    visibility: visible !important;
    opacity: 1 !important;
}

.nav-menu li a i {
    margin-right: 5px;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.8);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

/* Nav Info Meta (Date/Social) */
@media (max-width: 1024px) {
    .nav-info-meta {
        display: none !important;
    }
}

/* User Dropdown */
.user-dropdown {
    position: relative;
    margin-left: 10px;
}

.user-dropdown .dropdown-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.user-dropdown:hover .dropdown-btn {
    background: var(--primary-color);
}

/* Lang Toggle Nav - keep both EN and NP visible */
.lang-toggle-nav {
    overflow: visible !important;
    min-width: 64px;
}
.lang-toggle-nav .lang-btn {
    min-width: 32px !important;
}
.lang-toggle-nav .lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}
.lang-toggle-nav .lang-btn-np {
    font-family: 'Noto Sans Devanagari', 'Mukta', sans-serif;
}

/* Sticky Shrink */
.site-header.scrolled .header-main {
    padding: 5px 0;
}

.site-header.scrolled .site-logo {
    height: 40px;
}

/* Search in Nav */
.search-form-nav {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    overflow: hidden;
}

.search-form-nav input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 8px 15px;
    font-size: 13px;
    width: 150px;
    outline: none;
}

.search-form-nav input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-form-nav input:focus {
    width: 200px;
}

.search-btn-nav {
    background: var(--primary-color);
    border: none;
    color: #fff;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-btn-nav:hover {
    background: #b71c1c;
}

/* Below Nav Ad Strip */
.below-nav-ad {
    background: #f8f9fa;
    padding: 10px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.below-nav-ad img {
    max-width: 100%;
    max-height: 100px;
}

/* ============================================
   SETOPATI-STYLE HERO SECTION
   ============================================ */
.hero-section {
    margin-bottom: 30px;
    padding: 20px 0;
}

.hero-grid {
    grid-template-columns: 1fr 380px;
    gap: 20px;
}

.hero-featured {
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.hero-featured img {
    height: 480px;
    transition: var(--transition-smooth);
}

.hero-overlay {
    padding: 30px 35px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.75) 40%, rgba(0, 0, 0, 0.3) 70%, transparent 100%);
}

.hero-category {
    background: var(--primary-color);
    border-radius: 4px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.15;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
    margin-bottom: 12px;
}

.hero-summary {
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* Latest Headlines - Setopati Right Panel */
.latest-headlines {
    background: #fff;
    border: none;
    box-shadow: var(--card-shadow);
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
}

.latest-headlines h3 {
    background: var(--secondary-color);
    color: #fff;
    margin: 0;
    padding: 15px 20px;
    font-size: 1rem;
    border-bottom: none;
    border-radius: 0;
}

.headline-item {
    padding: 15px 20px;
    margin: 0;
    transition: var(--transition-smooth);
}

.headline-item:hover {
    background: #f8f9fa;
}

.headline-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-color);
    transition: var(--transition-smooth);
}

.headline-item:hover h4 {
    color: var(--primary-color);
}

.headline-time {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
}

.headline-time::before {
    content: '🕐';
    font-size: 10px;
}

/* ============================================
   SETOPATI-STYLE CATEGORY SECTIONS
   ============================================ */
.section-row {
    margin-bottom: 40px;
    position: relative;
}

.section-header {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 20px;
}

.section-title {
    background: var(--secondary-color);
    color: #fff;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 6px 6px 0 0;
    margin: 0;
    display: inline-block;
}

.section-header::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--secondary-color);
    margin-left: 0;
    margin-top: auto;
    margin-bottom: auto;
}

.section-link {
    background: var(--primary-color);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.section-link:hover {
    background: var(--secondary-color);
    color: #fff;
    transform: translateX(5px);
}

/* ============================================
   SETOPATI-STYLE ARTICLE CARDS
   ============================================ */
.cards-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.article-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    overflow: hidden;
}

.article-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14), 0 4px 16px rgba(0, 0, 0, 0.08);
}

.article-card-image {
    position: relative;
}

.article-card-image img {
    height: 180px;
    border-radius: 10px 10px 0 0;
}

/* Image overlay with category badge */
.article-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
    pointer-events: none;
}

.article-card-content {
    padding: 15px;
}

.article-category {
    background: var(--primary-color);
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 10px;
}

.article-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-summary {
    font-size: 13px;
    line-height: 1.5;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    font-size: 12px;
    color: #999;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-meta::before {
    content: '🕐';
    font-size: 11px;
}

/* ============================================
   SETOPATI-STYLE SIDEBAR
   ============================================ */
.sidebar {
    top: 120px;
}

.widget {
    background: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 0;
    overflow: hidden;
}

.widget-title {
    background: linear-gradient(135deg, var(--secondary-color), #333);
    color: #fff;
    padding: 15px 20px;
    margin: 0;
    font-size: 1rem;
    border-bottom: none;
    border-radius: 0;
}

.most-read-list {
    padding: 0 20px;
}

.most-read-item {
    padding: 15px 0;
    align-items: center;
}

.most-read-number {
    background: var(--primary-color);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.most-read-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
}

/* ============================================
   SETOPATI-STYLE BREAKING NEWS
   ============================================ */
.breaking-news-banner {
    background: var(--primary-color);
    padding: 8px 0;
    border-bottom: none;
}

.breaking-news-label {
    background: #fff;
    color: var(--primary-color);
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 800;
    animation: none;
    border-radius: 3px;
}

.breaking-news-text {
    font-size: 13px;
    font-weight: 500;
    overflow: hidden;
    white-space: nowrap;
    animation: scroll-left 25s linear infinite;
}

@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* ============================================
   SETOPATI-STYLE SINGLE POST PAGE
   ============================================ */
.single-post {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.single-post .post-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.single-post h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-color);
}

.single-post .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    color: #666;
    font-size: 14px;
}

.single-post .category-tag {
    background: var(--primary-color) !important;
    border-radius: 4px !important;
}

.single-post .post-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #333;
}

.single-post .post-content p {
    margin-bottom: 20px;
}

.single-post .post-image img {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ============================================
   SOCIAL SHARE BUTTONS (Setopati-style)
   ============================================ */
.social-share {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.share-btn.facebook {
    background: #1877f2;
    color: #fff;
}

.share-btn.twitter {
    background: #1da1f2;
    color: #fff;
}

.share-btn.whatsapp {
    background: #25d366;
    color: #fff;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 1200px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid {
        flex-direction: column;
    }

    .col-8,
    .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        flex-wrap: wrap;
    }

    .nav-menu li a {
        padding: 10px 12px;
        font-size: 12px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .hero-featured img {
        height: 280px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .single-post {
        padding: 20px;
    }

    .single-post h1 {
        font-size: 1.5rem;
    }
}

/* ============================================
   FOOTER ENHANCEMENTS
   ============================================ */
.site-footer {
    background: var(--secondary-color);
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    padding: 5px 0;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.footer-col a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}