/*********************************** About US Hero Section Start Here **************************************/

.td-about-hero-wrapper{
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    margin-top: -110px;
    padding-top: 0px;
    min-height: 484px;
}

/* ====================================
   GRID IMAGE
==================================== */

.td-grid-bg{
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 484px;
    z-index: 1;
    pointer-events: none;
}

.td-grid-bg img{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.td-grid-dark{
    display: none !important;
}

html[data-theme="dark"] .td-grid-light{
    display: none !important;
}

html[data-theme="dark"] .td-grid-dark{
    display: block !important;
}

/* ====================================
   HERO CONTENT AREA
==================================== */

.td-about-hero{
    position: relative;
    z-index: 5;
    width: min(1200px, calc(100% - 60px));
    margin: 0 auto;
    height: 484px;
    display: flex;
    justify-content: center;
    padding-top: 174px;
    box-sizing: border-box;
}

/* ====================================
   CONTENT WRAPPER
==================================== */

.td-about-content{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
}

/* ====================================
   LABEL
==================================== */

.td-about-label{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    color: var(--td-text);
}

.td-dot{
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff0000;
}

/* ====================================
   HEADING
==================================== */

.td-about-content h1{
    margin-top: 20px;
    font-family: "Tomorrow", sans-serif;
    font-size: 56px;
    font-weight: 700;
    line-height: 67px;
    letter-spacing: .2px;
    text-align: center;
    color: var(--td-text);
}

.td-about-content h1 span{
    color: var(--td-accent);
}

/* ====================================
   DESCRIPTION
==================================== */

.td-about-content p{
    max-width: 507px;
    margin: 0;
    font-family: "Nunito", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 19px;
    letter-spacing: .2px;
    text-align: center;
    color: var(--td-muted);
}

/* ====================================
   TABLET
==================================== */

@media (max-width:1024px){

    .td-about-hero{
        height: 301px;
        padding-top: 140px;
    }
    .td-about-hero-wrapper{
        min-height: 371px;
    }

    .td-about-content{
        max-width: 700px;
    }

    .td-about-content h1{
        font-size: 48px;
        line-height: 58px;
    }

    .td-about-content p{
        max-width: 500px;
        font-size: 14px;
        line-height: 19px;
    }

    .td-grid-bg{
        width: 100%;
    }
}

/* ====================================
   MOBILE
==================================== */

@media (max-width:767px){

    .td-about-hero-wrapper{
        min-height: 230px;
        margin-top: -110px;
        overflow: hidden;
    }

    .td-about-hero{
        width: calc(100% - 40px);
        height: 220px;
        padding-top: 76px;
        display: flex;
        justify-content: center;
        align-items: flex-start;
    }

    .td-about-content{
        padding-top: 40px;
        width: 100%;
        gap: 15px;
    }

    .td-about-label{
        gap: 5px;
        font-size: 8px;
        line-height: 11px;
    }

    .td-dot{
        width: 6px;
        height: 6px;
    }

    .td-about-content h1{
        max-width: 294px;
        margin: 0 auto;
        font-size: 18px;
        font-weight: 700;
        line-height: 22px;
        letter-spacing: 0.2px;
        text-align: center;
    }

    .td-about-content p{
        max-width: 210px;
        margin: 0 auto;
        font-size: 8px;
        font-weight: 400;
        line-height: 11px;
        letter-spacing: 0.2px;
        text-align: center;
    }

    .td-grid-bg{
        width: 100%;
        height: 230px;
    }

    .td-grid-bg img{
        object-fit: cover;
        object-position: center top;
    }
}

/*********************************** About US Hero Section End Here **************************************/

/*********************************** About US Our Badge Section Start Here  **************************************/

.td-badges-section{
    position:relative;
    width:100%;
    overflow:hidden;
    padding-top:60px;
    
}

/* ====================================
TITLE
==================================== */

.td-badges-title{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;
    margin-bottom:20px;
}

.td-badges-title p{
    margin:0;
    font-family:"JetBrains Mono", monospace;
    font-size:12px;
    font-weight:400;
    line-height:16px;
    color:var(--td-text);
}

.td-line{
    width:300px;
    max-width:300px;
    height:1px;
    display:block;
}

.td-line:first-child{
    background:linear-gradient(
        90deg,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,.7) 100%
    );
}

.td-line:last-child{
    background:linear-gradient(
        270deg,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,.7) 100%
    );
}

html[data-theme="dark"] .td-line:first-child{
    background:linear-gradient(
        90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,.5) 100%
    );
}

html[data-theme="dark"] .td-line:last-child{
    background:linear-gradient(
        270deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,.5) 100%
    );
}

/* ====================================
MARQUEE
==================================== */

.td-badges-marquee{
    width:min(1200px, calc(100% - 40px));
    margin:0 auto;
    overflow:hidden;
}

.td-badges-track{
    display:flex;
    align-items:center;
    gap:80px;
    width:max-content;
    animation:tdBadgesMarquee 30s linear infinite;
}

.td-badges-marquee:hover .td-badges-track{
    animation-play-state:paused;
}

@keyframes tdBadgesMarquee{
    from{
        transform:translateX(0);
    }

    to{
        transform:translateX(-50%);
    }
}

/* ====================================
BADGE ITEM
==================================== */

.td-badge-item{
    display:flex;
    align-items:center;
    gap:10px;
    flex-shrink:0;
}

.td-badge-item img{
    width:35px;
    height:35px;
    display:block;
}

.td-badge-item span{
    font-family:"Tomorrow", sans-serif;
    font-size:16px;
    font-weight:400;
    line-height:19px;
    white-space:nowrap;
}

/* ====================================
COLORS
==================================== */

.td-core span{
    color:#CA0404;
}

.td-meetup span{
    color:#FC911F;
}

.td-support-team span{
    color:#008CAA;
}

.td-support-contributor span{
    color:#048CAC;
}

.td-plugin span{
    color:#F06925;
}

.td-translation-editor span {
    color: #cc4295;
}

.td-translation-contributor span {
    color: #cc4295;
}

.td-wordcamp-organizer span {
    color: #ec8404;
}

.td-wordcamp-speaker span {
    color: #ec8404;
}

.td-themes-team span {
    color: #4b3393;
}


/* ====================================
DARK THEME BADGES
==================================== */

html[data-theme="dark"] .td-badge-item span{
    color:#FFFFFF !important;
}

html[data-theme="dark"] .td-badge-item img{
    filter:brightness(0) invert(1);
}

/* Translation Editor - Dark Theme */
html[data-theme="dark"] .td-badge-item.td-translation-editor img {
    filter: grayscale(1) invert(1) brightness(1.4) contrast(1.2) !important;
}

/* ====================================
TABLET
==================================== */

@media(max-width:1024px){

    .td-badges-section{
        padding-top:60px;
    }

    .td-badges-marquee{
        width:calc(100% - 40px);
    }

    .td-line{
        width:180px;
        max-width:180px;
    }

    .td-badges-track{
        gap:60px;
    }

    .td-badge-item span{
        font-size:14px;
    }
}

/* ====================================
MOBILE
==================================== */

@media(max-width:767px){

    .td-badges-section{
        padding-top:40px;
    }

    .td-badges-marquee{
        width:calc(100% - 30px);
    }

    .td-line{
        width:80px;
        max-width:80px;
    }

    .td-badges-track{
        gap:40px;
    }

    .td-badge-item img{
        width:28px;
        height:28px;
    }

    .td-badge-item span{
        font-size:12px;
        line-height:16px;
    }
}

/*********************************** About US Our Badge Section End Here  **************************************/


/*********************************** Products Showcase SECTION Start Here ***********************************/

.td-products-section{
    width:min(1200px,calc(100% - 40px));
    margin:0 auto;
    padding-top:90px;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:40px;
    position:relative;
}

/* ====================================
HEADING
==================================== */

.td-products-heading{
    max-width:509px;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:20px;
    text-align:center;
}

.td-products-label{
    display:flex;
    align-items:center;
    gap:5px;
    font-family:"JetBrains Mono", monospace;
    font-size:12px;
    line-height:16px;
    color:var(--td-text);
}

.td-products-heading h2{
    margin:0;
    font-family:"Tomorrow", sans-serif;
    font-size:32px;
    font-weight:700;
    line-height:38px;
    letter-spacing:.2px;
    color:var(--td-text);
}

.td-products-heading h2 span{
    color:var(--td-accent);
}

/* ====================================
SLIDER
==================================== */

.td-products-slider{
    position:relative;
    width:100%;
    height:749px;
    overflow:hidden;
}

.td-products-slide{
    position:absolute;
    inset:0;
    opacity:0;
    visibility:hidden;
    transition:.5s ease;
    pointer-events:none;
}

.td-products-slide.active{
    opacity:1;
    margin-top:8px;
    visibility:visible;
    pointer-events:auto;
    z-index:2;
}

/* ====================================
BACKGROUND
==================================== */

.td-products-bg{
    position:absolute;
    inset:0;
    height:709px;
    border-radius:15px;
    pointer-events:none;
    background: radial-gradient(
        45.45% 43.16% at 50% 45.35%,
        rgba(255,255,255,.30) 0%,
        rgba(255,255,255,0) 100%
    );
}

html[data-theme="light"] .td-products-bg{
    background: radial-gradient(
        45.45% 43.16% at 50% 45.35%,
        rgba(255,0,0,.08) 0%,
        rgba(255,0,0,0) 100%
    );
}

/* ====================================
CENTER PRODUCT
==================================== */

.td-product-center{
    position:absolute;
    width:559px;
    left:50%;
    top:153px;
    transform:translateX(-50%);
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:40px;
    z-index:3;
}

.td-product-center h3{
    margin:0;
    font-family:"Tomorrow", sans-serif;
    font-size:24px;
    font-weight:600;
    line-height:29px;
    color:var(--td-text);
}

.td-product-center img{
    width:559px;
    height:299px;
    object-fit:cover;
    border-radius:10px;
    display:block;
    transition:.4s ease;
}

.td-product-center img:hover{
    transform:translateY(-4px);
}

/* ====================================
FEATURES
==================================== */

.td-feature{
    position:absolute;
    width:151px;
    height:60px;
    border-radius:50px;
    border:1px solid rgba(255,255,255,.25);
    backdrop-filter:blur(8px);
    padding:10px;
    box-sizing:border-box;
    z-index:5;
    transition:.3s ease;
}

html[data-theme="light"] .td-feature{
    border:1px solid rgba(255,0,0,.15);
    background:rgba(255,255,255,.55);
}

html[data-theme="dark"] .td-feature{
    background:rgba(255,255,255,.03);
}

.td-feature:hover{
    transform:translateY(-4px);
    border-color:var(--td-accent);
    box-shadow:0 10px 30px rgba(255,0,0,.12);
}

.td-feature-inner{
    display:flex;
    align-items:center;
    gap:10px;
}

.td-feature span{
    font-family:"Nunito", sans-serif;
    font-size:12px;
    color:var(--td-text);
    white-space:nowrap;
}

/* ====================================
ICON (SINGLE IMAGE SYSTEM - FIXED)
==================================== */

.td-feature-icon{
    width:40px;
    height:40px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}

.td-feature-icon img{
    width:18px;
    height:18px;
    display:block;
}

/* ====================================
ICON BACKGROUNDS
==================================== */

.td-dark{
    background:#000;
}

.td-dark img{
    filter:brightness(0) invert(1);
}

/* Default (Light Theme) */
.td-light{
    background:#000;
}

/* Dark Theme */
html[data-theme="dark"] .td-light{
    background:#fff;
}

.td-accent{
    background:var(--td-accent);
}

.td-accent img{
    filter:brightness(0) invert(1);
}

/* ====================================
POSITIONS
==================================== */

.td-left-top{ left:60px; top:108px; }
.td-top{ left:45%; top:0; }
.td-right-top{ right:60px; top:108px; }
.td-left-center{ left:0; top:308px; }
.td-right-center{ right:0; top:308px; }
.td-left-bottom{ left:60px; top:508px; }
.td-right-bottom{ right:50px; top:508px; }
.td-bottom{ left:45%; top:613px;  }

/* ====================================
NAVIGATION FIX (VISIBLE IN BOTH THEMES)
==================================== */

.td-products-navigation{
    width:140px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:30px;
    z-index:10;
    position:relative;
}

/* BUTTON BASE */
.td-products-navigation button{
    width:40px;
    height:40px;
    padding: 12px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;

    /* IMPORTANT FIX */
    background:rgb(0, 0, 0);

    transition:.3s ease;
}

/* DARK MODE BUTTON FIX */
html[data-theme="dark"] .td-products-navigation button{
    background:rgb(255, 255, 255);
}

/* HOVER */
.td-products-navigation button:hover{
    transform:translateY(-2px);
    border-color:var(--td-accent);
}

/* ICON ALWAYS VISIBLE */
.td-products-navigation button img{
    width:18px;
    height:18px;
    display:block;
    opacity:1 !important;
    visibility:visible !important;
}

/* FOCUS */
.td-products-navigation button:focus-visible{
    outline:2px solid var(--td-accent);
    outline-offset:3px;
}

/* =====================================================
TABLET
===================================================== */

@media (max-width: 1024px){

    .td-products-slider{
        position: relative;
        width: 100%;
        height: 540px; /* Adjust between 600-650px if needed */
        overflow: hidden;
    }

    .td-products-slide{
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }

    .td-feature,
    .td-products-bg{
        display: none;
    }

    .td-product-center{
        position: static;
        width: 100%;
        transform: none;
        gap: 40px;
    }

    .td-product-center img{
        width: 100%;
        max-width: 984px;
        height: auto;
        object-fit: contain; /* <-- Prevent cropping */
        border-radius: 10px;
    }

    .td-products-navigation{
        margin-top: 10px;
    }
}

/* =====================================================
MOBILE
===================================================== */
@media (max-width: 767px){
    .td-products-section{
        gap: 20px;
    }

    .td-products-slider{
        position: relative;
        width: 100%;
        height: 240px; /* Adjust if needed */
        overflow: hidden;
    }

    .td-products-slide{
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .td-product-center{
        gap: 20px;
    }

    .td-product-center img{
        width: 350px;
        max-width: calc(100vw - 40px);
        height: auto;
        object-fit: contain; /* <-- Prevent cropping */
        border-radius: 4px;
    }

    .td-products-navigation{
        margin-top: 10px;
    }
    
    .td-products-heading h2{
        font-size:16px;
        line-height:100%;
    }
}

/*********************************** Products Showcase SECTION End Here ***********************************/


/*********************************** About US PROCESS SECTION Start Here *************************************/

.td-process-section{
    padding-top:90px;
}

.td-process-heading{
    max-width:481px;
    margin:0 auto 40px;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:20px;
    text-align:center;
}

.td-process-label{
    display:flex;
    align-items:center;
    gap:5px;
    font-family:"JetBrains Mono", monospace;
    font-size:12px;
    line-height:16px;
    color:var(--td-text);
}

.td-process-heading h2{
    margin:0;
    font-family:"Tomorrow", sans-serif;
    font-weight:700;
    font-size:32px;
    line-height:38px;
    letter-spacing:.2px;
    color:var(--td-text);
}

.td-process-heading h2 span{
    color:#ff0000;
}

/* ====================================
STEPS
==================================== */

.td-process-steps{
    width:min(1200px, calc(100% - 40px));
    margin:0 auto;
}

.td-process-step{
    min-height:188px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:40px 30px;
    background:rgba(255,0,0,.05);
    border-bottom:1px solid rgba(255,0,0,.10);
    transition:.3s ease;
}

.td-process-step:first-child{
    border-top:1px solid rgba(255,0,0,.10);
}

/* ====================================
LEFT
==================================== */

.td-process-left{
    display:flex;
    align-items:center;
    gap:25px;
}

.td-step-number{
    min-width:120px;
    font-family:"Tomorrow", sans-serif;
    font-size:90px;
    font-weight:400;
    line-height:108px;
    letter-spacing:.2px;
    color:rgba(0,0,0,.12);
    transition:.3s ease;
}

.td-process-left h3{
    margin:0;
    font-family:"Tomorrow", sans-serif;
    font-size:30px;
    font-weight:600;
    line-height:36px;
    letter-spacing:.2px;
    color:var(--td-text);
}

/* ====================================
RIGHT
==================================== */

.td-process-right{
    max-width:459px;
}

.td-process-right p{
    margin:0;
    font-family:"Nunito", sans-serif;
    font-size:14px;
    line-height:19px;
    letter-spacing:.2px;
    color:var(--td-text);
}

/* ====================================
HOVER
==================================== */

.td-process-step:hover .td-step-number{
    color:#ff0000;
}
/* Hover Card */

html[data-theme="light"] .td-process-step:hover{
    background: rgba(255, 0, 0, 0.1);
}

/* ====================================
DARK MODE
==================================== */

html[data-theme="dark"] .td-process-step{
    background:#0F1011;
    border-bottom:1px solid rgba(255,255,255,.10);
    transition:.3s ease;
}

html[data-theme="dark"] .td-process-step:first-child{
    border-top:1px solid rgba(255,255,255,.10);
}

html[data-theme="dark"] .td-step-number{
    color:rgba(255,255,255,.10);
}

html[data-theme="dark"] .td-process-left h3{
    color:#ffffff;
}

html[data-theme="dark"] .td-process-right p{
    color:#D9D9D9;
}

/* Hover Card */

html[data-theme="dark"] .td-process-step:hover{
    background:#171615;
}

/* Hover Number */

html[data-theme="dark"] .td-process-step:hover .td-step-number{
    color:#ff0000;
}

/* ====================================
TABLET
==================================== */

@media (max-width:1024px){
    .td-process-section{
        padding-top:60px ;
    }
    .td-process-heading{
        margin-bottom:30px;
    }
    .td-process-heading h2{
        font-size:28px;
        line-height:34px;
        max-width:377px;
    }
    .td-process-step{
        min-height:152px;
        padding:40px 30px;
    }
    .td-step-number{
        min-width:70px;
        font-size:60px;
        line-height:72px;
    }
    .td-process-left h3{
        font-size:28px;
        line-height:100%;
    }
    .td-process-right{
        max-width:366px;
    }
    .td-process-right p{
        font-size:10px;
        line-height:14px;
    }
}

/* ====================================
MOBILE
==================================== */

@media (max-width:767px){
    .td-process-section{
        padding-top:40px ;
    }
    .td-process-heading{
        gap:10px;
        margin-bottom:20px;
    }
    .td-process-label{
        font-size:8px;
        line-height:11px;
    }
    .td-process-heading h2{
        max-width:214px;
        font-size:16px;
        line-height:19px;
    }
    .td-process-steps{
        width:calc(100% - 40px);
    }

    .td-process-step{
        min-height:152px;
        padding:28px 30px;
        flex-direction:column;
        align-items:flex-start;
        justify-content:center;
        gap:20px;
    }
    .td-process-left{
        gap:20px;
    }
    .td-step-number{
        min-width:40px;
        font-size:28px;
        line-height:34px;
    }
    .td-process-left h3{
        font-size:16px;
        line-height:100%;
    }
    .td-process-right{
        max-width:258px;
    }
    .td-process-right p{
        font-size:10px;
        line-height:14px;
    }
}

/*********************************** About US PROCESS SECTION End Here ***********************************/

/*********************************** About US Our Story SECTION Start Here ***********************************/

.td-story-section{
    width:min(1200px, calc(100% - 40px));
    margin:0 auto;
    padding-top:90px;
}

/* ====================================
HEADING
==================================== */

.td-story-heading{
    max-width:481px;
    margin:0 auto 40px;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:20px;
    text-align:center;
}

.td-story-label{
    display:flex;
    align-items:center;
    gap:5px;
    font-family:"JetBrains Mono", monospace;
    font-size:12px;
    line-height:16px;
    color:var(--td-text);
}

.td-story-heading h2{
    margin:0;
    font-family:"Tomorrow", sans-serif;
    font-size:32px;
    font-weight:700;
    line-height:38px;
    letter-spacing:.2px;
    color:var(--td-text);
}

.td-story-heading h2 span{

    color:#FF0000;
}

/* ====================================
GRID
==================================== */

.td-story-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:45px;
}

/* ====================================
CARD
==================================== */

.td-story-card{
    background:rgba(255, 0, 0, 0.05);
    border:1px solid rgba(255, 0, 0, 0.10);
    border-radius:10px;
    padding:48px 17px;
    min-height:261px;
    display:flex;
    flex-direction:column;
    gap:35px;
    transition:.3s ease;
}

html[data-theme="dark"] .td-story-card{
    background:#171615;
    border:1px solid rgba(255,255,255,.10);
}

.td-story-card h3{
    margin:0;
    font-family:"Tomorrow", sans-serif;
    font-size:28px;
    font-weight:600;
    line-height:34px;
    letter-spacing:.2px;
    color:var(--td-text);
}

.td-story-card p{
    margin:0;
    font-family:"Nunito", sans-serif;
    font-size:12px;
    font-weight:400;
    line-height:16px;
    letter-spacing:.2px;
    color:var(--td-text-secondary);
}

html[data-theme="dark"] .td-story-card p{
    color:#D9D9D9;
}

/* ====================================
TABLET
==================================== */

@media(max-width:1024px){
    .td-story-section{
        width:min(984px, calc(100% - 40px));
        padding-top:60px;
    }
    .td-story-heading{
        margin-bottom:30px;
    }
    .td-story-heading h2{
        max-width:377px;
        font-size:28px;
        line-height:100%;
    }
    .td-story-grid{
        gap:22px;
    }
    .td-story-card{
        min-height:252px;
        padding:30px 17px;
    }
    .td-story-card h3{
        font-size:24px;
        line-height:29px;
    }
}

/* ====================================
MOBILE
==================================== */

@media(max-width:767px){
    .td-story-section{
        width:calc(100% - 30px);
        max-width:none;
        padding-top:40px;
    }
    .td-story-heading{
        gap:20px;
        margin-bottom:20px;
    }
    .td-story-label{
        font-size:8px;
        line-height:11px;
    }
    .td-story-heading h2{
        max-width:261px;
        font-size:16px;
        line-height:19px;
    }
    .td-story-grid{
        width:100%;
        grid-template-columns:1fr;
        gap:20px;
    }
    .td-story-card{
        width:100%;
        min-height:180px;
        padding:24px 17px;
        gap:25px;
        box-sizing:border-box;
    }
    .td-story-card h3{
        font-size:20px;
        line-height:24px;
    }
    .td-story-card p{
        font-size:10px;
        line-height:14px;
    }
}

/*********************************** About US Our Story SECTION End Here ***********************************/
