/* common-styles.css */
/* Base and Utility Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

:root {
    --primary-color: #003366;
    --secondary-color: #4a90e2;
    --accent-color: #00a8cc;
    --text-color: #333;
    --light-bg: #f7f7f7;
    --white: #ffffff;
    --gray: #6c757d;
    --dark-gray: #343a40;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

.text-center {
    text-align: center;
}

.section-title {
    position: relative;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #002244;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #3a7bc8;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-img {
    height: 200px;
    background-color: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.card-body {
    padding: 25px;
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.card-text {
    color: var(--gray);
    margin-bottom: 15px;
}

/* ========================= */
/* HEADER STYLES - FIXED */
/* ========================= */
.header {
    position: fixed;
    top: 0;
    z-index: 1000;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 80px;
    display: flex;
    align-items: center;
    width: 100%;
}

.nav-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* Logo Group - Left Side */
.logo-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-image {
    height: 50px;
    width: auto;
}

/* Desktop Navigation - Right Side */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-desktop a {
    color: black;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
    position: relative;
}

.nav-desktop a:hover {
    color: #003366;
}

.nav-desktop a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #003366;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-desktop a:hover::after {
    width: 80%;
}

/* Mobile Menu Button - Right Side */
.mobile-menu-button {
    display: none;
    cursor: pointer;
    padding: 0.6rem;
    border-radius: 0.5rem;
    background: none;
    border: none;
    color: black;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
    z-index: 1101; /* ensure it's above other header elements on mobile */
    pointer-events: auto;
}

.mobile-menu-button:hover {
    background-color: #f1f1f1;
}

.mobile-menu-button svg {
    width: 28px;
    height: 28px;
}

/* Mobile Menu */
.nav-mobile {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #e2e8f0;
    padding: 0.5rem 0;
    z-index: 999;
}

#menu-toggle, #search-toggle {
    display: none;
}

#menu-toggle:checked ~ .nav-mobile {
    display: block;
}

.nav-mobile a {
    display: block;
    padding: 1rem 1.5rem;
    color: black;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid #f5f5f5;
}

.nav-mobile a:last-child {
    border-bottom: none;
}

.nav-mobile a:hover {
    background-color: #f8f9fa;
    color: #003366;
    padding-left: 2rem;
}

/* ========================= */
/* FOOTER STYLES */
/* ========================= */
.footer {
    background-color: #003366;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: white;
}

.footer-column p, .footer-column a {
    color: #e0e0e0;
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: white;
    text-decoration: underline;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    font-size: 0.9rem;
}

/* Contact Details */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 1.125rem;
}

.contact-details p {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.contact-details svg {
    width: 1.25rem;
    height: 1.25rem;
    color: white;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.contact-details a {
    color: white;
    text-decoration: none;
    transition: text-decoration 0.3s;
}

.contact-details a:hover {
    text-decoration: underline;
}

.address-text {
    max-width: 24rem;
    text-align: left;
}

h4{
    color: white;
}
/* ========================= */
/* RESPONSIVE DESIGN */
/* ========================= */

/* Tablet Styles */
@media (max-width: 1024px) {
    .nav-desktop {
        gap: 1rem;
    }
    
    .nav-desktop a {
        font-size: 16px;
        padding: 0.4rem 0.6rem;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .header {
        height: 70px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .logo-image {
        height: 45px;
    }
    
    /* Hide desktop navigation on mobile */
    .nav-desktop {
        display: none;
    }
    
    /* Show mobile menu button */
    .mobile-menu-button {
        display: flex;
    }
    
    /* Footer adjustments for mobile */
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .contact-details p {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .address-text {
        max-width: 100%;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .header {
        height: 65px;
    }
    
    .nav-container {
        padding: 0 10px;
    }
    
    .logo-image {
        height: 40px;
    }
    
    .nav-mobile a {
        padding: 0.875rem 1.25rem;
        font-size: 15px;
    }
    
}
/* Fix for footer h4 color */
.footer h4 {
    color: white !important;
}

.footer-column h4 {
    color: white !important;
}
/* Fixed Contact Bar Styles - improved floater */
.floater-container {
    position: fixed;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
    pointer-events: none;
}

.floater-icons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: auto;
}

.floater-icon {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--dark-gray);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.floater-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(8, 20, 50, 0.12);
    transition: background-color 0.18s ease, transform 0.18s ease;
    flex-shrink: 0;
    overflow: hidden;
}

.floater-btn img {
    width: 32px;
    height: 32px;
    display: block;
}

.floater-label {
    background: rgba(0, 51, 102, 0.95);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    transform: translateX(8px) scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.floater-icon:hover .floater-btn {
    transform: translateX(-6px);
}

.floater-icon:hover .floater-label {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

.floater-icon:active .floater-btn {
    transform: translateX(-6px) scale(0.98);
}

/* Slightly hide labels on very small screens */
@media (max-width: 480px) {
    .floater-label { display: none; }
    .floater-container { right: 10px; }
    .floater-btn { width: 48px; height: 48px; }
    .floater-btn img { width: 20px; height: 20px; }
}

@media (max-width: 768px) {
    .floater-container { right: 12px; }
    .floater-icon { gap: 8px; }
}