/* =========================================================
   CALLS FOR PROPOSALS
   DAYO KENYA
========================================================= */


/* =========================================================
   ROOT
========================================================= */

:root {

    --dayo-blue: #87CEEB;
    --dayo-green: #1B5E20;

    --black: #000000;
    --white: #ffffff;

    --light-bg: #f4f9fb;
    --soft-bg: #eef7fa;

    --text: #182027;
    --muted: #68757d;

    --border: rgba(0, 0, 0, 0.08);

    --shadow:
        0 20px 55px rgba(16, 42, 52, 0.08);

    --radius: 24px;
}


/* =========================================================
   HERO
========================================================= */

.callsHero {

    position: relative;

    min-height: 520px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            rgba(27, 94, 32, 0.95),
            rgba(10, 48, 54, 0.88)
        ),
        url("../images/Job-opportunities.jpg");

    background-size: cover;
    background-position: center;

    color: var(--white);
}


.callsHeroOverlay {

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(135, 206, 235, 0.25),
            transparent 35%
        );

    pointer-events: none;
}


.callsHeroContent {

    position: relative;

    z-index: 2;

    width: min(1150px, 90%);

    margin: auto;

    padding: 90px 0;
}


.heroEyebrow {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 9px 15px;

    margin-bottom: 22px;

    border: 1px solid rgba(255,255,255,0.25);

    border-radius: 100px;

    background: rgba(255,255,255,0.08);

    backdrop-filter: blur(10px);

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


.callsHero h1 {

    max-width: 850px;

    margin: 0 0 22px;

    font-family: "Space Grotesk", sans-serif;

    font-size: clamp(42px, 6vw, 76px);

    line-height: 1.02;

    letter-spacing: -0.045em;
}


.callsHero h1 span {

    color: var(--dayo-blue);
}


.callsHero p {

    max-width: 760px;

    margin: 0;

    color: rgba(255,255,255,0.84);

    font-size: 17px;

    line-height: 1.8;
}


.heroActions {

    display: flex;

    flex-wrap: wrap;

    gap: 14px;

    margin-top: 34px;
}


.heroButton {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    min-height: 50px;

    padding: 0 22px;

    border-radius: 14px;

    text-decoration: none;

    font-weight: 800;

    transition: 0.25s ease;
}


.heroButton.primary {

    background: var(--dayo-blue);

    color: var(--black);
}


.heroButton.secondary {

    border: 1px solid rgba(255,255,255,0.25);

    background: rgba(255,255,255,0.08);

    color: var(--white);

    backdrop-filter: blur(10px);
}


.heroButton:hover {

    transform: translateY(-3px);
}


/* =========================================================
   SUMMARY
========================================================= */

.callsSummary {

    width: min(1150px, 90%);

    margin: -48px auto 0;

    position: relative;

    z-index: 10;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;
}


.summaryCard {

    display: flex;

    align-items: center;

    gap: 16px;

    padding: 24px;

    background: rgba(255,255,255,0.96);

    border: 1px solid rgba(255,255,255,0.8);

    border-radius: 20px;

    box-shadow: var(--shadow);

    backdrop-filter: blur(15px);
}


.summaryIcon {

    width: 52px;

    height: 52px;

    flex: 0 0 52px;

    display: grid;

    place-items: center;

    border-radius: 16px;

    background: var(--soft-bg);

    color: var(--dayo-green);

    font-size: 20px;
}


.summaryCard span {

    display: block;

    margin-bottom: 3px;

    color: var(--muted);

    font-size: 12px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.07em;
}


.summaryCard strong {

    font-family: "Space Grotesk", sans-serif;

    font-size: 28px;

    line-height: 1;
}


.openSummary .summaryIcon {

    color: var(--dayo-green);

    background: rgba(27,94,32,0.08);
}


.closedSummary .summaryIcon {

    color: #68757d;

    background: rgba(104,117,125,0.1);
}


/* =========================================================
   INTRO
========================================================= */

.callsIntro {

    padding: 110px 0 70px;

    background: var(--white);
}


.callsIntroInner {

    width: min(900px, 90%);

    margin: auto;

    text-align: center;
}


.sectionLabel {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 13px;

    color: var(--dayo-green);

    font-size: 12px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.1em;
}


.callsIntro h2,
.sectionHeading h2 {

    margin: 0;

    font-family: "Space Grotesk", sans-serif;

    color: var(--text);

    font-size: clamp(30px, 4vw, 48px);

    line-height: 1.12;

    letter-spacing: -0.035em;
}


.callsIntro p {

    max-width: 800px;

    margin: 22px auto 0;

    color: var(--muted);

    font-size: 16px;

    line-height: 1.8;
}


.introNote {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 12px 16px;

    border-radius: 12px;

    background: var(--soft-bg);

    color: var(--dayo-green) !important;

    font-size: 13px !important;

    font-weight: 700;
}


/* =========================================================
   MAIN SECTION
========================================================= */

.callsSection {

    padding: 40px 0 110px;

    background: var(--light-bg);
}


.callsContainer {

    width: min(1200px, 90%);

    margin: auto;
}


.sectionHeading {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 38px;
}


.resultsCount {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 10px 15px;

    border: 1px solid var(--border);

    border-radius: 100px;

    background: var(--white);

    color: var(--muted);

    font-size: 13px;

    font-weight: 700;
}


/* =========================================================
   GRID
========================================================= */

.callsGrid {

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 24px;
}


/* =========================================================
   CARD
========================================================= */

.callCard {

    position: relative;

    display: flex;

    flex-direction: column;

    overflow: hidden;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    background: var(--white);

    box-shadow: 0 12px 40px rgba(18, 50, 60, 0.06);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.callCard:hover {

    transform: translateY(-6px);

    box-shadow:
        0 25px 65px rgba(18, 50, 60, 0.12);
}


/* =========================================================
   CARD TOP
========================================================= */

.callCardTop {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 20px 22px;

    border-bottom: 1px solid var(--border);

    background:
        linear-gradient(
            135deg,
            rgba(135,206,235,0.08),
            rgba(27,94,32,0.03)
        );
}


.callNumber {

    width: 38px;

    height: 38px;

    display: grid;

    place-items: center;

    flex: 0 0 38px;

    border-radius: 12px;

    background: var(--black);

    color: var(--white);

    font-family: "Space Grotesk", sans-serif;

    font-size: 12px;

    font-weight: 700;
}


.callType {

    max-width: 55%;

    color: var(--muted);

    font-size: 11px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.06em;

    line-height: 1.3;
}


.callStatus {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    margin-left: auto;

    padding: 7px 10px;

    border-radius: 100px;

    font-size: 10px;

    font-weight: 800;

    white-space: nowrap;

    letter-spacing: 0.04em;
}


.statusDot {

    width: 7px;

    height: 7px;

    border-radius: 50%;

    background: currentColor;
}


.callStatus.open {

    color: var(--dayo-green);

    background: rgba(27,94,32,0.08);
}


.callStatus.today {

    color: #9a6500;

    background: rgba(234,179,8,0.12);
}


.callStatus.closed {

    color: #68757d;

    background: rgba(104,117,125,0.1);
}


/* =========================================================
   MAIN CARD
========================================================= */

.callMain {

    padding: 26px 24px 10px;
}


.callMain h3 {

    margin: 0 0 14px;

    color: var(--text);

    font-family: "Space Grotesk", sans-serif;

    font-size: 24px;

    line-height: 1.25;

    letter-spacing: -0.025em;
}


.callOrganization {

    display: flex;

    align-items: flex-start;

    gap: 9px;

    color: var(--dayo-green);

    font-size: 13px;

    font-weight: 800;

    line-height: 1.5;
}


.callOrganization i {

    margin-top: 3px;

    flex: 0 0 auto;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.callDescription {

    padding: 10px 24px 20px;
}


.callDescription p {

    margin: 0;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.75;
}


/* =========================================================
   META
========================================================= */

.callMeta {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 10px;

    padding: 0 24px 24px;
}


.metaItem {

    display: flex;

    align-items: flex-start;

    gap: 10px;

    min-width: 0;

    padding: 13px;

    border: 1px solid var(--border);

    border-radius: 14px;

    background: #fbfdfe;
}


.metaIcon {

    width: 32px;

    height: 32px;

    flex: 0 0 32px;

    display: grid;

    place-items: center;

    border-radius: 10px;

    background: rgba(135,206,235,0.16);

    color: var(--dayo-green);

    font-size: 13px;
}


.metaItem span {

    display: block;

    margin-bottom: 4px;

    color: #859199;

    font-size: 9px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.06em;
}


.metaItem strong {

    display: block;

    color: var(--text);

    font-size: 12px;

    line-height: 1.4;

    overflow-wrap: anywhere;
}


.deadlineItem {

    border-color: rgba(27,94,32,0.15);

    background: rgba(27,94,32,0.035);
}


/* =========================================================
   REQUIREMENTS
========================================================= */

.requirementsWrapper {

    margin: 0 24px;

    border-top: 1px solid var(--border);

    border-bottom: 1px solid var(--border);
}


.requirementsToggle {

    width: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    padding: 18px 0;

    border: 0;

    background: transparent;

    color: var(--text);

    cursor: pointer;

    font-family: "Manrope", sans-serif;

    font-size: 13px;

    font-weight: 800;

    text-align: left;
}


.requirementsToggle span {

    display: inline-flex;

    align-items: center;

    gap: 9px;
}


.requirementsToggle span i {

    color: var(--dayo-green);
}


.toggleIcon {

    color: var(--muted);

    transition: transform 0.25s ease;
}


.requirementsToggle.active {

    color: var(--dayo-green);
}


.requirementsContent {

    max-height: 0;

    overflow: hidden;

    transition: max-height 0.35s ease;
}


.requirementsContent ul {

    margin: 0;

    padding: 0 0 18px;

    list-style: none;
}


.requirementsContent li {

    display: flex;

    align-items: flex-start;

    gap: 10px;

    padding: 7px 0;

    color: var(--muted);

    font-size: 12px;

    line-height: 1.65;
}


.requirementsContent li i {

    margin-top: 4px;

    color: var(--dayo-green);

    font-size: 10px;

    flex: 0 0 auto;
}


/* =========================================================
   CONTACT
========================================================= */

.callContact {

    display: flex;

    align-items: flex-start;

    gap: 8px;

    margin: 0 24px;

    padding: 17px 0;

    color: var(--muted);

    font-size: 11px;

    line-height: 1.5;
}


.callContact i {

    margin-top: 2px;

    color: var(--dayo-green);
}


/* =========================================================
   CARD FOOTER
========================================================= */

.callFooter {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-top: auto;

    padding: 20px 24px;

    background: #f9fcfd;

    border-top: 1px solid var(--border);
}


.footerDeadline span {

    display: block;

    margin-bottom: 5px;

    color: #8a969c;

    font-size: 9px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.06em;
}


.footerDeadline strong {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    font-size: 12px;
}


.footerDeadline strong.open {

    color: var(--dayo-green);
}


.footerDeadline strong.today {

    color: #9a6500;
}


.footerDeadline strong.closed {

    color: #68757d;
}


.applicationButton {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    min-height: 42px;

    padding: 0 16px;

    border-radius: 12px;

    background: var(--dayo-green);

    color: var(--white);

    text-decoration: none;

    font-size: 11px;

    font-weight: 800;

    white-space: nowrap;

    transition: 0.25s ease;
}


.applicationButton:hover {

    transform: translateY(-2px);

    background: #124918;
}


.closedButton {

    background: #dfe5e7;

    color: #667279;

    cursor: not-allowed;

}


/* =========================================================
   NOTICE
========================================================= */

.callsNotice {

    padding: 70px 0;

    background: var(--white);
}


.noticeInner {

    width: min(950px, 90%);

    margin: auto;

    display: flex;

    align-items: flex-start;

    gap: 18px;

    padding: 25px;

    border: 1px solid rgba(27,94,32,0.12);

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            rgba(135,206,235,0.1),
            rgba(27,94,32,0.04)
        );
}


.noticeIcon {

    width: 46px;

    height: 46px;

    flex: 0 0 46px;

    display: grid;

    place-items: center;

    border-radius: 14px;

    background: rgba(27,94,32,0.1);

    color: var(--dayo-green);

    font-size: 19px;
}


.noticeContent h3 {

    margin: 0 0 7px;

    font-family: "Space Grotesk", sans-serif;

    font-size: 19px;

    color: var(--text);
}


.noticeContent p {

    margin: 0;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.7;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {

    .callsGrid {

        grid-template-columns: 1fr;
    }

}


@media (max-width: 760px) {

    .callsHero {

        min-height: 480px;
    }


    .callsHeroContent {

        padding: 75px 0;
    }


    .callsHero h1 {

        font-size: clamp(40px, 12vw, 58px);
    }


    .callsHero p {

        font-size: 15px;
    }


    .callsSummary {

        grid-template-columns: 1fr;

        margin-top: -30px;
    }


    .summaryCard {

        padding: 20px;
    }


    .callsIntro {

        padding-top: 80px;
    }


    .sectionHeading {

        align-items: flex-start;

        flex-direction: column;
    }


    .callCardTop {

        flex-wrap: wrap;
    }


    .callType {

        max-width: calc(100% - 50px);
    }


    .callStatus {

        width: 100%;

        margin-left: 0;

        justify-content: center;
    }


    .callMain h3 {

        font-size: 21px;
    }


    .callMeta {

        grid-template-columns: 1fr;
    }


    .callFooter {

        align-items: stretch;

        flex-direction: column;
    }


    .applicationButton {

        width: 100%;
    }


    .noticeInner {

        flex-direction: column;
    }

}


@media (max-width: 480px) {

    .callsHeroContent {

        width: 88%;
    }


    .heroActions {

        flex-direction: column;
    }


    .heroButton {

        width: 100%;
    }


    .callsContainer {

        width: 92%;
    }


    .callMain,
    .callDescription {

        padding-left: 18px;

        padding-right: 18px;
    }


    .callMeta {

        padding-left: 18px;

        padding-right: 18px;
    }


    .requirementsWrapper {

        margin-left: 18px;

        margin-right: 18px;
    }


    .callContact {

        margin-left: 18px;

        margin-right: 18px;
    }


    .callFooter {

        padding-left: 18px;

        padding-right: 18px;
    }

}