/*
Theme Name: Pankaj Kumar
Theme URI: https://tuitioncourse.com
Description: Indian Largest free Tuition course and online classes.
Author: Pankaj Kumar
Version: 1.0
*/

/* ==========================================================================
   1. GLOBAL LAYOUT (Width & Alignment)
   ========================================================================== */

/* Sabse pehle width issue fix karne ke liye global container */
.container {
    max-width: 1200px; /* Aapki site ki main width */
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Horizontal scroll rokne ke liye */
    width: 100%;
}

* {
    box-sizing: border-box;
}

/* ==========================================================================
   2. HEADER STYLES
   ========================================================================== */

.site-header {
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
    /* Background color Customizer se aayega */
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

/* Logo Styling */
.site-logo img, .custom-logo-link img {
    display: block;
    height: auto; /* Width functions.php ke dynamic CSS se control hogi */
}

/* Navigation Menu */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 12px 15px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.main-navigation li:hover > a {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Dropdown (Submenu) */
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 200px;
    display: none;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border-radius: 0 0 4px 4px;
}

.main-navigation ul ul a {
    color: #333333;
    padding: 10px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.main-navigation li:hover > ul {
    display: block;
}

/* ==========================================================================
   3. FOOTER STYLES
   ========================================================================== */

.site-footer {
    padding: 50px 0 30px;
    /* Background & Color Customizer se aayenge */
}

.footer-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

/* Footer Menu */
.footer-nav .horizontal-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.footer-nav .horizontal-menu li a {
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: opacity 0.3s;
}

.footer-nav .horizontal-menu li a:hover {
    opacity: 0.7;
}

/* Social Icons */
.footer-social-links {
    display: flex;
    gap: 15px;
}

.footer-social-links a {
    background-color: rgba(255,255,255,0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.3s;
}

.footer-social-links a:hover {
    transform: translateY(-3px);
    background-color: rgba(255,255,255,0.2);
}

/* Copyright Row */
.footer-bottom-row {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 30px;
    padding-top: 25px;
}

/* ==========================================================================
   4. RESPONSIVE (Mobile)
   ========================================================================== */

@media (max-width: 768px) {
    .header-wrapper {
        flex-direction: column;
        gap: 15px;
    }

    .main-navigation ul {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav .horizontal-menu {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* --- Archive & Grid Styling --- */
.page-header { padding: 30px 0; border-bottom: 2px solid #f0f0f0; margin-bottom: 30px; }
.post-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 25px; 
    margin-bottom: 40px;
}

.post-card { 
    background: #fff; 
    border: 1px solid #eee; 
    border-radius: 8px; 
    overflow: hidden; 
    transition: 0.3s;
}
.post-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.post-content { padding: 20px; }
.post-title { font-size: 18px; margin: 0 0 10px; }
.post-title a { text-decoration: none; color: #333; }
.post-meta { font-size: 13px; color: #888; margin-bottom: 15px; }
.read-more { color: #dd3333; font-weight: bold; text-decoration: none; display: inline-block; margin-top: 10px; }

/* --- Single Post Styling --- */
.single-post-content { max-width: 800px; margin: 40px auto; line-height: 1.8; }
.entry-title { font-size: 32px; margin-bottom: 10px; }
.entry-featured-image img { width: 100%; border-radius: 8px; margin: 20px 0; }
.entry-content p { margin-bottom: 20px; font-size: 17px; color: #444; }

/* --- Post Navigation --- */
.post-navigation { border-top: 1px solid #eee; padding-top: 20px; margin-top: 40px; }
.nav-links { display: flex; justify-content: space-between; font-weight: bold; }
.nav-links a { color: #dd3333; text-decoration: none; }

/* ===== start recent-blogs-list ===== */

.recent-blogs-list {
    list-style: none;
    padding: 0;
}
.recent-blogs-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}
.recent-blogs-list a {
    text-decoration: none;
    color: #0073aa;
    font-weight: 500;
}
.recent-blogs-list .post-date {
    font-size: 12px;
    color: #999;
}

/* ===== end recent-blogs-list ===== */

/* Syllabus Archive Layout */
.category-nav-wrapper {
    background: #f9f9f9;
    padding: 25px 0;
    border-bottom: 1px solid #ddd;
    margin-bottom: 30px;
}

.category-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-btn {
    background: #fff;
    color: #dd3333;
    border: 2px solid #dd3333;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

/* Active State */
.nav-btn.active, .nav-btn:hover {
    background: #dd3333;
    color: #fff;
}

.exam-section {
    margin-bottom: 60px;
}

.section-title {
    color: #0073aa;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 12px;
    text-align: center;
    margin-bottom: 25px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.post-item {
    background: #eeeeee;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.post-date {
    color: #666;
    display: block;
    margin-bottom: 5px;
}

.post-title-wrapper {
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-link {
    text-decoration: none;
    color: #333;
    line-height: 1.4;
}

.download-icon i {
    font-size: 18px;
    padding: 10px;
    color: #fff;
    background: #dd3333;
    border-radius: 5px;
}

.recent-blogs-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 3px double #eee;
}

/* Jitni aapke header ki height hai, utna margin yahan likhein (e.g., 100px) */
#syllabus-section, 
#mcq-section, 
#paper-section {
    scroll-margin-top: 200px; 
}

/* --- Current Affairs Shortcode CSS --- */
.ca-archive-wrapper { max-width: 900px; margin: 20px auto; font-family: sans-serif; }
.ca-archive-main-title { text-align: center; color: #0073aa; border-bottom: 3px double #ddd; padding-bottom: 10px; margin-bottom: 30px; }

.ca-day-group { margin-bottom: 40px; position: relative; border-left: 2px solid #0073aa; padding-left: 25px; }
.ca-date-badge { 
    background: #0073aa; color: #fff; padding: 5px 15px; border-radius: 50px; 
    display: inline-block; font-weight: bold; margin-bottom: 15px; font-size: 14px;
    position: relative; left: -42px; /* Pull it over the border line */
}

.ca-news-item { background: #fff; padding: 15px; border-radius: 8px; margin-bottom: 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.ca-news-title { font-size: 18px; margin-top: 0; color: #333; display: flex; align-items: baseline; gap: 10px; }
.ca-news-title i { font-size: 10px; color: #0073aa; }
.ca-news-desc { font-size: 15px; color: #555; line-height: 1.6; border-top: 1px solid #f9f9f9; padding-top: 8px; }

.ca-no-data { text-align: center; padding: 30px; background: #fef9e7; border: 1px solid #f5c6cb; border-radius: 5px; color: #721c24; }