/* MAIN CONTAINER */
.mas {
    max-width: 1800px;
    padding: 0 75px;
    margin: auto;
    justify-content: center;
}

.mas .list{
    list-style-type: disc;
}

/* HERO SECTION */
.mas-hero {
    padding: 10rem 0 6rem;
    background: url('templatefiles/doublemedia/dm/img/about/C2.jpg') center/cover;
    position: relative;
}

.mas-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.4));
}

.mas-hero h1,
.mas-hero p {
    position: relative;
    color: #fff;
    text-align: center;
}

.mas-hero h1 {
    font-weight: 600;
    letter-spacing: -1.5px;
}

.mas-hero p {
    font-size: 1.4rem;
    max-width: 720px;
    margin: 1.5rem auto 2.5rem;
}

.btn {
    padding: 1.1rem 3rem;
    border-radius: 12px;
    background: #fff;
    color: #53A2E8;
    font-weight: 700;
    transition: .3s;
    display: inline-block;
}

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

/* GENERAL SECTION */
.sec { padding: 8rem 0; }
.h2 { font-size: 3.2rem; font-weight: 600; margin-bottom: 1rem; }
.lead { font-size: 1.25rem; margin-bottom: 2.5rem; color: #444; }

/* ROW & COLUMNS */
.meta-ads-specialist-row {
    display: flex;
    align-items: center;
    gap: 5rem;
    flex-wrap: wrap;
    margin: 4rem auto;
    justify-content: center;
}

.meta-ads-specialist-col {
    flex: 1;
    min-width: 400px;
    width: 100%;
}

/* IMAGE + STAT OVERLAY */
.img {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
}

.img img {
    width: 100%;
    height: 520px;
    object-fit: cover;
}

/* CTA */
.cta {
    background: #53A2E8;
    color: #fff;
    text-align: center;
    padding: 8rem 0;
    clip-path: polygon(0 10%, 100% 0, 100% 90%, 0 100%);
}

.cta h2 { font-size: 3.4rem; font-weight: 600; margin-bottom: 1rem; }
.cta p { font-size: 1.35rem; max-width: 680px; margin: 0 auto 2.5rem; }

/* ————————————————————
   EXISTING MEDIA QUERIES (kept & cleaned)
   ———————————————————— */
@media (max-width: 1023px) {
    .mas-hero h1 { font-size: 42px; }
}

@media (max-width: 992px) {
    .meta-ads-specialist-row { 
        flex-direction: column !important; 
        gap: 3rem; 
    }
    .img img { height: 400px; }
    .h2 { font-size: 2.6rem; }
    .sec { padding: 6rem 0; }
}

/* ————————————————————
   NEW & IMPROVED MOBILE OPTIMIZATIONS
   ———————————————————— */
@media (max-width: 768px) {
    /* Container padding */
    .mas { 
        padding: 0 2rem; 
    }

    /* Hero adjustments */
    .mas-hero {
        padding: 7rem 0 4rem;   /* much less vertical space on mobile */
    }

    .mas-hero h1 {
        font-size: 36px !important;
        letter-spacing: -1px;
    }

    .mas-hero p {
        font-size: 1.15rem;
        margin: 1.25rem auto 2rem;
    }

    .btn {
        padding: 1rem 2.5rem;
        font-size: 1rem;
    }

    /* General sections */
    .sec { 
        padding: 5rem 0; 
    }

    .h2 {
        font-size: 2.4rem;
        line-height: 1.2;
    }

    .lead {
        font-size: 1.1rem;
    }

    /* Force full-width columns on small screens */
    .meta-ads-specialist-col {
        min-width: 0;
        width: 100%;
    }

    /* Image height on mobile */
    .img img {
        height: 340px;
    }

    /* CTA section */
    .cta {
        padding: 6rem 0;
        clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%); /* slightly flatter on mobile */
    }

    .cta h2 {
        font-size: 2.6rem;
    }

    .cta p {
        font-size: 1.15rem;
        padding: 0 1rem;
    }
}

@media (max-width: 640px) {
    .mas-hero {
        padding: 6rem 0 3.5rem;
    }

    .mas-hero h1 {
        font-size: 32px !important;
    }

    .mas-hero p {
        font-size: 1.1rem;
    }

    .h2 {
        font-size: 2.2rem;
    }

    .sec {
        padding: 4rem 0;
    }

    .img img {
        height: 300px;
    }

    /* Marquee logos – smaller & slower on mobile */
    .meta-ads-specialist-logo-track img {
        height: 44px;
    }

    .meta-ads-specialist-carousel-wrapper {
        margin: 0.75rem 0;
    }

    .meta-ads-specialist-stat-num {
        font-size: 3.8rem;
    }

    .meta-ads-specialist-stat-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .mas { 
        padding: 0 1.25rem; 
    }

    .mas-hero h1 {
        font-size: 28px !important;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        padding: 1rem;
        text-align: center;
    }

    .img img {
        height: 260px;
    }

    .meta-ads-specialist-stat-num {
        font-size: 3.2rem;
    }
}


.meta-ads-specialist-overlay-container { /* unchanged */ }
.meta-ads-specialist-stat-box { /* unchanged */ }
.meta-ads-specialist-stat-num { font-size: 4.5rem; font-weight: 900; line-height: 1; margin: 0; }
.meta-ads-specialist-stat-label { font-size: 0.9rem; letter-spacing: 2px; opacity: 0.9; text-transform: uppercase; }
.meta-ads-specialist-carousel-wrapper { transform: rotate(-2.5deg); margin: 1rem 0; pointer-events: auto; overflow: hidden; }
.meta-ads-specialist-marquee-line { overflow: hidden; width: 100%; white-space: nowrap; }
.meta-ads-specialist-logo-track { display: flex; gap: 3.5rem; padding: 0.75rem 0; animation: meta-ads-specialist-scroll 34s linear infinite; }
.meta-ads-specialist-logo-track img { height: 58px; width: auto; flex-shrink: 0; filter: drop-shadow(0 2px 6px rgba(255,255,255,0.3)); transition: transform 0.3s ease; }
.meta-ads-specialist-logo-track img:hover { transform: scale(1.25); }
@keyframes meta-ads-specialist-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }