/* --- Google Fonts & Variables --- */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap');

:root {
    --primary-blue: #003b5c;
    --accent-gold: #f2a900;
    --text-dark: #333333;
    --text-light: #555555;
    --bg-main: #f8f9fa;
    --white: #ffffff;
    --border-color: #dddddd;
    --navy-primary: #0d1b2a;
    --border-radius: 6px;
}

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

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
}

h1 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 2.1rem;
    font-weight: 700;
}

p {
    margin-bottom: 24px;
    color: var(--text-light);
    font-size: 1.1rem;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-gold);
}

/* --- Layout Containers --- */
.container,
.about-main-container {
    max-width: 1200px !important;
    background-color: var(--white);
    margin: 40px auto;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--white);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border-bottom: 3px solid var(--primary-blue);
    position: relative;
}

.logo-container {
    display: flex;
    gap: 20px;
    align-items: center;
}

.logo-container img {
    height: 50px;
    /* height: 35px; */
    width: auto;
    object-fit: contain;
}

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

.main-nav a {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.05rem;
    padding: 8px 12px;
    border-radius: var(--border-radius);
}

.main-nav a:hover {
    background-color: var(--bg-main);
    color: var(--primary-blue);
}

/* Hide Hamburger Button on Desktop */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: 0.3s;
}

/* Mobile Media Query */
@media (max-width: 768px) {
    .logo-container img {
        height: 35px; 
    }

    .menu-toggle {
        display: flex; /* Show hamburger on mobile */
    }

    .main-nav {
        display: none; /* Hide nav links by default on mobile */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        padding: 1rem 2rem;
        z-index: 1000;
    }

    /* Active class toggled by JS to show the menu */
    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}

/* --- Buttons & Interactive Elements --- */
.btn, 
.review-button, 
#shortlist-button,
.shortlist-btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary, 
button[type="submit"], 
.review-button, 
#shortlist-button,
.shortlist-btn {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover, 
button[type="submit"]:hover, 
.review-button:hover, 
#shortlist-button:hover,
.shortlist-btn:hover {
    background-color: #00223E;
}

.btn-primary {
    display: block;
    width: max-content;
    margin: 0 auto;
}

#shortlist-button, 
#login-button, 
#signup-button, 
#password-update-button {
    width: 100%;
    margin-top: 30px;
}

button:disabled, 
input[type="submit"]:disabled {
    background-color: #cbd5e1 !important;
    color: #64748b !important;
    opacity: 0.7;
    cursor: not-allowed;
    box-shadow: none;
}

/* --- Forms & Inputs --- */
.standard-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* --- Application Form Header & Instructions --- */
.form-header {
    text-align: center; 
    margin-bottom: 20px;
    position: relative;
    /* align-items: flex-start; */
    /* display: flex; */
    /* align-items: center;  */
    /* gap: 2rem;          
    text-align: left;   
    margin-bottom: 2rem; */
}

.form-header h1 {
    font-size: 2.2rem;
    margin-bottom: 0;
}

.form-header h2 {
    color: var(--text-dark);
    font-size: 1.3rem;
    margin-top: 8px;
    margin-bottom: 20px;
}

.form-header p {
    font-size: 1.2rem !important; /* Increased from the default 1.1rem */
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Control logo size */
.form-logo {
    width: auto; /* Adjust size as needed */
    height: 150px;
    left:0;
    top: 0px;
    object-fit: contain;
    margin-bottom: 0px;
    position: absolute;
}

/* Stack the logo normally on smaller screens so it doesn't overlap the title */
@media (max-width: 900px) {
    .form-logo {
        position: static;
        margin-bottom: 1rem;
    }
}

label {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-left: 5px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    background-color: #FAFCFF;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, 
textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 59, 92, 0.15);
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-blue);
    cursor: pointer;
}

/* --- Tables & Badges --- */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 25px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

th, td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--primary-blue);
    color: var(--white);
    font-weight: 600;
}

tr {
    background-color: var(--white);
    transition: background-color 0.2s;
}

tr:hover {
    background-color: var(--bg-main);
}

.table-link {
    color: var(--primary-blue);
    font-weight: 700;
}

.table-link:hover {
    color: var(--accent-gold);
    text-decoration: underline;
}

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

.comment-cell {
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95rem;
}

.score-badge {
    background-color: #FAFCFF;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
}

/* --- Cards & Layout Components --- */
.hero-section p {
    text-align: left;
    font-size: 1.1rem;
    line-height: 1.35;
    margin-bottom: 12px;
}

.hero-tagline {
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.auth-container {
    max-width: 450px;
    margin-top: 8vh;
}

.auth-container h1 {
    text-align: center;
    margin-bottom: 30px;
}

.details-card {
    background-color: #FAFCFF;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-item {
    display: flex;
    align-items: baseline;
    gap: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.detail-label {
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    color: var(--text-dark);
    font-size: 1.05rem;
}

.applicant-count {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.applicant-count strong {
    color: var(--primary-blue);
    font-size: 1.2rem;
}

/* --- About Page & Grids --- */
.about-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #00223E 100%);
    color: var(--white);
    padding: 15px 40px;
}

.about-hero h1 {
    color: var(--white);
    font-size: 2.1rem;
    margin-bottom: 8px;
}

.hero-subtitle {
    color: #e2e8f0;
    font-size: 1.05rem;
    margin-bottom: 15px;
}

.gold-accent-line {
    width: 60px;
    height: 4px;
    background-color: var(--accent-gold);
    border-radius: 2px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 40px;
    align-items: start;
}

.about-text-content h2 {
    color: var(--primary-blue);
    font-size: 1.7rem;
    margin-bottom: 20px;
    line-height: 1.3;
    justify-content: center;
}

.about-text-content p {
    font-size: 1.3rem; /* Adjust this value (e.g., 1.15rem or 1.2rem) to make the text larger */
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text-light);
}

.sidebar-card {
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.sidebar-item h3 {
    color: var(--primary-blue);
    font-size: 1.2rem;
    margin-bottom: 6px;
    padding-left: 12px;
    border-left: 3px solid var(--accent-gold);
}

.sidebar-item p {
    font-size: 1.15rem;
}

/* --- Partners Sidebar List Styling --- */
.partners-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.partner-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 16px;
}

.partner-item:last-child {
    margin-bottom: 0;
}

.partner-logo-wrapper {
    width: 150px;
    display: flex;
    justify-content: left;
    align-items: center;
    flex-shrink: 0;
}

.partner-logo-wrapper img {
    max-height: 100px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

.partner-name {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.sidebar-item h3.partners-heading {
    color: var(--primary-blue);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    border-left: 3px solid var(--accent-gold);
    padding-left: 12px;
}

/* --- Footer & Banner Styles --- */
.about-footer-banner {
    background-image: linear-gradient(rgba(13, 27, 42, 0.85), rgba(13, 27, 42, 0.85)), url("./images/body-of-water-image.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 40px 20px;
    text-align: center;
}

.footer-banner-content {
    max-width: 900px;
    margin: 0 auto;
    color: var(--white);
}

.footer-banner-content h2 {
    color: var(--white);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 8px;
}

.footer-banner-content p {
    color: var(--white);
    font-size: 1.05rem;
    line-height: 1.35;
    margin: 0;
}

footer a {
    color: var(--white);
    text-decoration: underline;
}

footer a:hover {
    color: var(--accent-gold);
}

/* --- Eligibility Section on Home Page --- */
.eligibility-section {
    /* margin: 28px 0; */
    padding-top: 0px;
    /* border-top: 1px solid var(--border-color); */
}

.eligibility-section h3 {
    color: var(--primary-blue);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    /* border-left: 3px solid var(--accent-gold); */
    /* padding-left: 12px; */
}

.eligibility-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 24px;
}

.eligibility-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    font-size: 1.3rem;
    line-height: 1.5;
    color: var(--text-light);
    /* color: var(--text-dark); */
}

.eligibility-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: bold;
    font-size: 1.2rem;
}

.team-section {
    padding: 1.5rem 1rem; /* Reduced top/bottom padding */
    text-align: center;
    background-color: #f8fafc;
    margin-top: 1.5rem; /* Reduced spacing above the section */
    border-top: 1px solid #e2e8f0;
}

.team-section h2 {
    font-size: 1.4rem; /* Slightly smaller header */
    color: #1e3a8a;
    margin-bottom: 1rem; /* Tighter gap below the title */
}

.team-grid {
    display: flex;
    justify-content: center;
    gap: 1.25rem; /* Tighter space between the two cards */
    max-width: 650px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.team-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 1rem; /* Less internal padding */
    width: 260px; /* Narrower card footprint */
    text-align: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.team-photo {
    width: 70px; /* Smaller, neat avatar size */
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem; /* Reduced space under photo */
    border: 2px solid #1e3a8a;
}

.team-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.15rem;
    color: #0f172a;
}

.team-role {
    font-size: 0.8rem;
    color: #0284c7;
    font-weight: 600;
    margin-bottom: 0.4rem; /* Tighter space above bio */
}

.team-bio {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.35;
}

/* --- Responsive Media Queries --- */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}