/* ==========================================================================
   Common Styles - Shared across all pages
   ========================================================================== */

#header-top-placeholder {
    min-height: 40px;
    display: block;
    background: var(--dark-blue);
}

#navigation-placeholder {
    min-height: 80px;
    display: block;
    background: var(--dark-blue);
}

#footer-placeholder {
    min-height: 300px;
    display: block;
    background: var(--gray-light);
}

:root {
    --primary-blue: #1e40af;
    --dark-blue: #1e3a8a;
    --light-blue: #3b82f6;
    --yellow-accent: #f59e0b;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --gray-medium: #6b7280;
    --gray-dark: #374151;
    --text-dark: #1f2937;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
}

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

/* ==========================================================================
   Header Top Bar
   ========================================================================== */

.header-top {
    background: var(--dark-blue);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.header-top .container {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info i {
    width: 16px;
}

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

.contact-info a:hover {
    opacity: 0.8;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */

.navbar {
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue));
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--yellow-accent);
}

.nav-menu a.active {
    color: var(--yellow-accent);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--yellow-accent);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background: var(--gray-light);
    padding: 60px 0 30px;
    border-top: 1px solid #e5e7eb;
}

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

.footer-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: var(--dark-blue);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

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

/* ==========================================================================
   Mobile Navigation
   ========================================================================== */

.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-blue);
    padding: 15px;
    z-index: 1000;
    border-top: 2px solid white;
}

.mobile-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.mobile-nav-item {
    color: white;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    transition: color 0.3s ease;
}

.mobile-nav-item.active {
    color: var(--yellow-accent);
}

.mobile-nav-item i {
    font-size: 18px;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

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

.text-primary {
    color: var(--primary-blue);
}

.text-accent {
    color: var(--yellow-accent);
}

.font-bold {
    font-weight: 700;
}

.mt-2 {
    margin-top: 20px;
}

.mb-2 {
    margin-bottom: 20px;
}

/* ==========================================================================
   Page Header
   ========================================================================== */

.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7)),
        url('../assets/images/page-header-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 60px 0;
    color: white;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.footer {
    padding-bottom: 80px;
    /* Prevents overlap with mobile nav bar */
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.cta-button,
.see-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--primary-blue);
    color: white;
    padding: 15px 30px;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    will-change: transform;
    /* Performance optimization */
}

.cta-button:hover,
.see-more-btn:hover {
    background: white;
    color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4);
}

/* ==========================================================================
   Loading States
   ========================================================================== */

.loading-container,
.loading-state {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    border: 4px solid var(--gray-light);
    border-top: 4px solid var(--primary-blue);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-nav {
        display: block;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .header-top .container {
        justify-content: center;
        gap: 15px;
        font-size: 12px;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 5px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .cta-button,
    .see-more-btn {
        width: 100%;
        max-width: 280px;
    }
}