/* Base Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
:root {
    --primary: #0056b3;
    --secondary: #28a745;
    --dark: #212529;
    --light: #f8f9fa;
    --gray: #6c757d;
}
body {
    color: var(--dark);
    background-color: #ffffff;
    line-height: 1.6;
}

/* Consistent Header Navigation */
header {
    background-color: var(--dark);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.logo {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}
.logo span {
    color: var(--secondary);
}
nav a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 1.5rem;
    font-size: 0.95rem;
    transition: color 0.3s;
}
nav a:hover, nav a.active {
    color: var(--secondary);
}

/* Page Headers & Hero banners */
.hero {
    background: linear-gradient(135deg, rgba(0,86,179,0.9), rgba(33,37,41,0.95));
    color: #ffffff;
    padding: 6rem 5%;
    text-align: center;
}
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    color: #e9ecef;
}
.page-banner {
    background-color: var(--light);
    padding: 4rem 5%;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
}
.page-banner h1 {
    color: var(--dark);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}
.page-banner p {
    color: var(--gray);
    font-size: 1.1rem;
}

/* Structural Layout Elements */
.section-padding {
    padding: 5rem 5%;
}
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--primary);
    margin: 0.5rem auto 0 auto;
}

/* Grids & Cards */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.card {
    background-color: var(--light);
    padding: 2.5rem;
    border-radius: 8px;
    border-top: 4px solid var(--primary);
    transition: transform 0.3s;
}
.card:hover {
    transform: translateY(-5px);
}
.card h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Button Assets */
.btn {
    display: inline-block;
    background-color: var(--secondary);
    color: white;
    padding: 0.75rem 2rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}
.btn:hover {
    background-color: #218838;
}

/* Consistent Footer */
footer {
    background-color: var(--dark);
    color: #ffffff;
    padding: 2.5rem 5%;
    text-align: center;
    font-size: 0.9rem;
    margin-top: 4rem;
}
footer a {
    color: #ced4da;
    text-decoration: none;
    margin: 0 1rem;
}
footer a:hover {
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header { flex-direction: column; text-align: center; gap: 1rem; }
    nav a { margin: 0 0.75rem; }
}
/* Popup Modal Background overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

/* Popup Content Card */
.modal-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 8px;
    width: 90%;
    max-width: 550px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: fadeInModal 0.3s ease-out;
}

/* Close Window 'X' Button */
.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    color: var(--gray);
    cursor: pointer;
    background: none;
    border: none;
}
.close-modal-btn:hover {
    color: var(--dark);
}

@keyframes fadeInModal {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}