html {
    background-color: white;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url(../Images/bg_squares.svg);
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Open Sans, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    color: #333333; 
}

/* --------------------------------------Styles for the Title Text---------------------------------------------- */

.titleCard {
    max-width: 100%;
    background-image: url(../Images/lawn_car_header-scaled.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
}

.titleCard h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #f9f9f9;
    text-transform: uppercase; /* Styling the header to stand out */
    font-weight: 500;  
    margin: 0 auto 20px;
    padding-top: 2%;
    padding-bottom: 2%;
    text-align: center;
}

/* --------------------------------------Styles for Our Company section---------------------------------------------- */

.rComp {
    display: flex;
    flex-direction: column; 
    align-items: center;
    padding: 40px;
    max-width: 1200px;
    margin: auto;
    border-radius: 15px;
    overflow: hidden;
}

.rComp .contentRap {
    display: flex;
    flex-direction: row; 
    align-items: flex-start;
    width: 100%;
    gap: 20px; /* Add gap for better spacing between image and text */
    animation: fadeInUp 1s ease-in-out forwards; /* Animation for a smooth entry */
}

.rComp img {
    width: 45%; 
    height: auto;
    margin-right: 2%; 
    flex-shrink: 0; 
    border-radius: 10px; /* More rounded corners */
    border: 3px solid #3e2a75; /* Match border color with brand color */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Shadow for the image */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effect */
}

.rComp img:hover {
    transform: scale(1.05); /* Slight zoom on hover */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); /* Enhance shadow on hover */
}

.rComp .textContent {
    flex: 1; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: fadeInRight 1.2s ease-in-out forwards; /* Text slide-in animation */
}

.rComp .textContent h2 {
    font-size: 2.5rem;
    color: #3e2a75;
    font-weight: 400;
    margin-bottom: 15px;
    text-align: center; /* Center the heading for emphasis */
    text-transform: uppercase; /* Make the heading stand out */
    letter-spacing: 1px; /* Slight letter spacing for a clean look */
    animation: fadeIn 1.5s ease-in-out forwards;
}

.rComp .textContent p:first-of-type, 
.rComp p:last-of-type {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333; /* Slightly darker text for better readability */
    text-align: justify;
    text-indent: 20px;
    margin-bottom: 20px;
    animation: fadeInUp 1.4s ease-in-out forwards;
}

@media (max-width: 768px) {
    .rComp .contentRap {
        flex-direction: column; 
    }

    .rComp img {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px; /* Add spacing at the bottom when stacked */
    }

    .rComp .textContent h2 {
        font-size: 2rem; /* Adjust heading size for smaller screens */
    }
}

/* Keyframes for animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px); /* Start slightly below */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* End at the original position */
    }
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(-20px); /* Start slightly left */
    }
    100% {
        opacity: 1;
        transform: translateX(0); /* End at the original position */
    }
}
/* --------------------------------------Styles for the Video section---------------------------------------------- */

.cert{
    background: transparent;
    border-bottom: 6px solid #3e2a75;
}

.certifExcell {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.certifExcell .videoContainer {
    position: relative;
    padding-top: 56.25%; 
    height: 0;
}

.videoWrapper iframe {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px; 
    margin: 0 auto 20px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
    border: #3e2a75 3px solid;
}

.certifExcell .textContainer {
    padding: 10px;
}

.contentWrapper {
    background: linear-gradient(145deg, #3e2a75, #7a53a3); /* Gradient background */
    color: white; /* White text for better contrast */
    border: 3px solid #3e2a75; /* Solid border matching the darker tone of the gradient */
    border-radius: 15px; /* Rounded corners */
    padding: 20px; /* Padding for text spacing */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); /* Subtle shadow for depth */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transitions for hover effects */
}

.contentWrapper h2 {
    color: #ffdf6b; /* Bright color for headers for emphasis */
    font-size: 2em; /* Larger font size for headers */
    text-align: center; /* Centering the text */
    margin-bottom: 15px; /* Space below the header */
    text-transform: uppercase; /* Uppercase text for a formal look */
    letter-spacing: 1.5px; /* Spacing out letters for readability */
}

.contentWrapper p {
    font-size: 1rem; /* Readable font size */
    line-height: 1.6; /* Adequate line height for readability */
    text-align: justify; /* Justified text for a clean look */
    text-indent: 20px; /* Indent for the first line of each paragraph */
    margin-top: 15px; /* Margin above the paragraph */
    opacity: 0.9; /* Slightly reduced opacity for a softer appearance */
    transition: opacity 0.3s ease; /* Smooth transition for hover effects */
}

@media (max-width: 768px) {
    .certifExcell {
        grid-template-columns: 1fr; 
    }
    .certifExcell .textContainer {
        border-left: none;
        border-top: 1px solid #ccc;
    }
}
/* ------------------------------------------Styles for the carousel section-------------------------------------- */

html, body {
    max-width: 100%;
    overflow-x: hidden;
    font-family: Open Sans, sans-serif;
  }

.head1, .head2 {
    position: absolute;
    text-align: center;
    width: 100%;
    font-size: 2.5rem;
    color: #3e2a75;
    text-transform: uppercase; /* Styling the header to stand out */
    font-weight: 400;
    margin: 0 auto 0px;
    padding: 0 0 0% 0;
    padding-top: 0%;
    z-index: -1;
}

.head1 h3, .head2 h3 {
    margin-bottom: 2%;
    margin-top: 1%;
}

.head1 {
    border-top: 6px solid #3e2a75; 
}

.head2 {
    border-top: 6px solid darkgreen; 
}

.logos1, .logos2 {
    white-space: nowrap;
    padding: 60px 0;
    padding-top: 8%;
    padding-bottom: 0%;
    position: relative;
}

.logos-slide {
    display: inline-block;
}

.logos-slide a {
    display: inline-block;
    transition: transform 0.3s;
    position: relative;
}

.logos-slide a:hover {
    transform: translateY(-5px); 
}

.logos-slide img {
    height: 115px;
    margin: 0 50px;
    padding: 12.5px 0;
    transition: transform 0.3s;
}

.logos2 {
    border-bottom: 6px solid #ff7c1a; 
}

.logo-description {
    display: none; 
    position: absolute;
    bottom: auto; 
    left: 50%; 
    transform: translateX(-50%);
    width: 220px;
    background-color: #f9f9f9;
    color: #333;
    text-align: center;
    text-wrap: wrap;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    border: 1px solid #ccc;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    overflow: visible;
}

.logos-slide a:hover .logo-description {
    position: absolute;
    display: block; 
    opacity: 1; 
    visibility: visible;
    z-index: 1;
}

.logoCarousel {
    position: relative;
}

/* --------------------------------------Styles for the bottom two sections---------------------------------------------- */

.sections-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    max-width: 1000px; /* Reduced max-width for smaller overall size */
    margin: 40px auto;
    gap: 20px; /* Slightly reduced gap between sections */
    padding: 20px;
}

.communityImpact, .EnvironSteward {
    flex: 1;
    padding: 20px; /* Reduced padding for smaller content area */
    box-sizing: border-box;
    background: linear-gradient(145deg, #3e2a75, #7a53a3);
    border-radius: 15px;
    color: white;
    position: relative;
    overflow: hidden;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
}

.sections-container .communityImpact, 
.sections-container .EnvironSteward {
    opacity: 1;
    transform: translateY(0);
}

.communityImpact h2, .EnvironSteward h2 {
    color: #ffdf6b;
    font-size: 2.2rem; /* Reduced font size */
    text-align: center;
    margin-bottom: 15px; /* Reduced margin for a tighter layout */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
}

.communityImpact p, .EnvironSteward p {
    font-size: 1rem; /* Slightly smaller font size */
    line-height: 1.6; /* Adjusted line height for compactness */
    color: #f1f1f1;
    text-align: justify;
    text-indent: 20px;
    margin-top: 15px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.communityImpact:hover, .EnvironSteward:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.communityImpact:hover p, .EnvironSteward:hover p {
    opacity: 1;
}

@media (max-width: 768px) {
    .sections-container {
        flex-direction: column;
    }

    .communityImpact, .EnvironSteward {
        flex-basis: 100%;
        margin-top: 20px;
        transform: translateY(0);
        opacity: 1;
    }
}


/*----------------------------------------------Styles for We Serve section--------------------------------------- */

.sectionContainer2 {
    display: flex;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    max-width: 1000px;
    margin: 40px auto;
    gap: 30px;
    padding: 20px;
    background: #f7f7f7; /* Light neutral background */
    border-radius: 15px; /* Softer border radius */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.weServe, .ourTeam {
    flex: 1;
    padding: 20px;
    box-sizing: border-box;
    background: #ffffff; /* Clean white background */
    border-radius: 10px;
    border: 1px solid #ddd; /* Light gray border */
    color: #333; /* Darker text for better contrast */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    opacity: 0;
    transform: translateY(10px);
}

.sectionContainer2 .weServe, 
.sectionContainer2 .ourTeam {
    opacity: 1;
    transform: translateY(0);
}

.weServe h2, .ourTeam h3 {
    color: #3e2a75; /* Maintain a touch of purple for headings */
    font-size: 2.2rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.weServe p, .ourTeam p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333; /* Dark gray text for readability */
    font-weight: bold;
    margin-top: 10px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.sectionContainer2 .weServe:hover, 
.sectionContainer2 .ourTeam:hover {
    transform: translateY(-3px); /* Subtle lift effect */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.sectionContainer2 .weServe:hover p, 
.sectionContainer2 .ourTeam:hover p {
    opacity: 1;
}

.ourTeam button {
    background-color: transparent;
    color: #3e2a75;
    border-radius: 20px;
    border: 2px solid #3e2a75;
    padding: 12px 25px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    margin-top: 15px;
}

.ourTeam button:hover {
    background-color: #3e2a75;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .sectionContainer2 {
        flex-direction: column;
    }

    .weServe, .ourTeam {
        flex-basis: 100%;
        margin-top: 20px;
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== Bigger layout on large screens ===== */

@media (min-width: 1440px){
  .rComp{
    max-width: clamp(1200px, 74vw, 1600px);
    padding: 56px 40px;
  }

  .rComp .contentRap{
    gap: clamp(24px, 2vw, 48px);
    align-items: center;
  }

  /* ⬇️ Cap the image size so it looks like the laptop layout */
  .rComp .contentRap > img{
    width: clamp(320px, 28vw, 520px);   /* never larger than ~520px */
    flex: 0 0 clamp(320px, 28vw, 520px);
    max-height: 520px;                  /* optional safety cap */
  }

  /* Gentle type scaling for comfortable reading */
  .rComp .textContent h2{
    font-size: clamp(32px, 2.2vw, 44px);
  }
  .rComp .textContent p{
    font-size: clamp(16px, 1.1vw, 20px);
    line-height: 1.85;
  }
}

/* Optional: a tiny bump on ultra-wide screens without growing the photo */
@media (min-width: 1920px){
  .rComp{
    max-width: clamp(1350px, 70vw, 1700px);
  }
}

@media (min-width: 1920px){
  .rComp .contentRap > img{
    width: clamp(380px, 30vw, 640px);
    flex: 0 0 clamp(380px, 30vw, 640px);
    max-height: 640px;
  }
}

/* ---------- CERTIFICATIONS & ASSOCIATIONS: scale up on large screens ---------- */

/* Give the section some breathing room and a max width that grows with the screen */
@media (min-width: 1440px){
  .cert { 
    padding-inline: clamp(24px, 3vw, 60px);
  }

  /* The grid that holds the video + text card */
  .certifExcell{
    max-width: clamp(1200px, 82vw, 1680px);
    margin: 0 auto;
    gap: clamp(20px, 2.5vw, 48px);
    grid-template-columns: 1.2fr 1fr;   /* video a bit wider than the card */
  }

  /* Use aspect-ratio on wide screens so the video grows without extra padding hacks */
  .certifExcell .videoContainer{
    padding-top: 0;           /* was 56.25% (16:9) */
    height: auto;
    aspect-ratio: 16 / 9;
  }

  /* Beef up the purple text card */
  .contentWrapper{
    padding: clamp(22px, 2vw, 42px);
    border-width: 4px;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,.15);
  }
  .contentWrapper h2{
    font-size: clamp(28px, 2.2vw, 40px);
    margin-bottom: clamp(12px, 1vw, 18px);
  }
  .contentWrapper p{
    font-size: clamp(16px, 1.05vw, 20px);
    line-height: 1.85;
  }
}

/* Go a touch larger on ultra-wide */
@media (min-width: 1920px){
  .certifExcell{
    grid-template-columns: 1.25fr 1fr;
    max-width: clamp(1400px, 78vw, 1920px);
  }
}


.cert .logos1,
.cert .logos2 {
  padding-top: 100px !important;     /* was 8% */
  padding-bottom: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Tighten the gap under the title a bit, too */
.cert h2 {
  margin-bottom: 10px !important;
}