/* General Styling */
body {
   font-family: 'Montserrat', sans-serif; /* Default font for everything */
   margin: 0;
   padding: 0;
   background-color: #293759;
   color: #333; /* Default text color */
}

/* Ensure all common elements use the same font */
h1, h2, h3, h4, h5, h6, p, a, li, span, input, textarea, button {
   font-family: 'Montserrat', sans-serif !important; /* Enforce Montserrat globally */
   font-weight: 400; /* Default font-weight */
}

/* Apply background image to every page except the home */
body:not(.home-page)::before {
   content: '';
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-image: url('background-image.jpg'); /* Same image as the home page */
   background-size: 100%; /* Zoom the image out (increase to show more of the image) */
   background-repeat: no-repeat; /* Prevents the image from repeating */
   background-attachment: fixed; /* Keeps the image fixed while scrolling */
   background-position: center 39.5%; /* Adjust the position slightly */
   filter: brightness(0.7); /* Darken the background image */
   z-index: -1; /* Make sure the background stays behind all content */
   pointer-events: none; /* Prevent the pseudo-element from interfering with interaction */
}

/* No background image or filter on the home page */
body.home-page {
   background: none; /* No background image for the home page */
   filter: none; /* No filter on the home page */
}

/* Blog Section */
#blog {
   max-width: 1200px;
   margin: 0 auto;
   padding: 20px;
   text-align: left;
}

/* Blog Section Main Title (for the entire section) */
#blog h2 {
   font-size: 2.5rem; /* Large size for the Blog section title */
   color: #f3f5f8; /* White or light blue color for the Blog section title */
   margin-bottom: 20px; /* Space below the section title */
}

/* Blog post boxes: For individual articles */
.blog-post {
    display: block; /* Ensure blog posts are block elements */
    padding: 5px 10px; /* Compact padding for individual posts */
    background-color: rgba(244, 244, 244, 0.8); /* Semi-transparent background */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1); /* Light shadow */
    margin-bottom: 10px; /* Space between blog posts */
    text-align: left;
    width: 100%; /* Ensure the blog post takes the full width */
    box-sizing: border-box; /* Include padding in the element's width */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

/* Blog post title (for individual posts, separate from the section title) */
.blog-post h3 {
    font-size: 1.5rem; /* Smaller font for individual blog post titles */
    margin: 10px 0; /* Equal margin above and below the title */
    color: #293759; /* Blue color for individual blog post titles */
}

/* Blog post metadata (e.g., date) */
.blog-post p {
    font-size: 1rem; /* Smaller font for post metadata */
    color: #666; /* Lighter color for metadata */
    margin: 10px 0; /* Equal margin above and below the paragraph */
}

/* Move the blog post box when hovered */
.blog-post:hover {
   transform: translateY(-5px); /* Moves the box slightly upward when hovered */
   box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Adjust the shadow for a more prominent effect on hover */
}


/* Ensure other sections (like About, Contact) have transparent backgrounds */
section {
   min-height: 100vh; /* Ensure the sections cover the full viewport height */
   background: transparent; /* Inherit the background from the body */
   display: flex;
   justify-content: center;
   align-items: center;
   text-align: center;
   position: relative;
}

/* Global Heading Styling */
h1, h2, h3 {
   font-weight: 700;
   color: #293759; /* Set a consistent blue color for all headings */
}

/* Global Paragraph and List Item Styling */
p, a, li {
   font-weight: 400;
   color: #333; /* Ensure general text is set to a dark color */
}

a {
   text-decoration: none;
   color: inherit; /* Ensure links inherit the surrounding text color */
}

/* Specific Heading Color for "Get in Touch with Us" in Contact Section */
#contact h1, 
#contact h2, 
#contact h3 {
    color: #fafafa; /* Set a specific color for the heading in the contact section */
}
/* Specific heading color for the About page */
#about h1, 
#about h2, 
#about h3 {
    color: white; /* Set the "About" heading to white */
}
/* Make About Us, Get in Touch, and Blog titles the same size */
#about h2,
#contact h2,
#blog h2 {
    font-size: 2.5rem; /* Same size for About Us, Get in Touch, and Blog titles */
    color: #f8f8f8; /* white color for the titles */
    text-align: center; /* Center the titles */
    margin-bottom: 20px; /* Space below the titles */
}

   /* Sticky Navigation Bar */
#navbar {
   background-color: #293759;
   padding: 1rem;
   text-align: center;
   position: sticky; /* This makes the navbar sticky */
   top: 0; /* Sticks it to the top of the viewport */
   width: 100%; /* Ensures it stretches across the full width */
   z-index: 1000; /* Makes sure the navbar stays on top of other elements */
   box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Optional: adds a slight shadow */
}


#navbar ul {
   list-style-type: none;
   margin: 0;
   padding: 0;
}

#navbar ul li {
   display: inline;
   margin: 0 15px;
}

#navbar ul li a {
   color: white;
   text-decoration: none;
   font-size: 1.2rem;
   font-family: 'Montserrat', sans-serif;
   transition: color 0.3s ease;
}

#navbar ul li a:hover {
   color: #4d66a6;
}

/* Hero Section */
#hero {
   height: 101vh;
   background: url('background-image.jpg') no-repeat center center/cover;
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   text-align: center;
   padding: 60px;
   position: relative;
   opacity: 0;
   animation: fadeInHero 2s forwards;
   filter: brightness(1.4); /* Make the background image brighter (increase value to brighten more) */
}

#hero::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-color: rgba(0, 0, 0, 0.5);
   z-index: 1;
}

.hero-content {
   position: relative;
   z-index: 2;
}

.hero-content h1 {
   font-size: 5rem;
   font-weight: 800;
   color: white; /* White text for hero section heading */
   margin-bottom: 20px;
   opacity: 0;
   animation: fadeInText 3s forwards 1s;
}

.hero-content p {
   font-size: 2rem;
   color: white; /* White text for hero section paragraph */
   margin-bottom: 40px;
   opacity: 0;
   animation: fadeInText 3s forwards 2s;
}

@keyframes fadeInHero {
   to {
       opacity: 1;
   }
}

@keyframes fadeInText {
   to {
       opacity: 1;
   }
}

/* About Section */
#about {
   padding: 40px;
   max-width: 800px;
   margin: 0 auto;
   text-align: center;
}

.about-box {
      padding: 20px;
      background-color: rgba(244, 244, 244, 0.722); /* Semi-transparent background */
      border-radius: 8px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Light shadow for readability */
      margin-top: 20px;
      text-align: left;
   }

.about-box p {
   font-size: 1.2rem;
   line-height: 1.5;
   color: #293759; /* Blue text for paragraphs in the about section */
   margin-bottom: 15px;
}

.about-box p strong {
   font-size: 1.4rem;
   display: block;
   margin-bottom: 10px;
}

/* Contact Section */
#contact {
   text-align: center;
   padding: 40px;
   color: #fffdfd;
}

.form-row {
   display: flex;
   justify-content: space-between;
   margin-bottom: 15px;
}

.form-group {
   flex: 1;
   margin-right: 15px;
}

.form-group:last-child {
   margin-right: 10px;
}

/* Increase font size for form input fields and textarea */
input[type="text"],
input[type="email"],
textarea {
   width: 100%;
   padding: 20px 5px;
   border: 1px solid #293759;
   border-radius: 5px;
   font-size: 1rem !important; /* Ensure the font size applies */
   margin-bottom: -5px;
   background-color: rgba(244, 244, 244, 0.722); /* Semi-transparent background */
}

textarea {
   resize: none;
   height: 50px;
}

button {
   padding: 10px 20px;
   background-color: rgba(244, 244, 244, 0.722); /* Semi-transparent background */
   color: #293759; 
   border: none;
   border-radius: 5px;
   cursor: pointer;
   margin-bottom: 55px; /* Reduce the margin to bring it closer to the form fields */
   font-weight: 700; /* This makes the text bolder */
}

button:hover {
   background-color: #555;
}

/* Contact Details Box */
#contact-details {
   margin: 20px auto;
   padding: 0px;
   background-color: rgba(244, 244, 244, 0.722); /* Semi-transparent background */
   border: 1px solid #ccc;
   border-radius: 8px;
   max-width: 400px;
   box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Light shadow for readability */
   text-align: center;
   margin-top: 150px;
   font-weight: 700; /* This makes the text bolder */
}

/* "Our Contact Details" Heading (Blue) */
#contact-details h3 {
   font-size: 1.5rem;
   margin-top: 7px;
   margin-bottom: 20px;
   color: #293759 !important; /* Blue color for "Our Contact Details" */
}

/* Contact Details Paragraphs (Blue) */
#contact-details p {
   font-size: 1.2rem;
   margin: 8px 0;
   color: #293759; /* Blue text for contact details */
}
html {
   scroll-behavior: smooth;
}

section {
   padding: 100px 0; /* Ensures there's space between sections */
   min-height: 100vh; /* Each section takes full viewport height */
}

#navbar ul li a {
   cursor: pointer;
}

/* Ensure sections have full visibility when scrolling */
#hero, #about, #blog, #contact {
   display: block; /* Ensure sections are visible */
}
/* Footer Styling */
#site-footer {
   background-color: #293759; /* Footer background color */
   padding: 20px 0; /* Padding for top and bottom */
   text-align: center; /* Center align the text */
   position: relative; /* Keep the footer at the bottom of the content */
   color: white; /* Text color */
   font-size: 1rem; /* Adjust font size */
   font-weight: 500; /* Medium font weight */
   margin-top: 100px; /* Add space above the footer */
}

#site-footer p {
   margin: 0; /* Remove any default margin */
   color: white; /* Ensure the text is white */
}
