/* Reset some default browser styling */
body, h1, h2, p, ul {
    margin: 0;
    padding: 0;
}

body {
    font-family: Poppins, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background-color: rgb(76, 76, 76);
    color: #333333;
    background-image: url('../images/ez_livin.png');
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center;
}

header h1 {
    font-size: 32px;
    padding: 5px;
    text-align: center;
}

h1 {
    font-size: 32px;
    padding: 10px;
    text-align: center;
}

h2 {
    text-align: center;
}

h3 {
    font-size: 26px;
}

header {
    background-color: rgb(3, 3, 44);
    color: #fff;
    padding: 1em 0;
    text-align: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header nav ul {
    list-style: none;
    padding: 0;
}

header nav ul li {
    display: inline;
    margin: 0 1em;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
}

main {
    padding: 0;
    margin-top: 60px; /* Adjust this value if the header height changes */
}



section {
    height: auto;
    padding: 6em;
    display: flex;
    font-family: Poppins, sans-serif;
    flex-direction: column;
    justify-content: center;
    background-color: white; /* Change to solid white like your tables */
    border-radius: 8px; /* Already matches */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Update to match table shadow */
    margin: 20px auto;
    max-width: 1200px;
    overflow: hidden; /* Add this to match tables */
}

/* Add a subtle hover effect if desired */
section:hover {
    background-color: #f5f5f5; /* Match the table hover color */
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

a {
    display: inline;
    margin: 0;
    padding: 0;
}

.centered-section {
    text-align: center;
}

embed {
    font-size: 16px;
    font-family: Poppins, sans-serif;
    color: #333;
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 15px;
    padding: 10px;
    max-width: 800px;
    background-color: #f9f9f9;
    border-left: 3px solid #007bff;
}

li {
    padding-left: 4em; /* Adjust the value for more or less indentation */
}

p {
    font-size: 16px;
    font-family: Poppins, sans-serif;
    color: #333;
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 15px;
    padding: 10px;
    max-width: 800px;

    border-left: 3px solid #007bff;
  }

img {
    text-align: center;
    display: block;
    margin: auto;
  }

footer {
    background-color: rgb(3, 3, 44);
    color: #fff;
    text-align: center;
    padding: 1em 0;
    position: fixed;
    width: 100%;
    bottom: 0;
}

#services {
    font-family: Poppins, sans-serif;
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}
  
#services td, #services th {
    padding: 8px;
}
  
#services tr {
    background-color: white;
}
  
#services tr:hover {
    background-color: #ddd;
}
  
#services th {
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: left;
    background-color: rgb(3, 3, 44);
    color: white;
}


#coaching {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

#coaching th, #coaching td {
    padding: 10px;
    text-align: left;
    vertical-align: top;
    word-wrap: break-word;
}

#coaching img {
    text-align: center;
    display: inline;   /* Ensures the image behaves like an inline element */
    max-width: 100%;
    height: auto;
}

#contact {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

#contact td {
    text-align: left;
    vertical-align: top;
}

#about {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

#about td {
    text-align: left;
    vertical-align: top;
}

#story td {
    text-align: left;
    vertical-align: top;
    padding: 0px;
}

/* Testimonials Section Styling */
#testimonials {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

#testimonials tr {
    transition: background-color 0.3s ease;
}

#testimonials tr:hover {
    background-color: #f5f5f5;
}

#testimonials td {
    padding: 20px;
    text-align: left;
    width: 100% 
    vertical-align: top;
    border-bottom: 1px solid #eee;
}

#testimonials td:first-child {
    width: 20%;
    font-weight: bold;
    background-color: rgb(3, 3, 44);
    color: white;

}

#testimonials td:nth-child(2) {
    width: 15%;
    text-align: center;
}

#testimonials td:last-child {
    width: 65%;
    font-style: italic;

    padding-left: 25px;
    padding-right: 40px; 

}

/* Quote styling */
#testimonials .quote-marks {
    font-size: 48px;
    color: #007bff;
    line-height: 1;
    opacity: 0.5;
}

/* Existing styles... */

/* Add a viewport meta tag to your HTML file */
/* <meta name="viewport" content="width=device-width, initial-scale=1"> */

/* Media query for mobile devices */
@media screen and (max-width: 768px) {

    body {
        font-family: Poppins, sans-serif;
        font-size: 14px;
        line-height: 1.6;
        background-color: rgb(76, 76, 76);
        color: #333333;
        background-image: url('../images/ez_livin.png');
        background-size: cover;
        background-attachment: fixed;
        background-repeat: no-repeat;
        background-position: center;
    }

    header {
        padding: 0.5em 0;
    }

    header nav ul li {
        display: block;
        margin: 5px 10px;
        text-align: center;
    }
    header nav ul li {
        margin: 5px 10px;
    }
    header nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        font-size: 12px;
    }

    h1 {
        font-size: 1.5em; /* Adjust with relative units */
    }

    main {
        margin-top: 50px;
        padding: 20px;
    }

    section {
        padding: 1em;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    p, embed {
        font-size: 1em;
        padding: 0.5em;
    }

    #about td {
        display: block;
        width: 100%;
    }

    #about td img {
        margin: 0 auto;
        display: block;
    }
    
    #coaching {
        display: block;
      }
    
      #coaching thead {
        display: none;
      }
    
      #coaching tr {
        display: block;
        margin-bottom: 1em;
      }
    
      #coaching td {
        display: block;
        text-align: left;
        padding-left: 1em;
      }
    
      #coaching td:first-child {
        font-weight: bold;
        margin-bottom: 0.5em;
      }
    
      #coaching td img {
        margin-right: 0.5em;
      }
    }




    #services {
        display: block;
        font-size: 1em;
        overflow-x: auto;
    }

    #services td, #services th{
        padding: 0.5em;
    }

    footer {
        font-size: 0.875em;
    }

    .hdr-menu {
        display: block; /* Show the menu icon on mobile */
    }

   

    #testimonials {
        width: 100%;
        table-layout: fixed; /* Ensures the table respects container width */
    }
    
    #testimonials td {
        display: block;
        width: 100% !important;
        padding: 15px !important; /* Equal padding on all sides */
        box-sizing: border-box; /* Include padding in width calculation */
        word-wrap: break-word; /* Force text to wrap */
        overflow-wrap: break-word; /* Modern alternative to word-wrap */
        hyphens: auto; /* Allow hyphenation for long words */
    }
    #testimonials td:first-child {
        border-bottom: none;
        padding-bottom: 5px;
    }
    
    #testimonials td:nth-child(2) {
        padding-top: 5px;
        padding-bottom: 5px;
    }

    #testimonials td:last-child {
        padding-left: 15px !important; /* Override the desktop padding */
        padding-right: 15px !important; /* Override the desktop padding */
    }
    
    #testimonials p {
        max-width: 100%; /* Allow paragraphs to use full width */
        margin: 0; /* Remove margin that might cause overflow */
    }
}