body {
    font-family: "Raleway", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    color: #272727;
    background-color: #f4f4f4;
    padding-top: 70px;
    box-sizing: border-box;
}

.container-main {
    max-width: 1400px;
    margin: auto;
    padding: 1rem;
}
.em-black {
    color: #000000;
}


/* NAVBAR */
.em-navbar-wrap .navbar {
    transition: padding-top 0.3s ease, padding-bottom 0.3s ease; /* Smooth transitions for padding */
    position: fixed;
    width: 100%;
    z-index: 1030;
}

/* Default state of the navbar */
.em-navbar-wrap .navbar {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Transition for navbar logo size */
.em-brand img {
    transition: max-height 0.3s ease; /* Smooth transition for logo size */
    max-height: 80px; /* Set a max-height for the logo */
    margin-top: 8px;
}

/* Nav link styles and transitions */
.em-navbar-wrap .navbar .navbar-nav .nav-link {
    transition: color 0.3s ease; /* Smooth transition for color change */
    text-transform: uppercase;
    letter-spacing: 0.085em;
    font-size: 1rem;
    color: #FFFFFF;
}

/* Hover and active state for nav links */
.em-navbar-wrap .navbar .navbar-nav .nav-item:hover .nav-link,
.em-navbar-wrap .navbar .navbar-nav .nav-item.active .nav-link {
    color: #999999;
    box-shadow: inset 0 -4px 0 0 #2c66a0;
}

/* navbar changes when scrolled */
.em-navbar-wrap .navbar.scrolled {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Smaller logo when scrolled */
.em-brand img.scrolled-logo {
    max-height: 40px;
}

/* Adjust padding for nav links when scrolled */
.navbar.scrolled .nav-link {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}


/* navbar dropdown menu */
.em-navbar-wrap .navbar .navbar-nav .dropdown-menu {
    background-color: #212529;  /* Dark background to match the navbar */
    border: none;               /* No border for a cleaner look */
}
.em-navbar-wrap .navbar .navbar-nav .dropdown-menu .dropdown-item {
    color: #f8f9fa;  
}
.em-navbar-wrap .navbar .navbar-nav .dropdown-menu .dropdown-item:hover,
.em-navbar-wrap .navbar .navbar-nav .dropdown-menu .dropdown-item:focus {
    background-color: #495057;  /* Slightly lighter background on hover/focus */
    color: #ffffff;             
}
.em-navbar-wrap .navbar .navbar-nav .dropdown-menu .dropdown-item:active {
    background-color: #2c66a0;  /* Highlights color for active state */
    color: #ffffff;             
}

/* navbar hamburger menu */
.navbar-toggler {
    outline: none !important;
    border: none !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #2c66a0;
}
.navbar-toggler:focus, .navbar-toggler:active, .navbar-toggler.active {
    outline: none;
    border: none !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    background-color: #999999;
}
.navbar-toggler:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) inset; /* "Pressed in" look */
    background-color: #999999;
}

/****************************************************************************************/

/* HERO IMAGE */
.hero-section {
    position: relative;
    height: 50vh;  /* Control the height of the hero section */
    overflow: hidden;
}
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area without distorting the image */
    object-position: center; /* Align the center of the image to the center of the container */
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    display: flex;
    justify-content: center;
    align-items: center;
    text-shadow: 0px 0px 10px #000;
}

/****************************************************************************************/

/* LEARN BOXES */
.learn-boxes {
    margin-top: auto;
    padding: 20px 0;
    color: #000;
    overflow: hidden;
}

.learn-box {
    display: flex;
    flex-direction: column;
    background-color: #FFF;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    flex-grow: 1;
    overflow: hidden;
}

.img-fluid {
    width: 100%;
    object-fit: cover;
}

.box-content {
    padding: 15px;
    text-align: center;
    background: #ffffff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.learn-box h2 {
    margin-bottom: 10px;
    color: #333;
}

.learn-box button {
    padding: 8px 16px;
    font-size: 16px;
    border-radius: 4px;
    background-color: #333333;
    color: white;
    border: none;
}

.learn-box button:hover {
    background-color: #000;
}

/****************************************************************************************/

/* FOOTER */
.container-main {
    max-width: 1400px;
    margin: auto; /* Centers the container */
    padding: 1rem; /* Padding for top and bottom */
}
footer {
    background-color: #000; 
    color: #fff;
    padding: 1rem 0; 
}
footer .navbar-brand img {
    max-height: 50px; 
}
footer h5 {
    font-size: 0.9rem; 
}
footer ul li a,
footer ul li p {
    font-size: 0.8rem; 
    color: #fff; 
    text-decoration: none; 
}
footer ul li a:hover,
footer ul li a:focus {
    color: #999999; 
    text-decoration: none; 
}
footer address,
footer p {
    font-size: 0.8rem; 
}
footer .footer-copyright {
    font-size: 0.8rem; 
    padding: 0.5rem 0; 
    text-align: center;
}

/****************************************************************************************/

/* MEDIA QUERIES */
@media (max-width: 992px) {
    .navbar-nav .nav-link {
        padding-top: 30px;
        padding-bottom: 10px;
        height: auto;
    }
}
@media (min-width: 1400px) {
    .container-max {
    max-width: 1600px; 
    }
}
@media (min-width: 1400px) {
    .em-navbar-wrap .navbar-brand {
    padding-right: 2rem; 
    }
    .em-navbar-wrap .navbar .navbar-nav {
    padding-left: 2rem; 
    }
}