/*
 Theme Name:   Kadence Child
 Template:     kadence
 Description:  Kadence Child Theme
 Version:      1.0.2
 Text Domain:  kadence-child
*/

/* ==========================================================================
   PANCHSHEEL PRAKASHAN - MASTER STYLESHEET
   ========================================================================== */

/* --------------------------------------------------------------------------
  1. GLOBAL & SINGLE PRODUCT PAGE
-------------------------------------------------------------------------- */

:root {
    --panchsheel-primary: #003366;      /* Deep Navy */
    --panchsheel-accent: #008080;       /* Academic Teal */
    --panchsheel-warm-accent: #C1A788;  /* Soft Gold */
    --panchsheel-border: #dee2e6;
    --panchsheel-radius: 8px;
    --font-heading: 'Merriweather', serif;
    --font-body: 'Open Sans', sans-serif;
}

img {
    max-width: 100%;
    height: auto;
}

.woocommerce img,
.single-product img {
    display: block;
}


/* --- Global Hindi Font Styling --- */
:lang(hi),
[lang="hi"],
.hindi {
    font-family: 'Noto Serif Devanagari', sans-serif;
    line-height: 1.85;
    letter-spacing: 0.01em;
}


/* --- Single Product: Title Hierarchy --- */
.single-product .summary .kadence-product-category {
    margin-bottom: 15px;
}
/* English / Main title */
.single-product .summary .product_title {
    font-size: clamp(22px, 1.8vw, 32px) !important;
    line-height: 1.25 !important;
    margin-bottom: 0.3em !important;
}

/* Hindi / Secondary title */
.single-product .summary .product_secondary_title {
    font-size: clamp(18px, 1.4vw, 24px) !important;
    line-height: 1.4 !important;
    margin-top: 6px !important;
    margin-bottom: 18px !important;
    color: #555555 !important;
    font-weight: 400 !important;
}
.single-product .summary .product-savings {
    font-size: 1rem;
    font-weight: 600;
    color: #27ae60;
    margin: -10px 0 15px 0;
}
.single-product .summary .panchsheel-product-attributes-list {
    margin: 25px 0;
    padding: 20px;
    border-radius: var(--panchsheel-radius);
    background-color: #f8f9fa;
    border: 1px solid var(--panchsheel-border);
    border-left: 4px solid var(--panchsheel-accent);
}
.single-product .summary .panchsheel-product-attributes-list .product-attribute-item {
    display: flex;
    gap: 10px;
    font-size: 0.95rem;
    padding: 8px 0;
    border-bottom: 1px solid var(--panchsheel-border);
}
.single-product .summary .panchsheel-product-attributes-list .product-attribute-item:last-child {
    border-bottom: none;
}
.single-product .summary .panchsheel-product-attributes-list .attribute-label {
    font-weight: 600;
    flex-basis: 120px;
    flex-shrink: 0;
}
.single-product .summary .panchsheel-product-attributes-list .attribute-value a {
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* Make product container flex-based (no floats) */
.single-product div.product {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* --------------------------------------------------------------------------
  2. WOOCOMMERCE - ARCHIVE PAGES (SHOP, CATEGORIES)
-------------------------------------------------------------------------- */

/* --- Card Image Wrapper (Padded "Amazon" Look) --- */
.woocommerce ul.products li.product .kadence-product-image-wrapper {
    background-color: #ffffff;
    padding: 20px;
    box-sizing: border-box;
}
.woocommerce ul.products li.product .kadence-product-image-wrapper img {
    object-fit: contain !important;
    width: 100%;
    height: 100%;
}

/* --- Card Content: Grid View --- */
.woocommerce ul.products.grid li.product .product-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.woocommerce ul.products.grid li.product .pp-archive-author {
    order: 1;
    margin-bottom: 8px;
}
.woocommerce ul.products.grid li.product .woocommerce-loop-product__title {
    order: 2;
    min-height: 3.9em;
}
.woocommerce ul.products.grid li.product .price {
    order: 3;
    margin-top: auto;
    margin-bottom: 1em;
}
.woocommerce ul.products.grid li.product .add_to_cart_button,
.woocommerce ul.products.grid li.product .added_to_cart {
    order: 4;
}

/* --- Card Content: List View --- */
.woocommerce ul.products.list li.product {
    display: flex;
    gap: 25px;
    text-align: left;
}
.woocommerce ul.products.list li.product .kadence-product-image-wrapper {
    flex-basis: 200px;
}
.woocommerce ul.products.list li.product .product-details {
    padding: 10px 0;
    text-align: left;
}
.woocommerce ul.products.list li.product .pp-archive-author {
    margin-top: 5px;
    margin-bottom: 10px;
}
.woocommerce ul.products.list li.product .price {
    text-align: left;
    margin-bottom: 15px;
}

/* --- Default Author Styling --- */
.woocommerce .pp-archive-author {
    font-size: 0.9em;
    color: var(--global-palette4);
}
.woocommerce .pp-archive-author a {
    color: var(--global-palette3);
    font-weight: 600;
    text-decoration: none;
}
.woocommerce .pp-archive-author a:hover {
    color: var(--global-palette1);
}

/* --------------------------------------------------------------------------
  3. HUSKY FILTER & SIDEBAR (Layout Fixed)
-------------------------------------------------------------------------- */

/* --- Fix Checkbox Alignment (Long Text Problem) --- */
.woof_list_checkbox li {
    display: flex !important;
    align-items: flex-start !important;
    margin-bottom: 8px !important;
}

.woof_list_checkbox li input[type="checkbox"] {
    min-width: 16px;
    margin-top: 5px;
    margin-right: 10px !important;
    margin-bottom: 0 !important;
}

.woof_list_checkbox li label {
    display: inline-block !important;
    line-height: 1.4;
    margin-bottom: 0 !important;
    width: auto !important;
}

/* --- Main Sidebar Card Layout (Desktop Only) --- */
@media (min-width: 1025px) {
    .archive.woocommerce #secondary {
        background-color: var(--global-palette9, #ffffff);
        border: 1px solid #E7E7E7;
        border-radius: 8px;
        padding: 25px;
        box-shadow: 0 4px 12px rgba(0, 35, 73, 0.05);
    }
    .archive.woocommerce #primary {
        background-color: var(--global-palette9, #ffffff);
        border: 1px solid #E7E7E7;
        border-radius: 8px;
        padding: 30px;
        box-shadow: 0 4px 12px rgba(0, 35, 73, 0.05);
    }
    .widget_woof_widget {
        background-color: transparent !important;
        border: none !important;
        padding: 0 !important;
    }
    #secondary .widget-title {
        font-size: 1.5em;
        font-family: 'Merriweather', serif;
        color: var(--global-palette3);
        margin-bottom: 25px;
        padding-bottom: 15px;
        border-bottom: 2px solid var(--global-palette8);
    }
}

/* --- General Filter Widget Styling --- */
.woof_container .woof_container_inner h4 {
    font-family: 'Merriweather', serif;
    font-size: 1.2em;
    color: var(--global-palette3);
    margin-top: 25px;
    margin-bottom: 15px;
}
.woof_text_search_container input[type="search"] {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px 15px;
    width: 100%;
    transition: border-color 0.2s ease;
}
.woof_text_search_container input[type="search"]:focus {
    border-color: var(--global-palette1);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 122, 122, 0.2);
}
.irs--round .irs-bar {
    background-color: var(--global-palette1) !important;
}
.irs--round .irs-from,
.irs--round .irs-to,
.irs--round .irs-single {
    background-color: var(--global-palette3) !important;
}
.irs--round .irs-handle {
    border-color: var(--global-palette1) !important;
}

/* --- HUSKY Mobile Button Fix --- */
@media (min-width: 1025px) {
    .woof_show_auto_form,
    .woof_hide_auto_form {
        display: none !important;
    }
}

/* --------------------------------------------------------------------------
  4. RESPONSIVE & MOBILE-SPECIFIC STYLES
-------------------------------------------------------------------------- */

@media (max-width: 767px) {

    /* --- Single Product: Mobile spacing (NOT font size) --- */
    .single-product .summary .product_title {
        line-height: 1.35 !important;
    }

    .single-product .summary .product_secondary_title {
        margin-top: 6px !important;
    }

    /* --- Attributes: Better stacking on mobile --- */
    .single-product .summary 
    .panchsheel-product-attributes-list .attribute-label {
        flex-basis: auto !important;
        font-weight: 700;
    }

    .single-product .summary 
    .panchsheel-product-attributes-list .attribute-value,
    .single-product .summary 
    .panchsheel-product-attributes-list .attribute-value a {
        word-break: break-word;
        overflow-wrap: break-word;
        padding-bottom: 8px;
    }

    /* --- Product Grid: Mobile Refinements --- */
    .woocommerce .pp-archive-author {
        font-size: 0.8em !important;
        margin-bottom: 8px !important;
    }

    .woocommerce ul.products.grid li.product .button {
        font-size: 0.9em !important;
        padding: 0.8em 1em !important;
    }
}


/* ==========================================================
   HOMEPAGE - SIMPLE CAROUSEL ARROW STYLING
   ========================================================== */

/* This targets the arrow buttons */
.home button.wc-block-next-previous-buttons__button {
    background-color: transparent !important;
    border: none !important;
    color: var(--global-palette5) !important;
    opacity: 0.7;
    transition: all 0.2s ease !important;
}

/* On hover, make the arrow darker and slightly larger */
.home button.wc-block-next-previous-buttons__button:hover {
    color: var(--global-palette3) !important;
    opacity: 1;
    transform: scale(1.2);
}

/* Adjust the size of the arrow icon itself */
.home button.wc-block-next-previous-buttons__button svg {
    width: 30px;
    height: 30px;
}

/* --- Constrain Carousel Item Width on Large Screens --- */
@media (min-width: 1200px) {
    .home .wp-block-woocommerce-product-collection .wc-block-grid__product {
        max-width: 250px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ======================================================
   FIX: Remove Kadence/WooCommerce gap under product image
   ====================================================== */

/* Force remove extra margin/padding under gallery */
.single-product div.product div.images,
.single-product div.product div.images.woocommerce-product-gallery {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* For Kadence image wrapper which adds transition height */
.single-product .woocommerce-product-gallery {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    transition: none !important;
    height: auto !important;
}

/* Remove any forced height inline style */
.single-product div.product div.images img {
    height: auto !important;
}

/* Mobile view adjustments */
@media screen and (max-width: 720px) {
    .single-product div.product div.images,
    .single-product div.product div.summary {
        width: 100% !important;
    }
    .single-product div.product div.images {
        margin-bottom: 0.5em !important;
        padding-bottom: 0 !important;
    }
}

/* 1. TAB BUTTONS: Lock them in the center */
.woocommerce div.product .woocommerce-tabs ul.tabs {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* 2. TAB CONTENT (Description, Reviews, etc.): Force Justify */
.woocommerce div.product .woocommerce-tabs .panel,
.woocommerce div.product .woocommerce-tabs .panel p {
    text-align: justify !important;
    width: 100% !important;
}

/* 3. FIX THE SHIFTING: Ensure the main wrapper is always full width */
.woocommerce div.product .woocommerce-tabs {
    width: 100% !important;
    float: none !important;
    clear: both !important;
}

/* 4. CLEANUP: Remove focus outlines and button styling issues */
.woocommerce div.product .woocommerce-tabs ul.tabs li {
    display: block !important;
    float: none !important;
    margin: 0 5px 5px 5px !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    outline: none !important;
    box-shadow: none !important;
}

/* --- Fix Image/Text Columns on Desktop Using Flex --- */
@media (min-width: 992px) {
    .single-product div.product .woocommerce-product-gallery {
        flex: 0 0 35%;
        max-width: 450px !important;
        margin-right: 5% !important;
    }

    .single-product div.product .summary {
        flex: 1 0 60%;
    }
}



/* =========================================
   AUTHOR ARCHIVE BIO LAYOUT
   ========================================= */

/* Desktop Layout: Side-by-Side */
.pp-author-bio-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.pp-author-photo {
    flex: 0 0 150px;
    text-align: center;
}

.pp-author-avatar {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.pp-author-info {
    flex: 1;
}

/* Author Section Heading Separator */
.pp-author-products-separator h2 {
    font-size: 1.8rem;
    font-family: var(--font-heading, serif);
    color: var(--global-palette3);
    margin-top: 20px;
    margin-bottom: 15px;
}

/* Mobile Layout: Stacked (Triggers on screens smaller than 768px) */
@media (max-width: 767px) {
    .pp-author-bio-container {
        display: block;
        text-align: center;
    }

    .pp-author-photo {
        width: 100%;
        margin: 0 auto 20px auto;
    }
    
    .pp-author-avatar {
        margin: 0 auto;
    }

    .pp-author-info h1.page-title {
        text-align: center;
        margin-bottom: 15px;
    }

    .author-bio-content {
        text-align: left;
        padding: 0 5px;
    }

    .pp-author-products-separator h2 {
        text-align: center;
        font-size: 1.5rem;
    }
}



@media (max-width: 767px) {
    /* 1. Hide ONLY the "Book Filter" text (all widget titles in primary sidebar) */
    .primary-sidebar .widget-title {
        display: none !important;
    }

    /* 2. Remove extra spacing so mobile filter overlay looks cleaner */
    .primary-sidebar,
    .primary-sidebar .widget {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        border: none !important;
    }
}

/* =========================================
   MOBILE FILTER STYLES (Husky)
   ========================================= */

@media (max-width: 767px) {

    /* --- 1. MAKE BOXES VISIBLE (Dark Borders Only) --- */
    .woof_mobile_filter_wrapper input[type="text"],
    .woof_mobile_filter_wrapper input[type="search"] {
        border: 1px solid #333333 !important;
        color: #000000 !important;
        border-radius: 4px !important;
    }

    .woof_mobile_filter_wrapper .select2-container .select2-selection,
    .woof_mobile_filter_wrapper .chosen-container-multi .chosen-choices,
    .woof_mobile_filter_wrapper .chosen-container-single .chosen-single {
        border: 1px solid #333333 !important;
        border-radius: 4px !important;
    }

    /* --- 2. STOP IPHONE ZOOMING --- */
    .woof_mobile_filter_wrapper input,
    .woof_mobile_filter_wrapper select,
    .select2-search__field,
    .chosen-search-input {
        font-size: 16px !important;
        line-height: normal !important;
    }
    
    .select2-search__field {
        height: 40px !important;
    }

    /* --- 3. CLOSE BUTTON --- */
    .woof_hide_mobile_filter {
        display: block !important;
        text-align: right;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 1px solid #eee;
        font-size: 14px;
        font-weight: bold;
        text-transform: uppercase;
        color: #333 !important;
    }
    .woof_hide_mobile_filter span::before {
        content: "✕ ";
        color: #d32f2f;
        font-weight: 900;
        margin-right: 5px;
    }

    /* --- 4. FIX HOVER/HANG (Prevents sticky buttons on touch) --- */
    .woof_mobile_filter_wrapper *:hover,
    .woof_mobile_filter_wrapper *:focus {
        outline: none !important;
        box-shadow: none !important;
    }

    /* --- 5. CLEANUP (Optional) --- */
    .primary-sidebar,
    .primary-sidebar .widget {
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
    }
    .primary-sidebar .widget-title {
        display: none !important;
    }
}

/* =========================================
   1. AUTHOR DIRECTORY GRID STYLES (Modern Version)
   ========================================= */

/* Enable Smooth Scrolling */
.pp-author-directory-wrapper {
  scroll-behavior: smooth;
}


/* The Grid Container */
.pp-author-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

/* The Card */
.pp-author-card {
    background: #FFFFFF;
    border: 1px solid #D1D1D1;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-align: center;
}

.pp-author-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 35, 73, 0.15);
    border-color: #1E8F86;
}

.pp-author-card-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
    padding: 25px 20px;
}

/* The Image Area */
.pp-author-card-image {
    width: 110px;
    height: 110px;
    margin: 0 auto 15px auto;
    border-radius: 50%;
    overflow: hidden;
    background: #F5F6F8;
    border: 2px solid #F9F8F5;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.pp-author-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pp-author-card:hover .pp-author-card-image img {
    transform: scale(1.05);
}

/* The Name */
.pp-author-card-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.3;
    color: #002349;
}

/* "View Profile" Text */
.pp-view-profile {
    font-size: 0.8rem;
    color: #B5976A;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s ease;
}

.pp-author-card:hover .pp-view-profile {
    color: #1E8F86;
}

/* =========================================
   2. MODERN A-Z NAVIGATION (Sticky & Centered)
   ========================================= */

.pp-az-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0 auto 40px auto;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-bottom: 2px solid #F5F6F8;
    box-shadow: 0 4px 10px rgba(0, 35, 73, 0.05);
    border-radius: 0 0 12px 12px;
	
    position: relative; /* embedded, not floating */
}

/* The Letter Circles */
.pp-az-nav a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    text-decoration: none;
    color: #1D3C5F;
    font-weight: 700;
    font-size: 14px;
    background: #F5F6F8;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.pp-az-nav a:hover {
    background: #1E8F86;
    color: #FFFFFF;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(30, 143, 134, 0.3);
}

/* The Section Headers (A, B, C...) */
.pp-letter-heading {
    border-bottom: 2px solid #B5976A;
    padding-bottom: 10px;
    margin-top: 60px;
    margin-bottom: 25px;
    font-size: 2rem;
    color: #002349;
    font-weight: 800;
    scroll-margin-top: 80px;
}

/* =========================================
   3. MOBILE OPTIMIZATIONS (FIXED & CLEAN)
   ========================================= */

@media (max-width: 600px) {

    /* Author grid */
    .pp-author-directory-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* A–Z navigation */
    .pp-az-nav {
        padding: 10px 5px;
        gap: 5px;
    }
    
    .pp-az-nav a {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    /* Author cards */
    .pp-author-card-link {
        padding: 15px 10px;
    }

    .pp-author-card-image {
        width: 70px;
        height: 70px;
        margin-bottom: 10px;
    }

    .pp-author-card-name {
        font-size: 0.9rem;
    }
    
    .pp-view-profile {
        font-size: 0.7rem;
    }

    /* Letter headings (A, B, C...) */
    .pp-letter-heading {
        font-size: 1.5rem;
        scroll-margin-top: 60px; /* ✅ embedded nav safe */
    }
}


/* --- MOBILE FIX: PERFECT ALIGNMENT FOR LABEL + VALUE --- */
@media (max-width: 767px) {

  .single-product .summary .panchsheel-product-attributes-list .product-attribute-item {
      display: flex !important;
      flex-direction: row !important;
      align-items: flex-start !important;
      gap: 8px !important;
  }

  .single-product .summary .panchsheel-product-attributes-list .attribute-label {
      width: 110px !important;        /* fixed width → perfect alignment */
      font-weight: 700;
      flex-shrink: 0 !important;
  }

  .single-product .summary .panchsheel-product-attributes-list .attribute-value,
  .single-product .summary .panchsheel-product-attributes-list .attribute-value a {
      flex: 1 1 auto !important;
      word-break: break-word;
  }
}


/* =========================================================
   ARCHIVE TAGS – CURRICULUM (NEP / GENERAL) + SEMESTER
   ========================================================= */

/* Base tag style */
.pp-archive-curriculum,
.pp-archive-semester {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: max-content;

    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
    padding: 1px 6px;
    border-radius: 3px;
    line-height: 1.2;
    white-space: nowrap;
}

/* ---------- CURRICULUM TAGS ---------- */

/* NEP – current syllabus */
.pp-curriculum-nep-2020 {
    color: #065f46;
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    box-shadow: inset 0 0 0 1px rgba(6, 95, 70, 0.15);
}


/* General – neutral reference */
.pp-curriculum-general {
    color: #374151;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
}

/* ---------- SEMESTER / YEAR TAG ---------- */

.pp-archive-semester {
    font-size: 11px;
    font-weight: 500;
    margin-left: 6px;

    color: #1f2937;
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
}


/* ---------- SPACING BEFORE PRICE ---------- */

.pp-archive-curriculum {
    margin-bottom: 6px;
}

.woocommerce ul.products li.product .price {
    margin-top: 6px;
}


/* ---------- OTHER EXISTING STYLES (UNCHANGED) ---------- */

.single-product .woocommerce-variation-price {
    display: none !important;
}

/* Normalize price appearance for all archive products */
.woocommerce ul.products li.product .price {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

/* Uniform archive button styling */
.woocommerce ul.products li.product .button {
    padding: 12px 20px;
    font-size: 15px;
    border-radius: 6px;
    text-align: center;
}


/* Wrapper for NEP + Semester */
.pp-archive-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px; /* space before price */
}

/* Remove bottom margin from individual tags */
.pp-archive-curriculum {
    margin-bottom: 0 !important;
}


/* Hide TranslatePress FLOATING switcher on desktop only */
@media (min-width: 1024px) {
  .trp-floating-switcher {
    display: none !important;
  }
}



/* =========================================
   PANCHSHEEL BLOG / ARTICLE STYLES
   Scope: Long-form academic content (NEP, guides)
   ========================================= */

/* Main Blog Wrapper */
.pp-blog {
    max-width: 820px;
    margin: 0 auto;
    line-height: 1.7;
    font-size: 1rem;
    color: #1f2933;
}

/* Intro Highlight Box */
.pp-intro {
    font-size: 1.05rem;
    background: #f6f8fb;
    padding: 16px 18px;
    border-left: 4px solid #1E8F86;
    margin-bottom: 28px;
}

/* Section Headings */
.pp-blog h2 {
    margin-top: 48px;
    margin-bottom: 16px;
    font-size: 1.6rem;
    line-height: 1.3;
    color: #002349;
}

.pp-blog h3 {
    margin-top: 36px;
    margin-bottom: 14px;
    font-size: 1.25rem;
    color: #1D3C5F;
}

/* Sub-section / Example Heading */
.pp-blog h4 {
    margin-top: 28px;
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: #334155;
    font-weight: 600;
}

/* Highlighted Section Heading (Publisher Perspective) */
.pp-section-highlight {
    margin-top: 56px;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: #f8fafc;
    border-left: 5px solid #002349;
    font-size: 1.35rem;
    line-height: 1.3;
    color: #002349;
}

/* Paragraph Spacing */
.pp-blog p {
    margin-bottom: 18px;
}

/* Lists */
.pp-blog ul,
.pp-blog ol {
    margin: 16px 0 24px 22px;
}

.pp-blog li {
    margin-bottom: 8px;
}

/* Divider Line */
.pp-divider {
    margin: 40px 0;
    border: none;
    border-top: 1px solid #e2e6ea;
}

/* Key Takeaway Box */
.pp-key {
    background: #ecfdf5;
    border-left: 4px solid #1E8F86;
    padding: 14px 16px;
    margin: 28px 0;
    font-size: 0.95rem;
    color: #065f46;
}

/* Important Note / Disclaimer Box */
.pp-note {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 14px 16px;
    margin: 24px 0;
    font-size: 0.95rem;
    color: #92400e;
}

/* Tables */
.pp-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.95rem;
}

.pp-table th {
    background: #002349;
    color: #ffffff;
    padding: 10px;
    text-align: left;
}

.pp-table td {
    border: 1px solid #e2e6ea;
    padding: 10px;
}

/* Inline Emphasis */
.pp-blog strong {
    font-weight: 600;
    color: #111827;
}

/* Links Inside Blog */
.pp-blog a {
    color: #1E8F86;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pp-blog a:hover {
    color: #0f766e;
}

/* Mobile Optimisation */
@media (max-width: 767px) {
    .pp-blog {
        padding: 0 10px;
        font-size: 0.95rem;
    }

    .pp-blog h2 {
        font-size: 1.4rem;
    }

    .pp-blog h3 {
        font-size: 1.15rem;
    }

    .pp-blog h4 {
        font-size: 1.05rem;
    }

    .pp-section-highlight {
        font-size: 1.2rem;
        padding: 14px 16px;
    }
}




/* =========================================
    ========================================= */


.pp-curriculum-switcher {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.pp-curriculum-btn {
    padding: 8px 16px;
    border: 1px solid #1E8F86;
    border-radius: 6px;
    text-decoration: none;
    color: #1E8F86;
    font-weight: 500;
    background: #fff;
}

.pp-curriculum-btn:hover {
    background: #1E8F86;
    color: #fff;
}

.pp-curriculum-btn.is-active {
    background: #1E8F86;
    color: #fff;
    cursor: default;
}


/* -------------------------------------------------
   CATEGORY GRID – PANCHSHEEL BOOKSTORE (REFINED)
-------------------------------------------------- */

/* Hide category images */
.woocommerce ul.products li.product-category img {
    display: none !important;
}

/* Card base */
.woocommerce ul.products li.product-category {
    background: #ffffff;
    border: 1px solid var(--panchsheel-border);
    border-radius: var(--panchsheel-radius);
    padding: 28px 22px 26px;
    text-align: center;
    transition: all 0.25s ease;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}


/* Hover – refined & scholarly */
.woocommerce ul.products li.product-category:hover {
    border-color: var(--panchsheel-accent);
    box-shadow: 0 10px 24px rgba(0, 35, 73, 0.10);
    transform: translateY(-3px);
}

/* Link wrapper */
.woocommerce ul.products li.product-category a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 140px;
    text-decoration: none;
}

/* Category title */
.woocommerce ul.products li.product-category h2 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.45;
    margin: 0 0 8px;
    letter-spacing: 0.2px;
}

/* Book count */
.woocommerce ul.products li.product-category h2 mark {
    background: none;
    color: #6b7280;
    font-size: 14px;
    font-weight: 400;
}

/* Gentle hover emphasis */
.woocommerce ul.products li.product-category:hover h2 {
    color: var(--panchsheel-primary);
}

.woocommerce ul.products li.product-category::before {
    content: "";
    width: 32px;
    height: 2px;
    background: var(--panchsheel-warm-accent);
    margin: 0 auto 12px;
    display: block;
    opacity: 0.6;
}


/* =========================================================
   PANCHSHEEL GLOBAL RESPONSIVE SCALING FIX
   Purpose:
   - Fix small look on large (27") screens
   - Improve Hindi (Devanagari) readability
   - Maintain mobile & laptop balance
   - Follow modern CSS best practices
   ========================================================= */

/* ---------- 1. GLOBAL FLUID TYPOGRAPHY ---------- */
html {
    font-size: clamp(16px, 1.1vw, 19px);
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}



/* ---------- 3. RESPONSIVE HEADING SCALE ---------- */
h1 {
    font-size: clamp(30px, 2.6vw, 42px);
    line-height: 1.25;
}

h2 {
    font-size: clamp(22px, 2vw, 32px);
    line-height: 1.3;
}

h3 {
    font-size: clamp(18px, 1.6vw, 26px);
    line-height: 1.35;
}

h4 {
    font-size: clamp(16px, 1.3vw, 20px);
}


/* ---------- 4. WOOCOMMERCE CATALOG READABILITY ---------- */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 {
    font-size: clamp(16px, 1.2vw, 20px);
    line-height: 1.6;
}

.woocommerce ul.products li.product .price {
    font-size: clamp(15px, 1vw, 18px);
}


/* ---------- 5. SINGLE PRODUCT META & DETAILS ---------- */
.single-product .summary,
.product_meta,
.woocommerce-product-details__short-description {
    font-size: clamp(15px, 1vw, 18px);
    line-height: 1.7;
}




/* ---------- 7. LONG-FORM CONTENT (BLOG / GUIDES) ---------- */
.pp-blog {
    font-size: clamp(16px, 1.05vw, 19px);
    line-height: 1.75;
}

.pp-blog p {
    max-width: 70ch;
}


/* ---------- 8. MOBILE SAFETY LOCK ---------- */
@media (max-width: 768px) {
    html {
        font-size: 16px;
    }
}


/* =================================================
   GLOBAL LAYOUT FIX – LARGE SCREENS (Kadence Safe)
   ================================================= */

/* Let Kadence control layout width */
.site-main,
.content-area {
    max-width: 100%;
}

/* Control ONLY inner readable content */
@media (min-width: 1400px) {

  .entry-content > *,
  .woocommerce.archive .woocommerce-notices-wrapper,
  .woocommerce.archive ul.products,
  .pp-blog {
      max-width: 1400px;
      margin-left: auto;
      margin-right: auto;
  }

}

/* =================================================
   FIX: Normal Pages (Shipping, Return, Policies)
   Center content without breaking Kadence
   ================================================= */

@media (min-width: 1200px) {

  .page:not(.home):not(.woocommerce) .entry-content,
  .page:not(.home):not(.woocommerce) .entry-content > .wp-block-group,
  .page:not(.home):not(.woocommerce) 
  .entry-content > .wp-block-group > .wp-block-group__inner-container {
      max-width: 1320px;
      margin-left: auto;
      margin-right: auto;
  }

}

/* =========================================================
   UNIVERSITY SUBJECT FILTER – CLEAN ACADEMIC NAV
   ========================================================= */

.pp-subject-switcher {
    display: flex;
    align-items: center;
    gap: 10px;

    margin: 20px 0 18px;
    padding-top: 10px;

    border-top: 1px solid var(--panchsheel-border);

    font-size: 14px;
    overflow-x: auto;
    scrollbar-width: none;
}

.pp-subject-switcher::-webkit-scrollbar {
    display: none;
}

/* Label */
.pp-subject-switcher::before {
    content: "Subjects";
    font-weight: 700;
    color: #475569;
    margin-right: 6px;
    white-space: nowrap;
}

/* Subject links */
.pp-subject-btn {
    position: relative;
    padding: 2px 0;
    color: #1f2937;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

/* Separator */
.pp-subject-btn:not(:last-child)::after {
    content: "|";
    margin-left: 10px;
    color: #cbd5e1;
    font-weight: 400;
}

/* Hover */
.pp-subject-btn:hover {
    color: var(--panchsheel-accent);
}

/* Active */
.pp-subject-btn.is-active {
    color: var(--panchsheel-accent);
}

/* Active underline (thin & elegant) */
.pp-subject-btn.is-active::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--panchsheel-accent);
}

/* Mobile tuning */
@media (max-width: 768px) {
    .pp-subject-switcher {
        margin: 16px 0 16px;
        font-size: 13px;
    }
}

/* Close SUBJECT filter section with subtle divider */
.pp-subject-switcher {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 10px;
}

/* =========================================
   PRODUCT SHARE ICONS
   ========================================= */

.pp-product-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0 14px;
}

.pp-share-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    margin-right: 4px;
}

.pp-share-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    transition: all 0.2s ease;
}

.pp-share-icon svg {
    width: 18px;
    height: 18px;
    fill: #1E8F86;
    pointer-events: none; /* IMPORTANT */
}

.pp-share-icon:hover {
    background: #e6f7f5;
    transform: translateY(-1px);
}

/* Copied state */
.pp-share-icon.copied {
    background: #dcfce7;
}
