:root {
    --dark: #1d1d1f;
    --paragraph: rgba(29, 29, 31, 0.7);
    --font_inter_tight: "Inter Tight", sans-serif;
    --font_instrument: "Instrument Sans", sans-serif;
}



@media (max-width: 1439px) {
    .popup-menu ul li a {
        font-size: 80px;
        line-height: 70px;
        height: 70px;
    }
    .popup-menu ul li a:hover span:nth-child(2) {
        margin-top: -80px; 
    }
    .hero-sec .hero-sec-content h1 {
        font-size: 90px;
        letter-spacing: -4px;
        line-height: 70px;
    }
    .hero-sec .hero-sec-content h1 span {
        line-height: 70px;
    }
    .video-sec {
        padding: 0 20px;
        height: 100vh;
        position: relative;
    }
    .video-sec video {
        border-radius: 20px;
        display: block;
        height: 100%;
        object-fit: cover;
    }
    .featured-work-sec .section-header {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .featured-work-sec  .section-header .right {
        display: none;
    }
    .featured-card .img-box {
        height: 240px;
    }
    .about-bottom-content-wrap .img-box {
        aspect-ratio: unset;
        height: 969px;
        max-width: 638px;
    }
    .about-bottom-content-wrap .about-bottom-content {
        padding-top: 200px;
    }
    .about-bottom-content-wrap .about-bottom-content p {
        max-width: 100%;
    }
    .about-bottom-content-wrap .about-bottom-content h4 br {
        display: none;
    }
    .full-image-sec {
        padding-left: 20px;
        padding-right: 20px;
    }
    .full-image-sec .full-image-box {
        border-radius: 20px;
    }
    .cta-content.about-bottom-content-wrap .img-box {
        max-width: 900px;
        height: 1347px;
    }
    .cta-sec {
        padding-bottom: 40px;
    }
    .footer-area {
        padding-top: 30px;
    }
    .hero-sec2 {
        height: 60vh;
    }
    .home-page .hero-sec-about .hero-sec-content h1 {
        font-size: 70px; /* mobile font size */
        line-height: 1.2; /* about 120% of font size */
    }
    .contact-sec {
        flex-direction: column;
        height: auto;
    }
    .contact-sec .contact-form-wrap {
        width: 100%;
    }
    .contact-sec .contact-img {
        width: 100%;
    }
    /* When the contact layout stacks, center the state council logo again. */
    .contact-sec .contact-img.contact-img-state-council {
        min-height: 0;
        margin-left: 0;
        margin-right: 0;
        justify-content: center;
        align-self: center;
    }
    .contact-sec .contact-img.contact-img-state-council img {
        width: min(100%, 620px);
        max-height: none;
        margin-left: auto;
        margin-right: auto;
    }
    .contact-infos-wrap {
        padding-left: 40px;
        padding-right: 40px;
    }
    .affiliate-detail2-content-box,
    .affiliate-detail-header-infos,
    .contact-info-box ul li {
        flex-direction: column;
        align-items: flex-start;
    }
    .affiliate-detail-header-infos  {
        flex-direction: column;
    }
    .affiliate-detail-header-left,
    .affiliate-detail-header-img {
      max-width: 100%;
      width: 100%;
    }
    .affiliate-detail-header-left {
      padding-right: 0;
    }
    .affiliate-detail-header-infos .affiliate-detail-header-left p {
        max-width: 100%;
    }
    .affiliate-detail-header-infos .affiliate-detail-header-right {
        width: 100%;
    }
    .affiliate-detail2-content-box {
        gap: 24px;
    }
    .affiliate-detail2-content-box p {
        color: rgba(29, 29, 31, 0.7);
        width: 100%;
    }
    .affiliate-detail2-content-box h4 {
        font-size: 30px;
        line-height: 30px;
        letter-spacing: 0;
        color: var(--dark);
    }
    .affiliate-detail2-content-wrap {
        padding-top: 70px;
    }

}


@media (max-width: 809px) {
    main.wtbctc-main {
        position: relative;
        overflow: initial;
    }
    .popup-menu ul li a {
        font-size: 40px;
        letter-spacing: -1.3px;
        line-height: 30px;
        height: 30px;
    }
    .popup-menu ul li a:hover span:nth-child(2) {
        margin-top: -40px;
    }
    .popup-menu-wrap .popup-menu-header {
        justify-content: center;
    }
    .popup-menu-wrap .popup-menu-header .right,
    .popup-menu-wrap .popup-menu-header .local-logo {
        display: none;
    }
    .header-wrap {
        padding: 36px 25px;
    }
    .header-wrap .header-middle,
    .header-wrap .header-right {
        flex: none;
        width: auto;
    }
    .header-wrap .header-logo-box {
        width: 82px;
    }
    .header-wrap .theme-btn {
        font-size: 12px;
        line-height: 16px;
        letter-spacing: 0px;
        padding: 10px 12px;
    }
    .hero-sec .hero-sec-content h1 {
        font-size: 50px;
        letter-spacing: -2px;
        line-height: 40px;
    }
    .hero-sec .hero-sec-content h1 span {
        line-height: 40px;
    }
    .hero-sec .hero-sec-content {
        gap: 16px;
        margin-bottom: auto;
    }
    .hero-sec {
        height: 60vh;
        gap: 0px;
    }
    .hero-sec .hero-sec-content {
        margin-bottom: 0;
    }    
    .hero-sec .hero-footer-wrap {
        display: none;
    }
    .home-page .hero-sec-about {
        height: auto;
        min-height: 70vh;
        padding: 40px 20px;
        overflow: hidden;
    }

    .home-page .hero-sec-about .hero-sec-content {
        padding: 0;
        max-width: 90%;
        text-align: center;
    }

    .home-page .hero-sec-about .hero-sec-content h1 {
        font-size: 36px;
        line-height: 1.3;
        word-break: break-word;
    }

    .home-page .hero-sec-about .hero-subtitle {
        font-size: 16px;
        line-height: 1.4;
    }
    .video-sec {
        height: 551px;
        margin-bottom: 30px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .section-header {
        padding: 60px 40px 0;
    }
    .section-header h3 {
        font-size: 40px;
        letter-spacing: -1.3px;
        line-height: 30px;
    }
    .section-header h3 span {
        line-height: 30px;
    }
    .featured-affiliate-sec {
        margin-bottom: 30px;
    }
    .featured-affiliate-lists {
        grid-template-columns: repeat(1, 1fr);
    }
    .featured-card .img-box {
        height: 163px;
    }
    .section-header2 .title {
        font-size: 40px;
        letter-spacing: -1.3px;
        line-height: 30px;
        gap: 16px;
    }
    .section-header2 .title span {
        line-height: 30px;
    }
    .about-sec .section-header2 {
        height: min-content;
        padding: 80px 0;
        position: relative;
    }
    .about-bottom-content-wrap .img-box {
        max-width: calc(100% - 40px);
        margin-left: auto;
        margin-right: auto;
        height: 1170px;
    }
    .about-bottom-content-wrap .about-bottom-content {
        padding: 70px 25px 60px;
    }
    .about-bottom-content-wrap .about-bottom-content h4 {
        font-size: 24px;
        line-height: 28px;
    }
    .header-wrap .header-logo-box span:first-child,
    .about-bottom-content-wrap .about-bottom-content p {
        display: none;
    }
    .about-bottom-content-wrap .about-bottom-content .responsive-mode,
    .about-bottom-content-wrap .about-bottom-content h4 br {
        display: block;
    }
    .full-image-box {
        height: 548px;
    }
    .full-image-sec {
        padding: 80px 15px 0;
    }
    .favourite-stack-box .content .content-body h4 {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .favourite-stack-sec {
        padding: 70px 20px 0;
    }
    .favourite-stack-box {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
    .favourite-stack-box .favourite-stack-box-left {
        width: 100%;
    }
    .favourite-stack-box .content {
        gap: 24px;
        padding: 25px;
    }
    .section-header3 .title {
        font-size: 40px;
        line-height: 30px;
        gap: 12px;
        letter-spacing: -0.8px;
    }
    .faq-wrap {
        padding: 0 20px;
    }
    .faq-bottom-content-wrap .img-box {
        max-width: 250px;
        height: auto;
    }
    .section-header3 {
        margin-bottom: 50px;
    }
    .cta-sec .section-header2 .title span {
        line-height: 45px;
    }
    .cta-sec {
        padding: 50px 20px 20px;
    }
    .cta-sec .about-bottom-content-wrap .about-bottom-content p {
        display: block;
    }
    .cta-sec .section-header2 .title {
        font-size: 50px;
        line-height: 45px;
        letter-spacing: -1.3px;
    }
    .cta-sec .about-bottom-content-wrap .about-bottom-content p br:nth-child(1) {
        display: none;
    }
    .social-links {
        flex-direction: column;
        gap: 20px;
    }
    .copyright {
        flex-direction: column;
        gap: 20px;
        padding: 30px 40px 56px;
    }
    .about-page .featured-affiliate-lists {
        padding: 0 20px;

    }
    .about-page .footer-area {
        padding-top: 50px;
    }
    .photography-col.photography-col2 {
        grid-template-columns: repeat(1, 1fr);
    }
    .photography-inner-col,
    .photography-col.photography-col2 {
        height: auto;
    }
    .photography-col.photography-col2 .photography-box {
        height: 309px;
    }
    .photography-sec {
        padding: 40px 20px 0;
    }
    .contact-infos-wrap .contact-infos {
        grid-template-columns: repeat(1, 1fr);
        gap: 60px;
    }
    .hero-sec3 {
        height: auto;
    }
    .contact-sec {
        padding: 60px 20px 40px;
    }
    .contact-sec .contact-form-wrap .contact-header h1,
.contact-sec .contact-form-wrap .contact-header h2 {
        font-size: 40px;
        line-height: 44px;
    }
    .contact-infos-wrap {
        padding: 20px;
    }
    .contact-infos-wrap .contact-infos {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .affiliate-detail2-content-wrap {
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 0;
    }
    .affiliate-detail2-content-box {
        margin-bottom: 50px;
        padding-bottom: 50px;
    }
    .affiliate-detail-full-img-wrap {
        padding-left: 15px;
        padding-right: 15px;
    }
    .affiliate-detail-full-img-wrap {
        padding-top: 50px;
    }
    .affiliate-detail-full-img img {
        object-fit: cover;
    }
    .affiliate-detail2-content-wrap.affiliate-detail2-content-wrap2,
    .affiliate-detail-header-infos {
        padding-left: 20px;
        padding-right: 20px;
    }

      /* Intro Section */
    .intro-sec .intro-content {
        padding: 40px 0;                /* tighten vertical space */
    }
    .intro-title {
        font-size: 2rem;                /* scale down from desktop */
    }
    .intro-subtitle-left {
        font-size: 32px;
        line-height: 1.2;
        margin-top: 1rem;
    }
    .program-list,
    .values-list {
    list-style-type: disc;
    list-style-position: outside;
    }
    .program-list li,
    .values-list li {
    display: list-item;
    }

    .leadership-grid {
        gap: 1.5rem;
    }


    .landing-page .header-wrap .header-logo-box .logo span {
        display: block;
    }
    .landing-page .header-wrap .header-logo-box {
        width: auto;
    }
    .demo-sec {
        grid-template-columns: repeat(1, 1fr);
    }
    .demo-box .img-box {
        height: 350px;
    }
}

@media (max-width: 585px) {
    .contact-sec .contact-img,
    .cta-content.about-bottom-content-wrap .img-box,
    .about-bottom-content-wrap .img-box {
        height: 516px;
    }

    /* Center & stack intro */
    .intro-sec .intro-content {
        text-align: center;
        padding: 30px 1rem;
    }
    .intro-title {
        font-size: 1.75rem;
    }
    .intro-subtitle-left {
        font-size: 24px;
        margin-top: 1rem;
    }

    .about-page .about-sec .section-header2,
    .photography-page .about-sec .section-header2 {
    margin-top: 4rem;
    margin-bottom: 2rem;
    }
    .about-page .about-sec .section-header2 .title,
    .photography-page .about-sec .section-header2 .title  {
    font-size: 28px;       /* smaller font size for narrow screens */
    line-height: 36px;     /* slightly taller for better readability */
    letter-spacing: -0.8px;
    gap: 12px;
    }

    /* Lists full-width */
    .values-list,
    .program-list {
        padding-left: 0;
        margin-left: 0;
    }

    .leadership-grid {
    grid-template-columns: 1fr;
  }

    /* Shrink paragraph text a hair on phones */
    .about-page .history-sec .section-wrapper p,
    .about-page .programs-sec .section-content p,
    .about-page .coverage-sec .section-content p,
    .photography-page .laborday-sec .section-content p {
        font-size: 0.95rem;
        line-height: 1.4;
    }
}

@media (max-height: 400px) {
    .home-page .hero-sec-about .hero-sec-content {
        display: none;
    }
}

@keyframes workdetailsAnim2 {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-1343px);
    }
}