/* Define the font faces */
@font-face {
  font-family: "JUST Sans";
  src: url("../Assets/Fonts/just_sans/Web Fonts/JUST Sans Regular.woff2")
      format("woff2"),
    url("../Assets/Fonts/just_sans/Web Fonts/JUST Sans Regular.woff")
      format("woff");
  font-weight: 400;
  font-style: normal;
}

/* Example for Bold (if you have it) */
@font-face {
  font-family: "JUST Sans";
  src: url("../Assets/Fonts/just_sans/Web Fonts/JUST Sans Bold.woff")
    format("woff");
  font-weight: 700;
  /* 700 */
  font-style: normal;
}

@font-face {
  font-family: "JUST Sans";
  src: url("../Assets/Fonts/just_sans/Web Fonts/JUST Sans Medium.woff")
    format("woff");
  font-weight: 500;
  /* 700 */
  font-style: normal;
}

@font-face {
  font-family: "JUST Sans";
  src: url("../Assets/Fonts/just_sans/Web Fonts/JUST Sans ExBold.woff")
    format("woff");
  font-weight: 900;
  /* 700 */
  font-style: normal;
}

/* Example for Italic (if you have it) */
@font-face {
  font-family: "JUST Sans";
  src: url("../Assets/Fonts/just_sans/Web Fonts/JUST Sans Italic.woff")
    format("woff");
  font-weight: normal;
  /* 400 */
  font-style: italic;
}

@font-face {
  font-family: "Inter Display";
  src: url("../Assets/Fonts/inter-display/InterDisplay-Thin.ttf")
    format("truetype");
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: "Inter Display";
  src: url("../Assets/Fonts/inter-display/InterDisplay-ExtraLight.ttf")
    format("truetype");
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: "Inter Display";
  src: url("../Assets/Fonts/inter-display/InterDisplay-Light.ttf")
    format("truetype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Inter Display";
  src: url("../Assets/Fonts/inter-display/InterDisplay-Regular.ttf")
    format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Inter Display";
  src: url("../Assets/Fonts/inter-display/InterDisplay-Medium.ttf")
    format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Inter Display";
  src: url("../Assets/Fonts/inter-display/InterDisplay-SemiBold.ttf")
    format("truetype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Inter Display";
  src: url("../Assets/Fonts/inter-display/InterDisplay-Bold.ttf")
    format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Inter Display";
  src: url("../Assets/Fonts/inter-display/InterDisplay-ExtraBold.ttf")
    format("truetype");
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: "Inter Display";
  src: url("../Assets/Fonts/inter-display/InterDisplay-Black.ttf")
    format("truetype");
  font-weight: 900;
  font-style: normal;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
  --clr-primary:    #0069d9;
  --clr-primary-dk: #0050a8;
  --clr-text:       #111827;
  --clr-muted:      #6b7280;
  --clr-border:     #e5e7eb;
  --clr-bg:         #ffffff;
  --clr-input-bg:   #f3f4f6;
  --font-sans:      'Inter', sans-serif;
  --radius-sm:      6px;
  --radius-lg:      14px;
  --shadow-sm:      0 1px 3px rgba(0, 0, 0, 0.08);
  --sidebar-w:      300px;  /* FIX 7 — was never declared */
  --gap:            40px;
}

body {
    font-family: 'Inter', 'Arial', sans-serif;
    background: #f8f9fa;
    overflow-x: hidden;
}

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

.header-wrapper {
    width: 100%;
    z-index: 9999;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transition: all 0.3s ease;
    background: transparent;
    height: 68px;
    border-bottom: 1px solid transparent;
}

.header-wrapper.scrolled {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.header-wrapper.scrolled .nav-item {
    color: #2b3241 !important;
}

.header-wrapper.scrolled .cta-button {
    background: #000000 !important;
    border: 1px solid #000000 !important;
}

.header-wrapper.scrolled .cta-text {
    color: #ffffff !important;
}

.header-wrapper.scrolled .menu-toggle span {
    background-color: #121212 !important;
}

.header-wrapper.header-hidden {
    transform: translateY(0);
}


/* Navigation Container */
.nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 10px 120px;
    background: #FFFFFF;
    position: relative;
    z-index: 9999;
    transition: all 0.3s ease;
    max-width: 1920px;
    margin: 0 auto;
}

/* Logo */
.logo {
    font-size: 26px;
    font-weight: 700;
    white-space: nowrap;
    display: inline-block;
    z-index: 10001;
    position: relative;
    cursor: pointer !important;
}

.logo a {
    display: inline-block;
    line-height: 1;
}
/*  */

.logo img {
    height: auto;
    width: auto;
    max-height: 32px;
    display: block;
}

/* Navigation Links Container */
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.nav-item-wrapper {
    display: inline-flex;
    align-items: center;
    position: relative;
}

/* Navigation Items */
.nav-item {
    font-size: 16px;
    font-weight: 400;
    line-height: 19px;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    color: #2b3241;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.nav-item:hover {
    transform: translateY(-2px);
    color: #000;
}
/*  */

/* Dropdown Arrow */
.dropdown-arrow {
    width: 16px;
    height: 16px;
    margin-left: 5px;
    vertical-align: middle;
}
/*  */
.nav-links img {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 169px;
    height: 44px;
    padding: 12px 30px;
    background: #015845;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid #000;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cta-text {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 500;
    line-height: 21px;
    text-transform: capitalize;
    white-space: nowrap;
}

/* Desktop Button Wrapper */
.nav-button {
    display: block;
}

.dropdown-arrow{
    width:16px;
    height:auto;
    margin-left:6px;
    cursor:pointer;
    background:transparent;
    border:none;
    display:block;
}

.dropdown{
    position: relative;
}

.services-menu h1 {
    font-weight: 500;
    font-style: Medium;
    font-size: 16px;
    line-height: 160%;
    text-transform: uppercase;
    color: #808080;
    text-decoration: none;
}

.services-menu a {
    text-decoration: none;
}

.services-menu h2{
    font-weight: 400;
    font-style: Regular;
    font-size: 18px;
    line-height: 2;
    color: #1C1C1C;
}
/*  */

/* Services Dropdown */
.services-dropdown{
  position:relative;
}
.services-menu{
  position:absolute;
  top:35px;
  left:0;
  width:382px;
  height: 134px;
  background:#fff;
  border-radius:8px;
  box-shadow:0 10px 25px rgba(0,0,0,0.1);
  display:none;
  flex-direction:column;
  padding:20px 30px;
}

.services-menu.show{
  display:flex;
}

/* Products Dropdown */
.products-dropdown{
  position:relative;
}

.products-menu{
  position:absolute;
  top:35px;
  left:0;
  width:500px;
  height: 200px;
  padding: 20px 30px;
  background:#fff;
  border-radius:8px;
  box-shadow:0 10px 25px rgba(0,0,0,0.1);
  display:none;
}

.products-menu.show{
  display:flex;
}

.menu-column {
    padding-right: 50px;
}

.menu-column a{
    padding: 10px 20px;
    text-decoration: none;
    color: #1C1C1C;
    font-size: 18px;
    line-height: 2.3;
}

.menu-column1 a{
    padding: 10px 20px;
    text-decoration: none;
    color: #1C1C1C;
    font-size: 18px;
    line-height: 2.3;
}

.dropdown-menu a:hover{
    background:#f5f5f5;
}
/*  */
.dropdown-menu.show{
    display:flex;
}
/*  */

/* Mobile CTA - Hidden on Desktop */
.mobile-cta {
    display: none;
    color: #000;
}

/* Hamburger Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 10001;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #121212;
    margin: 3px 0;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* Hamburger Animation */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* Large Desktop (1920px) */
@media screen and (min-width: 1920px) {
    .nav-header {
        padding: 10px 120px;
    }
}

/* Desktop (1440px - 1919px) */
@media screen and (min-width: 1440px) and (max-width: 1919px) {
    .nav-header {
        padding: 10px 100px;
    }
}

/* Medium Desktop (1200px - 1439px) */
@media screen and (min-width: 1200px) and (max-width: 1439px) {
    .nav-header {
        padding: 10px 80px;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
}

/* Tablet Large (992px - 1199px) */
@media screen and (min-width: 992px) and (max-width: 1199px) {
    .nav-header {
        padding: 10px 60px;
    }
    
    .nav-links {
        gap: 1.3rem;
    }
    
    .nav-item {
        font-size: 15px;
    }
}

/* Tablet (768px - 991px) */
@media screen and (min-width: 768px) and (max-width: 991px) {
    .nav-header {
        padding: 10px 40px;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-item {
        font-size: 14px;
    }
    
    .cta-button {
        min-width: 10px;
        padding: 0 10px;
    }
    
    .cta-text {
        font-size: 14px;
    }
}

/* Mobile & Tablet Small (below 768px) */
@media screen and (max-width: 767px) {
    .nav-header {
        padding: 10px 30px;
    }
    
    /* Show Hamburger */
    .menu-toggle {
        display: flex;
    }
    
    /* Hide Desktop CTA */
    .nav-button {
        display: none;
    }
    
    /* Mobile Navigation */
    .nav-links {
        position: fixed;
        top: 68px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 68px);
        background: #fff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 30px 30px;
        gap: 0;
        transition: left 0.4s ease-in-out;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    /* Show Menu */
    .nav-links.active {
        left: 0;
    }
    
    /* Mobile Nav Items */
    .nav-item-wrapper {
        width: 100%;
        border-bottom: 1px solid #e5e5e5;
    }
    
    .nav-item {
        width: 100%;
        padding: 18px 0;
        font-size: 16px;
        justify-content: space-between;
        transform: none;
    }
    
    .nav-item:hover {
        transform: none;
        color: #000;
        background: #f8f9fa;
        padding-left: 10px;
        padding-right: 10px;
        border-radius: 6px;
    }
    
    /* Show Mobile CTA */
    .mobile-cta {
        display: inline-flex;
        width: 100%;
        margin-top: 20px;
        justify-content: center;
    }
    
    .mobile-cta .cta-text {
        color: #000000;
    }
}

/* Small Mobile (480px - 599px) */
@media screen and (max-width: 599px) {
    .nav-header {
        padding: 10px 24px;
    }
    
    .logo img {
        max-height: 28px;
    }
    
    .nav-links {
        padding: 25px 24px;
    }
    
    .nav-item {
        padding: 16px 0;
        font-size: 15px;
    }
}

/* Extra Small Mobile (below 480px) */
@media screen and (max-width: 479px) {
    .nav-header {
        padding: 10px 20px;
    }
    
    .logo img {
        max-height: 26px;
    }
    
    .nav-links {
        padding: 20px 20px;
    }
    
    .nav-item {
        padding: 15px 0;
    }
}

/* Tiny Mobile (below 375px) */
@media screen and (max-width: 374px) {
    .nav-header {
        padding: 10px 16px;
    }
    
    .logo img {
        max-height: 24px;
    }
    
    .nav-links {
        padding: 20px 16px;
    }
    
    .menu-toggle {
        width: 36px;
        height: 36px;
    }
    
    .menu-toggle span {
        width: 22px;
        height: 2.5px;
    }
}

/* ========================================
   DARK THEME — CASE STUDY HERO SECTION (Toggle enabled)
   ======================================== */

/* [data-theme="dark"] .case-study-hero {
    background: #0D0D0D;
}

[data-theme="dark"] .case-study-title {
    color: #ffffff;
}

[data-theme="dark"] .case-study-text {
    color: #BFBFBF;
} */

/* ========================================
   DARK THEME — HEADER SECTION
   ======================================== */

/* ========================================
   DARK THEME — HEADER SECTION (Toggle enabled)
   ======================================== */

/* [data-theme="dark"] body {
    background: #0D0D0D;
}

[data-theme="dark"] .header-wrapper {
    background: transparent;
    border-bottom: 1px solid transparent;
}

[data-theme="dark"] .header-wrapper:not(.scrolled) .logo img {
    content: url("../Assets/images/KM_SOFT_dark.svg");
[data-theme="dark"] .logo img {
    content: url("Assets/images/km_soft_index_logo.webp ");
   
}

[data-theme="dark"] .nav-item {
    color: #ffffff;
}

[data-theme="dark"] .nav-item:hover {
    color: #ffffff;
}

[data-theme="dark"] .dropdown-arrow {
    filter: #ffffff;
}

[data-theme="dark"] .menu-toggle span {
    background: #ffffff;
}

[data-theme="dark"] .cta-button {
    background: #000000;
    
    border: 1px solid #ffffff;
}


[data-theme="dark"] .cta-text {
    color: #ffffff;
}  */



/*width: 990;
height: 2912;
angle: 0 deg;
opacity: 1;
top: 140px;
left: 280px;
gap: 40px;

 */






/* ========================================
   BLOG ARTICLE SECTION
   ======================================== */

.blog-article-section {
    max-width: 1400px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: var(--gap);
    margin: 0 auto 80px;
    padding: 108px 24px 0;
}

.blog-container {
    flex: 1 1 0;
    min-width: 0;
    max-width: 990px;
}

/* Article Header */
.article-header {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 3rem;
}

.header-content {
    width: 100%;
    max-width: 990px;
}

.article-title {
    font-family: "Inter Display";
    font-weight: 700;
    font-style: Bold;
    font-size: 40px;
    line-height: 135%;
    color: #262626;
    max-width: 900px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.meta-separator {
    color: #808080;
}
/*  */

/* Hero Image */
.hero-image {
    width: 100%;
    max-width: 990px;
    height: auto;
    object-fit: cover;
}

/* Content Container */
.content-wrapper {
    width: 100%;
    max-width: 990px;
}

/* .content-section {
    /* margin-bottom: clamp(2rem, 5vw, 3.5rem); */
/* } 

/* Typography */
.intro-text {
    font-family: JUST Sans;
    font-weight: 400;
    font-style: Regular;
    font-size: 18px;
    line-height: 165%;
    color: #404040;
    margin-bottom: 2rem;
}


.section-heading {
    font-family: Inter Display;
    font-weight: 500;
    font-style: Medium;
    font-size: 20px;
    line-height: 140%;
    margin-bottom: 1rem;
}

.section-text {
    font-size: 18px;
    line-height: 165%;
    font-family: "JUST Sans";
    font-weight: 400;
    font-style: Regular;
    color: rgb(68, 68, 68);
    margin-bottom: 1.5rem;
}

/* List Styles */
.feature-list {
    padding-left: 30px;
    margin: 1rem 0;
}


.feature-list li {
    font-family: JUST Sans;
    font-weight: 400;
    font-style: Regular;
    font-size: 18px;
    line-height: 165%;
    color: rgba(51, 51, 51, 1);
    margin-bottom: 0.5rem;
    list-style-type:disc;
}

/* Content Images */
.content-image {
    width: 100%;
    height: auto;
    aspect-ratio: 2/1;
    object-fit: cover;
    /* border-radius: clamp(12px, 2vw, 16px); */
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    margin: 2rem 0;
}

.content-image.large {
    max-width: 100%;
}

.content-image.medium {
    max-width: 920px;
}

/* Share Section */
.share-container {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
    padding: 1rem;
}

.share-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: #FAFAFA;
    flex-wrap: wrap;
    justify-content: center;
}

.share-text {
    font-family: Inter display;
    font-weight: 400;
    font-style: Regular;
    font-size: 18px;
    line-height: 180%;
    color: rgba(28, 28, 28, 1);
}

.share-icons {
    display: flex;
    gap: 0.75rem;
}

.share-icon {
    width: clamp(44px, 6vw, 52px);
    height: clamp(44px, 6vw, 52px);
    background: white;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.share-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
}

.share-icon svg {
    width: 24px;
    height: 24px;
    fill: #262626;
    align-items: center;
}

/* Responsive Design - Tablet and Above */
@media (min-width: 640px) {
    .blog-container {
        padding: 0;
    }

    /* .content-wrapper {
        padding: 0 2rem;
    } */

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }

    .article-meta {
        flex-shrink: 0;
    }
}

/* Responsive Design - Tablet Large */
@media (min-width: 768px) {
    .article-header {
        margin-bottom: 4rem;
    }

    .share-box {
        flex-wrap: nowrap;
    }
}

/* Responsive Design - Desktop */
@media (min-width: 1024px) {
    .blog-container {
        padding: 4rem 3rem;
    }

    /* .content-wrapper {
        padding: 0 3rem;
    } */
}

/* Responsive Design - Large Desktop */
@media (min-width: 1440px) {
    .blog-container {
        padding: 5rem 4rem;
    }
}

/* Small Mobile Optimization */
@media (max-width: 360px) {
    .share-icons {
        gap: 0.5rem;
    }

    .share-icon {
        width: 40px;
        height: 40px;
    }

    .share-icon svg {
        width: 20px;
        height: 20px;
    }
}
/* BLOG ARTICLE SECTION (Toggle enabled) */
/* [data-theme="dark"] .blog-article-section {
    background: #0D0D0D;
}

[data-theme="dark"] .article-title {
    color: #d9d9d9;
}

[data-theme="dark"] .article-meta {
    color: #999999;
}

[data-theme="dark"] .intro-text {
    color: #bfbfbf;
}

[data-theme="dark"] .section-heading {
    color: #d9d9d9;
}

[data-theme="dark"] .section-text {
    color: #d9d9d9;
}

[data-theme="dark"] .feature-list li {
    color: #bfbfbf;
}

[data-theme="dark"] .feature-list li::before {
    color: #bfbfbf;
}

[data-theme="dark"] .share-box {
    background: #FAFAFA;
    box-shadow: #fafafa;
}

[data-theme="dark"] .share-text {
    color: #262626;
}

[data-theme="dark"] .share-icon {
    box-shadow: #2b3241;
} */




/* ========================================
   RELATED BLOGS SECTION
   ======================================== */

.related-blogs-section {
    width: 100%;
    background: #FFFFFF;
    padding: 5rem 3.5rem;
}

.related-blogs-container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.related-blogs-title {
    font-family: Inter Display;
    font-weight: 700;
    font-style: Bold;
    font-size: 34px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #1A1A1A;
    margin: 0;
}

/* Blogs Grid */
.blogs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
}

/* Blog Card */
.blog-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: transparent;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card-image {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
}

.blog-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.blog-card:hover .blog-card-image::before {
    opacity: 1;
}

.blog-card-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 450/290;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

.blog-card-content {
    display: flex;
    flex-direction: column;
}

.blog-card-title {
    font-family: JUST Sans;
    font-weight: 500;
    font-style: Medium;
    font-size: 20px;
    line-height: 140%;
    letter-spacing: 0%;
    vertical-align: middle;
    color: #333333;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Small Mobile (320px - 480px) */
@media (max-width: 480px) {
    .related-blogs-section {
        padding: 2.5rem 1rem;
    }

    .related-blogs-container {
        gap: 1.5rem;
    }

    .blogs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-card {
        gap: 0.75rem;
    }
}

/* Mobile (481px - 640px) */
@media (min-width: 481px) and (max-width: 640px) {
    .related-blogs-section {
        padding: 3rem 1.5rem;
    }

    .blogs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Tablet (641px - 768px) */
@media (min-width: 641px) and (max-width: 768px) {
    .related-blogs-section {
        padding: 3.5rem 2rem;
    }

    .blogs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Tablet Large (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .related-blogs-section {
        padding: 4rem 2.5rem;
    }

    .blogs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Desktop (1025px - 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
    .related-blogs-section {
        padding: 5rem 3rem;
    }

    .related-blogs-container {
        gap: 3rem;
    }

    .blogs-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* Large Desktop (1441px - 1920px) */
@media (min-width: 1441px) {
    .related-blogs-section {
        padding: 5rem 3.5rem;
    }

    .related-blogs-container {
        gap: 3rem;
    }

    .blogs-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* Extra safety for very small screens */
@media (max-width: 320px) {
    .related-blogs-section {
        padding: 2rem 0.75rem;
    }

    .blogs-grid {
        gap: 1rem;
    }
}

/* ========================================
   DARK MODE SUPPORT (Optional)
   ======================================== */

/* RELATED BLOGS SECTION (Toggle enabled) */
/* [data-theme="dark"] .related-blogs-section {
    background: #0D0D0D;
}

[data-theme="dark"] .related-blogs-title {
    color: #ffffff;
}

[data-theme="dark"] .blog-card-title {
    color: #e5e5e5;
}

[data-theme="dark"] .blog-card:hover {
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);
} */

/* ============================================================
   SIDEBAR — search & popular posts
   ============================================================ */
.search-box {
  position:sticky;
  top: 88px;                   
  width: var(--sidebar-w);
  align-self: flex-start;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.search-first-text{
    color: rgba(28, 28, 28, 1);
    font-weight: 500;
    font-style: Medium;
    font-size: 16px;
}

.search-first-container,
.search-second-container {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.search-first-container h3,
.search-second-container h3 {
  text-transform: uppercase;
  margin-bottom: 14px;
  letter-spacing: 0%;
}

.search-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  background: var(--clr-input-bg);
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--clr-text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 10px;
}

.search-input::placeholder {
  color: #9ca3af;
}

.search-input:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(0,105,217,.12);
  background: var(--clr-bg);
}

.search-button {
  width: 100%;
  padding: 10px 16px;
  background: black;
  color: white;
  border: none;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.search-button:hover {
  background: var(--clr-primary-dark);
  transform: translateY(-1px);
}

.search-button:active {
  transform: translateY(0);
}

/* ── Popular posts ────────────────────────────────────────── */
.search-second-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.search-second-text h5 {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--clr-text);
  padding: 10px 0;
  border-bottom: 1px solid var(--clr-border);
  cursor: pointer;
  transition: color 0.18s;
}

.search-second-text h5:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.search-second-text h5:hover {
  color: var(--clr-primary);
}

/* ============================================================
   RESPONSIVE — Tablet  (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  :root {
    --sidebar-w: 260px;
    --gap: 28px;
  }
}

/* ============================================================
   RESPONSIVE — Mobile  (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {

  /* Stack vertically */
  .blog-article-section {
    flex-direction: column;
    padding: 88px 16px 0;
    margin-bottom: 60px;
    gap: 32px;;
  }

  /* Sidebar: un-sticky, full width */
  .search-box {
    position: static;
    width: 100%;
    align-self: auto;
  }

  /* Article title */
  .article-title {
    font-size: 24px;
  }

  /* Images: slightly less tall */
  .content-image.large  { max-height: 260px; }
  .content-image.medium { max-height: 200px; }

  /* Share */
  .share-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ============================================================
   RESPONSIVE — Small mobile  (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  .blog-article-section {
    padding: 88px 12px 0;
  }

  .search-first-container,
  .search-second-container {
    padding: 16px;
  }

  .article-title {
    font-size: 21px;
  }

  .section-heading {
    font-size: 19px;
  }
}
  .share-icons { 
    gap: 0.5rem; 
}
  .share-icon {
    width: 40px; 
    height: 40px; 
}
  .share-icon svg { 
    width: 20px; 
    height: 20px; 
}

  .related-blogs-section { 
    width: 100%; 
    background: #fff; 
    padding: 5rem 3.5rem; 
}
  .related-blogs-container { 
    width: 100%; 
    max-width: 1500px; 
    margin: 0 auto; 
    display: flex; 
    flex-direction: 
    column; 
    gap: 3rem; 
}
  .related-blogs-title { 
    font-family: "Inter Display", sans-serif; 
    font-weight: 700; 
    font-size: 34px; 
    line-height: 100%; 
    color: #1a1a1a; 
    margin: 0; 
}
  .blogs-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 2rem; 
    width: 100%; 
}
  .blog-card { 
    display: flex; 
    flex-direction: column; 
    gap: 1rem; 
    background: transparent; 
    overflow: hidden; 
    transition: transform 0.3s ease; 
    cursor: pointer; 
}
  .blog-card:hover { 
    transform: translateY(-5px); 
}
  .blog-card-image { 
    width: 100%; 
    overflow: hidden; 
    border-radius: 12px; 
    position: relative; 
}
  .blog-card-image img { 
    width: 100%; 
    height: auto; 
    aspect-ratio: 450/290; 
    object-fit: cover; 
    display: block; 
    transition: transform 0.3s ease; 
}
  .blog-card:hover 
  .blog-card-image img { 
    transform: scale(1.05); 
}
  .blog-card-content { 
    display: flex; 
    flex-direction: column; 
}
  .blog-card-title  { 
    font-family: "JUST Sans", sans-serif; 
    font-weight: 500; 
    font-size: 20px; 
    line-height: 140%; 
    color: #333; 
    margin: 0; 
}

@media (max-width: 480px) { 
    .related-blogs-section { 
        padding: 2.5rem 1rem; 
    } 
    .blogs-grid { 
        grid-template-columns: 1fr; 
        gap: 1.5rem; 
    } 
    }
@media (min-width: 481px)  and (max-width: 640px)  { 
    .related-blogs-section { 
        padding: 3rem 1.5rem; 
    }  
    .blogs-grid { 
        grid-template-columns: 1fr;
         gap: 1.5rem; 
        } 
    }
@media (min-width: 641px)  and (max-width: 768px)  { 
    .related-blogs-section { 
        padding: 3.5rem 2rem; 
    }  
    .blogs-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 1.5rem; 
    } 
}
@media (min-width: 769px)  and (max-width: 1024px) { 
    .related-blogs-section { 
        padding: 4rem 2.5rem; 
    }  
    .blogs-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 2rem; 
    } 
}
@media (min-width: 1025px) { 
    .related-blogs-section { 
        padding: 5rem 3.5rem; 
    }  
    .blogs-grid { 
        grid-template-columns: repeat(3, 1fr); 
        gap: 2rem; 
    } 
}
@media (max-width: 768px) {
    .blog-container {
        order: 1; /* article first */
    }
    .search-box {
        order: 2; /* sidebar below */
    }
}
/* ========================================
   BASE STYLES - Desktop First (1920px)
   ======================================== */

.footer-section {
    max-width: 1920px;
    width: 100%;
    margin: 0 auto;
    background: #FAFAFA;
    border-top: 0.5px #E6E6E6 solid;
    display: flex;
    justify-content: center;
    padding: clamp(40px, 6.25vw, 120px) 0;
    box-sizing: border-box;
}

/* Container inside footer */
.footer-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: clamp(20px, 3.125vw, 60px);
    gap: clamp(40px, 6.25vw, 120px);
    box-sizing: border-box;
}

/* Top content row */
.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: clamp(30px, 4vw, 60px);
    align-items: start;
}

/* Left column with title and button */
.footer-left {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 1.25vw, 24px);
    max-width: 500px;
}

.footer-title {
    font-family: Inter Display;
    font-weight: 600;
    font-style: SemiBold;
    font-size: 40px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #1C1C1C;
}

.icon1 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 50%;
}

.icon1 a img{
  transition:transform 0.3s ease;
}

.icon1 a:hover img{
  transform:scale(1.30);
}

.footer-button {
    width: 100%;
    max-width: 100%;
    padding: 16px 24px;
    background: #1A1A1A;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    border-radius: 0;
}

.footer-button:hover {
    background: #333;
    transform: translateY(-2px);
}

.footer-section a {
    text-decoration: none !important;
}

.footer-section .text-reset{
  text-decoration: none !important;
}

.footer-section .text-decoration{
  color: #999999;
}

.footer-section .text-reset{
  color: #999999;
}

.button-text {
    font-family: JUST Sans;
    font-weight: 400;
    font-style: Regular;
    font-size: 18px;
    line-height: 135%;
    letter-spacing: 0%;
    text-align: center;
    text-transform: capitalize;
    color: #FFFFFF;
    white-space: nowrap;
}

.button-arrow {
    width: 20px;
    height: 20px;
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button-arrow::before {
    content: '→';
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
}

/* Columns */
.footer-column {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 0.83vw, 16px);
    min-width: 140px;
}

.footer-column a {
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    line-height: 160%;
    letter-spacing: 0%;
    vertical-align: middle;
    color: #4D4D4D;
}

.footer-column a:hover {
    color: #1A1A1A;
}

.footer-column div {
    color: #4D4D4D;
    font-size: clamp(14px, 0.83vw, 16px);
    line-height: 1.5;
}

.footer-column div a {
    color: #4D4D4D;
}

.footer-column div a:hover {
    color: #1A1A1A;
}

.column-title {
    font-weight: 500;
    font-style: Medium;
    font-size: 16px;
    line-height: 160%;
    letter-spacing: 0%;
    vertical-align: middle;
    text-transform: uppercase;
    color: #1C1C1C;
    margin-bottom: 8px;
}

/* Footer bottom row */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    line-height: 140%;
    letter-spacing: 0%;
    vertical-align: middle;
    color: #4D4D4D;
}

.footer-bottom div:last-child {
    text-align: right;
}

/* Image Section */
.footer-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-image img {
    width: 100%;
    max-width: 1920px;
    height: auto;
    object-fit: contain;
}

/* ========================================
   MEDIA QUERIES - Breakpoint Adjustments
   ======================================== */

/* Large Desktop (1440px - 1920px) */
@media (max-width: 1920px) and (min-width: 1441px) {
    .footer-section {
        padding:  0;
    }
    
    .footer-container {
        padding: 50px;
        gap: 100px;
    }
}

/* Desktop/Laptop (1280px - 1440px) */
@media (max-width: 1440px) {
    .footer-section {
        padding: 80px 0;
    }
    
    .footer-container {
        padding: 40px;
        gap: 80px;
    }
    
    .footer-top {
        gap: 50px;
    }
}

/* Small Laptop (1024px - 1279px) */
@media (max-width: 1279px) {
    .footer-section {
        padding: 60px 0;
    }
    
    .footer-container {
        padding: 30px;
        gap: 60px;
    }
    
    .footer-top {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }

    .footer-left {
        grid-column: 1 / -1;  
        max-width: 100%;
    }
}

/* Tablet Portrait & Landscape (769px - 1023px) */
@media (max-width: 1023px) {
    .footer-section {
        padding: 50px 0;
    }
    
    .footer-container {
        padding: 25px;
        gap: 50px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-left {
        max-width: 100%;
    }
    
    .footer-title {
        font-size: 32px;
    }
    
    .footer-bottom {
        gap: 16px;
    }
    
    .footer-bottom div:last-child {
        text-align: left;
    }
}

/* Tablet (481px - 768px) */
@media (max-width: 768px) {
    .footer-section {
        padding: 40px 0;
    }
    
    .footer-container {
        padding: 20px;
        gap: 40px;
    }

    .icon1 {
        width: 30%;
    }
    
    .footer-top {
        display: grid;
        grid-template-columns: repeat(3,1fr);
        gap: 32px 50px;
    }
    
    .footer-left {
        grid-column: 1 / -1;
        max-width: 100%;
    }
    
    .footer-title {
        font-size: 28px;
    }
    
    .footer-button {
        padding: 16px 24px;
    }
}

/* Large Mobile (376px - 480px) */
@media (max-width: 480px) {
    .footer-section {
        padding: 32px 0;
    }
    
    .footer-container {
        padding: 16px;
        gap: 32px;
    }
    
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 28px 20px;
    }
    
    .footer-left {
        grid-column: 1 / -1;
    }

    .icon1 {
        width: 100%;
        gap: 10px;
        display:flex;
        justify-content:center;   
        align-items:center;              
    }
    
    .footer-title {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .footer-button {
        width: 100%;
        padding: 16px 20px;
    }
    
    .footer-bottom {
        gap: 12px;
        font-size: 13px;
    }
    
    .footer-bottom div {
        text-align: left;
    }
}

/* Small Mobile (320px - 375px) */
@media (max-width: 375px) {
    .footer-section {
        padding: 24px 0;
    }
    
    .footer-container {
        padding: 12px;
        gap: 28px;
    }
    
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 24px 16px;
    }
    
    .footer-title {
        font-size: 22px;
    }
    
    .button-text {
        font-size: 15px;
    }
    
    .footer-column {
        gap: 10px;
    }
    
    .footer-column a,
    .footer-column div,
    .column-title {
        font-size: 13px;
    }
    
    .footer-bottom {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        font-size: 12px;
        gap: 10px;
    }
}

/* Extra Small Devices (< 320px) */
@media (max-width: 319px) {
    .footer-container {
        padding: 10px;
        gap: 24px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
    }

    .icon {
        display: flex;
        justify-content: center;
    }
    
    .footer-title {
        font-size: 20px;
    }
    
    .footer-bottom {
        font-size: 11px;
        display: flex;
        justify-content: space-between;
        gap: 12px;
    }
}

/* -------------------------------------------------------- */
/* AUTO DARK THEME - matches the user's system theme        */
/* -------------------------------------------------------- */
/* -------------------------------------------------------- */
/* AUTO DARK THEME - matches the user's system theme (Toggle enabled) */
/* -------------------------------------------------------- */
/* [data-theme="dark"] .footer-section {
    background: #0D0D0D;
    border-top: 0.5px solid #333;
}

[data-theme="dark"] .footer-title {
    color: #FFFFFF;
}

[data-theme="dark"] .footer-button {
    background: #FFFFFF;
}

[data-theme="dark"] .footer-button:hover {
    background: #E6E6E6;
}

[data-theme="dark"] .footer-button .button-text {
    color: #000000;
}

[data-theme="dark"] .footer-button .button-arrow::before {
    color: #000000;
}

[data-theme="dark"] .footer-column,
[data-theme="dark"] .footer-column div {
    color: #B3B3B3;
}

[data-theme="dark"] .footer-column a {
    color: #B3B3B3;
}

[data-theme="dark"] .footer-column a:hover,
[data-theme="dark"] .footer-column div a:hover {
    color: #FFFFFF;
}

[data-theme="dark"] .column-title {
    color: #FFFFFF;
}

[data-theme="dark"] .footer-bottom {
    color: #999999;
}

[data-theme="dark"] .footer-image img {
    content: url("../Assets/images/KM SOFT dark.png");
} */
/* Footer Outer Section start*/