/* Inheriting globals from style.css */

/* ===== PAGE TITLE ===== */
.page-title {
    text-align: center;
    padding: 70px 20px 45px;
    background: #f8fafc;
}

.title-box {
    display: inline-block;
    font-family: 'Oswald', sans-serif;
    font-size: 36px;
    color: #0f172a;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ===== SECTION 1: FACILITY / STARTUP SUPPORT ===== */
.facility-section {
    padding: 80px 10%;
    background: #ffffff;
}

.section-heading {
    text-align: center;
    font-family: 'Oswald', sans-serif;
    font-size: 36px;
    color: #0f172a;
    margin-bottom: 60px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

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

.service-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 40px 25px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.12);
}

.service-card h3 {
    color: #0f172a;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.service-card p {
    font-size: 13px;
    color: #334155;
    line-height: 1.6;
}

/* ===== SECTION 2: CENTERS OF EXCELLENCE ===== */
.coe-section {
    padding: 80px 10%;
    background: #f1f5f9;
}

.coe-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 50px;
}

.coe-item {
    min-height: 280px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.coe-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.coe-image {
    height: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #317EFB;
}

.coe-content {
    background: #ffffff;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.coe-text-box {
    padding: 35px;
    text-align: center;
}

.coe-text-box h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #0f172a;
}

.coe-text-box p {
    font-size: 13px;
    line-height: 1.6;
    color: #334155;
}

/* ===== SECTION 3 & 4: INFRASTRUCTURE & LABS ===== */
.infra {
    max-width: 1200px;
    margin: auto;
    padding: 40px 10% 80px;
}

.infra-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    margin-bottom: 80px;
    align-items: center;
}

.infra-row.reverse {
    direction: rtl;
}

.infra-row.reverse>* {
    direction: ltr;
}

/* ===== IMAGE ===== */
.infra-image img,
.infra-image div {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.infra-image:hover img,
.infra-image:hover div {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

/* ===== CONTENT ===== */
.infra-content {
    background: #ffffff;
    color: #0f172a;
    padding: 45px;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.infra-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.infra-content h2 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 18px;
    font-size: 24px;
    letter-spacing: 0.5px;
    color: #0f172a;
    font-weight: 600;
}

.infra-content p {
    font-size: 14px;
    line-height: 1.8;
    color: #334155;
    text-align: justify;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

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

    .infra-row {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .infra-row.reverse {
        direction: ltr;
    }

    .infra-content {
        padding: 35px 25px;
        text-align: center;
    }

    .infra-content h2 {
        font-size: 22px;
    }

    .infra-content p {
        text-align: center;
    }
}

@media (max-width: 768px) {

    .section-heading,
    .title-box {
        font-size: 28px;
    }

    .facility-section,
    .coe-section,
    .infra {
        padding: 40px 5%;
    }

    .service-card {
        padding: 30px 20px;
    }

    .service-card h3 {
        font-size: 16px;
    }

    .service-card p {
        font-size: 13px;
    }

    .coe-text-box {
        padding: 25px;
    }

    .coe-text-box h3 {
        font-size: 18px;
    }

    .coe-text-box p {
        font-size: 13px;
    }
}

/* ===== CO-WORKING SPACE BROWSER / MOCKUP FRAMES ===== */
.coworking-frames-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    align-items: stretch;
    margin-top: 10px;
    margin-bottom: 20px;
}

.coworking-mockup-frame {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.03);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    display: flex;
    flex-direction: column;
}

.coworking-mockup-frame:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.14), 0 4px 10px rgba(15, 23, 42, 0.04);
    border-color: rgba(235, 34, 39, 0.4);
}

.mockup-frame-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mockup-frame-dots {
    display: flex;
    align-items: center;
    gap: 7px;
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.mockup-dot.dot-red {
    background: #ff5f56;
    box-shadow: 0 0 0 1px rgba(224, 68, 62, 0.3);
}

.mockup-dot.dot-yellow {
    background: #ffbd2e;
    box-shadow: 0 0 0 1px rgba(222, 161, 35, 0.3);
}

.mockup-dot.dot-green {
    background: #27c93f;
    box-shadow: 0 0 0 1px rgba(26, 171, 42, 0.3);
}

.mockup-frame-address {
    flex: 1;
    max-width: 280px;
    min-width: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 4px 12px;
    font-family: var(--mono, monospace);
    font-size: 11px;
    color: #64748b;
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mockup-frame-address > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mockup-frame-address > i {
    flex-shrink: 0;
}

@media (max-width: 420px) {

    .mockup-frame-address {
        max-width: none;
    }
}

.mockup-frame-tag {
    font-family: var(--mono, monospace);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0284c7;
    background: #e0f2fe;
    padding: 3px 8px;
    border-radius: 4px;
}

.mockup-frame-screen {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #0f172a;
}

.mockup-frame-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.coworking-mockup-frame:hover .mockup-frame-img {
    transform: scale(1.04);
}

.mockup-frame-caption {
    padding: 16px 20px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.caption-title {
    font-weight: 600;
    font-size: 14px;
    color: #0f172a;
    display: block;
}

.caption-sub {
    font-family: var(--mono, monospace);
    font-size: 11px;
    color: #94a3b8;
    letter-spacing: 0.04em;
    display: block;
    margin-top: 3px;
}

@media (max-width: 860px) {
    .coworking-frames-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .mockup-frame-screen {
        height: 240px;
    }
}

/* ===== LABS: badge + copy + photo sit side-by-side on desktop,
   so they must stack on narrow screens or the row overflows ===== */
.lab-item .num-content {
    flex: 1 1 200px;
    min-width: 0;
}

.lab-item > img {
    flex: 0 1 271px;
    min-width: 0;
    border-radius: 10px;
}

@media (max-width: 900px) {
    .lab-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .lab-item .num-badge {
        min-width: 0;
    }
    .lab-item > img {
        flex: 0 0 auto;
        width: 100% !important;
        height: 200px;
        margin-top: 4px;
    }
}