/*
Theme Name: Astra Child Dainik
Template: astra
Description: Custom header for Astra
Version: 1.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Rozha+One&family=Noto+Serif+Devanagari:wght@400;600;700&display=swap');

/* Global Site Background */
body, .site-content, .ast-separate-container {
    background-color: #f1f5f9 !important;
    font-family: 'Inter', sans-serif;
    color: #334155;
}

/* Header Top Modernized */
.dainik-header {
    background: #ffffff;
    width: 100%;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    position: relative;
    z-index: 1000;
}
.dainik-header .header-top {
    padding: 20px 0;
    border-bottom: none;
}
.dainik-header .header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dainik-header .site-branding img, 
.dainik-header .header-ad img {
    max-width: 100%;
    height: auto;
    display: block;
}

.site-logo-image-link {
    display: inline-block;
    transition: transform 0.3s ease;
}
.site-logo-image-link:hover {
    transform: scale(1.02);
}
.dainik-logo-img {
    max-height: 80px;
    width: auto;
    display: block;
}

/* Header Navigation - Premium Indigo */
.dainik-header .header-navigation-wrapper {
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    width: 100%;
}

.dainik-header .main-navigation {
    display: flex;
    align-items: center;
    min-height: 55px;
    width: 100%;
}

.dainik-header .nav-home-icon, 
.dainik-header .nav-search-icon {
    color: #334155;
    font-size: 18px;
    padding: 0 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.dainik-header .nav-home-icon:hover, 
.dainik-header .nav-search-icon:hover {
    color: #4f46e5;
}

.dainik-header .nav-search-icon {
    margin-left: auto;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.dainik-header .nav-search-icon:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #4f46e5;
}

.dainik-header .main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    flex-grow: 1;
    justify-content: center;
}

.dainik-header .main-navigation ul li {
    margin: 0;
}

.dainik-header .main-navigation ul li a {
    display: block;
    color: #0f172a;
    text-decoration: none;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.dainik-header .main-navigation ul li a:hover {
    color: #4f46e5;
    background: transparent;
}

.dainik-header .main-navigation ul li a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #4f46e5;
    transition: width 0.3s ease;
}

.dainik-header .main-navigation ul li a:hover::after {
    width: 100%;
}

/* Mobile Sidebar Elements (Hidden on Desktop) */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #334155;
    cursor: pointer;
    padding: 10px;
}
.mobile-menu-close {
    display: none;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
}
.mobile-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile-sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Custom Footer - Premium Indigo */
.dainik-footer {
    background: #1e1b4b; /* Very deep indigo */
    padding: 50px 0 30px;
    font-family: 'Inter', sans-serif;
    color: #c7d2fe;
}
.dainik-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
.dainik-footer-divider {
    border-top: 2px solid #312e81;
    margin-bottom: 30px;
}
.dainik-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 30px;
    justify-content: center;
    margin-bottom: 35px;
}
.dainik-footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.3s ease;
}
.dainik-footer-links a:hover {
    color: #f43f5e; /* Rose hover */
}
.dainik-footer-bottom-divider {
    border-top: 1px solid #312e81;
    margin-bottom: 25px;
}
.dainik-footer-copyright {
    text-align: center;
    font-size: 14px;
    color: #818cf8;
    margin-bottom: 0;
}
.dainik-footer-copyright a {
    color: #a5b4fc;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}
.dainik-footer-copyright a:hover {
    color: #ffffff;
    text-decoration: underline;
}
.dainik-scroll-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    background: #4f46e5;
    color: #fff;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
}
.dainik-scroll-top:hover {
    background: #3730a3;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.6);
}
/* Hide Astra's default scroll top if present */
#ast-scroll-top { display: none !important; }

/* Hide default Astra footer elements */
.ast-builder-footer-all, 
.ast-small-footer, 
.site-info, 
.site-primary-footer-wrap,
.ast-builder-grid-row {
    display: none !important;
}

/* Single Post Layout - Premium Modern */
.dainik-single-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 50px;
    margin-bottom: 60px;
    font-family: 'Inter', sans-serif;
}
.dainik-main-content {
    flex: 1 1 65%;
    max-width: 100%;
    background: #ffffff;
    padding: 50px;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.02);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}
.dainik-sidebar {
    flex: 1 1 30%;
    max-width: 100%;
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.02);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    align-self: flex-start;
}

/* Main Article Content */
.dainik-post-title {
    font-family: 'Noto Serif Devanagari', serif;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
    color: #0f172a;
}
.dainik-post-meta {
    color: #64748b;
    font-size: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}
.dainik-post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.dainik-post-content {
    font-size: 19px;
    line-height: 1.8;
    color: #334155;
}
.dainik-post-content p {
    margin-bottom: 25px;
}

/* Sidebar Styling */
.sidebar-heading {
    font-family: 'Noto Serif Devanagari', serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 15px;
    color: #0f172a;
}
.sidebar-heading span {
    border-bottom: 3px solid #4f46e5;
    padding-bottom: 13px;
    color: #4f46e5;
}
.sidebar-news-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.sidebar-news-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}
.sidebar-news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.sidebar-news-thumbnail {
    flex: 0 0 110px;
}
.sidebar-news-thumbnail img {
    width: 110px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}
.sidebar-news-content h4 {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 600;
}
.sidebar-news-content a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s ease;
}
.sidebar-news-content a:hover {
    color: #4f46e5;
}

/* Responsive */
@media (max-width: 992px) {
    .dainik-main-content {
        padding: 30px;
    }
    .dainik-sidebar {
        padding: 30px 20px;
    }
}
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .dainik-header .header-top-inner {
        flex-direction: row;
        align-items: center;
        padding: 0 15px;
    }
    
    .dainik-logo-img {
        max-height: 50px;
    }

    .dainik-header .header-navigation-wrapper {
        position: fixed;
        top: 0;
        left: -320px;
        width: 300px;
        height: 100vh;
        z-index: 9999;
        display: block;
        background: #1e1b4b; /* Dark indigo for mobile sidebar */
        transition: left 0.3s ease;
        overflow-y: auto;
        padding-top: 70px;
        box-shadow: 10px 0 30px rgba(0,0,0,0.5);
        border-top: none;
    }
    
    .dainik-header .header-navigation-wrapper.active {
        left: 0 !important;
    }

    .mobile-menu-close {
        display: block;
    }

    .dainik-header .main-navigation {
        flex-direction: column;
        align-items: flex-start;
    }

    .dainik-header .main-navigation ul {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
        justify-content: flex-start;
    }

    .dainik-header .main-navigation ul li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .dainik-header .main-navigation ul li a {
        color: #e0e7ff;
        padding: 15px 5px;
        font-size: 17px;
    }

    .dainik-header .main-navigation ul li a:hover {
        color: #f43f5e;
        background: transparent;
    }
    
    .dainik-header .main-navigation ul li a::after {
        display: none;
    }

    .dainik-header .nav-home-icon,
    .dainik-header .nav-search-icon {
        padding: 15px 25px;
        width: 100%;
        margin-left: 0;
        color: #e0e7ff;
        border: none;
        border-radius: 0;
        background: transparent;
        text-align: left;
        justify-content: flex-start;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .dainik-header .nav-home-icon:hover,
    .dainik-header .nav-search-icon:hover {
        color: #f43f5e;
        background: transparent;
    }

    .dainik-single-layout {
        flex-direction: column;
    }
    .dainik-sidebar {
        margin-top: 30px;
    }
    .dainik-post-title {
        font-size: 32px;
    }
}

/* ==============================================================
   READING THEME (SINGLE POST PAGE)
   ============================================================== */
.reading-theme-body {
    background-color: #f8fafc;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    color: #334155;
}
.reading-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Minimal Sticky Header */
.reading-header {
    background: #ffffff;
    color: #0f172a;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}
.reading-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}
.reading-header a {
    color: #0f172a;
    text-decoration: none;
    transition: opacity 0.3s ease;
}
.reading-header a:hover {
    opacity: 0.7;
    color: #4f46e5;
}
.reading-back-btn {
    font-size: 16px;
    font-weight: 600;
}
.reading-back-btn i {
    margin-right: 8px;
}
.reading-logo img {
    max-height: 45px;
    display: block;
}
.reading-share-btn a {
    font-size: 22px;
}

/* Hero Section */
.reading-hero {
    position: relative;
    width: 100%;
    min-height: 450px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #1e1b4b;
}
.reading-hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
    animation: slowZoom 25s infinite alternate linear;
}
@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}
.reading-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(30, 27, 75, 0) 0%, rgba(30, 27, 75, 0.95) 100%);
    z-index: 2;
}
.reading-hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding-bottom: 60px;
    color: #ffffff;
}
.reading-category a {
    display: inline-block;
    background: #f43f5e;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(244, 63, 94, 0.3);
}
.reading-title {
    font-family: 'Rozha One', 'Noto Serif Devanagari', serif;
    font-size: 48px;
    line-height: 1.3;
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    word-break: break-word;
    color: #ffffff !important;
}
.reading-meta {
    display: flex;
    gap: 25px;
    font-size: 15px;
    color: #c7d2fe;
}
.reading-meta i {
    margin-right: 8px;
    color: #f43f5e;
}

/* Layout */
.reading-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 50px;
    margin-top: -40px;
    position: relative;
    z-index: 10;
    padding-bottom: 80px;
}

/* Content Area */
.reading-content-area {
    background: #ffffff;
    padding: 60px;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.02);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}
.reading-content-inner {
    font-size: 20px;
    line-height: 1.8;
    color: #334155;
}
.reading-content-inner p {
    margin-bottom: 30px;
}
.reading-content-inner p:first-of-type::first-letter {
    float: left;
    font-size: 75px;
    line-height: 65px;
    padding-top: 6px;
    padding-right: 12px;
    padding-left: 4px;
    font-family: 'Rozha One', 'Noto Serif Devanagari', serif;
    color: #4f46e5;
}
.reading-content-inner h2, .reading-content-inner h3 {
    margin-top: 45px;
    margin-bottom: 25px;
    font-family: 'Rozha One', 'Noto Serif Devanagari', serif;
    color: #0f172a;
}
.reading-content-inner img, 
.reading-content-inner iframe, 
.reading-content-inner video,
.reading-content-inner figure {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 35px 0;
    display: block;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Sticky Sidebar */
.reading-sidebar {
    position: sticky;
    top: 100px;
}
.reading-sidebar-inner {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.02);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}
.reading-sidebar-title {
    font-size: 22px;
    font-weight: 700;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 15px;
    margin-top: 0;
    margin-bottom: 30px;
    color: #0f172a;
}
.reading-sidebar-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #4f46e5;
    margin-top: 15px;
    margin-bottom: -16px;
}
.reading-news-item {
    display: flex;
    gap: 18px;
    margin-bottom: 25px;
    align-items: center;
}
.reading-news-item:last-child {
    margin-bottom: 0;
}
.reading-news-thumb img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.reading-news-item h4 {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 600;
}
.reading-news-item h4 a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s ease;
}
.reading-news-item h4 a:hover {
    color: #4f46e5;
}

/* Footer */
.reading-footer {
    background: #1e1b4b;
    color: #818cf8;
    text-align: center;
    padding: 40px 0;
    font-size: 15px;
    border-top: 1px solid #312e81;
}

/* Reading Responsive */
@media (max-width: 992px) {
    .reading-layout {
        grid-template-columns: 1fr;
    }
    .reading-sidebar {
        position: static;
        margin-top: 50px;
    }
}
@media (max-width: 768px) {
    .reading-title {
        font-size: 36px;
    }
    .reading-content-area {
        padding: 40px 25px;
    }
    .reading-content-inner {
        font-size: 18px;
    }
}

/* Optimize Archive/Category Headings */
.ast-archive-description, .page-header {
    padding-top: 35px !important;
    padding-bottom: 35px !important;
    margin-top: 40px !important;
    margin-bottom: 40px !important;
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.02) !important;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}
.ast-archive-description .page-title, .page-header .page-title {
    font-size: 32px !important;
    margin: 0 !important;
    padding: 0 0 0 20px !important;
    color: #0f172a !important;
    border-left: 6px solid #4f46e5;
    line-height: 1.2 !important;
    display: inline-block;
}

/* ==============================================================
   ASTRA BLOG ARCHIVE GRID CARDS (Premium Styling)
   ============================================================== */
.ast-article-post, .ast-blog-post {
    transition: all 0.3s ease;
}
.ast-article-post .ast-article-inner, 
.ast-blog-post .ast-article-inner {
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
    overflow: hidden !important;
    border: 1px solid rgba(0,0,0,0.02) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    height: 100% !important;
}
.ast-article-post:hover .ast-article-inner, 
.ast-blog-post:hover .ast-article-inner {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.08) !important;
}
.ast-article-post .post-thumb img, 
.ast-blog-post .post-thumb img {
    border-radius: 16px 16px 0 0 !important;
    width: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s ease;
}
.ast-article-post:hover .post-thumb img,
.ast-blog-post:hover .post-thumb img {
    transform: scale(1.05);
}
.ast-article-post .post-thumb,
.ast-blog-post .post-thumb {
    overflow: hidden;
}

/* Fix padding for Astra Grid Cards */
.ast-article-post .ast-article-inner > *, 
.ast-blog-post .ast-article-inner > * {
    padding-left: 25px !important;
    padding-right: 25px !important;
}
.ast-article-post .ast-article-inner > *:first-child, 
.ast-blog-post .ast-article-inner > *:first-child {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.ast-article-post .entry-header, 
.ast-blog-post .entry-header {
    padding-top: 25px !important;
}
.ast-article-post .entry-content, 
.ast-blog-post .entry-content {
    padding-bottom: 25px !important;
}

/* Typography for Cards */
.ast-article-post .entry-title a, 
.ast-blog-post .entry-title a {
    color: #0f172a !important;
    font-weight: 700 !important;
    font-family: 'Noto Serif Devanagari', serif !important;
    transition: color 0.3s ease !important;
    font-size: 22px !important;
    line-height: 1.4 !important;
}
.ast-article-post .entry-title a:hover, 
.ast-blog-post .entry-title a:hover {
    color: #4f46e5 !important;
}
.ast-article-post .entry-meta, 
.ast-blog-post .entry-meta {
    color: #64748b !important;
    font-size: 13px !important;
    margin-bottom: 15px !important;
}
.ast-article-post .entry-meta a, 
.ast-blog-post .entry-meta a {
    color: #4f46e5 !important;
    font-weight: 600 !important;
}
.ast-article-post .entry-meta a:hover, 
.ast-blog-post .entry-meta a:hover {
    color: #f43f5e !important;
}
/* Read more button */
.ast-article-post .read-more a, 
.ast-blog-post .read-more a,
.ast-article-post .ast-read-more,
.ast-blog-post .ast-read-more {
    display: inline-block !important;
    margin-top: 15px !important;
    color: #ffffff !important;
    background: #4f46e5 !important;
    padding: 8px 18px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2) !important;
}
.ast-article-post .read-more a:hover, 
.ast-blog-post .read-more a:hover,
.ast-article-post .ast-read-more:hover,
.ast-blog-post .ast-read-more:hover {
    background: #f43f5e !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(244, 63, 94, 0.3) !important;
}
