@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* HEADER */

/* General Header Styling */
#header {
    font-family: "Montserrat", sans-serif;
    width: 100%;
    position: relative;
    z-index: 1000;
}

/* Top Bar Styles */
.toolbar-contact {
    display: flex;
    padding: 15px 0;
    background: #00537A;
    justify-content: space-between;
    align-items: center;
}

.toolbar-contact ul {
    display: flex;
    color: white;
    margin: 0 3%;
    padding: 0;
    list-style: none;
    flex-direction: column;
}

.toolbar-contact ul:nth-child(2){
    flex-direction: row;
    align-items: center;
}

.toolbar-contact ul li {
    padding: 0 10px;
}

.toolbar-contact ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.toolbar-contact ul li a i {
    margin-right: 8px;
}

.toolbar-contact ul li a:hover {
    color: #F04846;
}

.toolbar-contact ul li .quote-button {
    padding: 10px 15px;
    border-radius: 4px;
    background-color: #F04846;
    transition: all 0.3s ease;
}

.toolbar-contact ul li .quote-button:hover {
    background-color: #d03836;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Main Menu Area */
.menu-area {
    width: 100%;
    padding: 15px 0;
    background-color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.header-container {
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    padding: 0 15px;
}

.header-row {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    flex: 0 0 auto;
}

.logo-area img {
    width: 230px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo-area a:hover img {
    transform: scale(1.02);
}

/* Desktop Menu Styling */
.menu-responsive {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nav {
    display: flex;
    align-items: center;
}

#primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

#primary-menu li {
    position: relative;
}

#primary-menu a {
    text-transform: uppercase;
    color: #00537A;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    padding: 15px;
    display: block;
    transition: all 0.3s ease;
}

#primary-menu a:hover {
    color: #F04846;
}

#primary-menu li:last-child a {
    background-color: #7AC5F1;
    color: #fff;
    border-radius: 0;
    transition: all 0.3s ease;
}

#primary-menu li:last-child a:hover {
    background-color: #5aa9d6;
    transform: translateY(-2px);
}

/* Dropdown Menu */
.sub-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    padding: 10px 0;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    list-style-type: none;
}

.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    margin: 0;
    width: 100%;
}

.sub-menu a {
    padding: 10px 20px;
    font-size: 14px;
    color: #00537A;
}

.sub-menu a:hover {
    background-color: #f5f5f5;
    padding-left: 25px;
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    background-color: #004168;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background-color: #003b57;
}

/* FOOTER */
.footer-section {
    color: white;
    display: flex;
    justify-content: center;
    padding: 40px 15px;
    background: #00537A;
    font-family: "Montserrat", sans-serif;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    width: 100%;
    gap: 30px;
}

.footer-box {
    flex: 1;
    min-width: 250px;
}

.footer-box img {
    width: 180px;
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.footer-box img:hover {
    transform: scale(1.05);
}

.footer-box p {
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 14px;
}

.footer-box a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-box a:hover {
    color: #7AC5F1;
}

.footer-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-box:first-child ul {
    display: flex;
    margin-top: 20px;
}

.footer-box:first-child ul li {
    margin-right: 15px;
}

.footer-box:first-child ul li a {
    font-size: 18px;
    transition: all 0.3s ease;
}

.footer-box:first-child ul li a:hover {
    transform: translateY(-3px);
    display: inline-block;
}

.footer-box-title {
    font-size: 18px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 25px;
    position: relative;
    text-transform: uppercase;
}

.footer-box-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    height: 2px;
    width: 50px;
    background-color: #7AC5F1;
    transition: width 0.3s ease;
}

.footer-box:hover .footer-box-title:after {
    width: 70px;
}

/* Recent Posts */
.post-section {
    display: flex;
    flex-direction: column;
}

.post-box {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

.post-box:hover {
    transform: translateX(5px);
}

.post-date {
    flex: 0 0 60px;
    display: flex;
    flex-direction: column;
    background: #003853;
    padding: 5px;
    text-align: center;
    margin-right: 15px;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.post-box:hover .post-date {
    background-color: #F04846;
}

.post-date span {
    display: block;
    font-size: 12px;
    line-height: 1.5;
}

.post-link {
    flex: 1;
}

.post-link h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

/* Sitemap */
.sitemap-section ul li {
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.sitemap-section ul li:hover {
    transform: translateX(5px);
}

.sitemap-section ul li ul {
    padding-left: 15px;
    margin-top: 10px;
    list-style-type: none;
}

.sitemap-section ul li ul li {
    margin-bottom: 8px;
}

/* RESPONSIVE STYLES */
@media (min-width: 1101px) {
    .navbar-collapse {
        display: block !important;
    }
}

@media (max-width: 1100px) {
    /* Mobile Header */
    .toolbar-contact {
        display: none;
    }

    .menu-toggle {
        display: block;
    }
    
    .navbar-collapse {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transition: opacity 0.3s ease, transform 0.3s ease;
        opacity: 0;
        transform: translateY(-10px);
    }
    
    .navbar-collapse.active {
        z-index: 9999;
        display: block;
        opacity: 1;
        transform: translateY(0);
    }
    
    #primary-menu {
        flex-direction: column;
        width: 100%;
    }
    
    #primary-menu li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    #primary-menu a {
        padding: 15px 20px;
    }
    
    .sub-menu {
        position: static;
        box-shadow: none;
        width: 100%;
        display: none;
        background-color: #f5f5f5;
        transform: none;
        opacity: 1;
        visibility: visible;
        transition: max-height 0.3s ease;
        max-height: 0;
        overflow: hidden;
    }
    
    .sub-menu.active {
        display: block;
        max-height: 500px;
    }
    
    .menu-item-has-children > a:after {
        content: "▾";
        float: right;
        transition: transform 0.3s ease;
    }
    
    .menu-item-has-children:hover > a:after {
        transform: rotate(180deg);
    }
    
    /* Mobile Footer */
    .footer-container {
        flex-direction: column;
    }
    
    .footer-box {
        width: 100%;
        margin-bottom: 30px;
    }
}

/* For Very Small Screens */
@media (max-width: 480px) {
    .logo-area img {
        width: 180px;
    }
    
    .post-box {
        flex-direction: column;
    }
    
    .post-date {
        margin-bottom: 10px;
        flex-direction: row;
        justify-content: center;
        width: 100px;
    }
    
    .post-date span {
        margin: 0 3px;
    }
}