/*
Theme Name: ASH KT Theme
Theme URI: https://ashkt.com
Author: ASH KT Themes
Author URI: https://ashkt.com
Description: A lightweight, responsive and premium WordPress theme by ASH KT Themes.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ashkt-theme
*/


/* =========================================================
   ASHKT THEME — MASTER CONTROL ROOM & GLOBAL BASE
   ========================================================= */

:root {

    /* 1. Layout & Structure Controls */

    --ashkt-container-width: 1200px;
    --ashkt-side-spacing: 32px;
    --ashkt-gap: 32px;
    --ashkt-section-spacing: 48px;
    --ashkt-card-padding: 24px;

    --ashkt-above-height: 42px;
    --ashkt-main-height: 76px;
    --ashkt-below-height: 50px;


    /* 2. Day Colors (Default Theme Color Palette) */

    --ashkt-bg: #EEF3F7;
    --ashkt-content: #F8FAFC;
    --ashkt-header: #D9E3EB;
    --ashkt-border: #D3DEE8;
    --ashkt-border-h: #D2DDE7;

    --ashkt-heading: #1F2937;
    --ashkt-text: #475569;
    --ashkt-link: #3B82F6;

    --ashkt-primary: #B87333;
    --ashkt-gold: #B89B5E;

    --ashkt-white: #FFFFFF;

    --ashkt-shadow:
        0 12px 35px rgba(31, 41, 55, 0.10);
}


/* =========================================================
   ASHKT THEME — RESET & TYPOGRAPHY
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--ashkt-bg);
    color: var(--ashkt-text);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Oxygen,
        Ubuntu,
        Cantarell,
        sans-serif;

    font-size: 16px;

    margin: 0;
    padding: 0;

    line-height: 1.7;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--ashkt-heading);
}

a {
    color: var(--ashkt-primary);
    text-decoration: none;
}

a:hover {
    color: var(--ashkt-gold);
}

header {
    background: var(--ashkt-header);
}


/* =========================================================
   ASHKT THEME — COMPONENTS : SHARED CARDS & BOXES
   ========================================================= */

.ashkt-content-box,
article,
.ashkt-card {
    background: var(--ashkt-content);
    border: 1px solid var(--ashkt-border);
    box-shadow: var(--ashkt-shadow);
    padding: var(--ashkt-card-padding);
}


/* =========================================================
   ASH KT — HEADER SYSTEM (CLEAN & OPTIMIZED)
   ========================================================= */

.ashkt-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    margin-bottom: 30px;
}


/* Header Rows */

.ashkt-header-row {
    width: 100%;
    border-bottom: 1px solid var(--ashkt-border);
    box-sizing: border-box;

    display: flex;
    align-items: center;
}

.ashkt-header-row-above {
    min-height: var(--ashkt-above-height, 48px);
    background: var(--ashkt-header);
}

.ashkt-header-row-primary {
    min-height: var(--ashkt-main-height, 64px);
    background: var(--ashkt-header);
}

.ashkt-header-row-below {
    min-height: var(--ashkt-below-height, 40px);
    background: var(--ashkt-header);
}


/* Header Container */

.ashkt-header-container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    box-sizing: border-box;
}

.ashkt-header-row-above .ashkt-header-container {
    padding: 6px 0;
}

.ashkt-header-row-primary .ashkt-header-container {
    padding: 8px 0;
}

.ashkt-header-row-below .ashkt-header-container {
    padding: 6px 0;
}


/* Header Columns */

.ashkt-header-column {
    flex: 1 1 0;
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 15px;

    box-sizing: border-box;
}

.ashkt-header-left {
    justify-content: flex-start;
}

.ashkt-header-center {
    justify-content: center;
}

.ashkt-header-right {
    justify-content: flex-end;
}

.ashkt-header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}


/* =========================================================
   MOBILE RESPONSIVE FIX
   (ENSURING ALL 3 ROWS SHOW UP)
   ========================================================= */

@media screen and (max-width: 768px) {

    /* Below Header row हमेशा दिखे */

    .ashkt-header-row-below {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }


    /* तीनों rows में elements
       left / center / right position */

    .ashkt-header-row-above .ashkt-header-container,
    .ashkt-header-row-primary .ashkt-header-container,
    .ashkt-header-row-below .ashkt-header-container {
        flex-wrap: wrap !important;

        row-gap: 8px !important;
        column-gap: 12px !important;
    }

    .ashkt-header-row-above .ashkt-header-column,
    .ashkt-header-row-primary .ashkt-header-column,
    .ashkt-header-row-below .ashkt-header-column {
        flex: 0 1 auto !important;
        width: auto !important;
    }

    .ashkt-header-left {
        justify-content: flex-start !important;
    }

    .ashkt-header-center {
        justify-content: center !important;
    }

    .ashkt-header-right {
        justify-content: flex-end !important;
    }

    .ashkt-header-center:empty {
        display: none !important;
    }

    .ashkt-header-row-above .ashkt-header-container,
    .ashkt-header-row-below .ashkt-header-container {
        justify-content: space-between !important;
    }

    .ashkt-header-controls {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 8px !important;
    }
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.ashkt-navigation {
    margin-left: auto;
}

.ashkt-navigation ul {
    display: flex;

    align-items: center;

    gap: 24px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.ashkt-navigation a {
    color: var(--ashkt-heading);

    font-size: 0.95rem;

    font-weight: 600;

    transition:
        color 0.25s ease;
}

.ashkt-navigation a:hover {
    color: var(--ashkt-primary);
}


/* =========================================================
   HEADER CONTROLS — LAYOUT ONLY
   ========================================================= */

.ashkt-header-controls {
    display: flex;

    align-items: center;

    gap: 10px;

    flex-shrink: 0;
}


/* =========================================================
   EXPANDING SEARCH SYSTEM (UNIFIED)
   ========================================================= */

.ashkt-search {
    display: inline-flex;

    align-items: center;

    flex-direction: row-reverse;

    gap: 8px;

    position: relative;
}

.ashkt-search-toggle {
    order: 2;

    position: relative;

    z-index: 5;

    flex-shrink: 0;
}

.ashkt-search-box {
    order: 1;

    width: 0;

    overflow: hidden;

    opacity: 0;

    transition:
        width 0.3s ease,
        opacity 0.2s ease;
}


/* Open State */

.ashkt-search-box.ashkt-search-open,
.ashkt-search.is-open .ashkt-search-box {
    width: 260px;

    opacity: 1;
}

.ashkt-search-box form {
    display: flex;

    align-items: center;

    width: 100%;

    margin: 0;
}

.ashkt-search-box input[type="search"] {
    display: block;

    width: 260px;

    height: 42px;

    padding: 0 14px;

    box-sizing: border-box;

    border: 1px solid var(--ashkt-border);

    border-right: 0;

    border-radius: 0;

    background: var(--ashkt-white);

    color: var(--ashkt-heading);

    outline: none;
}

.ashkt-search-box input[type="search"]::placeholder {
    color: var(--ashkt-text);
}


/* =========================================================
   MENU PANEL
   ========================================================= */

.ashkt-menu-panel {
    position: fixed;

    inset: 0;

    display: none;

    background:
        rgba(31, 41, 55, 0.45);

    z-index: 2000;
}

.ashkt-menu-panel-inner {
    width: min(420px, 90%);

    height: 100%;

    margin-left: auto;

    padding: 30px;

    background: var(--ashkt-content);

    box-shadow:
        -15px 0 40px rgba(31, 41, 55, 0.15);

    overflow-y: auto;
}

.ashkt-mobile-navigation ul {
    margin: 0;

    padding: 0;

    list-style: none;
}

.ashkt-mobile-navigation li {
    border-bottom:
        1px solid var(--ashkt-border);
}

.ashkt-mobile-navigation a {
    display: block;

    padding: 15px 5px;

    color: var(--ashkt-heading);

    font-weight: 600;
}

.ashkt-mobile-navigation a:hover {
    color: var(--ashkt-primary);
}


/* =========================================================
   MOBILE HEADER
   ========================================================= */

@media (max-width: 800px) {

    .ashkt-header-container {
        width: min(100% - 24px, 700px);
    }

    .ashkt-navigation {
        display: none;
    }

    .ashkt-main-header .ashkt-header-container {
        min-height: 68px;
    }

    .ashkt-site-title {
        font-size: 1.25rem;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .ashkt-header-controls {
        gap: 6px;
    }

    .ashkt-menu-panel-inner {
        width: 88%;

        padding: 22px;
    }
}


/* =========================================
   HOME PAGE - CONTENT + SIDEBAR LAYOUT
   ========================================= */

.ashkt-main-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr) 320px;

    gap: 32px;

    align-items: start;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 768px) {

    .ashkt-main-layout {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   ASH KT — SEARCH BOX OPEN STATE
   ========================================================= */

.ashkt-search-box {
    display: none;

    width: 320px;
}

.ashkt-search-box.ashkt-search-open {
    display: block !important;
}

.ashkt-search-box form {
    display: flex;

    align-items: stretch;

    width: 100%;
}

.ashkt-search-box input[type="search"] {
    width: 100%;

    height: 42px;

    padding: 0 14px;

    background: var(--ashkt-white);

    color: var(--ashkt-heading);

    border: 1px solid var(--ashkt-border);

    border-radius: 0;

    outline: none;

    box-sizing: border-box;
}

.ashkt-search-box input[type="search"]::placeholder {
    color: var(--ashkt-text);
}


/* =========================================================
   NOTE (ASH KT FIX — 01 Sep)
   =========================================================

   पुराना "OFF-CANVAS MENU FOR MOBILE ONLY (BELOW HEADER)"
   rule यहाँ से हटाया गया है।

   वो rule .ashkt-header-row.ashkt-header-row-below को
   by-default visibility:hidden + opacity:0 कर देता था और
   सिर्फ .is-active class लगने पर दिखाता था।

   लेकिन कोई JS toggle उस class को add नहीं करता था।

   इसलिए Below Header row मोबाइल/टैबलेट पर गायब रहता था।

   अब Below Header row ऊपर वाले
   "MOBILE RESPONSIVE FIX (ENSURING ALL 3 ROWS SHOW UP)"
   rule के मुताबिक normal header row की तरह हमेशा दिखता है।

   आगे अगर off-canvas system बनाना हो तो उसके लिए अलग class
   इस्तेमाल करना बेहतर रहेगा।

   ========================================================= */


/* =========================================================
   ASH KT TOGGLE MENU — FIX LAYER & POSITION
   =========================================================

   पुराना पहला "4TH MENU BOX" version हटाया गया है।
   केवल final version रखा गया है।
   ========================================================= */

.ashkt-toggle-menu {
    position: absolute !important;

    /* पूरे 3-row Header के ठीक नीचे */

    top: 100% !important;

    left: 0 !important;

    margin: 5px;
    margin-top: 5px;

    width: 100% !important;

    min-width: auto;

    background-color: #ffffff !important;

    border:
        1px solid #D3DEE8 !important;

    z-index: 1000000 !important;

    visibility: hidden !important;

    opacity: 0 !important;

    pointer-events: none !important;

    transform:
        translateY(-10px) !important;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease !important;
}

.ashkt-toggle-menu.is-active {
    visibility: visible !important;

    opacity: 1 !important;

    pointer-events: auto !important;

    transform:
        translateY(0) !important;
}

.ashkt-toggle-menu-nav ul {
    list-style: none !important;

    margin: 0 !important;

    padding: 8px 0 !important;
}

.ashkt-toggle-menu-nav li {
    margin: 0 !important;

    padding: 0 !important;
}

.ashkt-toggle-menu-nav a {
    display: block !important;

    padding: 12px 20px !important;

    color: #1F2937 !important;

    text-decoration: none !important;

    transition:
        background-color 0.2s ease !important;
}

.ashkt-toggle-menu-nav a:hover {
    background-color: #EEF3F7 !important;
}

body.ashkt-dark-theme .ashkt-toggle-menu {
    background-color: #1A1A1A !important;

    border-color: #2A2A2A !important;
}

body.ashkt-dark-theme .ashkt-toggle-menu-nav a {
    color: #F8FAFC !important;
}

body.ashkt-dark-theme .ashkt-toggle-menu-nav a:hover {
    background-color: #252525 !important;
}


/* Mobile */

@media (max-width: 991px) {

    .ashkt-toggle-menu {
        left: 0 !important;

        right: 0 !important;

        width: 90% !important;
    }
}


/* =========================================================
   ASH KT — THREE-ROW FOOTER SYSTEM
   ========================================================= */

.ashkt-footer {
    width: 100%;

    margin-top: 60px;

    background: var(--ashkt-bg);

    color: var(--ashkt-text);
}


/* Row Container */

.ashkt-footer-container {
    width: min(1200px, calc(100% - 40px));

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    flex-wrap: wrap;
}

.ashkt-footer-column {
    display: flex;

    align-items: center;

    gap: 20px;
}


/* =========================================================
   1. ABOVE FOOTER
   ========================================================= */

.ashkt-footer-row-above {
    background: var(--ashkt-header);

    padding: 35px 0;

    border-top:
        1px solid var(--ashkt-border);

    border-bottom:
        1px solid var(--ashkt-border);
}


/* =========================================================
   2. PRIMARY FOOTER
   ========================================================= */

.ashkt-footer-row-primary {
    background: var(--ashkt-content);

    padding: 50px 0;

    border-bottom:
        1px solid var(--ashkt-border);
}

.ashkt-footer-row-primary
.ashkt-footer-left
.ashkt-site-title {

    color: var(--ashkt-heading);

    font-size: 1.35rem;

    text-decoration: none;

    font-weight: 600;
}

.ashkt-footer-menu {
    display: flex;
}

.ashkt-footer-menu ul {
    list-style: none;

    margin: 0;
    padding: 0;

    display: flex;

    gap: 24px;

    flex-wrap: wrap;
}

.ashkt-footer-menu a {
    color: var(--ashkt-text);

    text-decoration: none;

    transition:
        color 0.25s ease;
}

.ashkt-footer-menu a:hover {
    color: var(--ashkt-primary);
}

.ashkt-footer-html {
    color: var(--ashkt-text);

    line-height: 1.7;
}


/* =========================================================
   3. BELOW FOOTER
   ========================================================= */

.ashkt-footer-row-below {
    background: var(--ashkt-header);

    padding: 20px 0;
}

.ashkt-footer-copyright p {
    margin: 0;

    color: var(--ashkt-text);

    font-size: 0.9rem;
}


/* Widget Area (Bottom Sidebar) */

.ashkt-footer .ashkt-widget-area .widget {
    color: var(--ashkt-text);
}

.ashkt-footer .ashkt-widget-area .widget-title {
    color: var(--ashkt-heading);

    font-size: 1.15rem;

    margin-bottom: 12px;
}


/* =========================================================
   RESPONSIVE MOBILE FOOTER
   ========================================================= */

@media (max-width: 768px) {

    .ashkt-footer-container {
        flex-direction: column;

        text-align: center;
    }

    .ashkt-footer-column {
        flex-direction: column;

        justify-content: center;
    }

    .ashkt-footer-menu ul {
        justify-content: center;
    }
}


/* डिफ़ॉल्ट कंटेनर जो डायनेमिक विड्थ का इस्तेमाल करेगा */
.site-container, 
.container {
    max-width: var(--ashkt-container-width, 1200px);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
}

/* बॉडी क्लास के आधार पर लेआउट नियम */
body.ashkt-layout-full .site-container,
body.ashkt-layout-full .container {
    max-width: 100%;
}

body.ashkt-layout-fluid .site-container,
body.ashkt-layout-fluid .container {
    max-width: 100%;
    padding-left: 40px;
    padding-right: 40px;
}

body.ashkt-layout-narrow .site-container,
body.ashkt-layout-narrow .container {
    max-width: 800px;
}


