.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

.page {
    padding: 1rem;
}

h1 {
    font-size: 3rem !important;
    font-weight: 700;
}

h2 {
    font-size: 2rem !important;
}

h3 {
    font-size: 1.75rem !important;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }
}

#page-4 {
    background: url('../images/marketing-services/pic_bg.jpg') no-repeat center fixed;
    background-size: cover;
}

#page-4 .wrapper {
    text-align: center;
    color: var(--second-color);
    padding: min(500px, 15%) min(300px, 12%);
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

#page-4 p {
    margin-top: 0.75rem;
}

@media (max-width: 768px) {
    #page-4 h1 {
        font-size: 2rem !important;
    }

    #page-4 h2 {
        margin-top: 0.75rem;
        font-size: 1.5rem !important;
    }

    #page-4 p {
        margin-top: 0.75rem;
        font-size: 1rem !important;
    }
}

#page-5 {
    background-color: var(--second-color);
    color: var(--first-color);
    padding: 4rem 0;
    transition: background-color 0.4s ease, color 0.4s ease;
}

#page-5 .ad-services h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 2rem;
}

#page-5 .ad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

#page-5 .ad-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    border-radius: 0.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#page-5 .ad-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

#page-5 .ad-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

@media (max-width: 540px) {
    #page-5 .ad-item img {
        justify-self: center;
        width: 65%;
    }
}

#page-5 .ad-item h3 {
    font-size: 1.5rem;
    margin: .5rem 0;
    color: var(--first-color);
}

#page-5 .ad-item h3 small {
    display: block;
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--greeting);
}

@media (max-width: 768px) {
    #page-5 {
        padding: 2rem 0;
    }

    #page-5 .ad-services h2 {
        font-size: 1.8rem;
    }

    #page-5 .ad-item {
        width: 60%;
        justify-self: center;
    }

    #page-5 .ad-item img {
        height: 120px;
    }

    #page-5 .ad-item img.meta {
        height: 100px;
    }

    #page-5 .ad-item h3 {
        font-size: 1.25rem;
    }
}

#page-6 {
    background-color: var(--first-color);
    color: var(--second-color);
    padding: 4rem 0;
    transition: background-color 0.4s ease, color 0.4s ease;
}

#page-6 .image-wrapper {
    display: flex;
    justify-content: center;
}

#page-6 .logo__meta {
    width: 25%;
}

#page-6 .meta-ads h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

#page-6 .meta-ads .intro {
    max-width: 800px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
    color: var(--third-color);
    text-align: center;
    line-height: 1.6;
}

#page-6 .meta-section {
    padding: 2rem 1.5rem;
    border-radius: 0.75rem;
    color: var(--second-color);
    border: 1px solid var(--second-color);
    margin-bottom: 1.5rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#page-6 .meta-section:nth-child(3) {
    background-color: var(--third-color);

}

#page-6 .meta-section:nth-child(4) {
    background-color: var(--greeting);
}

#page-6 .meta-section:nth-child(5) {
    background-color: var(--third-color);
}

#page-6 .meta-section:hover {
    transform: translateY(-4px);
}

#page-6 .meta-section h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--second-color);
}

#page-6 .metrics {
    list-style: none;
    padding: 0;
    margin: 0;
}

#page-6 .metrics li {
    margin-bottom: 0.75rem;
}

#page-6 .metrics h4 {
    font-weight: 500;
    font-size: 1.125rem;
    margin: 0;
    color: var(--second-color);
    line-height: 1.5;
}

#page-6 .dark-col h3 {
    color: var(--first-color) !important;
}

#page-6 .dark-col h4 {
    color: var(--first-color) !important;
}

@media (max-width: 768px) {
    #page-6 {
        padding: 2rem 0;
    }

    #page-6 .meta-ads h2 {
        font-size: 1.8rem;
    }

    #page-6 .meta-ads .intro {
        font-size: 1rem;
    }

    #page-6 .meta-section {
        padding: 1.5rem;
    }

    #page-6 .meta-section h3 {
        font-size: 1.5rem;
    }

    #page-6 .metrics h4 {
        font-size: 1rem;
    }

    #page-6 .logo__meta {
        width: 50%;
        margin-bottom: 1.5rem;
    }
}

#page-7 {
    background-color: var(--second-color);
    color: var(--first-color);
    padding: 4rem 0;
    transition: background-color 0.4s ease, color 0.4s ease;
}

#page-7 .help-services h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

#page-7 .help-services .intro {
    max-width: 800px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
    color: var(--first-color);
    text-align: center;
    line-height: 1.6;
}

#page-7 .features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

#page-7 .feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
    border: 1px solid var(--first-color);
    border-radius: 0.75rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

#page-7 .feature-item:hover {
    transform: translateY(-5px);
    background-color: var(--first-color);
}

#page-7 .feature-item:hover i {
    color: var(--second-color);
}

#page-7 .feature-item:hover h3 {
    color: var(--second-color);
}

#page-7 .feature-item i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--greeting);
}

#page-7-4 .feature-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    color: var(--first-color);
    margin: 0;
}

@media (max-width: 768px) {
    #page-7 {
        padding: 2rem 0;
    }

    #page-7 .help-services h2 {
        font-size: 1.8rem;
    }

    #page-7 .features {
        gap: 1rem;
    }

    #page-7 .feature-item {
        padding: 1.5rem 1rem;
    }

    #page-7 .feature-item i {
        font-size: 2.5rem;
    }

    #page-7 .feature-item h3 {
        font-size: 1.125rem;
    }
}

#page-8 {
    background-color: var(--first-color);
    color: var(--second-color);
    padding: 4rem 0;
    transition: background-color 0.4s ease, color 0.4s ease;
}

#page-8 .process h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

#page-8 .div__double__images {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 1.5rem;
}

#page-8 .div__double__images img {
    width: 20%;
}

#page-8 .process p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    font-weight: 300;
    color: var(--third-color);
}

.timeline {
    position: relative;
    margin: 0 auto;
    max-width: 800px;
}

#page-8 .timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
}

#page-8 .timeline-item:last-child {
    padding-bottom: 0;
}

#page-8 .timeline-content {
    text-align: center;
}

#page-8 .timeline-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

#page-8 .timeline-content p {
    font-weight: 300;
    line-height: 1.6;
    color: var(--third-color);
}

#page-8 .timeline-item:hover .timeline-step {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    #page-8 {
        padding: 2rem 0;
    }

    #page-8 .process h2 {
        font-size: 1.8rem;
    }

    #page-8 .timeline {
        padding: 0 20px;
    }

    #page-8 .timeline-step {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        left: -4px;
    }

    #page-8 .carousel-wrapper {
        width: 125%;
        margin-left: -12.5%;
    }

    #page-8 .div__double__images img {
        width: 30%;
    }
}

@media (max-width: 420px) {
    #page-8 .div__double__images img {
        width: 50%;
    }
}

#page-9 {
    background-color: var(--second-color);
    color: var(--first-color);
    padding: 4rem 0;
    transition: background-color 0.4s ease, color 0.4s ease;
}

#page-9 .email-marketing h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

#page-9 .email-marketing .intro {
    max-width: 800px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
    color: var(--first-color);
    text-align: center;
    line-height: 1.6;
}

#page-9 .email-marketing h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

#page-9 .features {
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

#page-9 .feature-item {
    max-width: 400px;
    background-color: var(--third-color);
    padding: 1.5rem 1rem;
    border-radius: 0.75rem;
    border-left: 4px solid var(--greeting);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

#page-9 .feature-item:hover {
    transform: translateY(-6px);
    border-color: var(--first-color);
}

#page-9 .feature-item h4 {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--first-color);
    margin: 0;
}

#page-9 .div__double {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

#page-9 .div__double img {
    width: 75%;
    max-width: 500px;
    border-radius: 0.75rem;
    justify-self: center;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    #page-9 {
        padding: 2rem 0;
    }

    #page-9 .email-marketing h2 {
        font-size: 1.8rem;
    }

    #page-9 .email-marketing h3 {
        font-size: 1.6rem;
    }

    #page-9 .feature-item {
        padding: 1rem;
    }

    #page-9 .feature-item h4 {
        font-size: 1.125rem;
    }

    #page-9 .div__double {
        flex-direction: column;
    }

    #page-9 .div__double img {
        width: 60%;
    }
}

#page-10 {
    background-color: var(--first-color);
    color: var(--second-color);
    padding: 4rem 0;
    transition: background-color 0.4s ease, color 0.4s ease;
}

#page-10 .email-marketing h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

#page-10 .email-marketing .intro {
    max-width: 800px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
    color: var(--third-color);
    text-align: center;
    line-height: 1.6;
}

#page-10 .email-marketing h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

#page-10 .features {
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

#page-10 .feature-item {
    max-width: 400px;
    background-color: var(--second-color);
    padding: 1.5rem 1rem;
    border-radius: 0.75rem;
    border-left: 4px solid var(--greeting);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

#page-10 .feature-item:hover {
    transform: translateY(-7px);
    border-color: var(--first-color);
}

#page-10 .feature-item h4 {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--first-color);
    margin: 0;
}

#page-10 .div__double {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

#page-10 .div__double img {
    width: 80%;
    max-width: 500px;
    border-radius: 0.75rem;
    justify-self: center;
}

@media (max-width: 768px) {
    #page-10 {
        padding: 2rem 0;
    }

    #page-10 .email-marketing h2 {
        font-size: 1.8rem;
    }

    #page-10 .email-marketing h3 {
        font-size: 1.6rem;
    }

    #page-10 .feature-item {
        padding: 1rem;
    }

    #page-10 .feature-item h4 {
        font-size: 1.125rem;
    }

    #page-10 .div__double {
        flex-direction: column;
    }

    #page-10 .div__double img {
        width: 60%;
    }
}
