/*
Theme Name: The Pankaj Kumar 
Theme URI: https://tuitioncourse.com
Description: Indian Largest free Tuition course and online classes.
Author: Pankaj Kumar
Version: 1.0
*/

body {
    margin: 0;
    font-family: Arial, sans-serif;
}

/* TuitionCourse Post Template CSS */
/*-[ Main container ]---------------*/

.theme-standard-container {
    width: 100%;
    margin: 0 auto;
    max-width: 100%;
    clear: both;
}
#site-content,
.post-layout-contained {
    max-width: 1050px;
    min-width: 240px;
    overflow: visible;
    margin: 0 auto;
    position: relative;
}
.main-header .post-layout-contained {
    max-width: 100%
}
#site-content {
    padding-top: 10px;
    min-height: 100px;
    float: none;
    clear: both;
}

/* Featured Image - Proper Layout (No cropping) */
.featured-image-container {
    width: 100%;
}

.featured-image-container img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    border: 1px solid #dd3333;
    padding: 3px;
}

/* Title & Meta Alignment */
.entry-title {
    font-size: 2rem;
    margin-bottom: 10px;
    line-height: 1.2;
}

.entry-meta {
    color: #777;
    margin-bottom: 20px;
    padding-top: 5px;
    border-top: 2px solid #ccc;
}

/* FIX FOR BULLET POINTS (Properly Aligned) */
.post-body-content ul, 
.post-body-content ol {
    margin: 25px 0 25px 30px !important;
    padding: 0 !important;
    list-style-position: outside !important;
}

.post-body-content li {
    margin-bottom: 8px;
    line-height: 1.7;
    display: list-item !important;
}

/* Standard List Fixes */
.post-body-content ul {
    list-style-type: disc !important;
    margin: 20px 0 20px 40px !important;
}

.post-body-content ul { list-style-type: disc !important; }
.post-body-content ol { list-style-type: decimal !important; }

/* The "About the Author" Top Bar */

.author-header {
    text-align: center;
    background: #f9f9f9;
    border-radius: 15px;
    border: 1px solid #ccc;
    background-color: #f8f9fa;
    padding: 12px 20px;
    margin: 20px 0 0;
}

/* Large Author Block */
.author-box {
    display: flex;
    align-items: center; /* Top/Bottom center alignment */
    justify-content: flex-start;
    background: #f9f9f9;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #ccc;
}

.author-avatar {
    margin-right: 30px;
    flex-shrink: 0;
    display: flex;
    align-items: center; /* Avatar container ke andar bhi centering */
}

.author-avatar img {
    width: 200px;
    height: 200px;
    padding: 3px;
    border: 2px solid #ccc;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.author-name { 
    margin: 0 0 10px 0; 
    font-size: 1.6rem; 
}

.author-bio { 
    font-size: 1.05rem; 
    color: #444; 
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
}


/* Social Links Styling */
.author-socials {
    display: flex;
    gap: 12px;
}

.soc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f3f3f3;
    color: #444;
    border: 2px solid #ccc;
    font-size: 16px;
    transition: 0.3s ease;
    text-decoration: none;
}

/* Brand Colors */

.soc-facebook:hover {
    background: #1877f2;
    color: #fff;
}

.soc-twitter:hover {
    background: #000;
    color: #fff;
}

.soc-instagram:hover {
    background: #e1306c;
    color: #fff;
}

.soc-linkedin:hover {
    background: #0077b5;
    color: #fff;
}

/* Section Divider */
.section-divider {
    border: 0;
    border-top: 2px solid #f0f0f0;
    margin: 50px 0;
}

/* --- TABLET VIEW (992px and below) --- */
@media screen and (max-width: 992px) {
    .theme-standard-container {
        max-width: 95%; /* Use more screen width on tablets */
        padding: 0 20px;
        margin: 30px auto;
    }

    .entry-title {
        font-size: 1.8rem; /* Slightly smaller title */
    }

    .author-box {
        padding: 30px;
    }

    .author-avatar img {
        width: 180px; /* Scale down profile pic for tablet */
        height: 180px;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .theme-standard-container {
        max-width: 100%;
        padding: 0 15px;
    }

    .entry-title {
        font-size: 1.5rem;
        word-wrap: break-word;
        text-align: center;
    }

    .author-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .author-avatar img {
        width: 150px; /* Smaller for mobile */
        height: 150px;
    }

    .author-socials {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 5px;
    }

    .author-socials a {
        margin-right: 0;
        padding: 3px 10px;
    }

    /* BULLET POINTS MOBILE: Adjust indentation */
    .post-body-content ul, 
    .post-body-content ol {
        margin: 20px 0 20px 20px !important; /* Less left margin on mobile */
    }
    .author-box {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
}

/* --- SMALL MOBILE (480px and below) --- */
@media screen and (max-width: 480px) {
    .entry-title {
        font-size: 1.3rem;
    }

    .post-body-content {
        font-size: 1rem; /* Easier to read on small screens */
    }
}

/* ===== Author Page css testing ===== */

/* ===== Grid Layout ===== */
.author-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
	margin-top: 20px;
}

/* ===== Card Block ===== */
.author-post-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #ccc;
    box-shadow: 0 4px 15px rgb(0 0 0 / 42%);
    transition: all 0.3s ease;
}

/* Hover Highlight Effect */
.author-post-card:hover {
    box-shadow: 0 12px 30px rgb(212 0 0 / 72%);
    border-color: #dd3333; /* TuitionCourse Red */
}

/* ===== Featured Image (Full Visible) ===== */
.author-post-card img {
    width: 100%;
	border-radius: 20px 20px 0 0;
    height: auto;           /* Full image show */
    object-fit: contain;    /* No crop */
    display: block;
    background: #f9f9f9;
    padding: 10px;
}

/* ===== Title ===== */
.author-post-card .post-title {
    font-size: 19px;
	text-align: center;
    font-weight: 600;
    padding: 15px 20px 10px;
    margin: 0;
}

.author-post-card .post-title a {
    text-decoration: none;
    color: #111;
    transition: 0.3s;
}

.author-post-card .post-title a:hover {
    color: #d40000;
}

/* ===== Meta ===== */
.post-meta {
    padding: 0 20px 20px;
    font-size: 14px;
    color: #777;
    display: flex;
    justify-content: center;   /* Center horizontally */
    align-items: center;
    gap: 12px;
    text-align: center;
}

.post-meta span {
    background: #f3f3f3;
    padding: 6px 12px;
    border-radius: 6px;
}

/* ===== Pagination ===== */
.pagination-wrapper {
    text-align: center;
    margin-top: 50px;
}

.pagination-wrapper .page-numbers {
    display: inline-block;
    padding: 10px 16px;
    margin: 5px;
    border-radius: 6px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    transition: 0.3s;
}

.pagination-wrapper .page-numbers:hover {
    background: #d40000;
    color: #fff;
}

.pagination-wrapper .current {
    background: #d40000;
    color: #fff;
}

/* ===== 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 ===== */

/* ================================
   THEME GLOBAL RESET
================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", Arial, sans-serif;
    background: #f4f6f9;
    color: #222;
    line-height: 1.7;
}

/* ================================
   CONTAINER
================================ */

.container {
    width: 92%;
    max-width: 1200px;
    margin: auto;
}

/* ================================
   HEADER DESIGN
================================ */

.site-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
}

.site-logo {
    font-size: 24px;
    font-weight: 700;
    color: #d40000;
    text-decoration: none;
}

/* ================================
   NAVIGATION MENU
================================ */

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.main-navigation a {
    text-decoration: none;
    font-weight: 500;
    color: #333;
    position: relative;
    transition: 0.3s ease;
}

.main-navigation a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background: #d40000;
    transition: 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

/* ================================
   BUTTON DESIGN
================================ */

.btn-primary {
    background: linear-gradient(135deg, #d40000, #ff4b2b);
    color: #fff;
    padding: 10px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212,0,0,0.4);
}

/* ================================
   POST CARD DESIGN
================================ */

.post-item {
    background: #fff;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.post-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

.post-item h2,
.post-item h4 {
    font-size: 20px;
    margin-bottom: 8px;
}

.post-item a {
    color: #111;
    text-decoration: none;
    transition: 0.3s ease;
}

.post-item a:hover {
    color: #d40000;
}

/* ================================
   SIDEBAR
================================ */

.sidebar {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.widget {
    margin-bottom: 30px;
}

.widget-title {
    font-size: 18px;
    margin-bottom: 12px;
    border-left: 4px solid #d40000;
    padding-left: 10px;
}

/* ================================
   FOOTER
================================ */

.site-footer {
    background: #111;
    color: #fff;
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
}

.site-footer a {
    color: #ff4b2b;
    text-decoration: none;
}

/* ================================
   TABLE STYLING
================================ */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table th,
table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

table th {
    background: #d40000;
    color: #fff;
}

/* ================================
   SCROLLBAR STYLE
================================ */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: #d40000;
    border-radius: 4px;
}

/* ================================
   RESPONSIVE NAVIGATION
================================ */

@media (max-width: 768px) {
    .main-navigation ul {
        flex-direction: column;
        gap: 10px;
    }

    .post-item {
        padding: 15px;
    }

    .btn-primary {
        padding: 8px 18px;
    }
}

/* ==============================
   HEADER STICKY DESIGN
============================== */

.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 999;
}

.header-container {
    max-width: 1200px;
    margin: auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.site-logo {
    font-size: 22px;
    font-weight: 700;
    color: #d40000;
    text-decoration: none;
}

/* Desktop Menu */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.main-navigation a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: 0.3s;
}

.main-navigation a:hover {
    color: #d40000;
}

/* Mobile Toggle Button */
.menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

/* ==============================
   MOBILE RESPONSIVE
============================== */

@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    .main-navigation {
        position: absolute;
        top: 60px;
        right: 0;
        background: #fff;
        width: 220px;
        display: none;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        padding: 15px;
        border-radius: 8px;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 15px;
    }

    .main-navigation.active {
        display: block;
    }
}
/* =====================================
   HEADER STICKY DESIGN
===================================== */

.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    z-index: 999;
}

/* Container */
.header-container {
    max-width: 1200px;
    margin: auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.site-logo {
    font-size: 22px;
    font-weight: 700;
    color: #d40000;
    text-decoration: none;
}

/* =====================================
   DESKTOP MENU
===================================== */

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-navigation ul li {
    position: relative;
}

.main-navigation ul li a {
    text-decoration: none;
    font-weight: 500;
    color: #333;
    transition: 0.3s ease;
    padding: 5px 0;
}

/* Hover underline animation */
.main-navigation ul li a::after {
    content: "";
    display: block;
    width: 0%;
    height: 2px;
    background: #d40000;
    transition: 0.3s ease;
    margin-top: 4px;
}

.main-navigation ul li a:hover::after {
    width: 100%;
}

.main-navigation ul li a:hover {
    color: #d40000;
}

/* =====================================
   DROPDOWN MENU
===================================== */

.main-navigation ul ul {
    position: absolute;
    top: 35px;
    left: 0;
    background: #fff;
    padding: 12px 0;
    min-width: 180px;
    display: none;
    flex-direction: column;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    border-radius: 6px;
}

.main-navigation ul ul li {
    padding: 6px 15px;
}

.main-navigation ul li:hover > ul {
    display: block;
}

/* =====================================
   MOBILE MENU TOGGLE
===================================== */

.menu-toggle {
    display: none;
    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
}

/* =====================================
   MOBILE RESPONSIVE
===================================== */

@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    .main-navigation {
        position: absolute;
        top: 65px;
        right: 20px;
        background: #ffffff;
        width: 240px;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 8px 25px rgba(0,0,0,0.12);
        display: none;
        animation: fadeIn 0.3s ease-in-out;
    }

    .main-navigation.active {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 15px;
    }

    .main-navigation ul ul {
        position: relative;
        top: 0;
        box-shadow: none;
        padding-left: 15px;
        display: block;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}