/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #333;

}

.image-container {
    position: relative;
    width: 100%;
    max-width: 100%; /* Ensures the image scales properly */
    height: 400px; /* Adjust as needed */
}

.base-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the container */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.42); /* Black overlay with 52% opacity */
    z-index: 1;
}

.overlay-text {
    position: absolute;
    top: 35.5%;
    left: 10.5%; /* Adjust based on desired padding */
    transform: translateY(-50%);
    color: white;
    font-size: 24px;
    font-weight: bold;
    z-index: 2; /* Ensure text appears above the overlay */
    line-height: 1.2;
}

.overlay-text-h1 h1 {
    font-size: 60px;
    margin: 0;
}

.overlay-text p {
    margin: 0; /* Removes extra spacing */
    font-size: 16px; /* Adjust as needed */
}

nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
    padding: 10px 20px; /* Adjust padding for better responsiveness */
    font-size: 1em; /* Use relative font size */
    margin-bottom: 20px;
    background-color: white; /* Add a background for better visibility */
    gap: 5px; /* Add space between items */
}

nav a {
    text-decoration: none;
    color: black; /* Default color for non-current pages */
    font-weight: normal;
}

nav a.active {
    color: #032c6e; /* Color for the current page */
    font-weight: bold;
    background-color: #fff;
}

nav a:hover {
    text-decoration: underline;
    color: #032c6e; /* Hover color */
}

.container {
    display: flex;
    align-items: center;
    width: 80%;
    padding-left: 150px;
    padding-right: 100px;
}
.logo-hsm {
    flex: 1;
    text-align: center;
    position: relative;
}

.logo-hsm::after {
    content: '';
    position: absolute;
    top: -10px;
    right: 20px;
    bottom: -10px;
    width: 1px;
    background-color: #ccc;
}

.logo-hsm img {
    width: 550px;
    height: auto;
}

.content {
    flex: 2;
    padding-left: 70px;
    text-align: justify;
}

.content p {
    font-size: 17px;
    line-height: 1.6;
    margin: 10px 0;
}



/** images and quotes part **/
.container-section-2 {
    display: flex;
    justify-content: space-between; /* Ensures space between the two containers */
    gap: 10px; /* Optional: Adds some space between the two containers */
    background-color: #ececec;
}

.left-container {
    flex: 1; /* Takes up equal space */
    display: flex; /* Ensures the image aligns properly */
    justify-content: center; /* Centers the image horizontally */
    align-items: center; /* Centers the image vertically */
    padding: 5px; /* Adds some padding around the image */
    margin-top: -7%;
    padding-left: 10%;
}

.left-container img {
    max-width: 100%; /* Ensures the image doesn’t exceed the container width */
    height: auto; /* Maintains the image's aspect ratio */
    border-radius: 5px; /* Optional: Adds rounded corners */
}

.right-container {
    flex: 1; /* Takes up equal space */
    padding: 20px;
    text-align: justify;
    font-size: 25px;
    line-height: 1.8;
    font-style: italic;
    color: #333;
    padding-right: 170px;
    margin-top: 5%;
}

/**image section**/
.container-section-3 {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #032c6e;
    padding: 20px;
}

.image-gallery {
    display: flex;
    gap: 35px; /* Space between images */
}

.image-item img {
    width: auto;
    height: 250px;
    border-radius: 0px; /* Adds rounded corners */
    object-fit: cover; /* Ensures images are properly cropped */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); /* Adds a subtle shadow */
}


/** methodology section **/

.container-section-4 {
    position: relative;
    width: 95%;
    height: 400px;
    display: flex;
    flex-direction: row; /* Ensures proper horizontal alignment */
    justify-content: flex-start; /* Spreads out content */
    align-items: flex-start; /* Aligns content at the top */
    margin: 20px auto;
    padding: 10px;
}

.image-section-4 {
    width: 40%; /* Adjust width as needed */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 50px;
}
.image-section-4 img {
    width: 100%;
    height: auto; /* Maintains aspect ratio */
    object-fit: contain;
}

.text-section-4 {
    width: 45%; /* Ensures enough space for text */
    font-size: 15px;
    font-weight: normal;
    line-height: 1.6;
    color: #333; /* Neutral color for readability */
    padding: 20px 30px;
    background-color: #f9f9f9; /* Light background color */
    border-radius: 10px; /* Rounded corners for a polished look */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Adds subtle shadow for depth */
    margin-top: 45px;
}

.text-section-4 .checklist {
    display: flex;
    align-items: center;
    margin-top: -15px;
    font-size: 18px;
}
.text-section-4 .checklist i {
    color: #318e34;
    margin-right: 20px;

}

/** core pillars section **/
.container-section-5 {
    position: relative;
    width: 95%;
    height: 400px;
    display: flex;
    flex-direction: row; /* Ensures proper horizontal alignment */
    justify-content: flex-start; /* Spreads out content */
    align-items: flex-start; /* Aligns content at the top */
    margin: 20px auto;
    padding: 10px;
    margin-bottom: -90px;
}

.image-section-5 {
    width: 50%; /* Adjust width as needed */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    margin-top: -185px;
}
.image-section-5 img {
    width: 100%;
    height: auto; /* Maintains aspect ratio */
    object-fit: contain;
}

.text-section-5 {
    width: 35%; /* Ensures enough space for text */
    font-size: 15px;
    font-weight: normal;
    line-height: 1.6;
    color: #333; /* Neutral color for readability */
    padding: 0px 80px;
    margin-left: 125px;
    margin-top: -10px;
    background-color: #f9f9f9; /* Light background color */
    border-radius: 10px; /* Rounded corners for a polished look */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Adds subtle shadow for depth */
}

.text-section-5 .checklist {
    display: flex;
    align-items: center;
    margin-top: -15px;
    font-size: 18px;
    
}
.text-section-5 .checklist i {
    color: #318e34;
    margin-right: 20px;
}

/* Initial state: elements are invisible and positioned off-screen */
.container-section-4,
.container-section-5 {
    opacity: 0;
    transform: translateX(-50px); /* Start off-screen (from the left) */
    transition: opacity 1s ease-out, transform 2s ease-out;
}

/* When the elements come into view, make them visible */
.container-section-4.in-view,
.container-section-5.in-view {
    opacity: 1;
    transform: translateX(0); /* Reset position to original */
}

/* Additional styles for right-side animation */
.container-section-5 {
    transform: translateX(50px); /* Start off-screen (from the right) */
}

/* slider section*/

.mySlides {
    display: none
}

img {
    vertical-align: center;
}

/* Slideshow container */
.slideshow-container {
    max-width: 1000px;
    position: relative;
    margin: 20px auto;
    margin-top: -65px;
    border-radius: 10px; /* Optional: rounded corners */
    padding: 10px;
}
  
  /* Next & previous buttons */
  .prev, .next {
    cursor: pointer;
    position: absolute;
    top: 35%;
    width: auto;
    padding: 10px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.5);
    user-select: none;
    z-index: 10;
    
}
  
  .prev {
    left: 10px;
}
  
  .next {
    right: 10px;
}
  
  /* On hover, add a black background color with a little bit see-through */
  .prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}
  
  /* Caption text */
  .text {
    color: #f2f2f2;
    font-size: 15px;
    padding: 8px 12px;
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
}
  
  /* Number text (1/3 etc) */
  .numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}
  
  /* The dots/bullets/indicators */
  .dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}
  
  .dots-container {
      text-align: center;
      margin-top: -150px; /* Adjusted to move dots higher */
      position: relative;
      z-index: 10;
}
  
  .active, .dot:hover {
    background-color: #717171;
}
  
  /* Fading animation */
  .fade {
    animation-name: fade;
    animation-duration: 1.5s;
}
  
  @keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}
  
  /* On smaller screens, decrease text size */
  @media only screen and (max-width: 300px) {
    .prev, .next, .text {font-size: 11px}
}

  /* Set the initial state of the section (hidden) */
.section {
    opacity: 0;
    transform: translateY(50px); /* Slide up effect */
    transition: opacity 1s ease, transform 1s ease; /* Smooth transition */
}

/* When the section is in view */
.section.in-view {
    opacity: 1;
    transform: translateY(0); /* Reset position */
} 

.title {
    margin: 20px 0;
    font-size: 24px;
    font-weight: bold;
}
.line-divider {
    border-top: 3px solid #ccc;
    margin: 0 20px;
}


.line-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 768px) { 
    nav {
        padding-top: 10px;
        padding-left: 5px; /* Align breadcrumb closer to the left */
        font-size: 14px; /* Adjust for smaller screens */
        margin-bottom: 10px;
    }

    .container {
        flex-direction: column; /* Stack logo and content vertically */
        align-items: center; /* Center align items */
        width: 100%; /* Full width for small screens */
        padding-left: 0;
        padding-right: 0; /* Stack elements vertically */
    }

    .logo-hsm {
        margin-bottom: 20px; /* Add spacing between logo and content */
        text-align: center;
    }

    .logo-hsm img {
        width: 70%; /* Adjust size for smaller screens */
        height: auto;
        
    }

    .logo-hsm::after {
        content: '';
        position: absolute;
        top: 100%; /* Move the line below the logo */
        left: 0;  /* Align the line with the left edge of the container */
        width: 100%; /* Set the line width to span the whole container */
        height: 1px;
        background-color: #ccc;
    }

    .content {
        width: 85%; /* Adjust width for better fit */
        padding-left: 0;
        padding-right: 0;
        text-align: justify;
    }

    .right-container {
        padding: 10px; /* Reduce padding for smaller screens */
        text-align: center; /* Center-align the text for better readability */
        font-size: 18px; /* Adjust font size for smaller screens */
        line-height: 1.6; /* Slightly tighter line spacing */
        padding-right: 10px; /* Minimize right padding */
        margin-top: 10px; /* Reduce top margin */
    }

    .container-section-2,
    .container-section-4,
    .container-section-5 {
        flex-direction: column; /* Stack elements vertically */
        align-items: center; /* Center align items */
    }

    .container-section-3 {
        flex-direction: column; /* Stack images vertically */
        padding: 10px; /* Reduce padding for smaller screens */
        gap: 15px; /* Add some space between items */
    }

    .image-gallery {
        flex-direction: column; /* Stack images vertically */
        gap: 15px; /* Adjust spacing between images */
        align-items: center; /* Center align images */
    }

    .image-item img {
        width: 96%; /* Adjust width to fit within the viewport */
        height: auto; /* Maintain aspect ratio */
        object-fit: contain; /* Ensure the full image is visible */
        box-shadow: none; /* Optional: Remove shadow for simpler design */
    }

    .image-section-4 {
        width: 100%;
        justify-content: center;
    }

    .image-section-5{
        width: 100%; /* Take full width on smaller screens */
        margin-right: 0; /* Remove horizontal margin */
        margin-top: -0%; /* Reset top margin */
        justify-content: center;
    }

    .image-section-4 img,
    .image-section-5 img {
        width: 80%; /* Scale down images */
        margin-bottom: 20px; /* Add spacing */
    }

    .text-section-4,
    .text-section-5 {
        width: 90%;
        margin: -20px auto;
        padding: 20px;
    }
    
    .overlay-text-h1 h1 {
        font-size: 50px;
        margin: 0;
    }
    
    .overlay-text p {
        margin: 0; /* Removes extra spacing */
        font-size: 10px; /* Adjust as needed */
    }

    /* Slideshow */
    .slideshow-container {
        max-width: 100%; /* Full width */
        margin: 0 auto; /* Center the slideshow */
    }

    .dots-container {
        margin-top: 0; /* Adjust margin for better alignment */
    }
}

@media (max-width: 480px) { 
    nav {
        font-size: 12px;
        text-align: center;
    }

    .logo-hsm img {
        width: 200px; /* Smaller logo */
    }

    .container {
        flex-direction: column;
        padding: 0 5px;
    }

    .text-section-4,
    .text-section-5 {
        font-size: 12px;
        padding: 10px;
    }

    .slideshow-container {
        margin: 10px auto;
    }

    .overlay-text-h1 h1 {
        font-size: 24px;
    }

    .overlay-text {
        font-size: 14px;
        left: 5%;
    }

    .dots-container {
        margin-top: -30px;
    }
}

@media (max-width: 1024px) { 
    nav {
        padding-top: 15px;
        padding-left: 10px; /* Adjust padding to align breadcrumb closer to the left */
        font-size: 16px; /* Adjust font size for medium-sized screens */
        margin-bottom: 20px;
    }

    .container {
        flex-direction: column; /* Stack logo and content vertically */
        align-items: center; /* Center align items */
        width: 100%; /* Full width for medium screens */
        padding: 0 15px; /* Add slight padding */
    }

    .logo-hsm {
        margin-bottom: 30px; /* Add spacing between logo and content */
        text-align: center;
    }

    .logo-hsm img {
        width: 75%; /* Adjust size for medium screens */
        height: auto;
    }

    .logo-hsm::after {
        content: '';
        position: absolute;
        top: 80%; /* Move the line below the logo */
        left: 0;
        width: 96%;
        height: 1px;
        background-color: #ccc;
    }

    .content {
        width: 90%; /* Adjust width for better fit */
        margin: 0 auto; /* Center content */
        text-align: justify;
        margin-top: -10%;
        margin-right: 30%;
    }

    .right-container {
        padding: 15px; /* Adjust padding for better fit */
        text-align: center;
        font-size: 18px; /* Adjust font size */
        line-height: 1.8; /* Improve readability */
        margin-top: 10px;
    }

    .left-container {
        flex: 1; /* Takes up equal space */
        display: flex; /* Ensures the image aligns properly */
        justify-content: center; /* Centers the image horizontally */
        align-items: center; /* Centers the image vertically */
        padding: 5px; /* Adds some padding around the image */
        margin-top: -7%;
        padding-left: -10%;
    }

    .left-container img {
        max-width: 50%; /* Ensures the image doesn’t exceed the container width */
        height: auto; /* Maintains the image's aspect ratio */
        border-radius: 5px; /* Optional: Adds rounded corners */
    }

    .container-section-2 {
        flex-direction: column; /* Stack elements vertically */
        align-items: center;
    }

    .container-section-3 {
        flex-direction: column; /* Stack images vertically */
        padding: 20px; /* Add padding */
        gap: 20px; /* Add space between items */
    }

    .image-gallery {
        flex-direction: column; 
        gap: 20px;
        align-items: center; 
    }

    .image-item img {
        width: 100%; /* Adjust width for medium screens */
        height: auto;
        object-fit: contain;
        align-items: center;
    }

    .container-section-4,
    .container-section-5 {
        flex-direction: column; /* Stack elements vertically */
        align-items: center; /* Center-align content */
        margin: 20px auto;
        width: 90%; /* Reduce width */
        height: auto;
    }

    .image-section-4,
    .image-section-5 {
        width: 80%; /* Adjust width for smaller screens */
        margin: 10px 0; /* Remove margins */
    }

    .image-section-4 img,
    .image-section-5 img {
        width: 100%; /* Ensure images fit within the container */
        height: auto;
    }

    .text-section-4,
    .text-section-5 {
        width: 80%; /* Reduce text section width */
        padding: 15px 20px; /* Reduce padding */
        margin-left: 0; /* Center-align text section */
        margin-top: 20px;
    }

    .text-section-4 .checklist,
    .text-section-5 .checklist {
        font-size: 16px; /* Adjust checklist font size */
    }

    .text-section-4 .checklist i,
    .text-section-5 .checklist i {
        margin-right: 15px; /* Reduce space between icon and text */
    }

    .text-section-4 {
        margin-top: 20px; /* Adjust margin for better spacing */
    }

    .text-section-5 {
        margin-top: 20px;
    }
    
    .overlay-text-h1 h1 {
        font-size: 40px; /* Adjust title size */
    }

    .overlay-text p {
        font-size: 14px;
        margin: 0;
    }

    .slideshow-container {
        max-width: 100%;
        margin: 0 auto;
    }

    .dots-container {
        margin-top: 20px;
    }
}