body {
    width: 100%;
    margin: auto;
    background-color: #000000;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    font-family: Arial, sans-serif;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

header, footer {
    padding: 2%;
    margin: 2%;
    border: 1.5px solid aqua;
    border-radius: 10px;
    background-color: #f1eeea;
}

header {
    background-image: url('images/Banner.jpg');
    background-size: cover;
    background-position: center;
    text-align: center; /* Center text in the header */
}

footer {
    text-align: center;
    text-decoration-color: white;
    background-image: url('images/Banner.jpg');
    background-size: cover;
    background-position: center;
    color: white;
}

section {
    padding: 2%;
    margin: 2% auto;
    border: 2px solid rgb(150, 84, 255);
    border-radius: 10px;
    background-color: #f1eeea;
    max-width: 70%;
    text-align: left; /* Ensure text is aligned to the left */
}

h1, h2, h3 {
    text-align: center;
    color: Steelblue;
    text-decoration: underline;
}

p {
    text-align: justify; /* Ensure text is fully justified */
    font-size: 1em; /* Adjust font size */
}

address {
    text-align: center;
    font-style: normal;
    margin-top: 10px;
}

nav {
    background-color: rgba(8, 8, 8, 0.5);
    border-radius: 20px;
    padding: 1%;
    margin-top: 1%;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
}

nav ul {
    list-style-type: none;
    padding: 0;
    text-align: center;
}

nav ul li {
    display: inline;
}

nav ul li a {
    text-decoration: none;
    color: white;
    padding: 5px 10px;
    transition: background-color 0.3s, color 0.3s; /* CSS3 Transition */
}

nav ul li a:hover {
    background-color: rgba(95, 196, 255, 0.897); /* Light blue with slight opacity */
    color: #000; /* Black text for contrast */
    border-radius: 10px; /* Rounded edges */
    padding: 5px 15px; /* Adjust padding for better spacing */
    transition: background-color 0.3s, color 0.3s; /* Smooth transition for hover effects */
}

nav ul li a.selected {
    background-color: rgba(173, 216, 230, 0.65); /* Light blue with slight opacity */
    color: #000; /* Black text for contrast */
    border-radius: 10px; /* Rounded edges */
    padding: 5px 15px; /* Adjust padding for better spacing */
    transition: background-color 0.3s, color 0.3s; /* Smooth transition for hover effects */
}

/* Styles specifically for the newsletter boxes on the index page */
.newsletter-box {
    text-align: left; /* Aligns text to the left */
    border: 2px solid #ccc; /* Optional: Add a border */
    padding: 15px; /* Optional: Add padding */
    border-radius: 5px; /* Optional: Add rounded corners */
    background-color: #f9f9f9; /* Optional: Add a light background color */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: Add a subtle shadow */
}

.box {
    border: 2px solid blue;
    padding: 10px;
    margin: 10px 0;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3); /* CSS3 Box Shadow */
    transition: transform 0.3s; /* CSS3 Transition */
}

.box:hover {
    transform: scale(1.05); /* CSS3 Transform */
}

.newsletter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.newsletter-grid .box {
    display: flex;
    flex-direction: column;
}

.newsletter-grid .details {
    display: none;
}

/* Ensure text alignment for <p> tags inside newsletter-box */
.newsletter-box .summary,
.newsletter-box .details {
    text-align: left; /* Align text to the left */
}

.certifications-images {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.job-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.job {
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    background-color: #fff;
}

@media only screen and (max-width: 720px) {
    .newsletter-grid {
        grid-template-columns: 1fr; /* Stack columns vertically on smaller screens */
    }
    .job-grid {
        grid-template-columns: 1fr; /* Stack columns vertically on smaller screens */
    }
    body {
        font-size: 1.2em; /* Increase font size for mobile */
    }
    header, footer, section {
        max-width: 100%; /* Ensure banner and sections are full width on mobile */
    }
}

blockquote {
    text-align: justify;
    margin: 20px;
    padding: 10px;
    border-left: 5px solid #ccc;
}

blockquote::first-letter {
    font-size: 2em;
    font-weight: bold;
}

@media only screen and (min-width: 720px) {
    nav ul li a {
        display: inline;
    }
}

@media only screen and (min-width: 1000px) {
    body {
        max-width: 1000px;
    }
}

.wrapper {
    background-image: url('images/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-color: white;
    border: 2px solid white;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.major {
    font-size: 1.2em;
    text-align: center;
    color: #dfdfdf;
    margin-top: 10px;
}

.byline {
    font-style: italic;
    color: gray;
}

hr {
    border: 0;
    height: 2px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
}

#infobar {
    background-color: #333;
    color: #fff;
    padding: 10px;
    text-align: center;
    margin-bottom: 20px;
}

.disclaimer-box {
    border: 2px solid red;
    padding: 10px;
    margin: 10px 0;
    background-color: #f8d7da;
    color: #721c24;
    border-radius: 5px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3); /* CSS3 Box Shadow */
}

th {
    text-align: center;
    background-color: #5a2dfc;
    color: white;
    padding: 10px;
    font-size: 1.2em;
    border-bottom: 2px solid blue;
    border-radius: 0%;
}

.required {
    color: red;
    font-weight: bold;
}

.required-field {
    color: red;
    font-weight: bold;
}
/* Table Styles */
table {
    width: 504px;
    border: 2px solid blue;
    margin: auto;
    border-collapse: collapse; /* Ensures no double borders */
    background-color: #f1eeea; /* Matches the site's background color */
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3); /* Adds a subtle shadow */
}

/* Table Header Styles */
th {
    text-align: center;
    background-color: #5a2dfc; /* Purple background */
    color: white;
    padding: 10px;
    font-size: 1.2em;
    border-bottom: 2px solid blue;
    border-radius: 5px 5px 0 0; /* Rounded top corners */
}

/* Table Data Styles */
td {
    padding: 10px;
    font-size: 1em;
    color: #333; /* Dark gray text */
}

/* Right-align labels in the first column */
td:first-child {
    text-align: right;
    font-weight: bold;
    color: #555; /* Slightly lighter gray for labels */
}

/* Input and Textarea Styles */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 95%; /* Ensures inputs fit within the table cell */
    padding: 8px;
    border: 1px solid #ccc; /* Light gray border */
    border-radius: 5px; /* Rounded edges */
    font-size: 1em;
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.1); /* Subtle inner shadow */
    transition: border-color 0.3s, box-shadow 0.3s; /* Smooth transition */
}

/* Input and Textarea Focus Styles */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    border-color: #5a2dfc; /* Purple border on focus */
    box-shadow: 0 0 8px rgba(90, 45, 252, 0.5); /* Purple glow */
    outline: none; /* Removes default outline */
}

/* Button Styles */
button {
    background-color: #5a2dfc; /* Purple background */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px; /* Rounded edges */
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s; /* Smooth hover effects */
}

/* Button Hover Styles */
button:hover {
    background-color: #4a1fcc; /* Darker purple on hover */
    transform: scale(1.05); /* Slightly enlarge on hover */
}

/* Required Field Indicator */
.required {
    color: red;
    font-weight: bold;
}

/* Table Row Alternating Background Colors */
tr:nth-child(even) {
    background-color: #f9f9f9; /* Light gray for even rows */
}

tr:nth-child(odd) {
    background-color: #ffffff; /* White for odd rows */
}
/* Carousel Styles */
#carousel {
    max-width: 80%; /* Restrict the carousel's width */
    margin: 20px auto; /* Center the carousel on the page */
    text-align: center; /* Center-align the text below the image */
    overflow: hidden; /* Prevents any overflow issues */
}

#carousel img {
    max-width: 100%; /* Ensures the image doesn't exceed the container's width */
    height: auto; /* Maintains the aspect ratio */
    display: block; /* Removes inline spacing issues */
    margin: 0 auto; /* Centers the image horizontally */
    object-fit: contain; /* Ensures the image fits within its container */
}

#carousel p {
    margin-top: 10px;
    font-size: 1em;
    color: #333; /* Adjust text color for better readability */
}

#carousel button {
    margin: 10px;
    padding: 10px 20px;
    font-size: 1em;
    background-color: #5a2dfc;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#carousel button:hover {
    background-color: #4a1fcc;
}

@media only screen and (max-width: 600px) {
    #carousel {
        max-width: 100%; /* Allow the carousel to take the full width on small screens */
    }

    #carousel img {
        max-width: 100%; /* Ensure the image scales down */
        height: auto; /* Maintain aspect ratio */
    }

    #carousel p {
        font-size: 0.9em; /* Adjust text size for smaller screens */
    }
}

/* Rollover Image Styles */
#rollover {
    max-width: 100%; /* Ensures the image doesn't exceed the container's width */
    height: auto; /* Maintains the aspect ratio */
    display: block; /* Removes inline spacing issues */
    margin: 20px auto; /* Centers the image horizontally */
    border: 2px solid #ccc; /* Optional: Add a border */
    border-radius: 10px; /* Optional: Add rounded corners */
    transition: transform 0.3s, box-shadow 0.3s; /* Smooth hover effects */
}

#rollover:hover {
    transform: scale(1.05); /* Slightly enlarge the image on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add a subtle shadow on hover */
}
@media only screen and (max-width: 600px) {
    #rollover {
        max-width: 90%; /* Reduce the width slightly for smaller screens */
    }
}

/* Ensure images scale properly */
img {
    max-width: 100%; /* Prevents images from exceeding their container's width */
    height: auto; /* Maintains the aspect ratio */
    display: block; /* Removes inline spacing issues */
    margin: 0 auto; /* Centers the image horizontally */
    object-fit: contain; /* Ensures the image fits within its container */
    overflow: hidden; /* Prevents any overflow issues */
}

video {
    max-width: 640px; /* Fixed width */
    height: 360px; /* Fixed height */
    display: block; /* Removes inline spacing issues */
    margin: 0 auto; /* Centers the video */
    border: 2px solid #ccc; /* Optional: Add a border */
    border-radius: 10px; /* Optional: Add rounded corners */
}