body {
    padding: 0px 16px;
    text-rendering: optimizeSpeed;
    margin: 0px;
    line-height: 1.5;
}

.container {
    display: flex; 
    flex-direction: column; 
    justify-content: flex-start; 
    min-height: 100vh; 
}

#servicesHeader {
    display:flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 0px;
    cursor:default;
}

#servicesHeader h1 { 
    font-family: var(--title);
    line-height: 1.57; 
    letter-spacing: 1.28px;  
    color:#1E2A38;
    font-size: 28px;
    padding-bottom: 8px; 
}

#servicesAndClients {
    display: flex;
    justify-content: space-between;
    padding: 24px 0px;
    gap:80px;
}


#servicesSection {
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: start; 
    gap: 20px;
    margin: 0px;
    padding:16px 0px 0px 0px;
    overflow: none;
}


.servicesSectionItem a {
    color: var(--primary-color); 
    font-family: var(--title); 
    font-size: 20px;
    font-weight: 300;
    text-decoration: none;
    padding: 8px;
    align-items: center;
    line-height: 1.57; 
    letter-spacing: 0.8px; 
    border-radius: 4px;
    transition: background-color 0.3s, font-weight 0.3s;
}

.servicesSectionItem a:hover {
    background-color: #F8F9FA;
    font-weight: 600;
}

.servicesSectionItem a:active {
    background-color: #E5B80B;
    font-weight: 700;
}


#servicesHeader p { 
    font-family: var(--body);
    font-size: 19px;
    line-height: 1.57;
    letter-spacing: 1.28px;
    font-style: italic;
    text-transform: capitalize;
}

.clientsAndOrganizations{ 
    width: 555px;
    max-width:100%
}

.clientsAndOrganizations div {
    display: flex; 
    flex-wrap: wrap;
    flex-direction: row;
    gap: 24px;
    padding-top: 16px;
}

.clientsAndOrganizations img {
    width: 150px;
    height: 50px;
}

.clientsAndOrganizations h2
 { 
    font-family: var(--title); 
    font-size: var(--titleFontSize); 
    line-height: 1.57; 
    letter-spacing: 0.8px; 
    color:#1E2A38;
}



#firstServicesRoll div p, 
#secondServicesRoll div p 
 { 
    font-family: var(--body); 
    font-size: var(--bodyFontSize); 
    line-height: 1.57; 
    letter-spacing: 1.28px; 
    font-style: italic; 
    text-transform: capitalize; 
}


#servicesHeaderButtons {
    display: flex;
    flex-direction: row;
    gap: 44px;
}

#servicesComponentState {
    display: flex;
    flex-direction: row;
    gap:16px;
    padding: 24px; 
    align-items: center;
    justify-content: center;
}

/*bodysection*/ 
.bodySection {
    display: flex; 
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 50px; 
    padding: 24px 24px;
}

.servicesComponent {
    display:flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    max-width: 570px;
    padding: 32px 24px;
    background-color: #F8F9FA;
    border: 1px solid #5F6977;
    border-radius: 8px;
}

#CTA{
    display:flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
    max-width: 550px;
    padding: 32px 24px;
}

.serviceComponentHeader{
        font-family: var(--title);
        font-size: 15px;
        font-weight: 500;
        color:#FFF;
        background-color: #1E2A38;
        line-height: 1.57;
        letter-spacing: 0.8px;
        padding: 12px 12px;
        border-radius: 8px;
        width: fit-content;
    }

.serviceComponentSubheader{
        font-family: var(--body);
        font-size: 21px;
        line-height: 1.57;
        letter-spacing: 1.28px;
        font-style: italic;
        text-transform: capitalize;
        font-weight: 300;
    }

.serviceComponentLabel{
    font-size: 16px;
    font-family: var(--label);
    font-weight: 700; 
}

.serviceComponentListing p {
    font-size: 16px; 
    font-family: var(--label); 
    font-weight: 600; 
}



.serviceComponentListing {
    display: flex;
    flex-direction: column; 
    gap: 24px;
}

.serviceComponentListing p span {
    font-family: var(--body);
    font-size: 14px;
    color: #5F6977;
    line-height: 1.57;
    letter-spacing: 1.28px;
    font-style: italic;
    text-transform: capitalize;
}



 
#CTA #whyChooseMe h2
 { 
    font-family: var(--title); /* Use title font */
    font-size: var(--titleFontSize); /* Set font size */
    line-height: 1.57; /* Set line height for readability */
    letter-spacing: 0.8px; /* Add spacing between letters */
    color:#1E2A38;
}

#whyChooseMe h2 {
    padding-bottom: 8px; /* Add space below heading */
}

#CTAHeader {
    font-family: var(--headlineLarge);
    font-size: 34px;
    font-weight: 700;
    color: #000;
    line-height: 1.57;
    letter-spacing: 0.8px;   
}

#CTAText {
    font-family: var(--headlineLarge);
    font-size: 27px;
    font-weight: 300;
    color: #1E2A38;
    line-height: 1.57;
    letter-spacing: 0.8px;   
}



/* Strategic Consulting */
#strategicConsulting .serviceComponentHeader {
    background-color: #1E2A38; /* Matches primaryButton */
}

/* Web Development */
#webDevelopment .serviceComponentHeader {
    background-color: #FF6B00; /* Matches accentButton */
}

/* Mentorship */
#mentorship .serviceComponentHeader {
    background-color: #1E2A38; /* Matches primaryButton */
}

/* Digital Products */
#digitalProducts .serviceComponentHeader {
    background-color: #6D5BAE; /* Matches secondaryButton */
}

/* Speaking Engagements */
#speakingEngagements .serviceComponentHeader {
    background-color: #1E2A38; /* Matches primaryButton */
}

@media (max-width: 1440px) {
    .bodySection {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
        gap: 80px;
        padding: 24px 0px;
    }

    .servicesComponent {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 24px;
        width: 100%;
        max-width: 582px;
        padding: 32px 24px;
        background-color: #F8F9FA;
        border: 1px solid #5F6977;
        border-radius: 8px;
    }

    #CTA {
        display: flex;
        flex-direction: column;
        gap: 32px;
        width: 100%;
        max-width: 580px;
        padding: 32px 24px;
    }

    .clientsAndOrganizations {
        width: 664px;
        max-width: 100%;
    }
}

@media (max-width: 1290px) {
    .servicesComponent {
        display: flex
;
        flex-direction: column;
        justify-content: space-between;
        gap: 24px;
        width: 100%;
        max-width: 455px;
        padding: 32px 24px;
        background-color: #F8F9FA;
        border: 1px solid #5F6977;
        border-radius: 8px;
    }

    #CTA {
        display: flex;
        flex-direction: column;
        gap: 32px;
        width: 100%;
        max-width: 455px;
        padding: 32px 24px;
    }
}

@media (max-width: 1039px) {
    .bodySection {
        padding: 24px 16px;
    }

    .servicesComponent {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 16px;
        width: 100%;
        height: fit-content;
        max-width: 345px;
        padding: 32px 24px;
        background-color: #F8F9FA;
        border: 1px solid #5F6977;
        border-radius: 8px;
    }

    .serviceComponentListing {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .servicesSectionItem a:hover {
        background-color: #F8F9FA;
        font-weight: 500;
    }

    #CTA {
        display: flex;
        flex-direction: column;
        gap: 32px;
        width: 100%;
        max-width: 345px;
        padding: 32px 24px;
    }

    #CTAHeader {
        font-family: var(--headlineLarge);
        font-size: 26px;
        font-weight: 700;
        color: #000;
        line-height: 1.57;
        letter-spacing: 0.8px;
    }

    #servicesAndClients {
        display: flex;
        justify-content: space-between;
        padding: 24px 0px;
        gap: 45px;
    }

    .clientsAndOrganizations div {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        gap: 12px;
        padding-top: 16px;
    }

    .clientsAndOrganizations img {
        width: 145px;
        height: 50px;
    }

    #servicesSection {
        list-style-type: none;
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        align-items: start;
        gap: 18px;
        margin: 0px;
        padding: 16px 0px 0px 0px;
        overflow: none;
    }

    .serviceComponentHeader {
        font-family: var(--title);
        font-size: 16px;
        font-weight: 500;
        color: #FFF;
        background-color: #1E2A38;
        line-height: 1.57;
        letter-spacing: 1.8px;
        padding: 12px 12px;
        border-radius: 8px;
        width: fit-content;
    }

    .serviceComponentSubheader {
        font-family: var(--body);
        font-size: 16px;
        line-height: 1.57;
        letter-spacing: 1.28px;
        font-style: italic;
        text-transform: capitalize;
        font-weight: 300;
    }
}


/* Responsive Design for Services and Clients Section */
@media (max-width: 804px) {
    #servicesHeader {
        gap: 8px;
        padding: 24px 0px 16px 0px;
    }

    #servicesHeader h1 { 
        font-size: 22px
    }
    #servicesHeader p {
        font-size: 16px;
        font-weight: 500;
    }

    #servicesAndClients {
        flex-direction: column-reverse;
        padding: 8px 0px 24px 0px;
        gap: 24px;
    }

    .clientsAndOrganizations {
        width: 100%; /* Make the width 100% for smaller screens */
        max-width: none; /* Remove max-width to allow full width */
        padding-top: 16px; /* Add some padding on top */
    }

    #servicesSection {
        justify-content: start; 
        gap: 24px;
    }

    .clientsAndOrganizations div {
        justify-content: start;
        gap: 16px;
    }

    .clientsAndOrganizations img {
        width: 120px; /* Adjust logo size for smaller screens */
        height: auto; /* Maintain aspect ratio */
    }
    .bodySection {
        padding: 16px 0px;
        justify-content: space-between;
        
    }

    .servicesComponent {
        max-width: 100%;
        padding: 16px 16px;
        height: auto;
    }

    .servicesComponent:nth-child(5) {
        width: 100%;
        justify-content: space-evenly;
        height: 100%;
    }
    

    .serviceComponentHeader {
        font-size: 12px;
        line-height: 01.5;
        letter-spacing: 1.2px;
    }

    .serviceComponentListing {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .serviceComponentListing p {
        font-size: 18px;
        font-family: var(--label);
        font-weight: 600;
    }

    .serviceComponentListing p span {
        font-family: var(--body);
        font-size: 14px;
        color: #5F6977;
        line-height: 1.57;
        letter-spacing: 1.50px;
        font-style: italic;
        text-transform: capitalize;
    }

    .serviceComponentSubheader {
        font-size: 20px;
        font-weight: 300;
    }

    .servicesSectionItem a {
        font-size: 18px;
        font-weight: 100;
        letter-spacing: 1.0px;
    }

    #CTA {
        max-width: 100%;
        gap: 24px;
        padding: 16px 24px;
    }

    #CTAHeader {
        font-size: 18px;
    }

    #CTAText {
        font-size: 22px;
    }

    .primaryButton, .accentButton, .secondaryButton  {
        font-size: 16px;
    }
}

@media (max-width: 425px) {
    .servicesComponent {
        width: 100%;
    }

    #CTA {
        width: 100%;
    }

    .servicesComponent:nth-child(5) {
        width: 100%;
    }

    .servicesSectionItem a {
        font-size: 15px;
    }
    #servicesSection {
        gap: 18px;
    }
}

