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

body {
    font-family: Arial, sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Header & Navbar --- */
header {
    background: #004aad;
    color: #fff;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: auto;
    flex-wrap: wrap;
}

nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    flex-grow: 1;
}

nav a {
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
}

nav a:hover {
    background: #fff;
    color: #004aad;
}

nav a.active {
    background: #ffcc00;
    color: #000;
    font-weight: bold;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-grow: 1;
    justify-content: flex-end;
}

.search-bar {
    display: flex;
}

.search-bar input {
    padding: 0.5rem;
    border: none;
    border-radius: 5px 0 0 5px;
    outline: none;
    width: 150px;
}

.search-bar button {
    background: #ffcc00;
    color: #000;
    border: none;
    padding: 0.5rem 0.8rem;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.auth-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #fff;
    border-radius: 5px;
    background: transparent;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.auth-btn:hover {
    background: #fff;
    color: #004aad;
}
/* --- Logo and Branding --- */
.logo-link {
    display: flex;
    align-items: left;
    text-decoration: none;
    gap: 10px;
}

.site-logo {
    height: 45px;
    /* adjust logo size */
    width: auto;
}

.site-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #004aad;
    /* your brand blue */
}
/* --- Sections --- */
section {
    padding: 4rem 2rem;
    max-width: 1100px;
    margin: auto;
}

section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: #004aad;
}

section p {
    text-align: center;
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 1rem;
}

/* Home Section */
.home-section {
    text-align: center;
    /* Center all text */
    padding: 60px 20px;
    background-color: #f5f7fa;
    /* optional light background */
}

.home-section .home-image {
    margin-bottom: 30px;
}

.home-section .home-image img {
    max-width: 100%;
    /* Scale down on small screens */
    height: auto;
    /* Keep aspect ratio */
    border-radius: 12px;
    /* Optional: rounded corners */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    /* subtle shadow */
    transition: transform 0.3s ease;
}

.home-section .home-image img:hover {
    transform: scale(1.05);
    /* Slight zoom on hover */
}

.home-section h2 {
    font-size: 2.5rem;
    color: #004aad;
    margin-bottom: 20px;
}

.home-section p {
    font-size: 1.2rem;
    color: #333;
    max-width: 700px;
    margin: 0 auto;
    /* Center paragraph */
    line-height: 1.6;
}
/* about section
#about {
    padding: 4rem 2rem;
    background: #f9f9f9;
    text-align: center;
}

#about h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #004aad;
}

#about p {
    max-width: 850px;
    margin: 0.8rem auto;
    line-height: 1.7;
    font-size: 1.1rem;
    color: #333;
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .home-section h2 {
        font-size: 2rem;
    }

    .home-section p {
        font-size: 1rem;
        padding: 0 10px;
    }
}
/* Opportunities Grid */
#opportunity-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* Card styling */
.opportunity-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.opportunity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.opportunity-card h3 {
    color: #004aad;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.opportunity-card p {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #333;
}

.opportunity-card .preview {
    font-style: italic;
    color: #555;
}

/* Card Actions */
.card-actions {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-actions .read-more {
    background-color: #004aad;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.card-actions .read-more:hover {
    background-color: #00317a;
}

.card-actions .apply-btn {
    background-color: #28a745;
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.card-actions .apply-btn:hover {
    background-color: #1e7e34;
}

/* Modal styling (optional tweak) */
#descriptionModal .modal-content {
    max-width: 600px;
    width: 90%;
    padding: 20px;
    border-radius: 12px;
}

/* --- Forms --- */
.form-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.form-container input,
.form-container textarea,
.form-container select {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
}

.form-container button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    background: #004aad;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.form-container button:hover {
    background: #003380;
}

.form-message {
    text-align: center;
    margin-top: 1rem;
    font-weight: bold;
    color: #004aad;
}

/* --- Subscription Form Enhanced --- */
.subscribe-box {
    background: linear-gradient(135deg, #004aad, #1e70c1);
    color: #fff;
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    margin: 2rem auto;
    max-width: 600px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.subscribe-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.subscribe-box h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.subscribe-box p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: #f0f0f0;
}

.subscribe-box form {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.subscribe-box input[type="email"] {
    padding: 0.8rem 1rem;
    width: 100%;
    max-width: 300px;
    border: none;
    border-radius: 50px;
    outline: none;
    font-size: 1rem;
    transition: box-shadow 0.3s ease;
}

.subscribe-box input[type="email"]:focus {
    box-shadow: 0 0 8px #ffcc00;
}

.subscribe-box button {
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 50px;
    background: #ffcc00;
    color: #000;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.subscribe-box button:hover {
    background: #ff9900;
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .subscribe-box form {
        flex-direction: column;
    }

    .subscribe-box input[type="email"],
    .subscribe-box button {
        width: 100%;
        max-width: 100%;
    }
}
/* --- Footer --- */
footer {
    background: #004aad;
    color: #fff;
    text-align: center;
    padding: 1.5rem;
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.social-media {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-media img {
    width: 30px;
    height: 30px;
    transition: transform 0.2s ease;
}

.social-media img:hover {
    transform: scale(1.1);
}

/* --- Modal Styles --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.6);
}

.modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close-btn {
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
}

.close-btn:hover {
    color: #e74c3c;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .header-actions {
        justify-content: center;
        width: 100%;
    }

    .search-bar {
        width: 100%;
    }

    .search-bar input {
        width: 100%;
    }

    nav {
        flex-direction: column;
        gap: 1rem;
    }

    section {
        padding: 2rem 1rem;
    }

    .subscribe-box input[type="email"] {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}