/* General & Typography */
:root {
    --primary-color: #0A3D62;
    --secondary-color: #FF6B6B;
    --accent-color: #55B4B0;
    --text-color: #333;
    --light-gray: #f4f4f4;
    --dark-blue: #0A2E4A;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

main {
    flex: 1; 
}

header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 30px;
    border-bottom: 1px solid #e0e0e0;
    gap: 20px;
}

.logo-container img {
    max-height: 95px;
    flex-shrink: 0;
}

.search-container {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 25px;
}

.search-container > *:first-child {
    border-radius: 25px 0 0 25px;
}

.search-container > *:last-child {
    border-radius: 0 25px 25px 0;
}

.search-container input,
.search-container button {
    border: none;
    padding: 10px;
    font-size: 16px;
    background-color: transparent;
}

.search-container input {
    width: 350px;
}

.search-container button {
    background-color: #0d47a1;
    color: white;
    cursor: pointer;
    padding: 10px 15px;
}

.search-container button:hover {
    background-color: #0b3c8a;
}

.custom-select-wrapper {
    position: relative;
    user-select: none;
}

.custom-select {
    position: relative;
    width: 150px;
}

.custom-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #f7f7f7;
    border-right: 1px solid #ccc;
    font-size: 16px;
    cursor: pointer;
    height: 100%;
    box-sizing: border-box;
}

.custom-select.open .arrow {
    transform: rotate(180deg);
}

.arrow {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #333;
    transition: transform 0.2s ease;
}

.custom-options {
    position: absolute;
    top: calc(100% + 8px); 
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 10;
    display: none;
    overflow: hidden;
}

.custom-select.open .custom-options {
    display: block;
}

.custom-option {
    display: block;
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.custom-option:hover {
    background-color: #f0f0f0;
}

.custom-option.selected {
    background-color: #e0e0e0;
}

.header-top-actions {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

.action-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #555;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.action-button:hover {
    color: #0d47a1;
    background-color: #f0f0f0;
}

.action-button i {
    font-size: 24px;
}

.action-button span {
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.header-nav {
    background-image: linear-gradient(to bottom, #1a237e, #0d47a1);
    padding: 5px 0;
}

.header-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
}

.header-nav ul li a {
    position: relative;
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    font-weight: bold;
    font-size: 14px;
}

.header-nav ul li a:hover {
    background-color: transparent;
}

.header-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 70%;
    height: 2px;
    background-color: white;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.header-nav ul li a:hover::after,
.header-nav ul li a.active-link::after {
    transform: scaleX(1);
}

.page-header {
    background-color: #e8eaf6;
    text-align: center;
    padding: 25px 30px;
    border-bottom: 1px solid #d1d9e6;
}
.page-header-container h1 { 
    font-size: 42px; 
    color: #1a237e; 
}

footer {
    background-color: #121212;
    color: #a0a0a0;
    padding: 60px 30px 20px 30px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1600px;
    margin: 0 auto 40px auto;
}

.footer-column {
    flex: 1;
    min-width: 180px;
}

.footer-column h3 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #0d47a1;
}

.footer-column p {
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-column.address p {
    font-size: 14px;
    margin-bottom: 15px;
}

.footer-column p strong {
    color: #ddd;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #222;
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.3s;
}

.social-icons a:hover {
    background-color: #0d47a1;
    transform: translateY(-3px);
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.footer-column ul li a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
}

.footer-column ul li a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-column.contact ul li i {
    color: #0d47a1;
    margin-right: 10px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
}

.subscribe-form input {
    width: 100%;
    padding: 12px;
    background-color: #222;
    border: 1px solid #444;
    border-radius: 5px;
    color: #fff;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.subscribe-form button {
    padding: 12px;
    background-color: #0d47a1;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.subscribe-form button:hover {
    background-color: #0b3c8a;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 14px;
}

.floating-chat-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #0d47a1;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 999;
    transition: transform 0.2s ease;
}

.floating-chat-button:hover {
    transform: scale(1.1);
}

.chat-popup {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s;
}

.chat-popup.open {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
}

.chat-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0d47a1;
    color: white;
    padding: 15px 20px;
}

.chat-popup-header h3 {
    margin: 0;
    font-size: 18px;
}

.chat-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
}

.chat-close-btn:hover {
    opacity: 1;
}

.chat-popup-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: #f8f9fa;
}

.chat-popup-body input,
.chat-popup-body select,
.chat-popup-body textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

.chat-popup-body textarea {
    resize: vertical;
    min-height: 80px;
}

.chat-popup-footer {
    padding: 15px 20px;
    text-align: right;
    border-top: 1px solid #e9ecef;
}

.chat-popup-footer button {
    background-color: #0d47a1;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.chat-popup-footer button:hover {
    background-color: #0b3c8a;
}

@media (max-width: 992px) {
    .header-top {
        justify-content: space-between;
    }
    
    .search-container,
    .action-button span {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    .header-nav {
        display: none;
        width: 100%;
    }
    
    .header-nav.active {
        display: block;
    }

    .header-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .header-nav ul li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #0d47a1;
    }
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .header-top-actions {
        margin-left: auto; 
    }
}