/* =========================================================
   SILIBOT — FIRE ALARM SYSTEM PROJECT
   Public project detail page.
   ========================================================= */


/* ---------------------------------------------------------
   Main page
   --------------------------------------------------------- */
.fire-project-page {
    background: #f6f9fd;
    color: #14233b;
}


/* ---------------------------------------------------------
   Common content width
   --------------------------------------------------------- */
.section-container {
    width: min(1180px, calc(100% - 60px));
    margin: 0 auto;
}


/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.fire-project-hero {
    position: relative;
    overflow: hidden;
    background: #071d36;
    color: #ffffff;
}


/* Futuristic background grid. */
.fire-hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image:
        linear-gradient(rgba(255,255,255,0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px);
    background-size: 55px 55px;
}


/* Hero inner layout. */
.fire-hero-inner {
    position: relative;
    z-index: 2;
    width: min(1250px, calc(100% - 60px));
    min-height: 500px;
    margin: 0 auto;
    padding: 55px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}


/* ---------------------------------------------------------
   Breadcrumb
   --------------------------------------------------------- */
.fire-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 35px;
    font-size: 13px;
    color: #a9bad0;
}


/* Breadcrumb links. */
.fire-breadcrumb a {
    color: #8bbcff;
    text-decoration: none;
}


/* Breadcrumb separator. */
.fire-breadcrumb span {
    color: #6f849d;
}


/* Current breadcrumb. */
.fire-breadcrumb strong {
    color: #ffffff;
}


/* ---------------------------------------------------------
   Hero text
   --------------------------------------------------------- */
.fire-eyebrow {
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
    color: #ff6b5f;
}


/* Project title. */
.fire-hero-content h1 {
    margin: 0;
    font-size: clamp(42px, 5vw, 66px);
    line-height: 1.05;
    letter-spacing: -2px;
}


/* Arduino subtitle. */
.fire-hero-content h2 {
    margin: 14px 0 20px;
    font-size: clamp(25px, 3vw, 36px);
    color: #4c9cff;
}


/* Hero description. */
.fire-hero-content > p {
    max-width: 570px;
    margin: 0;
    font-size: 18px;
    line-height: 1.7;
    color: #d1ddea;
}


/* Class badge. */
.fire-class-badge {
    display: inline-block;
    margin-top: 28px;
    padding: 10px 16px;
    border: 1px solid #347fcf;
    border-radius: 30px;
    color: #a9d0ff;
    font-size: 13px;
    font-weight: 700;
}


/* ---------------------------------------------------------
   Hero image
   --------------------------------------------------------- */
.fire-hero-image {
    position: relative;
}


/* Hero image. */
.fire-hero-image img {
    width: 100%;
    display: block;
    border-radius: 22px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
}


/* ---------------------------------------------------------
   Overview
   --------------------------------------------------------- */
.fire-overview {
    padding: 85px 0;
}


/* Overview grid. */
.fire-overview-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 45px;
    align-items: start;
}


/* Section label. */
.fire-section-label {
    display: block;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2.5px;
    color: #2563eb;
}


/* Section heading. */
.fire-overview-content h2,
.fire-section-heading h2,
.fire-learning-card h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 44px);
    letter-spacing: -1px;
}


/* Overview paragraphs. */
.fire-overview-content p {
    max-width: 720px;
    margin: 20px 0 0;
    font-size: 16px;
    line-height: 1.8;
    color: #5f6f84;
}


/* ---------------------------------------------------------
   Project information card
   --------------------------------------------------------- */
.fire-info-card {
    padding: 28px;
    border: 1px solid #dce6f1;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 35px rgba(25, 50, 85, 0.07);
}


/* Information row. */
.fire-info-item {
    padding: 17px 0;
    border-bottom: 1px solid #e8eef5;
}


/* Remove border from last item. */
.fire-info-item:last-child {
    border-bottom: 0;
}


/* Information label. */
.fire-info-item span {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    color: #7b8798;
}


/* Information value. */
.fire-info-item strong {
    font-size: 16px;
    color: #172b47;
}


/* ---------------------------------------------------------
   Features section
   --------------------------------------------------------- */
.fire-features-section {
    padding: 85px 0;
    background: #edf5ff;
}


/* Section heading. */
.fire-section-heading {
    max-width: 720px;
    margin-bottom: 40px;
}


/* Feature grid. */
.fire-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}


/* Feature card. */
.fire-feature-card {
    padding: 30px;
    border: 1px solid #d9e6f4;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(28, 55, 90, 0.06);
}


/* Feature icon. */
.fire-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 22px;
    border-radius: 15px;
    background: #eaf2ff;
    font-size: 24px;
}


/* Feature title. */
.fire-feature-card h3 {
    margin: 0 0 10px;
    font-size: 19px;
}


/* Feature description. */
.fire-feature-card p {
    margin: 0;
    color: #65748a;
    line-height: 1.65;
    font-size: 14px;
}


/* ---------------------------------------------------------
   How it works
   --------------------------------------------------------- */
.fire-how-section {
    padding: 85px 0;
    background: #ffffff;
}


/* Workflow layout. */
.fire-workflow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}


/* Workflow step. */
.fire-work-step {
    position: relative;
    padding: 30px;
    border: 1px solid #e1e8f1;
    border-radius: 20px;
    background: #ffffff;
    text-align: center;
}


/* Step number. */
.fire-step-number {
    position: absolute;
    top: 15px;
    right: 17px;
    font-size: 11px;
    font-weight: 800;
    color: #9aaabd;
}


/* Step icon. */
.fire-step-icon {
    margin: 15px auto 20px;
    font-size: 38px;
}


/* Step heading. */
.fire-work-step h3 {
    margin: 0 0 12px;
    font-size: 18px;
}


/* Step description. */
.fire-work-step p {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: #66758a;
}


/* ---------------------------------------------------------
   Main image section
   --------------------------------------------------------- */
.fire-image-section {
    padding: 85px 0;
    background: #f6f9fd;
}


/* Main project image wrapper. */
.fire-main-image {
    overflow: hidden;
    border: 1px solid #dce6f0;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(25, 50, 85, 0.10);
}


/* Main project image. */
.fire-main-image img {
    width: 100%;
    display: block;
}


/* ---------------------------------------------------------
   Learning section
   --------------------------------------------------------- */
.fire-learning-section {
    padding: 85px 0;
    background: #ffffff;
}


/* Two-column learning layout. */
.fire-learning-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}


/* Learning card. */
.fire-learning-card {
    padding: 35px;
    border: 1px solid #dce7f3;
    border-radius: 22px;
    background: #f8fbff;
}


/* Lists. */
.fire-learning-card ul {
    margin: 25px 0 0;
    padding-left: 22px;
}


/* List item. */
.fire-learning-card li {
    margin-bottom: 13px;
    color: #4e6077;
    line-height: 1.55;
}


/* Learning outcome list. */
.learning-list {
    list-style: none;
    padding-left: 0 !important;
}


/* Learning outcome item. */
.learning-list li {
    position: relative;
    padding-left: 31px;
}


/* Learning check icon. */
.learning-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: #16a66a;
    color: #ffffff;
    text-align: center;
    line-height: 21px;
    font-size: 12px;
    font-weight: 800;
}


/* ---------------------------------------------------------
   Final CTA
   --------------------------------------------------------- */
.fire-final-section {
    padding: 20px 0 80px;
    background: #ffffff;
}


/* CTA card. */
.fire-final-card {
    padding: 32px 38px;
    border-radius: 25px;
    background: #e9f3ff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}


/* CTA heading. */
.fire-final-card h2 {
    margin: 0;
    font-size: 28px;
}


/* CTA paragraph. */
.fire-final-card p {
    margin: 8px 0 0;
    color: #61728a;
}


/* CTA button. */
.fire-final-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 23px;
    border-radius: 12px;
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}


/* CTA button hover. */
.fire-final-button:hover {
    background: #175dcc;
}


/* ---------------------------------------------------------
   Tablet
   --------------------------------------------------------- */
@media (max-width: 950px) {

    .fire-hero-inner {
        grid-template-columns: 1fr;
    }


    .fire-hero-content {
        text-align: center;
    }


    .fire-breadcrumb {
        justify-content: center;
    }


    .fire-hero-content > p {
        margin-left: auto;
        margin-right: auto;
    }


    .fire-feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    .fire-workflow {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */
@media (max-width: 650px) {

    .section-container {
        width: min(100% - 40px, 1180px);
    }


    .fire-hero-inner {
        width: calc(100% - 40px);
        padding: 40px 0 50px;
    }


    .fire-overview-grid {
        grid-template-columns: 1fr;
    }


    .fire-feature-grid,
    .fire-workflow,
    .fire-learning-grid {
        grid-template-columns: 1fr;
    }


    .fire-overview,
    .fire-features-section,
    .fire-how-section,
    .fire-image-section,
    .fire-learning-section {
        padding: 60px 0;
    }


    .fire-final-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px;
    }


    .fire-final-button {
        width: 100%;
        justify-content: center;
    }

}