/* =================================================================ro
   Theme Name: DND Theme
   Description: A modern, clean theme styled with custom Google Fonts and specific typography enhancements.
   Version: 1.0
   Author: DesignToDeploy
   ================================================================ */

/* Import Top Best Google Fonts: Inter (Body) & Plus Jakarta Sans (Headings) */
/* @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');
*/



/* CSS Variables */
:root {
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Chicle', sans-serif;
    --color-bg: #F2F4F3;
    --color-text: #181F1C;
    --color-heading: #19262b;
    --color-accent: #C2C094;
    --color-link: #22333b;
    --color-link-hover: #0d1316;
    
}

/* Base HTML & Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  color: #343a40;
  line-height: 1.7;    
   /* font-family: var(--font-primary); */
    background-color: var(--color-bg);
    /* color: var(--color-text); 
    line-height: 1.6; */
    letter-spacing:1.5;
    -webkit-font-smoothing: antialiased;
}

/* Typography & Headings */
/* h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-heading);
    line-height: 1.25;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 3px;
    
} */

h1, h2, h3, h4, h5, h6 {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.lead {
  font-weight: 400;
  line-height: 1.7;
}


h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.35rem; }
h5 { font-size: 1.15rem; }
h6 { font-size: 1rem; }

/* Underline the first four letters of headings using a pseudo-element */
/* h1::first-letter, h2::first-letter, h3::first-letter, h4::first-letter, h5::first-letter, h6::first-letter {
    /* Note: CSS ::first-letter targets only the very first letter. 
       To reliably underline the first 4 letters across headings, we wrap 
       or utilize inline positioning/spans, but with pure CSS selectors 
       we can style the text decoration or apply a custom wrapper class. 
       Here is the robust standard approach for targeting the first 4 characters via pseudo-elements or inline spans: */
/* } 

/* Alternative robust implementation: Styling headings with custom class or utility 
   to underline the first 4 letters via a span injection or pseudo-border logic. */
h1, h2, h3, h4, h5, h6 {
    text-decoration-skip-ink: auto;
}

/* Text Elements */
p {
    margin-bottom: 1.25rem;
}

a {
    color: var(--color-link);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-link-hover);
    text-decoration: none;
}

strong, b {
    font-weight: 700;
    color: var(--color-heading);
}

em, i {
    font-style: italic;
}

small {
    font-size: 0.875rem;
}

blockquote {
    border-left: 4px solid var(--color-accent);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--color-text);
}

/* Lists */
ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

th, td {
    padding: 0.75rem 1rem;
    border: 1px solid #d0d5d4;
    text-align: left;
}

th {
    background-color: #e2e7e5;
    font-family: var(--font-heading);
    color: var(--color-heading);
}

/* Media Elements */
img, video {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 0.375rem;
    
}

/* Forms & Inputs */
input, textarea, select, button {
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--color-text);
    background-color: #ffffff;
    border: 1px solid #cdd3d1;
    border-radius: 0.375rem;
    padding: 0.625rem 0.875rem;
    width: 100%;
    margin-bottom: 1rem;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--color-heading);
    box-shadow: 0 0 0 3px rgba(34, 51, 59, 0.15);
}

button, input[type="submit"], input[type="button"] {
    background-color: var(--color-heading);
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s ease;
    width: auto;
}

button:hover, input[type="submit"]:hover, input[type="button"]:hover {
    background-color: #0d1316;
}

/* Utility to underline the first 4 letters via a helper class or script structure */
/* .heading-underline-four::first-letter {
    /* Fallback standard */
/* } */


/* =====================================================
   CATEGORY HERO
===================================================== */

.category-hero {

    position: relative;

    padding: 65px 0 75px;

    color: #fff;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(99, 102, 241, .20),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #0f172a 0%,
            #1e293b 55%,
            #312e81 100%
        );

}


.category-hero::after {

    content: "";

    position: absolute;

    width: 520px;
    height: 520px;

    right: -220px;
    top: -270px;

    border-radius: 50%;

    background: rgba(255,255,255,.04);

}


.category-breadcrumb {

    position: relative;

    z-index: 2;

    margin-bottom: 45px;

}


.category-breadcrumb .breadcrumb {

    background: transparent;

}


.category-breadcrumb a {

    color: rgba(255,255,255,.65);

    text-decoration: none;

}


.category-breadcrumb .active {

    color: rgba(255,255,255,.9);

}


.category-hero-content {

    position: relative;

    z-index: 2;

    max-width: 850px;

}


.category-kicker {

    display: inline-block;

    margin-bottom: 14px;

    color: #a5b4fc;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: .12em;

    text-transform: uppercase;

}


.category-title {

    margin: 0;

    font-size: clamp(
        2.4rem,
        5vw,
        4.5rem
    );

    line-height: 1.05;

    font-weight: 800;

    letter-spacing: -.045em;

}


.category-description {

    max-width: 760px;

    margin-top: 24px;

    color: rgba(255,255,255,.72);

    font-size: 1.08rem;

    line-height: 1.7;

}


.category-count {

    display: inline-flex;

    margin-top: 25px;

    padding: 7px 14px;

    border: 1px solid rgba(255,255,255,.14);

    border-radius: 50px;

    background: rgba(255,255,255,.08);

    color: rgba(255,255,255,.75);

    font-size: 13px;

}


/* =====================================================
   MAIN
===================================================== */

.category-container {

    padding-top: 70px;

    padding-bottom: 80px;

}


.category-section {

    min-width: 0;

}


.section-heading {

    display: flex;

    justify-content: space-between;

    align-items: end;

    margin-bottom: 28px;

}


.section-label {

    display: block;

    margin-bottom: 5px;

    color: #6366f1;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: .12em;

    text-transform: uppercase;

}


.section-heading h2 {

    margin: 0;

    color: #0f172a;

    font-size: 28px;

    font-weight: 800;

    letter-spacing: -.025em;

}


/* =====================================================
   SUBCATEGORY CARDS
===================================================== */

.subcategory-card {

    position: relative;

    overflow: hidden;

    border: 1px solid #e5e7eb;

    border-radius: 18px;

    background: #fff;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;

}


.subcategory-card::before {

    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 3px;

    background:
        linear-gradient(
            90deg,
            #6366f1,
            #8b5cf6
        );

}


.subcategory-card:hover {

    transform: translateY(-5px);

    border-color: #c7d2fe;

    box-shadow:
        0 20px 45px rgba(15,23,42,.09);

}


.subcategory-card-body {

    padding: 26px;

}


.subcategory-top {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 22px;

}


.subcategory-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 36px;
    height: 36px;

    border-radius: 10px;

    background: #eef2ff;

    color: #4f46e5;

    font-weight: 700;

}


.subcategory-count {

    color: #94a3b8;

    font-size: 12px;

}


.subcategory-title {

    margin: 0 0 10px;

    font-size: 22px;

    line-height: 1.3;

}


.subcategory-title a {

    color: #0f172a;

    text-decoration: none;

}


.subcategory-title a:hover {

    color: #4f46e5;

}


.subcategory-excerpt {

    min-height: 42px;

    margin-bottom: 18px;

    color: #64748b;

    font-size: 13px;

    line-height: 1.6;

}


/* =====================================================
   SEO TAGS
===================================================== */

.category-seo-tags {

    display: flex;

    flex-wrap: wrap;

    gap: 6px;

    margin-bottom: 20px;

}


.category-seo-tags a {

    display: inline-flex;

    padding: 5px 9px;

    border-radius: 6px;

    background: #f1f5f9;

    color: #64748b;

    font-size: 11px;

    line-height: 1.3;

    text-decoration: none;

}


.category-seo-tags a:hover {

    background: #eef2ff;

    color: #4f46e5;

}


.subcategory-link,
.post-read-more {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: #4f46e5;

    font-size: 13px;

    font-weight: 700;

    text-decoration: none;

}


.subcategory-link:hover,
.post-read-more:hover {

    color: #3730a3;

}


/* =====================================================
   POSTS
===================================================== */

.category-post-list {

    display: flex;

    flex-direction: column;

    gap: 20px;

}


.category-post-card {

    overflow: hidden;

    border: 1px solid #e5e7eb;

    border-radius: 17px;

    background: #fff;

    transition:
        transform .25s ease,
        box-shadow .25s ease;

}


.category-post-card:hover {

    transform: translateY(-3px);

    box-shadow:
        0 15px 35px rgba(15,23,42,.08);

}


.category-post-image {

    display: block;

    width: 100%;

    height: 100%;

    min-height: 210px;

    overflow: hidden;

    background: #f1f5f9;

}


.category-post-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform .4s ease;

}


.category-post-card:hover
.category-post-image img {

    transform: scale(1.04);

}


.category-post-body {

    padding: 24px;

}


.category-post-meta {

    margin-bottom: 8px;

    color: #94a3b8;

    font-size: 11px;

}


.category-post-title {

    margin: 0 0 9px;

    font-size: 21px;

    line-height: 1.35;

}


.category-post-title a {

    color: #0f172a;

    text-decoration: none;

}


.category-post-title a:hover {

    color: #4f46e5;

}


.category-post-excerpt {

    margin-bottom: 15px;

    color: #64748b;

    font-size: 13px;

    line-height: 1.6;

}


/* =====================================================
   PAGINATION
===================================================== */

.category-pagination {

    margin-top: 40px;

}


.category-pagination ul {

    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    padding: 0;

    margin: 0;

    list-style: none;

}


.category-pagination a,
.category-pagination span {

    display: flex;

    align-items: center;

    justify-content: center;

    min-width: 40px;

    min-height: 40px;

    padding: 7px 12px;

    border: 1px solid #e2e8f0;

    border-radius: 9px;

    background: #fff;

    color: #475569;

    font-size: 13px;

    text-decoration: none;

}


.category-pagination .current {

    border-color: #4f46e5;

    background: #4f46e5;

    color: #fff;

}


.category-pagination a:hover {

    border-color: #c7d2fe;

    color: #4f46e5;

}


/* =====================================================
   SIDEBAR
===================================================== */

.category-sidebar {

    position: sticky;

    top: 30px;

}


.sidebar-box {

    margin-bottom: 28px;

    padding: 25px;

    border: 1px solid #e5e7eb;

    border-radius: 18px;

    background: #fff;

    box-shadow:
        0 8px 30px rgba(15,23,42,.05);

}


.sidebar-title {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 20px;

    color: #0f172a;

    font-size: 18px;

    font-weight: 750;

}


.sidebar-title-icon {

    color: #6366f1;

}


.sidebar-menu {

    padding: 0;

    margin: 0;

    list-style: none;

}


.sidebar-menu li {

    border-bottom: 1px solid #f1f5f9;

}


.sidebar-menu li:last-child {

    border-bottom: 0;

}


.sidebar-menu a {

    display: flex;

    padding: 4px 0;

    color: #475569;

    text-decoration: none;

    transition: .2s ease;

}


.sidebar-menu a:hover {

    padding-left: 5px;

    color: #4f46e5;

}


/* =====================================================
   CATEGORY INFO
===================================================== */

.sidebar-category-name {

    margin-bottom: 8px;

    color: #4f46e5;

    font-size: 20px;

    font-weight: 750;

}


.category-info-box p {

    margin-bottom: 15px;

    color: #64748b;

    font-size: 13px;

    line-height: 1.6;

}


.sidebar-post-count {

    padding-top: 15px;

    border-top: 1px solid #f1f5f9;

    color: #94a3b8;

    font-size: 12px;

}


/* =====================================================
   ADS
===================================================== */

.sidebar-ad {

    margin-bottom: 28px;

}


.ad-label {

    margin-bottom: 7px;

    color: #94a3b8;

    text-align: center;

    font-size: 10px;

    letter-spacing: .12em;

}


.ad-placeholder {

    display: flex;

    align-items: center;

    justify-content: center;

    min-height: 180px;

    border: 1px dashed #cbd5e1;

    border-radius: 14px;

    background: #f8fafc;

    color: #94a3b8;

    font-size: 11px;

}


.ad-placeholder.ad-large {

    min-height: 280px;

}


/* =====================================================
   LATEST POSTS
===================================================== */

.latest-item {

    display: flex;

    gap: 13px;

    padding: 14px 0;

    border-bottom: 1px solid #f1f5f9;

}


.latest-item:first-child {

    padding-top: 0;

}


.latest-item:last-child {

    padding-bottom: 0;

    border-bottom: 0;

}


.latest-image {

    flex: 0 0 72px;

}


.latest-image img {

    width: 72px;

    height: 60px;

    object-fit: cover;

    border-radius: 9px;

}


.latest-content {

    min-width: 0;

}


.latest-content h3 {

    margin: 0 0 6px;

    font-size: 14px;

    line-height: 1.4;

}


.latest-content h3 a {

    color: #1e293b;

    text-decoration: none;

}


.latest-content h3 a:hover {

    color: #4f46e5;

}


.latest-content time {

    color: #94a3b8;

    font-size: 11px;

}


/* =====================================================
   SIDEBAR TAGS
===================================================== */

.sidebar-tags {

    display: flex;

    flex-wrap: wrap;

    gap: 7px;

}


.sidebar-tags a {

    padding: 6px 10px;

    border-radius: 6px;

    background: #f1f5f9;

    color: #64748b;

    font-size: 12px;

    text-decoration: none;

}


.sidebar-tags a:hover {

    background: #4f46e5;

    color: #fff;

}


/* =====================================================
   EMPTY CATEGORY
===================================================== */

.empty-category {

    padding: 60px 30px;

    border: 1px solid #e5e7eb;

    border-radius: 18px;

    background: #f8fafc;

    text-align: center;

}


.empty-category h2 {

    margin-bottom: 10px;

    color: #0f172a;

}


.empty-category p {

    margin: 0;

    color: #64748b;

}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 991px) {

    .category-sidebar {

        position: static;

        margin-top: 20px;

    }

}


@media (max-width: 767px) {

    .category-hero {

        padding: 45px 0 55px;

    }

    .category-breadcrumb {

        margin-bottom: 30px;

    }

    .category-title {

        font-size: 2.5rem;

    }

    .category-container {

        padding-top: 45px;

    }

    .category-post-image {

        min-height: 200px;

    }

    .category-post-body {

        padding: 20px;

    }

}

/* CSS */
h1 .three {
  position: relative;
  color:#ff6600;
  display: inline-block;
  padding-bottom: 4px; /* Controls the gap between text and the underline */
  border-bottom: 3px solid #007bff; /* Controls thickness and color */
}