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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #fcfcfc;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Header & Navigation --- */
header {
    background-color: #ffffff;
    border-bottom: 1px solid #eaeaea;
    padding: 1.25rem 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

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

nav {
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: #033B59;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    padding: 0.5rem 0;
    display: inline-block;
}

nav a:hover, nav a.active {
    color: #D9A72A;
    border-bottom: 2px solid #D9A72A;
}

/* --- Main Layout & Intro --- */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem;
    flex: 1;
    width: 100%;
}

.intro {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 2.5rem auto;
}

.intro h1 {
    font-size: 2.25rem;
    color: #033B59;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.intro p {
    font-size: 1.1rem;
    color: #5a6c7d;
}

/* --- Core Section Blocks --- */
.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-block {
    background: #ffffff;
    border: 1px solid #e1e8ed;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.01);
}

.info-block h2, .info-block h3 {
    color: #033B59;
    margin-bottom: 1rem;
}

.info-block p {
    color: #5a6c7d;
    margin-bottom: 1rem;
}

.info-block p:last-child {
    margin-bottom: 0;
}

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

/* --- Founder Profile Custom Styling --- */
.founder-profile {
    margin-top: 1.5rem;
}

.founder-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
}

.founder-image-container {
    width: 130px;
    height: 130px;
    max-width: 130px;     /* Rigid cap prevents column auto-stretching */
    max-height: 130px;    /* Rigid cap prevents row auto-stretching */
    flex-shrink: 0;       /* Prevents profile photo compression */
}

.founder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #033B59;
}

.founder-text {
    width: 100%;
}

.founder-text h2 {
    margin-bottom: 0.5rem;
}

/* --- Pathway Layout Grid --- */
.pathway-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.pathway-card {
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.01);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pathway-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(3, 59, 89, 0.04);
}

.pathway-card h2, .pathway-card h3 {
    font-size: 1.5rem;
    color: #033B59;
    margin-bottom: 1rem;
}

.pathway-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    flex-grow: 1;
}

.pathway-card.align-left {
    align-items: flex-start;
    text-align: left;
}

/* --- Badges & Subheadings --- */
.badge {
    background: #f1f5f9;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.8rem;
    color: #033B59;
    margin: 0.25rem 0 1.25rem 0;
    text-transform: uppercase;
    display: inline-block;
}

.tag {
    color: #D9A72A;
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

/* --- Subject & Format Grid Displays --- */
.grid-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.grid-column h4 {
    color: #D9A72A;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.grid-column ul {
    list-style: none;
    color: #5a6c7d;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.grid-column p {
    color: #5a6c7d;
    font-size: 0.95rem;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
    transition: background-color 0.2s ease;
    width: 100%;
}

.btn-primary {
    background-color: #033B59;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #022538;
}

.btn-secondary {
    background-color: #D9A72A;
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #be8e1f;
}

.btn-mini {
    margin-top: auto;
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
}

.btn-center-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    width: 100%;
}

.btn-center-container .btn {
    flex: 1 1 200px;
    max-width: 100%;
}

/* --- Interactive Forms --- */
.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.form-group label {
    font-weight: 500;
    color: #033B59;
    font-size: 0.95rem;
}

.form-group input, .form-group select, .form-group textarea {
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    color: #2c3e50;
    width: 100%;
    -webkit-appearance: none;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: 2px solid #D9A72A;
    border-color: transparent;
}

.form-submit-container {
    text-align: center;
    margin-top: 1.5rem;
}

.form-submit-container button {
    border: none;
    cursor: pointer;
    width: 100%;
}

/* --- Footer --- */
footer {
    background-color: #033B59;
    color: #ffffff;
    padding: 2rem 1rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
}

footer p {
    font-size: 0.9rem;
    color: #cbd5e1;
}

.social-media {
    display: flex;
    gap: 1.5rem;
}

.social-media a {
    color: #D9A72A;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.social-media a:hover {
    color: #ffffff;
}

/* --- Responsive Media Queries --- */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
        padding-bottom: 0.5rem;
    }

    nav {
        width: 100%;
    }

    nav ul {
        justify-content: center;
        gap: 0.75rem 1.25rem;
    }

    nav a {
        font-size: 0.9rem;
        padding: 0.25rem 0;
    }

    .intro {
        margin-bottom: 2rem;
    }

    .intro h1 {
        font-size: 1.85rem;
    }

    .intro p {
        font-size: 1rem;
    }

    .info-block, .pathway-card {
        padding: 1.5rem;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .social-media {
        justify-content: center;
    }
}

@media (min-width: 769px) {
    .founder-grid {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
    }
}
