/**
 * Hubrit Insights CSS
 * Style rules for the Insights Page. Replaces Tailwind with Vanilla CSS.
 * Compatible with Theme system (Light, Dark, Orange modes).
 * File: wp-content/themes/astra-child/css/insights.css
 */

/* Force page wrapper full width */
.page-template-page-insights .site-content,
.page-template-page-insights .ast-container,
.page-template-page-insights .content-area,
.page-template-page-insights .site-main {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.single-post .site-content>.ast-container,
.single-post .ast-container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.single-post .ast-container {
    max-width: 100% !important;
    width: 100% !important;
}

/* Main page wrapper */
.page-template-page-insights .insights-page {
    width: 100%;
}

.insights-page {
    padding-top: 5.825rem;
    background-color: var(--hero-bg);
    color: var(--text-dark);
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

@media (min-width: 768px) {
    .insights-page {
        padding-top: 6.875rem;
    }
}

@media (min-width: 1024px) {
    .insights-page {
        padding-top: 6.75rem;
    }
}

/* Container */
.insights-max-container {
    max-width: 1300px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .insights-max-container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (min-width: 1280px) {
    .insights-max-container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

.insights-newsletter-section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: #f5f5f5;
}

/* Breadcrumb Navigation */
.insights-breadcrumb-section {
/*     padding-top: 1rem;
    padding-bottom: 1rem; */
}

.insights-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
}

.insights-breadcrumb li {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.insights-breadcrumb a {
    color: var(--text-grey03);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.insights-breadcrumb a:hover {
    color: var(--text-dark);
}

.insights-breadcrumb .separator {
    color: var(--text-grey03);
    display: inline-flex;
    align-items: center;
}

.insights-breadcrumb .separator svg {
    width: 16px;
    height: 16px;
}

.insights-breadcrumb .current-page {
    color: var(--text-orange);
    font-weight: 400;
}

/* Hero Section */
.insights-hero-section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

@media (min-width: 1024px) {
    .insights-hero-section {
        padding-top: 3rem;
        padding-bottom: 5rem;
    }
}

.insights-hero-flex {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .insights-hero-flex {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 2rem;
    }
}

.insights-hero-left {
    max-width: 400px;
    width: 100%;
}

.insights-badge-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border: 1px solid var(--divider-orange);
    color: var(--text-orange);
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: capitalize;
}

@media (min-width: 1024px) {
    .insights-badge-pill {
        padding: 0.75rem 1.625rem;
        font-size: 1rem;
    }
}

.insights-hero-title {
    font-size: 1.875rem;
    font-weight: 300;
    margin-top: 1.5rem;
    margin-bottom: 0;
    line-height: 1.25;
    color: var(--text-dark02);
}

@media (min-width: 640px) {
    .insights-hero-title {
        font-size: 2.375rem;
    }
}

@media (min-width: 1024px) {
    .insights-hero-title {
        font-size: 2.75rem;
    }
}

@media (min-width: 1280px) {
    .insights-hero-title {
        font-size: 3.625rem;
    }
}

.insights-hero-title .highlight-text {
    color: var(--text-orange);
    display: block;
}

.insights-hero-right {
    max-width: 620px;
    width: 100%;
}

.insights-hero-desc {
    color: var(--text-grey02);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-weight: 300;
    margin-top: 0;
}

@media (min-width: 768px) {
    .insights-hero-desc {
        font-size: 1.125rem;
    }
}

.insights-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.insights-stat-item {
    display: flex;
    flex-direction: column;
}

.insights-stat-item .stat-value {
    font-size: 1.75rem;
    font-weight: 300;
    margin: 0;
    color: var(--text-dark);
}

@media (min-width: 768px) {
    .insights-stat-item .stat-value {
        font-size: 2.25rem;
    }
}

.insights-stat-item .stat-label {
    font-size: 0.75rem;
    color: var(--text-grey02);
    text-transform: uppercase;
    margin-top: 0.25rem;
    margin-bottom: 0;
    letter-spacing: 0.05em;
}

/* Tabs Section Styling */
.insights-tabs-section {
    padding-top: 2rem;
    /* padding-bottom: 5rem; */
}

.insights-main-tabs-list-wrapper {
    background-color: var(--bg-orange-surface);
    margin-bottom: 2.5rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.insights-main-tabs-list {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.insights-main-tabs-list::-webkit-scrollbar {
    display: none;
}

.insights-tab-trigger {
    font-family: 'Manrope';
    position: relative;
    background: none;
    border: none;
    box-shadow: none;
    color: var(--text-dark);
    font-size: 16;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;

}

.insights-tab-trigger:hover {
    background: none;
    color: var(--color-orange);
}

@media (min-width: 768px) {
    .insights-tab-trigger {
        padding: 0.625rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .insights-tab-trigger {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
}

.insights-tab-trigger:focus {
    color: var(--text-dark);
    background: none;
}

.insights-tab-trigger.active {
    color: var(--color-orange);
    border: none;
}

.insights-tab-trigger.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0px;
    /* value adjust kar sakte ho */
    width: 100%;
    height: 2px;
    background: var(--color-orange);
}


/* Sub-tabs List (Categories) */
.insights-subtabs-list {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-bottom: 2.5rem;
    padding-bottom: 0.5rem;
}

.insights-subtabs-list::-webkit-scrollbar {
    display: none;
}

.insights-subtab-trigger {
    font-family: inherit;
    background-color: var(--hero-bg);
    border: 1px solid var(--divider-light02);
    color: var(--text-dark02);
    padding: 0.7rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 9999px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.insights-subtab-trigger:hover,
.insights-subtab-trigger:focus {
    color: var(--text-dark02);
    border-color: var(--divider-light02);
    background: none;
}

.insights-subtab-trigger.active {
    background-color: var(--text-orange);
    color: #ffffff;
    border-color: var(--text-orange);
}

body.theme-orange .insights-subtab-trigger.active {
    color: #111111;
}

/* Cards Grid */
.insights-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .insights-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .insights-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.no-insights {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 0;
    color: var(--text-grey02);
    font-size: 1.125rem;
}

/* Card Styling */
.insight-card {
    /* background-color: var(--bg-primary); */
    /* border: 1px solid var(--divider-light); */
    border-radius: 1.625rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: border-color 0.4s ease, background-color 0.4s ease, transform 0.4s ease;
}

.insight-card-media {
    position: relative;
    height: 11.25rem;
    overflow: hidden;
}

.insight-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.insight-card-media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.32);
    z-index: 30;
    transition: background-color 0.4s ease;
}

.insight-card:hover .insight-card-media-overlay {
    background-color: transparent;
}

.insight-card-badge-pill {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 40;
    background-color: var(--color-orange);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 9999px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.insight-card:hover .insight-card-badge-pill {
    opacity: 1;
    visibility: visible;
}

.insight-card-overlay-meta {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 40;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;
}

.insight-card-overlay-meta .dot-separator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--text-orange);
    display: inline-block;
}

.insight-card:hover .insight-card-overlay-meta {
    color: #000;
}



/* Card Body */
.insight-card-body {
    padding: 1.5rem 1rem;
    background-color: var(--bg-primary);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: background-color 0.4s ease;
}

.insight-card-category-row {
    margin-bottom: 0.25rem;
}

.insight-card-category-link {
    color: var(--color-orange);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 400;
    font-size: 0.875rem;
    transition: opacity 0.2s ease;
}

.insight-card-category-link:hover,
.insight-card-category-link:focus {
    color: var(--color-orange);
}

.insight-card-category-link .chevron-right-small {
    width: 20px;
    height: 20px;
    stroke: var(--color-orange);
}

.insight-card-title {
    font-size: 16;
    font-weight: 500;
    margin: 0 0 0.5rem 0;
    line-height: 1.35;
}

.insight-card-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.insight-card-title a:hover {
    color: var(--text-dark);
}

.insight-card-description {
    color: var(--color-grey-200);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
}

/* Newsletter Section */
.insights-newsletter-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
    background-color: var(--bg-orange-surface);
    margin: 5rem 0;
}

.insights-newsletter-inner {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding: 0 16px;
    box-sizing: border-box;
}

.insights-newsletter-header {
    text-align: center;
}

.insights-newsletter-title {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    color: var(--text-dark);
    margin: 0;
}

@media (min-width: 640px) {
    .insights-newsletter-title {
        font-size: 2rem;
    }
}

.insights-newsletter-title .highlight-text {
    color: var(--color-orange);
}

.insights-newsletter-desc {
    font-size: 16px;
    color: var(--color-grey-200);
    text-align: center;
    margin-top: 0.75rem;
    margin-bottom: 0;
    font-weight: 400;
}

/* Contact Form 7 integration inside newsletter */
.insights-newsletter-form-container .wpcf7 form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

@media (min-width: 640px) {
    .insights-newsletter-form-container .wpcf7 form {
        flex-direction: row;
        align-items: center;
        gap: 4rem;
    }
}

.insights-newsletter-form-container .wpcf7-form-control-wrap {
    flex: 1;
    width: 100%;
    display: block;
}

.insights-newsletter-form-container .wpcf7-email {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-grey-200);
    padding: 10px 0;
    color: var(--text-dark);
    outline: none;
    font-size: 1rem;
    box-shadow: none !important;
    border-radius: 0 !important;
    font-family: inherit;
}

.insights-newsletter-form-container .wpcf7-email::placeholder {
    color: var(--color-grey-200);
    opacity: 0.7;
}

.insights-newsletter-form-container .wpcf7-submit {
    border-radius: 9999px;
    padding: 10px 24px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid transparent;
    background-color: var(--text-orange03);
    color: var(--bg-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    width: 100%;
}

.insights-newsletter-form-container .wpcf7-submit:hover,
.insights-newsletter-form-container .wpcf7-submit:focus {
    background-color: var(--text-orange03);
    border: 1px solid transparent;
    color: var(--bg-primary);
}

@media (min-width: 640px) {
    .insights-newsletter-form-container .wpcf7-submit {
        padding: 12px 22px;
        font-size: 1rem;
        width: auto;
    }
}

.insights-newsletter-form-container .wpcf7-submit:hover {
    transform: translateY(-2px);
}

/* Animations */
.reveal-fade {
    opacity: 0;
    transform: translateY(20px);
    animation: revealFadeAnim 0.6s ease forwards;
}

@keyframes revealFadeAnim {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/**
 * Insight Detail Page CSS - Exact match from React/Tailwind design
 */

.insights-detail-page {
    max-width: 100%;
    width: 100%;
    background: var(--hero-bg);
}

/* ============================================
   CONTAINER
   ============================================ */
.detail-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 12px;
}

@media(min-width:768px) {
    .detail-container {
        padding: 0 24px;
    }
}

@media(min-width:1280px) {
    .detail-container {
        padding: 0;
    }
}

/* ============================================
   BREADCRUMB
   ============================================ */
.detail-breadcrumb-section {
    padding: 16px 0;
    margin-top: 74px;
}

@media (min-width: 768px) {
    .detail-breadcrumb-section {
        margin-top: 110px;
    }
}

@media (min-width: 1024px) {
    .detail-breadcrumb-section {
        margin-top: 100px;
    }
}

.detail-breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
}

.detail-breadcrumb-item {
    display: inline-flex;
    align-items: center;
}

.detail-breadcrumb-link {
    color: var(--text-grey03);
    text-decoration: none;
    transition: color 0.2s;
}

.detail-breadcrumb-link:hover {
    color: var(--text-grey03);
}

.detail-breadcrumb-separator {
    display: inline-flex;
    align-items: center;
    color: var(--text-grey03);
}

.detail-breadcrumb-separator .chevron-icon {
    width: 16px;
    height: 16px;
}

.detail-breadcrumb-current {
    color: var(--text-orange);
    font-weight: 400;
}

/* ============================================
   MAIN SECTION
   ============================================ */
.detail-main-section {
    padding: 30px 0 80px;
}

@media (max-width: 768px) {
    .detail-main-section {
        padding: 20px 0 60px;
    }
}

/* Meta Row */
.detail-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    align-items: baseline;
}

.detail-badge-outline {
    display: inline-flex;
    padding: 8px 16px;
    border: 1px solid var(--text-orange);
    color: var(--text-orange);
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
}

@media (min-width: 1024px) {
    .detail-badge-outline {
        padding: 12px 26px;
        font-size: 16px;
    }
}

.detail-date {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-grey02);
}

@media (min-width: 768px) {
    .detail-date {
        font-size: 16px;
    }
}

/* Title */
.detail-title {
    font-size: 28px;
    font-weight: 500;
    line-height: 1.2;
    margin: 0 0 16px 0;
    color: var(--text-dark02);
}

.detail-desc {
    font-size: 17px;
    font-weight: 400;
    color: var(--text-grey02);
    margin-bottom: 40px;
}

@media (min-width: 640px) {
    .detail-title {
        font-size: 20px;
    }
}

@media (min-width: 768px) {
    .detail-title {
        font-size: 28px;
    }
}

@media (min-width: 1024px) {
    .detail-title {
        font-size: 32px;
    }
}

/* Subtitle */
.detail-subtitle {
    font-size: 14px;
    color: #666;
    margin: 16px 0 40px;
}

@media (min-width: 768px) {
    .detail-subtitle {
        font-size: 18px;
    }
}

/* Featured Image */
.detail-featured-image {
    margin-bottom: 32px;
}

.detail-featured-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border: 2px solid var(--color-grey-200)
}

@media (min-width: 640px) {
    .detail-featured-img {
        height: 367px;
    }
}

.detail-container h2 {
    color: var(--text-dark02);
}

/* ============================================
   CONTENT LAYOUT (2 Columns)
   ============================================ */
.detail-content-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 80px;
    margin-top: 40px;
}

@media(min-width:1024px) {

    .detail-content-layout {
        flex-direction: row;
        justify-content: space-between;
        gap: 96px;
    }

    .detail-content-left {
        flex: 1 1 0;
        min-width: 0;
    }

    .detail-sidebar-right {
        flex: 0 0 384px;
        width: 384px;
        min-width: 384px;
        align-self: flex-start;
    }
}

@media (min-width: 640px) {
    .detail-sidebar-right {
        min-width: 384px;
    }
}

@media (min-width: 1024px) {
    .detail-sidebar-right {
        min-width: 384px;
        align-self: flex-start;
    }
}

/* ============================================
   ARTICLE CONTENT
   ============================================ */
.detail-article {
    font-size: 14px;
    line-height: 1.7;
    color: #333;
}

@media (min-width: 768px) {
    .detail-article {
        font-size: 18px;
    }
}

.detail-article p {
    margin-bottom: 24px;
    color: var(--text-grey02);
}

.detail-article h2 {
    font-size: 28px;
    font-weight: 500;
    margin: 32px 0 16px;
    color: #1a1a1a;
}

@media (min-width: 768px) {
    .detail-article h2 {
        font-size: 32px;
    }
}

.detail-article h3 {
    font-size: 24px;
    font-weight: 500;
    margin: 28px 0 12px;
}

.detail-article ul,
.detail-article ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.detail-article li {
    margin-bottom: 8px;
}

/* Tags Section */
.detail-tags-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
}

.detail-tag-badge {
    display: inline-flex;
    padding: 8px 16px;
    border: 1px solid var(--divider-light02);
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-grey02);
}

.insights-tab-panel {
    display: none;
}

.insights-tab-panel.active {
    display: block;
}

/* ============================================
   SIDEBAR AUTHOR CARD
   ============================================ */
.sidebar-author-card {
    background: var(--bg-orange-surface);
    padding: 36px 24px;
}

.sidebar-author-label {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.sidebar-author-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 32px;
    color: var(--text-orange03);
}

.sidebar-social-icons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.sidebar-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: var(--text-white);
    color: var(--text-orange);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.sidebar-social-icons a:hover {
    background-color: var(--color-orange);
    color: var(--color-white);
    transform: translateY(-2px);
}

.sidebar-social-icons a:focus {
    background-color: var(--text-white);
    color: var(--text-orange);

}

.sidebar-social-icons a svg {
    width: 20px;
    height: 20px;
}


.sidebar-cta-text {
    font-size: 14px;
    margin-bottom: 24px;
    color: var(--text-dark);
}

@media (min-width: 768px) {
    .sidebar-cta-text {
        font-size: 18px;
    }
}

.sidebar-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-orange03);
    text-decoration: none;
    font-weight: 500;
    transition: gap 0.2s;
}

.sidebar-cta-link:hover,
.sidebar-cta-link:focus {
    gap: 12px;
    color: var(--text-orange03);
}

.sidebar-cta-link svg {
    width: 20px;
    height: 20px;
}

/* Recommended section title - matches Insights page style */
.detail-recommended-section {
    margin-top: 60px;
}

.recommended-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-dark02);
}

@media (min-width: 768px) {
    .recommended-title {
        font-size: 2rem;
    }
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .detail-sidebar-right {
        min-width: 100%;
    }
}


/* // responsive nhi hai
// Header par not added 

*/