:root {
    --navy: #002147;
    --gold: #d4af37;
    --white: #ffffff;
    --bg: #fdfdfd;
    --text: #333;
}

body { 
    font-family: 'Segoe UI', Tahoma, sans-serif; 
    margin: 0; 
    background-color: var(--bg); 
    color: var(--text); 
    line-height: 1.6;
    overflow-x: hidden; 
    padding-left: 15px;
    padding-right: 15px;

}

/* --- HEADER --- */
header { background: var(--white); padding: 20px; text-align: center; border-bottom: 4px solid var(--gold); }
.logo-placeholder { max-width: 150px; height: auto; margin-bottom: 10px; border: 1px dashed #ccc; padding: 10px; }
.trust-title { color: var(--navy); margin: 0; font-size: 1.8rem; letter-spacing: 1px; line-height: 1.2; word-wrap: break-word; }

/* --- NAVIGATION (Desktop Default) --- */
nav { background: var(--navy); position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }

.menu-toggle { display: none; cursor: pointer; padding: 15px 20px; }
.menu-toggle .bar { display: block; width: 25px; height: 3px; margin: 5px 0; background-color: var(--white); transition: 0.3s; }

.menu { display: flex; justify-content: center; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.menu-item { position: relative; }
.menu-item a { color: var(--white); text-decoration: none; padding: 15px 20px; display: block; font-weight: 600; font-size: 0.95rem; }
.menu-item a:hover { background: var(--gold); color: var(--navy); }

/* Desktop Submenu */
.submenu { 
    display: none; 
    position: absolute; 
    background: var(--white); 
    min-width: 220px; 
    box-shadow: 0 8px 16px rgba(0,0,0,0.1); 
    border-top: 3px solid var(--gold); 
}
.submenu a { color: var(--navy) !important; padding: 12px 20px; border-bottom: 1px solid #eee; }
.menu-item:hover .submenu { display: block; }

/* --- FOOTER (Desktop Default) --- */
.main-footer { background: var(--navy); color: var(--white); padding: 40px 20px; text-align: center; margin-top: 50px; }
.footer-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; text-align: left; }
.footer-heading { color: var(--gold); margin-bottom: 15px; }
.footer-links { list-style: none; padding: 0; font-size: 0.9rem; line-height: 2; }
.footer-links a { color: var(--white); text-decoration: none; }
.footer-divider { border: 0; border-top: 1px solid rgba(255,255,255,0.1); margin: 30px 0; }

/* ==========================================
   MOBILE RULES (Only applied if screen < 768px)
   ========================================== */
@media screen and (max-width: 768px) {
    body {
        padding-left: 15px;
        padding-right: 15px;
    }

    header {
        padding: 20px 10px;
    }

    nav {
        margin-left: -15px;
        margin-right: -15px;
    }

    .menu-toggle { display: block; }
    
    .menu { 
        display: none; 
        flex-direction: column; 
        width: 100%; 
        text-align: center; 
        background: var(--navy);
    }
    
    .menu.active { display: flex; }

    .trust-title { font-size: 1.3rem; padding: 0 5px; }
    
    .submenu { 
        position: static; 
        width: 100%; 
        background: #001226; 
        display: none; 
        box-shadow: none;
        border-top: none;
    }

    .submenu a { 
        color: var(--white) !important; 
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .menu-item:hover .submenu,
    .menu-item:focus-within .submenu { display: block; }

    /* --- ENHANCED MOBILE FOOTER --- */
    .footer-grid { 
        grid-template-columns: 1fr; 
        text-align: center; 
        gap: 0; /* Removing gap to use padding for borders instead */
    }

    .footer-grid > div {
        padding: 25px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Subtle divider between sections */
    }

    .footer-grid > div:last-child {
        border-bottom: none; /* Remove border from the last section */
    }

    .footer-heading {
        margin-bottom: 10px;
        font-size: 1.1rem;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .footer-links {
        text-align: center;
        margin: 0;
    }

    .footer-links a {
        display: inline-block; /* Makes the clickable area larger and centered */
        padding: 5px 0;
        word-break: break-all;
    }
}