:root {
    --nmjc-red: #B62025;
    --nmjc-red-dark: #8e171b;
    --nmjc-gold: #FDB913;
    --text-dark: #222222;
    --text-muted: #5f6368;
    --background-light: #f6f6f6;
    --border-light: #dddddd;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Roboto, "Segoe UI", Arial, sans-serif;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.65;
}

a {
    color: var(--nmjc-red);
}

a:hover,
a:focus {
    color: var(--nmjc-red-dark);
}


/* ---------------------------------
   HERO
--------------------------------- */

.president-search-hero {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.76) 0%,
            rgba(0, 0, 0, 0.54) 50%,
            rgba(0, 0, 0, 0.18) 100%
        ),
        url("/about/presidential_search/images/new-mexico-junior-college_hero.jpeg")
        center / cover no-repeat;
    color: var(--white);
}

.hero-content {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 70px 0;
}

.hero-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 5px 12px;
    border-left: 4px solid var(--nmjc-gold);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.president-search-hero h1 {
    margin: 0 0 18px;
    max-width: 760px;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    line-height: 1.05;
    font-weight: 700;
}

.hero-lead {
    max-width: 760px;
    margin: 0 0 28px;
    font-size: 1.25rem;
    line-height: 1.6;
}

.hero-button {
    display: inline-block;
    padding: 13px 24px;
    background: var(--nmjc-red);
    color: var(--white);
    border: 2px solid var(--nmjc-red);
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s ease;
}

.hero-button:hover,
.hero-button:focus {
    background: var(--white);
    color: var(--nmjc-red);
}


/* ---------------------------------
   GENERAL LAYOUT
--------------------------------- */

.page-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.page-section {
    padding: 50px 0;
}

.page-section.alt {
    background: var(--background-light);
}

.section-heading {
    margin: 0 0 12px;
    color: var(--nmjc-red);
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    line-height: 1.2;
}

.section-intro {
    max-width: 820px;
    margin: 0 0 35px;
    color: var(--text-muted);
    font-size: 1.08rem;
}


/* ---------------------------------
   SEARCH OVERVIEW / DEADLINE
--------------------------------- */

.search-overview {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 45px;
    align-items: center;
}

.search-overview p {
    margin-top: 0;
    font-size: 1.08rem;
}

.deadline-card {
    padding: 30px;
    background: var(--nmjc-red);
    color: var(--white);
    border-radius: 8px;
    border-bottom: 6px solid var(--nmjc-gold);
}

.deadline-card .label {
    display: block;
    margin-bottom: 8px;
    color: var(--nmjc-gold);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.deadline-card .date {
    display: block;
    margin-bottom: 10px;
    font-size: 1.9rem;
    line-height: 1.2;
    font-weight: 700;
}

.deadline-card p {
    margin: 0;
    font-size: 0.98rem;
}


/* ---------------------------------
   TIMELINE
--------------------------------- */

.timeline {
    position: relative;
    max-width: 1000px;
    margin-top: 35px;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 155px;
    width: 3px;
    background: #dedede;
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 55px;
    padding: 0 0 38px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-date {
    font-weight: 700;
    color: var(--nmjc-red);
    text-align: right;
    line-height: 1.35;
}

.timeline-content {
    position: relative;
    padding: 0 0 0 14px;
}

.timeline-content::before {
    content: "";
    position: absolute;
    top: 5px;
    left: -42px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--nmjc-gold);
    border: 4px solid var(--nmjc-red);
}

.timeline-content p {
    margin: 0;
}

.timeline-content strong {
    font-weight: 700;
}

.timeline-note {
    margin-top: 30px;
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-muted);
}


/* ---------------------------------
   REPORTS & RESOURCES
--------------------------------- */

.search-links-wrapper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    background: var(--white);
    border: 1px solid var(--border-light);
    border-top: 5px solid var(--nmjc-red);
    border-radius: 8px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

.search-links-column {
    padding: 28px 32px 30px;
}

.search-links-column + .search-links-column {
    border-left: 1px solid var(--border-light);
}

.plain-link-list {
    margin: 0;
    padding-left: 20px;
}

.plain-link-list li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.plain-link-list li:last-child {
    margin-bottom: 0;
}

.plain-link-list a {
    color: var(--nmjc-red);
    text-decoration: underline;
    font-weight: 500;
}

.plain-link-list a:hover,
.plain-link-list a:focus {
    color: var(--nmjc-red-dark);
}


/* ---------------------------------
   APPLY SECTION
--------------------------------- */

.apply-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(270px, 0.85fr);
    gap: 50px;
}

.application-list {
    margin: 25px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: application-step;
}

.application-list li {
    position: relative;
    min-height: 60px;
    margin-bottom: 22px;
    padding-left: 70px;
    counter-increment: application-step;
}

.application-list li::before {
    content: counter(application-step);
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--nmjc-red);
    color: var(--white);
    font-weight: 700;
}

.apply-box {
    align-self: start;
    padding: 30px;
    border: 1px solid var(--border-light);
    border-top: 5px solid var(--nmjc-red);
    background: var(--white);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.07);
}

.apply-box h3 {
    margin: 0 0 12px;
    font-size: 1.4rem;
}

.apply-box p {
    margin: 0 0 22px;
}

.apply-button {
    display: block;
    width: 100%;
    padding: 13px 20px;
    text-align: center;
    background: var(--nmjc-red);
    color: var(--white);
    font-weight: 700;
    text-decoration: none;
	border: 2px solid var(--nmjc-red);
    border-radius: 4px;
    transition: 0.2s ease;
}

.apply-button:hover,
.apply-button:focus {
    background: var(--white);
    color: var(--nmjc-red);
}

/* ---------------------------------
   CONTACTS
--------------------------------- */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
    margin-top: 35px;
}

.contact-card {
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 6px;
}

.contact-card h3 {
    margin: 0 0 5px;
    color: var(--nmjc-red);
    font-size: 1.35rem;
}

.contact-title {
    margin: 0 0 18px;
    color: var(--text-muted);
}

.contact-card p {
    margin: 7px 0;
}

.contact-card a {
    font-weight: 600;
}

.consultant-layout {
    display: flex;
    align-items: center;
    gap: 28px;
}

.consultant-logo {
    flex: 0 0 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.consultant-logo img {
    display: block;
    width: 100%;
    max-width: 115px;
    height: auto;
}

.consultant-info {
    min-width: 0;
    flex: 1;
}

.consultant-info h3 {
    margin-top: 0;
}


/* ---------------------------------
   FOOTER
--------------------------------- */

.search-footer {
    padding: 30px 20px;
    background: #222222;
    color: #eeeeee;
    text-align: center;
}

.search-footer p {
    margin: 0;
}

.search-footer strong {
    color: var(--nmjc-gold);
}


/* ---------------------------------
   RESPONSIVE
--------------------------------- */

@media (max-width: 850px) {

    .search-overview,
    .apply-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 9px;
    }

    .timeline-item {
        display: block;
        padding-left: 40px;
        padding-bottom: 35px;
    }

    .timeline-date {
        margin-bottom: 7px;
        text-align: left;
    }

    .timeline-content {
        padding-left: 0;
    }

    .timeline-content::before {
        left: -38px;
    }
}

@media (max-width: 800px) {

    .search-links-wrapper {
        grid-template-columns: 1fr;
    }

    .search-links-column + .search-links-column {
        border-left: 0;
        border-top: 1px solid var(--border-light);
    }
}

@media (max-width: 600px) {

    .page-container,
    .hero-content {
        width: min(100% - 28px, 1180px);
    }

    .president-search-hero {
        min-height: 390px;
    }

    .hero-content {
        padding: 55px 0;
    }

    .application-list li {
        padding-left: 58px;
    }

    .consultant-layout {
        align-items: flex-start;
        gap: 18px;
    }

    .consultant-logo {
        flex-basis: 80px;
    }

    .consultant-logo img {
        max-width: 75px;
    }

    .search-links-column {
        padding: 24px 22px;
    }
}