<style>

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
}

// <weight>: Use a value from 200 to 1000
// <uniquifier>: Use a unique and descriptive class name

.nunito-<uniquifier> {
  font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}


/* Font setup */
body, p {
  font-family: "Nunito", sans-serif;
  font-weight: 300;
  font-style: normal;
    margin: 0;
    padding: 0;
}

h3, h4, h5, h6 {
  font-family: "Nunito", sans-serif;
  font-weight: 500;
  font-style: normal;
    margin: 0;
    padding: 0;
}


h1, h2 {
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-style: normal;
    margin: 0;
    padding: 0;
}  
  
.nav-link {
    font-weight: bold;
    font-size: 1rem; /* Base size for medium screens */
}

.w3-bar .nav-link {
    font-weight: bold;
}

/* Header styles */
h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
}

h2 {
    font-size: 2.2rem;
    font-weight: 700;
}

h3 {
    font-size: 1.7rem;
    font-weight: 600;
}

h4 {
    font-size: 1.4rem;
    font-weight: 500;
}

/* Paragraph text */
p, a, ul, li  {
    font-size: 1.2rem;
    line-height: 1.6;
}


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

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    p, a, ul, li {
        font-size: 1rem;
    }
}
  
.footer {
    background-color: #000; 
    width: 100%;
    padding: 30px; 
    margin: 0; 
    text-align: center; 
}

.custom-container {
            display: flex;
            flex-wrap: wrap;
            gap: 16px;
        }

.w3-row-padding {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.w3-third {
  flex: 1 1 calc(33.333% - 16px);
}

.w3-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%; /* Set a fixed height for all cards */
}
.w3-card img {
  width: 100%;
  object-fit: cover; /* Ensures images cover the available space without stretching */
  height: auto;
}

.w3-card p {
  padding: 15px;
  margin: 0;
  flex: 1; /* Allow the paragraph to take the remaining space */
}

.w3-card h3 {
  text-align: center;
  margin: 0;
  height: 3em; /* Adjust the height as needed */
  overflow: hidden;
}

/* Default link styles */
a:link,
a:visited {
  text-decoration: underline;
  color: inherit; /* Inherit color from parent */
}

a:hover,
a:active {
  text-decoration: underline;
  color: #9e003a;
}


.custom-hover-link {
        color: white; /* Ensure the link is white initially */
        text-decoration: underline; /* Remove underline */
    }

.custom-hover-link:hover {
        color: black; /* Change to black on hover */
        text-decoration: underline; /* Remove underline on hover */
    }


/* Special link styles */
a.special-link:link,
a.special-link:visited {
  text-decoration: none;
  color: #fff; /* Your desired color for special links */
}

a.special-link:hover,
a.special-link:active {
  text-decoration: underline;
  color: #9e003a; /* Inherit color from parent */
}

/* Nav link styles */
a.nav-link:link,
a.nav-link:visited {
  text-decoration: none;
  color: #000; /* Your desired color for special links */
}

a.nav-link:hover,
a.nav-link:active {
  text-decoration: none;
  color: #000; /* Inherit color from parent */
}

.welcome-text {
    padding: 0 55px; /* Default padding for larger screens */
    text-align: left; /* Justify the text */
    font-size: 1.3rem;
    font-weight: 500;

}

        #demo {
            color: black;
        }

        #demo .nav-link {
            color: black; /* Ensure all links have black text */
        }

        #demo .nav-link:hover {
            color: darkgray; /* Optional: Change color on hover for better UX */
        }

        .container {
            position: relative;
            max-width: 4000px;
            margin: auto;
        }
        
        
        .container img {
            width: 100%;
            display: block;
        }
        
        .overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.3); /* Darken the background */
        }


        .overlay-text {
            position: absolute;
            top: 50%;
            left: 20px;
            transform: translateY(-50%);
            text-align: left;
            color: white;
            max-width: 90%; /* Ensure text stays within the image boundaries */
        }

        .overlay-text h1 {
            animation: zoom 1s;
        }

        @keyframes zoom {
            from {transform: scale(0.1);}
            to {transform: scale(1);}
        }

        .overlay-text h2 a {
            text-decoration: none;
            color: white;
        }

        .overlay-text a img {
            width: 25%;
        }

        .overlay-text a img:hover {
            filter: brightness(0.8);
        }
        
        
        
        
.w3-bar {
    height: 60px; /* Adjust height as needed */
}

.w3-bar .w3-bar-item {
    padding-top: 15px;
    padding-bottom: 15px; /* Adjust padding as needed to vertically center text */
    height: 100%; /* Ensure full height for bar items */
}



@media screen and (max-width: 1100px) {
    .welcome-text {
        padding: 0 20px; /* Adjusted padding for smaller screens */
        text-align: justify; /* Justify the text */

    }

@media screen and (max-width: 768px) {
  .w3-row-padding {
    flex-wrap: wrap;
  }

  .w3-third {
    flex: 1 1 100%; /* Set the width to 100% for each card on smaller screens */
  }
}

    @media screen and (max-width: 800px) {
            .overlay {
                background: rgba(0, 0, 0, 0.5); /* Darker background for better readability */
            }

            .overlay-text {
                left: 10px;
                right: 10px;
                max-width: 100%;
                text-align: left; /* Center align text for smaller screens */
                transform: translateY(-50%);
                padding-left: 20px; /* Adjusted padding for smaller screens */
              
            }

            .overlay-text a img {
                width: 30%;
            }

            .overlay-text h2, .overlay-text h1 {
                font-size: smaller; /* Adjust font size for better fit */
            }
        }

</style>