/* 
  Pro Rapid Building Group - Difficult Blocks Page Styles
*/

/* --- General Fixes & Utilities --- */
.text-dark {
    color: #111 !important;
}

/* --- Hero Section --- */
.db-hero {
    position: relative;
    height: 80vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    margin-top: 130px; /* Offset for fixed header */
}

.db-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.db-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.db-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(17,17,17,0.95) 0%, rgba(17,17,17,0.7) 50%, rgba(17,17,17,0.2) 100%);
}

.db-hero-content {
    max-width: 650px;
    padding-top: 40px;
}

.db-hero-content .hero-title {
    font-size: 5.5rem;
    margin-bottom: 25px;
    line-height: 0.95;
}

.db-hero-text {
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 10px;
}

/* --- No Easy Block Section --- */
.no-easy-block {
    background-color: #f5f5f5;
    padding: 80px 0;
}

.neb-container {
    display: flex;
    gap: 60px;
    align-items: center;
}

.neb-image {
    flex: 1;
}

.neb-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.neb-content {
    flex: 1;
}

.neb-content .section-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.neb-text {
    color: #444;
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

.neb-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.neb-feature-item {
    text-align: center;
}

.neb-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.neb-feature-item h4 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: #111;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.neb-feature-item p {
    font-size: 0.9rem;
    color: #666;
}

/* --- Types of Blocks Section (5 Columns) --- */
.types-of-blocks {
    background-color: #eaeaea;
    padding: 100px 0;
}

.blocks-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.block-type-card {
    background-color: var(--white);
    text-align: center;
    padding-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.block-img-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    margin-bottom: 30px;
}

.block-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.block-icon {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid var(--white);
}

.block-type-card h4 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: #111;
    margin-bottom: 10px;
    padding: 0 15px;
}

.block-type-card p {
    font-size: 0.9rem;
    color: #666;
    padding: 0 15px;
    line-height: 1.5;
}

/* --- Process Section (5 Steps) --- */
.db-process {
    background-color: #f5f5f5;
    padding: 100px 0;
}

.process-steps.five-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.process-steps.five-steps .step-item {
    position: relative;
    flex: 1;
}

.step-number {
    position: absolute;
    top: -15px;
    left: -15px;
    background-color: var(--primary);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    z-index: 2;
}

.step-card {
    background-color: transparent;
    padding: 20px 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

.step-icon {
    margin-bottom: 15px;
}

.step-card h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #111;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

.step-arrow {
    flex: 0 0 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Bottom CTA Section --- */
.db-cta {
    position: relative;
    padding: 80px 0;
    display: flex;
    align-items: center;
    background-color: #111;
}

.db-cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.4;
}

.db-cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.db-cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(17,17,17,1) 0%, rgba(17,17,17,0.8) 50%, rgba(17,17,17,0.3) 100%);
    z-index: 1;
}

.db-cta-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.db-cta-content .cta-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--white);
    line-height: 1;
    margin-bottom: 15px;
}

.db-cta-content p {
    font-size: 1.1rem;
    color: var(--white);
    opacity: 0.9;
    max-width: 500px;
}

.db-cta-btn .btn-outline {
    border-width: 2px;
    background: rgba(0,0,0,0.5);
    color: var(--white);
    border-color: rgba(255,255,255,0.3);
}

.db-cta-btn .btn-outline:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* Responsive adjustments */
@media (max-width: 1199px) {
    .blocks-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .neb-container {
        flex-direction: column;
    }
    .process-steps.five-steps {
        flex-direction: column;
        gap: 20px;
    }
    .step-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    .db-cta-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .db-cta-content p {
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .blocks-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}
