/*********************************** Service Hero Section Start Here  **************************************/

.td-services-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-services-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-services-content{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
}



/* ====================================
   LABEL
==================================== */

.td-services-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-services-content h1{
    margin: 0;

    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-services-content h1 span{
    color: var(--td-accent);
}

/* ====================================
   DESCRIPTION
==================================== */

.td-services-content p{
    max-width: 70%;
    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-services-hero{
        height: 301px;
        padding-top: 140px;
    }
    .td-services-hero-wrapper{
        min-height: 400px;
    }

    .td-services-content{
        max-width: 700px;
    }

    .td-services-content h1{
        font-size: 48px;
        line-height: 58px;
    }

    .td-services-content p{
        max-width: 100%;
        font-size: 14px;
        line-height: 19px;
    }

    .td-grid-bg{
        width: 100%;
    }
}

/* ====================================
   MOBILE
==================================== */

@media (max-width:767px){

    .td-services-hero-wrapper{
        min-height: 270px;
        margin-top: -110px;
        overflow: hidden;
    }

    .td-services-hero{
        width: calc(100% - 40px);
        height: 220px;

        padding-top: 76px;

        display: flex;
        justify-content: center;
        align-items: flex-start;
    }

    .td-services-content{
        padding-top: 40px;
        width: 100%;
        gap: 15px;
    }

    .td-services-label{
        gap: 5px;
        font-size: 8px;
        line-height: 11px;
    }

    .td-dot{
        width: 6px;
        height: 6px;
    }

    .td-services-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-services-content p{
        max-width: 100%;

        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: 270px;
    }

    .td-grid-bg img{
        object-fit: cover;
        object-position: center top;
    }
}

/*********************************** Service Hero Section End Here  **************************************/

/*********************************** Service Our Badge Section Start Here  **************************************/

.td-badges-section{
    position:relative;
    width:100%;
    overflow:hidden;
    padding-top:90px;
    
}

/* ====================================
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;
    }
}

/*********************************** Service Our Badge Section End Here  **************************************/

/*********************************** Service Our Services Section Start Here  **************************************/

.td-services-section {
    padding: 90px 20px;
    background: var(--td-bg);
}

.td-services-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ====================================
   HEADING
==================================== */

.td-services-heading {
    margin: 0 auto 48px;
    text-align: center;
}

.td-services-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 16px;
}

.td-services-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--td-accent);
}

.td-services-label span:last-child {
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    line-height: 16px;
    color: var(--td-text);
}

.td-services-title {
    margin: 0;
    font-family: "Tomorrow", sans-serif;
    font-size: 28px;
    line-height: 34px;
    letter-spacing: 0.2px;
    color: var(--td-text);
}

.td-services-title span {
    color: var(--td-accent);
}

/* ====================================
   GRID
==================================== */

.td-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

/* ====================================
   CARD
==================================== */

.td-service-card {
    display: flex;
    gap: 20px;
    flex-direction: column;
    min-height: 339px;
    padding: 40px;
    border-radius: 20px;
    background: var(--td-card);
    border: 1px solid var(--td-border);
    transition:
        transform .3s ease,
        border-color .3s ease,
        background .3s ease;
}

.td-service-card:hover {
    transform: translateY(-5px);
    border-color: var(--td-accent);
}

.td-service-icon,
.td-service-card img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
    
}

.td-service-card h3 {
    font-family: "Nunito", sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 27px;
    letter-spacing: .4px;
    color: var(--td-text);
}

.td-service-card p {
    margin: 0;
    font-family: "Nunito", sans-serif;
    font-size: 14px;
    line-height: 22px;
    color: var(--td-muted);
    flex-grow: 1;
}

.td-service-card a {
    font-family: "Nunito", sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 22px;
    color: var(--td-text);
    text-decoration: none;
    transition: color .3s ease;
}

.td-service-card a:hover {
    color: var(--td-accent);
}

/* ====================================
   DARK THEME
==================================== */

html[data-theme="dark"] .td-service-card {
    background: #171615;
    border: none;
    box-shadow: none;
}

html[data-theme="dark"] .td-service-card:hover {
    transform: translateY(-5px);
}

html[data-theme="dark"] .td-service-card h3,
html[data-theme="dark"] .td-service-card a {
    color: #fff;
}

html[data-theme="dark"] .td-service-card p {
    color: rgba(255,255,255,.72);
}

/* ====================================
   TABLET
==================================== */

@media (max-width: 1024px) {

    .td-services-section {
        padding: 60px 20px;
    }

    .td-services-grid {
        gap: 32px;
    }

    .td-service-card {
        min-height: 302px;
        padding: 30px;
    }

    .td-service-card h3 {
        font-size: 18px;
        line-height: 25px;
    }

    .td-service-card p {
        font-size: 12px;
        line-height: 18px;
    }
}

/* ====================================
   MOBILE
==================================== */

@media (max-width: 767px) {

    .td-services-section {
        padding: 40px 20px;
    }

    .td-services-heading {
        margin-bottom: 30px;
    }

    .td-services-title {
        max-width: 253px;
        margin: 0 auto;
        font-size: 16px;
        line-height: 19px;
    }

    .td-services-dot {
        width: 4px;
        height: 4px;
    }

    .td-services-label span:last-child {
        font-size: 8px;
        line-height: 11px;
    }

    .td-services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .td-service-card {
        min-height: 248px;
        padding: 24px;
    }

    .td-service-card h3 {
        margin-bottom: 15px;
        font-size: 18px;
        line-height: 25px;
    }

    .td-service-card p {
        font-size: 12px;
        line-height: 16px;
    }

}

/*********************************** Service Our Services Section End Here  **************************************/
