/* =========================================================
   SILIBOT — ROBOTICS PROJECT DETAIL PAGES
   Shared styling for RADAR, Smart Irrigation, Solar Tracker,
   and Wet & Dry Waste Aggregator.
   ========================================================= */

.robotics-project-page {
    background: #f6f9fd;
    color: #14233b;
}

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

.project-detail-hero {
    position: relative;
    overflow: hidden;
    background: #071d36;
    color: #ffffff;
}

.project-detail-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;
}

.project-detail-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;
}

.project-detail-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 35px;
    font-size: 13px;
    color: #a9bad0;
}

.project-detail-breadcrumb a {
    color: #8bbcff;
    text-decoration: none;
}

.project-detail-breadcrumb span {
    color: #6f849d;
}

.project-detail-breadcrumb strong {
    color: #ffffff;
}

.project-detail-eyebrow {
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
    color: #63a4ff;
}

.project-detail-hero-content h1 {
    margin: 0;
    font-size: clamp(42px, 5vw, 66px);
    line-height: 1.05;
    letter-spacing: -2px;
}

.project-detail-hero-content h2 {
    margin: 14px 0 20px;
    font-size: clamp(25px, 3vw, 36px);
    color: #4c9cff;
}

.project-detail-hero-content > p {
    max-width: 600px;
    margin: 0;
    font-size: 18px;
    line-height: 1.7;
    color: #d1ddea;
}

.project-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;
}

.project-detail-hero-image img {
    width: 100%;
    display: block;
    border-radius: 22px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.35);
}

.project-overview {
    padding: 85px 0;
}

.project-overview-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 45px;
    align-items: start;
}

.project-section-label {
    display: block;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2.5px;
    color: #2563eb;
}

.project-overview-content h2,
.project-section-heading h2,
.project-learning-card h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 44px);
    letter-spacing: -1px;
}

.project-overview-content p {
    max-width: 720px;
    margin: 20px 0 0;
    font-size: 16px;
    line-height: 1.8;
    color: #5f6f84;
}

.project-info-card {
    padding: 28px;
    border: 1px solid #dce6f1;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 35px rgba(25,50,85,0.07);
}

.project-info-item {
    padding: 17px 0;
    border-bottom: 1px solid #e8eef5;
}

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

.project-info-item span {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    color: #7b8798;
}

.project-info-item strong {
    font-size: 16px;
    color: #172b47;
}

.project-features-section {
    padding: 85px 0;
    background: #edf5ff;
}

.project-section-heading {
    max-width: 760px;
    margin-bottom: 40px;
}

.project-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.project-feature-card {
    padding: 30px;
    border: 1px solid #d9e6f4;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(28,55,90,0.06);
}

.project-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;
}

.project-feature-card h3 {
    margin: 0 0 10px;
    font-size: 19px;
}

.project-feature-card p {
    margin: 0;
    color: #65748a;
    line-height: 1.65;
    font-size: 14px;
}

.project-how-section {
    padding: 85px 0;
    background: #ffffff;
}

.project-workflow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.project-work-step {
    position: relative;
    padding: 30px;
    border: 1px solid #e1e8f1;
    border-radius: 20px;
    background: #ffffff;
    text-align: center;
}

.project-step-number {
    position: absolute;
    top: 15px;
    right: 17px;
    font-size: 11px;
    font-weight: 800;
    color: #9aaabd;
}

.project-step-icon {
    margin: 15px auto 20px;
    font-size: 38px;
}

.project-work-step h3 {
    margin: 0 0 12px;
    font-size: 18px;
}

.project-work-step p {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: #66758a;
}

.project-image-section {
    padding: 85px 0;
    background: #f6f9fd;
}

.project-main-image {
    overflow: hidden;
    border: 1px solid #dce6f0;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(25,50,85,0.10);
}

.project-main-image img {
    width: 100%;
    display: block;
}

.project-learning-section {
    padding: 85px 0;
    background: #ffffff;
}

.project-learning-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.project-learning-card {
    padding: 35px;
    border: 1px solid #dce7f3;
    border-radius: 22px;
    background: #f8fbff;
}

.project-learning-card ul {
    margin: 25px 0 0;
    padding-left: 22px;
}

.project-learning-card li {
    margin-bottom: 13px;
    color: #4e6077;
    line-height: 1.55;
}

.project-learning-list {
    list-style: none;
    padding-left: 0 !important;
}

.project-learning-list li {
    position: relative;
    padding-left: 31px;
}

.project-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;
}

.project-final-section {
    padding: 20px 0 80px;
    background: #ffffff;
}

.project-final-card {
    padding: 32px 38px;
    border-radius: 25px;
    background: #e9f3ff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.project-final-card h2 {
    margin: 0;
    font-size: 28px;
}

.project-final-card p {
    margin: 8px 0 0;
    color: #61728a;
}

.project-final-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.project-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;
}

.project-final-button.secondary {
    background: #ffffff;
    color: #2563eb;
    border: 1px solid #b9d5fa;
}

.project-final-button:hover {
    opacity: 0.9;
}

@media (max-width: 950px) {
    .project-detail-hero-inner {
        grid-template-columns: 1fr;
    }

    .project-detail-hero-content {
        text-align: center;
    }

    .project-detail-breadcrumb {
        justify-content: center;
    }

    .project-detail-hero-content > p {
        margin-left: auto;
        margin-right: auto;
    }

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

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

@media (max-width: 650px) {
    .project-section-container {
        width: min(100% - 40px, 1180px);
    }

    .project-detail-hero-inner {
        width: calc(100% - 40px);
        padding: 40px 0 50px;
    }

    .project-overview-grid {
        grid-template-columns: 1fr;
    }

    .project-feature-grid,
    .project-workflow,
    .project-learning-grid {
        grid-template-columns: 1fr;
    }

    .project-overview,
    .project-features-section,
    .project-how-section,
    .project-image-section,
    .project-learning-section {
        padding: 60px 0;
    }

    .project-final-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px;
    }

    .project-final-buttons {
        width: 100%;
        flex-direction: column;
    }

    .project-final-button {
        width: 100%;
        justify-content: center;
    }
}
