/* Base Styles - Common across all pages */

/* CSS Variables */
:root {
    --primary-color: #0d47a1; /* A shade of blue from the design */
    --secondary-color: #f0f0f0;
    --dark-color: #263238;
    --light-color: #ffffff;
    --text-color: #333;
    --font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Global Styles */
body {
    font-family: var(--font-family);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--text-color);
}

main {
    position: relative;
    z-index: 1;
    background: white;
    display: block;
    clear: both;
    overflow: hidden;
}

.container {
    width: 85%;
    margin: auto;
    overflow: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
    padding: 0;
}

h1, h2, h3, h4 {
    color: var(--dark-color);
}

/* Header */
header {
    background: var(--light-color);
    color: var(--dark-color);
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

header .container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

header .logo {
    flex-shrink: 0;
    margin-right: auto;
}

header nav {
    flex-shrink: 0;
}

header .header-actions {
    flex-shrink: 0;
    margin-left: 1rem;
}

header .logo a {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--dark-color);
}

header .logo img {
    height: 100px;
    max-width: 500px;
    object-fit: contain;
}

header nav ul {
    display: flex;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
    font-size: 1.1rem;
}

header nav ul li a.active,
header nav ul li a:hover {
    color: var(--primary-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    color: var(--dark-color);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #f5f5f5;
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    overflow-y: auto;
    padding-top: 80px;
}

.mobile-menu.active {
    display: flex;
}

/* Mobile Menu Header */
.mobile-menu-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    background: #f5f5f5;
    z-index: 10001;
}

.mobile-logo {
    height: 100px;
    max-width: 500px;
    margin-top: 40px;
}

.mobile-logo img {
    height: 100%;
    max-width: 400px;
    object-fit: contain;
}

.close-btn {
    margin-top: 40px;
    margin-right: 10px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--dark-color);
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu Navigation */
.mobile-nav {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
}

.mobile-nav a {
    color: var(--dark-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--primary-color);
}

/* Mobile Contact Button */
.mobile-contact-button {
    margin-top: 0;
    margin-bottom: 8rem;
    padding: 1rem;
    flex-shrink: 0;
}

.mobile-contact-button a {
    background: var(--primary-color);
    color: white;
    padding: 0.7rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-block;
    transition: background 0.3s ease;
}

.mobile-contact-button a:hover {
    background: #0a3d91;
}

/* Hide header logo when mobile menu is open */
body.mobile-menu-open header .logo {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--light-color);
    padding: 0.8rem 1.5rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 5px;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

/* Button Loading State */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* General Section Styling */
section {
    padding: 5rem 0;
    position: relative;
    clear: both;
}

section .container {
    max-width: 1100px;
    width: 80%;
    position: relative;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 600;
    line-height: 1.2;
}

/* Page Header */
.page-header {
    background: transparent;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
}

.page-header p {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 400;
}

/* Cards */
.card {
    background: var(--light-color);
    padding: 2rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin: 0;
    flex: 1;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card h3 {
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--dark-color);
    margin: 0;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(13, 71, 161, 0.15);
}

/* New Footer Styles */
footer {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 3rem 0 2rem 0;
    clear: both;
    position: relative;
    margin-top: 0;
}

.footer-container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: center;
    gap: 8rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #4b5a62;
    margin-bottom: 2rem;
}

.footer-column h4 {
    color: var(--light-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--light-color);
}

.footer-column p {
    color: #ccc;
    margin: 0.5rem 0;
    line-height: 1.6;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
    color: #ccc;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--light-color);
    text-decoration: none;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Responsive Design - Base */
@media (max-width: 1272px) {
    .container {
        width: 88%;
    }

    /* Keep header navigation container at 95% for better mobile nav */
    header .container {
        width: 95%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    /* Content sections get more margin on mobile */
    section .container {
        width: 85%;
    }
    
    .main-nav {
        display: none;
    }

    .header-actions {
       display: none;
    }

    .hamburger {
        display: block;
    }

    /* Section spacing */
    section {
        padding: 3rem 0;
    }

    section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .card {
        margin: 0;
        min-width: auto;
    }

    /* Page header responsive */
    .page-header h1 {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }
    
    .page-header p {
        font-size: 1.1rem;
        line-height: 1.5;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    /* Even more margin on very small screens */
    section .container {
        width: 82%;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .page-header p {
        font-size: 1rem;
        line-height: 1.4;
    }
}

/* Mobile footer styles */
@media (max-width: 960px) {
    .footer-container {
        width: 90%;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-column {
        margin-bottom: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}


