:root {
    --primary-dark: #02534f !important;
}

/* Header Styles */
.top-bar {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.top-bar a {
    color: var(--white);
    text-decoration: none;
    margin-right: 15px;
    transition: all 0.3s;
}

.top-bar a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.top-bar i {
    margin-right: 5px;
}

.header-main {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    margin-right: 15px;
}

.logo-text h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: var(--primary-dark);
}

.logo-text span {
    color: var(--primary-color);
}

.logo-text p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

.contact-info {
    display: flex;
    align-items: center;
}

.contact-box {
    display: flex;
    align-items: center;
    margin-left: 30px;
}

.contact-icon {
    background-color: var(--primary-color);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 18px;
}

.contact-text h5 {
    font-size: 14px;
    margin: 0;
    color: var(--text-light);
}

.contact-text p {
    font-size: 16px;
    margin: 0;
    font-weight: 600;
    color: var(--text-dark);
}

.navbar-custom {
    background-color: var(--white);
    padding: 0;
}

.navbar-custom .navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 15px 20px;
    position: relative;
}

.navbar-custom .navbar-nav .nav-link:hover,
.navbar-custom .navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.navbar-custom .navbar-nav .nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    width: 0;
    height: 3px;
    transition: width 0.3s;
}

.navbar-custom .navbar-nav .nav-link:hover:after,
.navbar-custom .navbar-nav .nav-link.active:after {
    width: calc(100% - 40px);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 5px 5px;
}

.dropdown-item {
    padding: 8px 20px;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.social-icons a {
    color: var(--text-dark);
    margin-left: 15px;
    font-size: 18px;
    transition: all 0.3s;
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: none;
    position: relative;
    width: 24px;
    height: 2px;
    background-color: var(--primary-dark);
    display: block;
}

.navbar-toggler-icon:before,
.navbar-toggler-icon:after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--primary-dark);
    left: 0;
}

.navbar-toggler-icon:before {
    top: -6px;
}

.navbar-toggler-icon:after {
    top: 6px;
}

/* Nested dropdown styling */
.dropdown-menu .dropdown-menu {
    margin-left: 10px;
    margin-right: -10px;
    margin-top: -10px;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
    border-radius: 0 6px 6px 6px;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

/* Mobile submenu styling */
@media (max-width: 991.98px) {
    .dropdown-submenu > .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        margin-left: 20px;
        border: none;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.03);
        display: none;
    }
    
    .dropdown-submenu > .dropdown-menu.show {
        display: block;
    }
    
    .dropdown-toggle::after {
        content: "\f107";
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        border: none;
        vertical-align: middle;
        margin-left: 5px;
    }
    
    .dropdown-submenu > .dropdown-toggle::after {
        content: "\f105";
        float: right;
        margin-top: 5px;
    }
}

/* Responsive Header Styles */
@media (max-width: 1199.98px) {
    .contact-box {
        margin-left: 15px;
    }
}

@media (max-width: 991.98px) {
    .header-main {
        padding: 10px 0;
    }

    .contact-info {
        display: none;
    }

    .navbar-collapse {
        background-color: var(--white);
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        margin-top: 15px;
        max-height: 70vh;
        overflow-y: auto;
    }

    .navbar-custom .navbar-nav .nav-link {
        padding: 10px 0;
    }

    .navbar-custom .navbar-nav .nav-link:after {
        display: none;
    }

    .dropdown-menu {
        box-shadow: none;
        border: 1px solid rgba(0, 0, 0, 0.1);
        margin: 10px 0;
    }
}

@media (max-width: 767.98px) {
    .top-bar {
        display: none;
    }

    .logo-text h1 {
        font-size: 20px;
    }

    .logo-text p {
        font-size: 12px;
    }
}

/* Dropdown on hover for desktop */
@media (min-width: 992px) {
    .navbar .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .navbar .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s ease;
        position: absolute;
    }
    
    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* Mobile dropdown remains click-only */
@media (max-width: 991.98px) {
    .navbar .dropdown-menu {
        display: none;
    }

    .navbar .dropdown-menu.show {
        display: block;
    }
}

/* Additional improvements for very small screens */
@media (max-width: 575.98px) {
    .navbar-collapse {
        max-height: 60vh;
    }
    
    .dropdown-item {
        padding: 8px 15px;
        font-size: 0.95rem;
    }
}

/* Footer Styles */
.footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 60px 0 0;
}

.footer h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary-color);
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s;
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    margin-top: 40px;
}

.developer-credit {
    text-align: center;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.developer-credit a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s;
}

.developer-credit a:hover {
    color: var(--white);
    text-decoration: underline;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

/* CSS Variables for consistent theming */
:root {
    --primary-color: #18ada0;
    --primary-dark: #02534f;
    --secondary-color: #f8f9fa;
    --text-dark: #212529;
    --text-light: #6c757d;
    --white: #ffffff;
}