/* ===============================
   CTMA NAVBAR BEHAVIOR
================================ */
@media (min-width: 992px) {

    .ctma-navbar {
        position: relative;
        width: 100%;
        transition: all 0.4s ease;
        z-index: 100;
    }

    /* ===== TOP STATE ===== */
    .ctma-logo {
        padding-top: 0px;
        display: flex;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: -40px;
        z-index: 999;
        transition: all 0.4s ease;
        justify-content: center;
    }

    .ctma-logo img {
        width: 130px;
        /* background: #fff; */
        padding: 0;
        border-radius: 50%;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
        transition: all 0.4s ease;
    }

    /* ===== AFTER SCROLL ===== */
    .ctma-navbar.scrolled {
        position: fixed;
        top: 0;
        left: 0;
        background: #ffffff;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
        /* padding-top: 10px; */
        /* padding-bottom: 10px; */
    }

    .ctma-navbar.scrolled .ctma-logo {
        /* position: relative; */
        top: 0;
        /* transform: translateX(-50%) scale(0.8); */
    }

    .ctma-navbar.scrolled .ctma-logo img {
        width: 70px;
        padding: 0;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
    }
}


@media (max-width: 991px) {
    p {
        font-size: 18px !important;
    }


    .ctma-navbar-box {
        border-radius: 20px;
    }

    .ctma-navbar .nav-link {
        margin: 10px 0;
    }

    .ctma-topbar-right {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
        margin-top: 5px;
    }

    .ctma-hero-title {
        font-size: 36px;
    }

    .ctma-hero-section {
        padding: 60px 0;
    }

    .ctma-feature-pill {
        padding: 14px 20px;
    }

    .ctma-slide-item img {
        height: 420px;
    }

    .ctma-slide-content {
        left: 20px !important;
        max-width: 90% !important;
    }

    .ctma-slide-title {
        font-size: 28px;
    }

    .ctma-what-title {
        font-size: 32px;
    }

    .ctma-what-section {
        padding: 0px;
    }

    .ctma-what-card {
        padding: 30px 20px;
    }

    .ctma-about-section {
        padding: 25px 0 25px !important;
    }

    .ctma-mv-card p,
    .ctma-mv-card li {
        font-size: 18px !important;
        line-height: 1.7;
        margin-bottom: 0px !important;
    }

    .ctma-about-title {
        font-size: 32px;
    }

    .ctma-about-text {
        font-size: 18px !important;
        padding: 0 10px;
    }

    .ctma-mv-section {
        padding: 25px 0 !important;
    }

    section.ctma-founder-section {
        padding-top: 20px !important;
        padding-bottom: 25px !important;
    }

    .ctma-mv-card {
        padding: 30px 25px;
    }

    .ctma-mv-card h3 {
        font-size: 24px;
    }

    .ctma-founder-title {
        font-size: 30px;
    }

    .ctma-leadership-title {
        font-size: 28px;
    }

    .ctma-leader-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        border-radius: 20px;
    }

    .ctma-leader-arrow {
        align-self: flex-end;
    }




    .ctma-collab-card {
        padding: 30px 25px;
    }

    .ctma-collab-card h3 {
        font-size: 26px;
    }

    .ctma-badge-top,
    .ctma-badge-bottom {
        position: static;
        transform: none;
        display: inline-block;
        margin: 20px 0;
    }

    .ctma-affiliation-title {
        font-size: 28px;
    }

    .ctma-affiliation-logos {
        gap: 40px;
    }

    .ctma-affiliation-logo img {
        max-height: 45px;
    }

    .ctma-counter-number {
        font-size: 42px;
    }

    .ctma-counter-card {
        padding: 25px 20px;
    }

    .ctma-stack-card {
        flex-direction: column;
        top: 60px;
    }

    .ctma-stack-left {
        padding: 40px 30px;
    }

    .ctma-stack-left h2 {
        font-size: 28px;
    }

    .ctma-support-title {
        font-size: 28px;
    }

    .ctma-support-btn {
        position: static;
        display: inline-block;
        margin-top: 20px;
    }

    .ctma-knowledge-title {
        font-size: 28px;
    }

    .ctma-knowledge-stats {
        margin: auto !important;
        display: flex !important;
        justify-content: space-between !important;
        flex-direction: row !important;
    }

    .ctma-events-title {
        font-size: 28px;
    }

    .ctma-event-card {
        min-height: 260px;
    }

    .ctma-news-title {
        font-size: 28px;
    }

    .ctma-impact-title {
        font-size: 26px;
    }

    .ctma-impact-number {
        font-size: 32px;
    }

    .ctma-impact-divider {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        margin-top: 20px;
        padding-top: 20px;
    }

    .ctma-contact-title {
        font-size: 28px;
    }

    .ctma-contact-form-wrapper {
        padding: 25px;
    }

    .ctma-contact-info {
        position: static;
        padding: 20px;
        background: rgba(0, 0, 0, 0.6);
        border-radius: 0 0 20px 20px;
    }

    .ctma-footer-subscribe {
        flex-direction: column;
        gap: 10px;
    }

    .ctma-footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .ctma-footer-qr-wrapper {
        flex-direction: column;
    }

    .ctma-contact-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .ctma-form-box {
        position: relative;
        top: 0;
    }

    .ctma-md-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ctma-md-card {
        padding: 40px 30px;
    }

    .ctma-impact-box {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
    }

    .ctma-impact-action {
        margin-top: 20px;
    }

    .ctma-wood-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20px 30px;
    }

    .ctma-wood-content h2 {
        font-size: 26px;
    }

    .ctma-hero-heading {
        font-size: 36px;
    }

    .ctma-hero-movement {
        min-height: 70vh;
    }

    .ctma-hero-content h1 {
        font-size: 42px;
    }

    .ctma-about-pg-heading {
        font-size: 36px;
    }

    .ctma-event-hero {
        height: 500px;
    }

    .ctma-hero-title {
        font-size: 42px;
    }

    .ctma-hero-content {
        padding-top: 120px;
    }

    .ctma-event-sidebar {
        position: relative;
        top: auto;
        margin-top: 40px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        display: flex;
        gap: 40px;
    }

    .zr-mega-menu {
        position: static;
        transform: none;
        width: 100%;
        box-shadow: none;
        padding: 20px;
    }

    .ctma-logo img {
        width: 40px;
    }

    div#navbarContent {
        width: 100vw;
        margin-left: -22px !important;
        margin-top: 18px;
    }

    /* .navbar {
                margin: 5px;
                padding: 10px 15px;
                border-radius: 10px !important;
            } */
    .navbar {
        margin: 5px;
        padding: 0px 15px;
        border-radius: 10px !important;
        padding-left: 0px !important;
        border-radius: 999px !important;
        border-top-right-radius: 130px !important;
        border-bottom-right-radius: 130px !important;
    }

    .navbar-brand {
        margin-left: 0px !important;
        margin-right: auto !important;
        position: unset;
    }

    .navbar-expand-lg .navbar-toggler {
        display: contents !important;
    }

    .mega-menu,
    .dropdown-menu {
        width: auto;
        padding: 10px;
        box-shadow: none;
        border: none;
    }

    .mega-menu .row {
        flex-direction: column;
    }

    .mega-menu .col-md-3 {
        width: 100%;
        margin-bottom: 15px;
    }

    .mega-menu .dropdown-item,
    .dropdown-item {
        padding: 6px 20px;
    }

    .navbar-nav .nav-item {
        margin: 5px 0;
    }

    .btn-cta {
        margin: 5px 0;
        width: 100%;
        text-align: center;
    }

    .mega-menu {
        min-width: 800px;
    }

    .mega-menu .col-md-3 {
        margin: 0 10px;
    }

    .ctma-logo-center {
        position: static;
        transform: none;
    }

    .blog-section {
        padding: 60px 0;
    }

    .blog-image img {
        height: 220px;
    }

    .blog-title {
        font-size: 17px;
    }

    .ctma-topbar {
        text-align: center;
    }

    .ctma-topbar-right {
        margin-top: 6px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .ctma-topbar-right span {
        margin-left: 0;
    }

    .ctma-hero-section {
        padding-top: 10px !important;
        padding-bottom: 30px;
    }

    .ctma-hero-title {
        font-size: 34px;
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .ctma-hero-section .row.align-items-start {
        gap: 0;
    }

    .ctma-hero-right {
        margin-top: 10px;
    }

    .ctma-hero-right p {
        margin-bottom: 18px;
        font-size: 15px;
        line-height: 1.6;
    }


    .ctma-hero-section .row.mt-5 {
        margin-top: 0px !important;
    }

    .ctma-feature-pill {
        padding: 14px 16px;
    }

    .ctma-what-section {
        padding-bottom: 0px !important;
    }

    /* Limit height */
    .what-we-do-grid {
        max-height: 80vh;
        overflow-y: auto;
        padding-right: 6px;
        /* prevent scrollbar overlap */
    }

    /* Smooth scrolling */
    .what-we-do-grid {
        scroll-behavior: smooth;
    }

    /* Optional: hide ugly scrollbar (mobile safe) */
    .what-we-do-grid::-webkit-scrollbar {
        width: 4px;
    }

    .what-we-do-grid::-webkit-scrollbar-thumb {
        background: #253D03;
        /* CTMA deep green */
        border-radius: 10px;
    }

    /* Make cards compact */
    .ctma-what-card {
        padding: 18px 16px;
    }

    .ctma-what-title {
        font-size: 26px;
    }

    .ctma-what-desc {
        font-size: 14.5px;
        margin-bottom: 25px;
    }

    .ctma-what-card p {
        font-size: 1.5rem !important;
    }

    .ctma-what-card h4 {
        font-size: 26px;
        color: var(--ctma-title-color);
        margin-bottom: 15px;
        line-height: 1.2;
    }

    .ctma-what-icon {
        font-size: 38px;
        color: var(--ctma-deep-green);
        margin-bottom: 20px;
    }

    .ctma-founder-desc {
        font-size: 18px !important;
        max-width: 100% !important;

    }

    .ctma-leader-row {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 18px 16px;
        border-radius: 12px;
        background: #ffffff;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
        margin-bottom: 15px;
        text-decoration: none;
    }

    /* Top section */
    .ctma-leader-left {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .ctma-leader-img {
        width: 50px;
        height: 50px;
        flex-shrink: 0;
    }

    .ctma-leader-img img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
    }

    .ctma-leader-name {
        font-size: 18px;
        font-weight: 600;
    }

    .ctma-leader-role {
        font-size: 13px;
        opacity: 0.8;
    }

    .w-we-provide {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .ctma-details {
        /* background: #C7F08E; */
        padding: 5px 10px;
        font-size: 12px;
        border-radius: 20px;
        font-weight: 500;
    }

    .ctma-leader-row>div:nth-child(3) {
        font-size: 13px;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .ctma-leader-arrow {
        align-self: flex-end;
        font-size: 14px;
        color: #253D03;
    }



}

@media (max-width: 768px) {
    .ctma-hero h1 {
        font-size: 32px;
    }

    .ctma-booking-title h2 {
        font-size: 28px;
    }

    .ctma-about-pg-section {
        padding: 70px 0;
    }

    .ctma-about-pg-heading {
        font-size: 24px;
    }

    .ctma-tab-btn {
        padding: 6px 16px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .ctma-hero-content h1 {
        font-size: 32px;
    }

    .ctma-hero-title {
        font-size: 32px;
    }

    .ctma-event-hero {
        height: 450px;
        border-radius: 0 0 20px 20px;
    }

    .modal .contact-right {
        display: none !important;
    }

    .navbar-brand {
        margin: 0px !important;
        position: unset !important;
    }

    .blog-section {
        padding: 40px 0;
    }

    .blog-image img {
        height: 200px;
    }

    .blog-content {
        padding: 16px;
    }

    .blog-title {
        font-size: 16px;
    }

    .hover-arrow {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        display: flex;
        gap: 40px;
    }

    .ctma-topbar {
        font-size: 12px;
        padding: 6px 0;
    }

    .ctma-topbar .container-fluid>div {
        gap: 0;
    }

    .ctma-topbar-right {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .ctma-topbar-right span {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .ctma-topbar i {
        font-size: 12px;
    }

    .ctma-topbar-right {
        gap: 0;
    }

    .ctma-hero-title {
        font-size: 3.5rem !important;
        margin-bottom: 0px;
        line-height: 1.15;
    }

    .ctma-hero-right p {
        font-size: 14.5px;
    }

    .ctma-feature-text {
        font-size: 12px;
    }

    a.lime-btn {
        margin-top: 0px !important;
    }

    .ctma-hero-slider .slick-dots {
        right: 0px;
    }

    .ctma-hero-slider-section {
        padding-bottom: 0px !important;
    }

    p {
        font-size: 18px !important;
    }

    .ctma-leader-row {
        text-align: left;
        display: flex !important;
        flex-direction: row;
        gap: 6px;
        padding: 14px 16px;
        border-radius: 16px;
        background: rgba(0, 0, 0, 0.05);
        text-decoration: none;
        position: relative;
    }

    /* Remove unwanted spacing */
    .ctma-leader-row>div {
        margin: 0;
    }

    .ctma-leader-left {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 0;
    }

    .ctma-leader-name {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 2px;
    }

    .ctma-leader-info {
        width: 60%;
    }

    .ctma-leader-role {
        font-size: 12px;
        margin: 0;
        line-height: 1.3;
    }

    /* Skill pills compact */
    .w-we-provide {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin: 4px 0;
    }

    .w-we-provide br {
        display: none;
        /* 🔥 remove manual break */
    }

    .ctma-details {
        font-size: 11px;
        padding: 0px 8px;
        border-radius: 20px;
        /* background: #C7F08E; */
        margin: 0;
        padding-left: 0px;
        margin-left: -30px;
    }

    /* Company + location tighter */
    .ctma-leader-row>div:nth-child(3) {
        display: flex;
        flex-direction: column;
        gap: 2px;
        font-size: 12px;
        margin: 0;
    }

    /* Arrow fixed bottom-right */
    .ctma-leader-arrow {
        position: absolute;
        right: 0px;
        top: 0;
        font-size: 14px;
        width: 34px;
        height: 34px;
        background: #C7F08E;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .ctma-collab-section {

        padding: 25px 0 !important;
        padding-left: 0px !important;
        padding-right: 0px !important;
    }

    .ctma-stack-wrapper {
        background: var(--ctma-bg);
        padding: 25px 0;
    }

    .ctma-support-section {

        padding: 25px 0;
    }

    .ctma-support-desc {
        max-width: 600px;
        font-size: 18px !important;
        opacity: 0.9;
    }

    .ctma-support-card h5 {
        font-size: 2.3rem !important;
        margin-bottom: 15px;
    }

    .ctma-support-btn {
        position: absolute;
        top: 20px;
        right: 4%;
    }

    .ctma-support-card p {
        margin-bottom: 0px;
        font-size: 18px !important;
        line-height: 1.7;
    }

    .ctma-support-card {
        padding: 20px;
    }

    .ctma-knowledge-img-wrapper {
        position: relative;
        border-radius: 28px;
        overflow: hidden;
        height: 40vh !important;
    }

    .ctma-knowledge-section {
        padding: 25px 0;
    }

    .ctma-events-section {
        padding: 25px 0 !important;
    }

    .ctma-events-desc, .ctma-news-desc {
        margin-bottom: 15px !important;
        font-size: 18px !important;
    }

    .ctma-events-section a.lime-btn {
        margin-top: 20px !important;
    }
    .ctma-gallery-section a.lime-btn {
        margin-top: 20px !important;
    }
    .ctma-blog-slider-section a.lime-btn {
        margin-top: 20px !important;
    }

    .ctma-news-section, .ctma-gallery-section {
        padding: 25px 0 !important;
    }
    .ctma-impact-section {
    background: url(../images/green-wood-bg.png);
    padding: 30px 0 !important;
    border-radius: 30px;
    color: #ffffff;
    margin: 20px !important;

}
.ctma-contact-img {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    flex: 1;
    height: 40vh;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
}

 /* Force 3 columns in one row */
    .ctma-impact-section .row.text-center > div {
        flex: 0 0 33.3333% !important;
        max-width: 33.3333% !important;
    }

    /* Compact counters */
    .ctma-impact-number {
        font-size: 22px;
        font-weight: 700;
    }

    .ctma-impact-label {
        font-size: 12px;
        line-height: 1.2;
    }

    /* Remove heavy spacing */
    .ctma-impact-counter {
        /* padding: 10px 5px; */
        margin-top: 20px !important;
        padding-top: 20px !important;
    }

    /* Remove divider padding if any */
    .ctma-impact-divider {
        border: none;
    }

    /* Reduce section spacing */
    .ctma-impact-section {
        padding: 40px 0;
    }

        .ctma-impact-desc {
        font-size: 18px !important;
        margin-top: 10px !important;
        text-align: justify;
    }
    .join-sec {
    margin: 20px;
    border-radius: 30px;
    padding: 15px 0;
}

    .map {
        padding-top: 25px;
        padding-bottom: 25px;
    }
    .ctma-faq-section {
    padding: 25px 0 !important;
    background: var(--ctma-bg) !important;
}

button.accordion-button.ctma-faq-btn {
    font-size: 1.4rem;
}

.ctma-contact-section {
    padding: 0px !important;
}

.join-sec .ctma-support-btn {
    position: absolute;
    top: 15px;
    right: 5%;}

    /* Make heading slightly smaller */
    .ctma-impact-title {
        font-size: 22px;
        line-height: 1.3;
    }

    .ctma-impact-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .ctma-impact-w-divider{
        margin-top: 20px;
        padding-top: 20px;
}
    .ctma-impact-w-divider .row.text-center > div {
        flex: 0 0 33.3333% !important;
        max-width: 33.3333% !important;
    }

.ctma-contact-info {
    width: 100;
    position: absolute;
    bottom: 40px;
    left: 36px;
    color: #ffffff;
    font-size: 18px;
    margin: auto;
}
.ctma-contact-form-wrapper {
    background: #ffffff;
    border-radius: 20px;
    padding: 20px;
}

.ctma-impact-wood-section {
    background: var(--ctma-bg);
    padding: 0px !important;
}

.ctma-hero-movement {
    position: relative;
    min-height: 30vh;}

.ctma-impact-wood
 {
    padding: 90px 0px;
}
    .ctma-wood-bg {
        height: 260px;
        max-width: 100%;
        object-fit: none;
    }

    .ctma-wood-content {
        /* font-size: 18px !important; */
        padding: 0px !important;
        max-width: 100% !important;
        padding: 8px 10px;
        justify-content: center !important;
    }

    .ctma-wood-content h2 {
        font-size: 30px !important;
        line-height: 1.2;
        margin-bottom: 12px;
    }

    .ctma-wood-btn {
        padding: 8px 16px;
        font-size: 18px !important;
    }
    .ctma-impact-wood {
    position: relative;
    width: 100%;
    max-width: 1300px;
    margin: auto;
}

    






}