/*
Theme Name: Disha Online - GeneratePress Child
Theme URI: https://dishaonline.in
Description: Premium child theme customization for DishaOnline.in using GeneratePress.
Author: Disha Online
Author URI: https://dishaonline.in
Template: generatepress
Version: 1.0.0
Text Domain: dishaonline
*/

/* =========================================================
   DISHA ONLINE DESIGN SYSTEM
========================================================= */

:root {
    --disha-navy: #062b59;
    --disha-navy-dark: #041d3d;
    --disha-orange: #ff6500;
    --disha-orange-dark: #e95400;
    --disha-text: #172033;
    --disha-muted: #667085;
    --disha-border: #e7eaf0;
    --disha-bg: #f7f9fc;
    --disha-white: #ffffff;

    --disha-radius: 14px;
    --disha-container: 1180px;
}

/* =========================================================
   GLOBAL
========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    background: var(--disha-bg);
    color: var(--disha-text);
    font-family:
        "Noto Sans Devanagari",
        "Noto Sans",
        Arial,
        sans-serif;
    line-height: 1.7;
}

a {
    color: var(--disha-navy);
    text-decoration: none;
}

a:hover {
    color: var(--disha-orange);
}

.site-grid-container,
.grid-container {
    max-width: var(--disha-container);
}

/* =========================================================
   HEADER
========================================================= */

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--disha-border);
}

.site-logo img {
    max-height: 58px;
    width: auto;
}

.main-navigation {
    background: #fff;
}

.main-navigation .main-nav ul li a {
    color: var(--disha-text);
    font-size: 15px;
    font-weight: 600;
    padding-left: 15px;
    padding-right: 15px;
}

.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item > a {
    color: var(--disha-orange);
}

/* =========================================================
   TOP BAR
========================================================= */

.disha-topbar {
    background: var(--disha-navy-dark);
    color: #fff;
    font-size: 13px;
}

.disha-topbar-inner {
    max-width: var(--disha-container);
    margin: auto;
    min-height: 36px;
    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.disha-topbar a {
    color: #fff;
}

.disha-topbar a:hover {
    color: #ff8b45;
}

/* =========================================================
   HERO
========================================================= */

.disha-hero {
    background:
        linear-gradient(
            100deg,
            #fff8f3 0%,
            #f6f9ff 52%,
            #eaf3ff 100%
        );

    padding: 70px 20px;
}

.disha-hero-inner {
    max-width: var(--disha-container);
    margin: auto;

    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 45px;
    align-items: center;
}

.disha-hero h1 {
    margin: 0 0 18px;

    color: var(--disha-navy);

    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1px;
}

.disha-hero h1 span {
    color: var(--disha-orange);
}

.disha-hero-description {
    color: #475467;
    font-size: 18px;
    max-width: 650px;
}

/* =========================================================
   SEARCH
========================================================= */

.disha-search {
    display: flex;
    margin-top: 30px;
    max-width: 620px;
}

.disha-search input {
    flex: 1;

    min-height: 54px;

    border: 1px solid #d9dee8;
    border-right: 0;

    border-radius: 10px 0 0 10px;

    padding: 0 18px;
    font-size: 15px;

    background: #fff;
}

.disha-search button {
    min-width: 62px;

    border: 0;
    border-radius: 0 10px 10px 0;

    background: var(--disha-orange);
    color: #fff;

    font-size: 20px;
    cursor: pointer;
}

.disha-search button:hover {
    background: var(--disha-orange-dark);
}

/* =========================================================
   TRENDING SEARCH
========================================================= */

.disha-trending {
    margin-top: 15px;

    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;

    font-size: 13px;
}

.disha-trending strong {
    color: var(--disha-navy);
}

.disha-chip {
    background: #fff;
    border: 1px solid #e3e7ee;

    padding: 5px 12px;
    border-radius: 30px;

    color: #475467;
}

.disha-chip:hover {
    border-color: var(--disha-orange);
    color: var(--disha-orange);
}

/* =========================================================
   HERO VISUAL
========================================================= */

.disha-hero-card {
    min-height: 360px;

    border-radius: 24px;

    background: #fff;

    border: 1px solid rgba(6, 43, 89, .08);

    box-shadow: 0 20px 55px rgba(6, 43, 89, .10);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 35px;
}

.disha-hero-card img {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
}

/* =========================================================
   CATEGORY NAV
========================================================= */

.disha-category-section {
    background: #fff;

    margin: 25px auto;

    max-width: var(--disha-container);

    border: 1px solid var(--disha-border);
    border-radius: var(--disha-radius);

    box-shadow: 0 8px 30px rgba(16, 24, 40, .04);

    overflow: hidden;
}

.disha-category-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.disha-category {
    min-height: 145px;

    padding: 22px 12px;

    text-align: center;

    border-right: 1px solid var(--disha-border);

    transition: .2s ease;
}

.disha-category:last-child {
    border-right: 0;
}

.disha-category:hover {
    background: #fff8f3;
}

.disha-category-icon {
    width: 45px;
    height: 45px;

    margin: 0 auto 10px;

    border-radius: 12px;

    background: #fff3eb;

    color: var(--disha-orange);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;
}

.disha-category h3 {
    margin: 0 0 5px;

    font-size: 15px;
    color: var(--disha-navy);
}

.disha-category p {
    margin: 0;

    color: var(--disha-muted);
    font-size: 12px;
}

/* =========================================================
   SECTION
========================================================= */

.disha-section {
    max-width: var(--disha-container);

    margin: 55px auto;

    padding: 0 20px;
}

.disha-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 20px;
}

.disha-section-heading h2 {
    margin: 0;

    color: var(--disha-navy);

    font-size: 28px;
    font-weight: 800;
}

.disha-section-heading a {
    font-size: 14px;
    font-weight: 700;
}

/* =========================================================
   ARTICLE GRID
========================================================= */

.disha-post-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 20px;
}

.disha-post-card {
    overflow: hidden;

    background: #fff;

    border: 1px solid var(--disha-border);

    border-radius: 14px;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.disha-post-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 14px 35px rgba(16, 24, 40, .09);
}

.disha-post-image {
    aspect-ratio: 16 / 9;

    background: #eef2f7;

    overflow: hidden;
}

.disha-post-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .35s ease;
}

.disha-post-card:hover .disha-post-image img {
    transform: scale(1.04);
}

.disha-post-content {
    padding: 17px;
}

.disha-post-category {
    display: inline-block;

    margin-bottom: 8px;

    padding: 4px 9px;

    border-radius: 30px;

    background: #fff1e9;

    color: var(--disha-orange);

    font-size: 11px;
    font-weight: 700;
}

.disha-post-title {
    margin: 0;

    color: var(--disha-navy);

    font-size: 17px;
    line-height: 1.45;
}

.disha-post-meta {
    margin-top: 12px;

    color: #98a2b3;

    font-size: 12px;
}

/* =========================================================
   LOWER THREE COLUMNS
========================================================= */

.disha-three-column {
    display: grid;

    grid-template-columns:
        1fr 1fr .8fr;

    gap: 20px;
}

.disha-panel {
    background: #fff;

    border: 1px solid var(--disha-border);

    border-radius: 14px;

    padding: 22px;
}

.disha-panel h3 {
    margin-top: 0;

    color: var(--disha-navy);
}

.disha-list {
    margin: 0;
    padding: 0;

    list-style: none;
}

.disha-list li {
    padding: 11px 0;

    border-bottom: 1px solid #eef0f4;

    font-size: 14px;
}

.disha-list li:last-child {
    border-bottom: 0;
}

/* =========================================================
   NEWSLETTER
========================================================= */

.disha-newsletter {
    max-width: var(--disha-container);

    margin: 60px auto;

    padding: 30px;

    background: var(--disha-navy);

    border-radius: 16px;

    color: #fff;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.disha-newsletter h3 {
    margin: 0 0 5px;

    color: #fff;
}

.disha-newsletter p {
    margin: 0;

    color: #d7e2ef;
}

.disha-newsletter-form {
    display: flex;

    min-width: 430px;
}

.disha-newsletter-form input {
    flex: 1;

    border: 0;

    border-radius: 8px 0 0 8px;

    padding: 0 15px;
}

.disha-newsletter-form button {
    border: 0;

    border-radius: 0 8px 8px 0;

    background: var(--disha-orange);

    color: #fff;

    padding: 0 22px;

    font-weight: 700;
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    background: #fff;

    border-top: 1px solid var(--disha-border);
}

.disha-footer-brand {
    color: var(--disha-navy);

    font-size: 28px;
    font-weight: 800;
}

.disha-footer-brand span {
    color: var(--disha-orange);
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 900px) {

    .disha-hero-inner {
        grid-template-columns: 1fr;
    }

    .disha-category-grid {
        grid-template-columns:
            repeat(4, 1fr);
    }

    .disha-post-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .disha-three-column {
        grid-template-columns: 1fr;
    }

    .disha-newsletter {
        flex-direction: column;
        align-items: stretch;
    }

    .disha-newsletter-form {
        min-width: 0;
    }
}

@media (max-width: 600px) {

    .disha-topbar {
        display: none;
    }

    .disha-hero {
        padding: 45px 15px;
    }

    .disha-hero h1 {
        font-size: 34px;
    }

    .disha-hero-description {
        font-size: 16px;
    }

    .disha-category-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .disha-category {
        border-bottom: 1px solid var(--disha-border);
    }

    .disha-post-grid {
        grid-template-columns: 1fr;
    }

    .disha-section {
        margin: 40px auto;
    }

    .disha-section-heading h2 {
        font-size: 23px;
    }

    .disha-newsletter {
        margin: 35px 15px;
        padding: 22px;
    }
}