/* =========================================================
   NKIF BLOG — HOME PAGE
   Maritime Career Information & Jobs Portal
========================================================= */


/* =========================================================
   GLOBAL
========================================================= */

* {
    box-sizing: border-box;
}

main {
    width: 100%;
    overflow: hidden;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.section-label,
.hero-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}


/* =========================================================
   BUTTONS
========================================================= */

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 28px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.25s ease;
}

.primary-btn {
    background: #111827;
    color: #ffffff;
    border: 1px solid #111827;
}

.primary-btn:hover {
    background: #243047;
    border-color: #243047;
    transform: translateY(-2px);
}

.secondary-btn {
    background: transparent;
    color: #111827;
    border: 1px solid #cbd5e1;
}

.secondary-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}


/* =========================================================
   HERO
========================================================= */

.portal-hero {
    background: #f3f6f8;
    padding: 85px 0 90px;
}

.portal-hero-container {
    width: min(1180px, 92%);
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 0.95fr;
    gap: 70px;
    align-items: center;
}

.hero-copy {
    max-width: 600px;
}

.hero-kicker {
    color: #64748b;
    margin-bottom: 20px;
}

.hero-copy h1 {
    margin: 0 0 25px;

    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.05;
    letter-spacing: -2px;
    font-weight: 800;
    color: #111827;
}

.hero-copy p {
    max-width: 550px;
    margin: 0 0 32px;

    font-size: 17px;
    line-height: 1.8;
    color: #526071;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}


/* =========================================================
   HERO IMAGE
========================================================= */

.hero-visual {
    position: relative;
}

.hero-image-box {
    height: 540px;
    overflow: hidden;
    position: relative;
    background: #dbe2e8;
}

.hero-image-box::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.02),
        rgba(0, 0, 0, 0.25)
    );
}

.hero-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Floating information box */

.floating-info {
    position: absolute;
    left: -35px;
    bottom: 35px;

    min-width: 270px;
    padding: 20px 24px;

    background: #ffffff;
    border-left: 4px solid #111827;

    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);

    display: flex;
    flex-direction: column;
    gap: 7px;

    z-index: 2;
}

.floating-info strong {
    font-size: 12px;
    letter-spacing: 1.5px;
    color: #111827;
}

.floating-info span {
    font-size: 13px;
    color: #64748b;
}


/* =========================================================
   QUICK NAVIGATION
========================================================= */

.quick-navigation {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.quick-nav-container {
    width: min(1180px, 92%);
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.quick-item {
    min-height: 115px;
    padding: 25px 22px;

    display: flex;
    align-items: center;
    gap: 18px;

    color: #111827;

    border-right: 1px solid #e2e8f0;

    transition: background 0.25s ease;
}

.quick-item:first-child {
    border-left: 1px solid #e2e8f0;
}

.quick-item:hover {
    background: #f8fafc;
}

.quick-number {
    font-size: 13px;
    font-weight: 800;
    color: #94a3b8;
}

.quick-item div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.quick-item strong {
    font-size: 14px;
}

.quick-item small {
    font-size: 12px;
    line-height: 1.5;
    color: #64748b;
}


/* =========================================================
   INTRODUCTION
========================================================= */

.blog-introduction {
    padding: 110px 0;
    background: #ffffff;
}

.introduction-container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

.intro-label {
    margin-bottom: 40px;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;

    color: #64748b;
}

.intro-layout {
    display: grid;
    grid-template-columns: 0.95fr 1fr;
    gap: 100px;
    align-items: start;
}

.intro-title h2 {
    max-width: 520px;
    margin: 0;

    font-size: clamp(35px, 4vw, 52px);
    line-height: 1.12;
    letter-spacing: -1.5px;

    color: #111827;
}

.intro-text {
    max-width: 550px;
}

.intro-text p {
    margin: 0 0 22px;

    font-size: 16px;
    line-height: 1.85;
    color: #5b6778;
}

.text-link {
    display: inline-block;
    margin-top: 10px;

    font-size: 14px;
    font-weight: 700;
    color: #111827;

    border-bottom: 1px solid #111827;
    padding-bottom: 5px;
}


/* =========================================================
   CAREER CATEGORIES
========================================================= */

.career-categories {
    padding: 105px 0;
    background: #f7f8fa;
}

.categories-container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    gap: 50px;
    margin-bottom: 50px;
}

.section-heading > div {
    max-width: 600px;
}

.section-heading .section-label {
    color: #64748b;
    margin-bottom: 13px;
}

.section-heading h2 {
    margin: 0;

    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.1;
    letter-spacing: -1.2px;

    color: #111827;
}

.section-heading > p {
    max-width: 390px;
    margin: 0;

    font-size: 15px;
    line-height: 1.7;
    color: #64748b;
}


/* Career grid */

.career-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    border-top: 1px solid #dbe1e7;
    border-left: 1px solid #dbe1e7;
}

.career-card {
    min-height: 220px;
    padding: 30px;

    position: relative;

    background: #ffffff;
    color: #111827;

    border-right: 1px solid #dbe1e7;
    border-bottom: 1px solid #dbe1e7;

    display: flex;
    flex-direction: column;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.career-card:hover {
    background: #eef2f5;
}

.career-index {
    font-size: 12px;
    font-weight: 800;
    color: #94a3b8;
}

.career-card-content {
    margin-top: auto;
    padding-right: 50px;
}

.career-card h3 {
    margin: 0 0 10px;

    font-size: 23px;
    line-height: 1.2;
}

.career-card p {
    max-width: 440px;
    margin: 0;

    font-size: 14px;
    line-height: 1.7;
    color: #64748b;
}

.arrow {
    position: absolute;
    top: 30px;
    right: 30px;

    font-size: 23px;
    color: #475569;

    transition: transform 0.25s ease;
}

.career-card:hover .arrow {
    transform: translate(4px, -4px);
}


/* =========================================================
   LATEST JOBS
========================================================= */

.latest-jobs {
    padding: 105px 0;
    background: #ffffff;
}

.jobs-container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

.jobs-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;
    margin-bottom: 45px;
}

.jobs-heading .section-label {
    color: #64748b;
    margin-bottom: 13px;
}

.jobs-heading h2 {
    margin: 0;

    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.1;
    letter-spacing: -1.2px;

    color: #111827;
}

.view-all {
    padding-bottom: 7px;

    font-size: 14px;
    font-weight: 700;

    color: #111827;

    border-bottom: 1px solid #111827;
}


/* Job rows */

.job-list {
    border-top: 1px solid #dbe1e7;
}

.job-row {
    min-height: 145px;
    padding: 28px 10px 28px 0;

    display: grid;
    grid-template-columns: 1fr 200px 40px;
    align-items: center;
    gap: 35px;

    border-bottom: 1px solid #dbe1e7;

    color: #111827;

    transition: padding 0.25s ease;
}

.job-row:hover {
    padding-left: 15px;
}

.job-main {
    min-width: 0;
}

.job-type {
    display: inline-block;
    margin-bottom: 9px;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;

    color: #64748b;
}

.job-main h3 {
    margin: 0 0 7px;

    font-size: 22px;
}

.job-main p {
    margin: 0;

    font-size: 13px;
    color: #64748b;
}

.job-location {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.job-location span {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;

    color: #94a3b8;
}

.job-location strong {
    font-size: 14px;
}

.job-arrow {
    font-size: 22px;
    color: #475569;
}


/* =========================================================
   FEATURED GUIDES
========================================================= */

.featured-guides {
    padding: 105px 0;
    background: #f7f8fa;
}

.guides-container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.guide-card {
    min-height: 480px;
    background: #ffffff;

    display: flex;
    flex-direction: column;

    border: 1px solid #e1e6eb;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.guide-image {
    height: 230px;
    overflow: hidden;
}

.guide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform 0.4s ease;
}

.guide-card:hover .guide-image img {
    transform: scale(1.04);
}

.guide-content {
    padding: 28px;

    display: flex;
    flex-direction: column;
    flex: 1;
}

.guide-category {
    margin-bottom: 13px;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;

    color: #64748b;
}

.guide-content h3 {
    margin: 0 0 13px;

    font-size: 22px;
    line-height: 1.25;
    color: #111827;
}

.guide-content p {
    margin: 0;

    font-size: 14px;
    line-height: 1.75;
    color: #64748b;
}

.guide-content a {
    margin-top: auto;
    padding-top: 25px;

    font-size: 13px;
    font-weight: 700;

    color: #111827;
}

.guide-card-text {
    background: #111827;
    border-color: #111827;
}

.guide-card-text .guide-content {
    justify-content: center;
}

.guide-card-text .guide-category,
.guide-card-text .guide-content h3,
.guide-card-text .guide-content p,
.guide-card-text .guide-content a {
    color: #ffffff;
}


/* =========================================================
   CAREER PATH
========================================================= */

.career-path {
    padding: 110px 0;
    background: #ffffff;
}

.career-path-container {
    width: min(1000px, 92%);
    margin: 0 auto;

    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 60px;
}

.career-path-number {
    font-size: 70px;
    line-height: 1;

    font-weight: 800;
    letter-spacing: -4px;

    color: #d9e0e7;
}

.career-path-content {
    max-width: 800px;
}

.career-path-content .section-label {
    margin-bottom: 15px;
    color: #64748b;
}

.career-path-content h2 {
    max-width: 650px;
    margin: 0 0 20px;

    font-size: clamp(35px, 4vw, 52px);
    line-height: 1.1;
    letter-spacing: -1.5px;

    color: #111827;
}

.career-path-content > p {
    max-width: 650px;
    margin: 0 0 38px;

    font-size: 16px;
    line-height: 1.8;
    color: #64748b;
}


/* Path steps */

.path-steps {
    margin-bottom: 38px;

    display: grid;
    grid-template-columns: repeat(2, 1fr);

    border-top: 1px solid #dbe1e7;
    border-left: 1px solid #dbe1e7;
}

.path-steps div {
    min-height: 75px;
    padding: 18px 20px;

    display: flex;
    align-items: center;
    gap: 15px;

    border-right: 1px solid #dbe1e7;
    border-bottom: 1px solid #dbe1e7;
}

.path-steps strong {
    font-size: 11px;
    color: #94a3b8;
}

.path-steps span {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}


/* =========================================================
   FAQ
========================================================= */

.portal-faq {
    padding: 105px 0;
    background: #f7f8fa;
}

.faq-container {
    width: min(950px, 92%);
    margin: 0 auto;
}

.faq-heading {
    margin-bottom: 45px;
}

.faq-heading .section-label {
    color: #64748b;
    margin-bottom: 13px;
}

.faq-heading h2 {
    margin: 0;

    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.1;
    letter-spacing: -1.2px;

    color: #111827;
}

.faq-list {
    border-top: 1px solid #d7dee5;
}

.faq-list details {
    border-bottom: 1px solid #d7dee5;
}

.faq-list summary {
    min-height: 85px;
    padding: 22px 5px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    cursor: pointer;

    list-style: none;

    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary span {
    flex-shrink: 0;

    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #cbd5e1;

    font-size: 18px;
    font-weight: 400;

    color: #475569;

    transition: transform 0.25s ease;
}

.faq-list details[open] summary span {
    transform: rotate(45deg);
}

.faq-list details p {
    max-width: 760px;

    margin: -5px 60px 28px 5px;

    font-size: 14px;
    line-height: 1.8;

    color: #64748b;
}


/* =========================================================
   FINAL CTA
========================================================= */

.blog-final {
    padding: 110px 0;

    background: #111827;
}

.final-container {
    width: min(900px, 92%);
    margin: 0 auto;

    text-align: center;
}

.final-container > span {
    display: inline-block;
    margin-bottom: 20px;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;

    color: #94a3b8;
}

.final-container h2 {
    max-width: 750px;
    margin: 0 auto 20px;

    font-size: clamp(38px, 5vw, 60px);
    line-height: 1.08;
    letter-spacing: -1.5px;

    color: #ffffff;
}

.final-container p {
    max-width: 600px;
    margin: 0 auto 35px;

    font-size: 16px;
    line-height: 1.8;

    color: #aeb9c7;
}

.final-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.blog-final .primary-btn {
    background: #ffffff;
    border-color: #ffffff;
    color: #111827;
}

.blog-final .primary-btn:hover {
    background: #e8edf2;
    border-color: #e8edf2;
}

.blog-final .secondary-btn {
    color: #ffffff;
    border-color: #526071;
}

.blog-final .secondary-btn:hover {
    background: #1f2937;
    border-color: #718096;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .portal-hero {
        padding: 70px 0;
    }

    .portal-hero-container {
        gap: 45px;
    }

    .hero-image-box {
        height: 470px;
    }

    .floating-info {
        left: -20px;
    }

    .intro-layout {
        gap: 60px;
    }

    .career-path-container {
        grid-template-columns: 70px 1fr;
        gap: 40px;
    }

    .guide-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .guide-card:last-child {
        grid-column: span 2;
        min-height: 350px;
    }
}


/* =========================================================
   TABLET / SMALL LAPTOP
========================================================= */

@media (max-width: 800px) {

    .portal-hero-container {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        max-width: 700px;
    }

    .hero-image-box {
        height: 420px;
    }

    .quick-nav-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-item:nth-child(2) {
        border-right: 1px solid #e2e8f0;
    }

    .quick-item:nth-child(3),
    .quick-item:nth-child(4) {
        border-top: 1px solid #e2e8f0;
    }

    .intro-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .jobs-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .job-row {
        grid-template-columns: 1fr 150px 35px;
        gap: 20px;
    }

    .career-path-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .career-path-number {
        font-size: 55px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .portal-hero {
        padding: 55px 0 65px;
    }

    .portal-hero-container {
        width: 90%;
    }

    .hero-copy h1 {
        font-size: 41px;
        letter-spacing: -1.5px;
    }

    .hero-copy p {
        font-size: 15px;
        line-height: 1.7;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
    }

    .hero-image-box {
        height: 340px;
    }

    .floating-info {
        left: 15px;
        right: 15px;
        bottom: 15px;

        min-width: 0;
    }


    /* Quick navigation */

    .quick-nav-container {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .quick-item,
    .quick-item:first-child {
        min-height: 95px;

        border-left: 0;
        border-right: 0;
        border-bottom: 1px solid #e2e8f0;
    }

    .quick-item:last-child {
        border-bottom: 0;
    }


    /* Introduction */

    .blog-introduction {
        padding: 75px 0;
    }

    .intro-title h2 {
        font-size: 36px;
    }


    /* Career categories */

    .career-categories {
        padding: 75px 0;
    }

    .career-grid {
        grid-template-columns: 1fr;
    }

    .career-card {
        min-height: 190px;
    }


    /* Jobs */

    .latest-jobs {
        padding: 75px 0;
    }

    .job-row {
        grid-template-columns: 1fr 30px;
        gap: 15px;
        padding: 25px 0;
    }

    .job-location {
        display: none;
    }

    .job-main h3 {
        font-size: 19px;
    }


    /* Guides */

    .featured-guides {
        padding: 75px 0;
    }

    .guide-grid {
        grid-template-columns: 1fr;
    }

    .guide-card,
    .guide-card:last-child {
        grid-column: auto;
        min-height: 0;
    }

    .guide-image {
        height: 210px;
    }

    .guide-card-text {
        min-height: 330px;
    }


    /* Career path */

    .career-path {
        padding: 75px 0;
    }

    .path-steps {
        grid-template-columns: 1fr;
    }

    .career-path-content h2 {
        font-size: 36px;
    }


    /* FAQ */

    .portal-faq {
        padding: 75px 0;
    }

    .faq-list summary {
        min-height: 75px;
        font-size: 14px;
    }

    .faq-list details p {
        margin-right: 10px;
        font-size: 13px;
    }


    /* Final */

    .blog-final {
        padding: 80px 0;
    }

    .final-container h2 {
        font-size: 39px;
    }

    .final-actions {
        flex-direction: column;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .hero-copy h1 {
        font-size: 36px;
    }

    .hero-image-box {
        height: 290px;
    }

    .floating-info {
        padding: 16px 18px;
    }

    .intro-title h2,
    .career-path-content h2 {
        font-size: 32px;
    }

    .section-heading h2,
    .jobs-heading h2,
    .faq-heading h2 {
        font-size: 32px;
    }

    .career-card {
        padding: 24px;
    }

    .career-card h3 {
        font-size: 20px;
    }

    .final-container h2 {
        font-size: 34px;
    }

}