/* Real Estate Partners Specific Styles */

/* Fix for navbar overlap */
body {
    padding-top: 80px;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fc;
    margin: 0;
    color: #1a1a2e;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Section */
.realestate-header {
    background: linear-gradient(135deg, #2b4e87 0%, #77c7b5 100%);
    color: white;
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
    margin-top: -80px;
}

.realestate-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(119, 199, 181, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(244, 198, 50, 0.15) 0%, transparent 50%);
}

.realestate-header .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    padding-top: 80px;
}

.realestate-header .header-content {
    flex: 1;
    max-width: 600px;
}

.realestate-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-subtitle {
    font-size: 1.4rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.realestate-header .header-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.realestate-header .image-placeholder {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    font-size: 8rem;
}

/* Main Content Section */
.main-content-section {
    padding: 80px 0;
    background: white;
    width: 100%;
}

.content-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.content-text {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content-text p {
    font-size: 1.3rem;
    color: #333;
    line-height: 1.8;
    margin-bottom: 3rem;
    text-align: center;
    max-width: 900px;
    width: 100%;
    padding: 0 20px;
}

.content-text > p:first-of-type {
    font-size: 1.6rem;
    line-height: 1.9;
    background: linear-gradient(135deg, #2b4e87 0%, #77c7b5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 0;
    font-weight: 600;
    margin-bottom: 4rem;
}

.closing-text {
    font-size: 1.4rem;
    color: #2b4e87;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(43, 78, 135, 0.05) 0%, rgba(119, 199, 181, 0.05) 100%);
    padding: 3rem 4rem;
    border-radius: 20px;
    border-left: 4px solid #77c7b5;
    margin: 4rem auto 0;
    max-width: 900px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    justify-items: center;
}

/* Make the 4th feature item (Enhanced customer dwell time and footfall) centered */
.feature-item:nth-child(4) {
    grid-column: 1 / -1; /* Make it span all columns */
    max-width: 380px; /* Set a maximum width to control its size */
    margin: 0 auto; /* Center it horizontally */
    justify-self: center; /* Center within the grid cell */
    width: 100%; /* Ensure it takes full width of its container */
}

.feature-item {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
    border: 1px solid rgba(43, 78, 135, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 320px;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(43, 78, 135, 0.15);
    border-color: rgba(43, 78, 135, 0.3);
}

/* ICON AT THE TOP - CENTERED */
.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2b4e87 0%, #77c7b5 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    box-shadow: 0 4px 20px rgba(43, 78, 135, 0.3);
    flex-shrink: 0;
}

/* TEXT CONTENT BELOW THE ICON */
.feature-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.feature-content h3 {
    font-size: 1.3rem;
    margin: 0 0 1rem 0;
    color: #1c749c;
    font-weight: 700;
    line-height: 1.4;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.feature-content p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
    text-align: center;
    width: 100%;
}

/* Footer */
footer {
    background: #0d1321;
    color: white;
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section h3 {
    color: #77c7b5;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-section p, 
.footer-section li a {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a:hover {
    color: #77c7b5;
}

.footer-bottom {
    margin-top: 4rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal {
    margin-top: 1rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 1rem;
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-legal a:hover {
    color: #77c7b5;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
    }
    
    /* Update for the centered box on tablet */
    .feature-item:nth-child(4) {
        max-width: 700px;
    }
    
    .content-text p {
        font-size: 1.2rem;
        max-width: 800px;
    }
    
    .content-text > p:first-of-type {
        font-size: 1.4rem;
    }
    
    .closing-text {
        font-size: 1.2rem;
        padding: 2.5rem 3.5rem;
        max-width: 850px;
        min-height: 160px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .realestate-header {
        margin-top: -70px;
        padding: 50px 0 60px 0;
    }
    
    .realestate-header .container {
        flex-direction: column;
        text-align: center;
        padding-top: 70px;
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .realestate-header h1 {
        font-size: 2.5rem;
    }
    
    .header-subtitle {
        font-size: 1.2rem;
    }
    
    .realestate-header .image-placeholder {
        width: 200px;
        height: 200px;
        font-size: 5rem;
    }
    
    .main-content-section {
        padding: 60px 0;
    }
    
    .content-text p {
        font-size: 1.1rem;
        text-align: center;
        padding: 0 15px;
        max-width: 600px;
    }
    
    .content-text > p:first-of-type {
        font-size: 1.3rem;
        padding: 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 500px;
    }
    
    /* Update for mobile - remove the grid-column when in single column */
    .feature-item:nth-child(4) {
        grid-column: 1;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .feature-item {
        padding: 2rem;
        min-height: 280px;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .feature-icon {
        font-size: 2rem;
        width: 70px;
        height: 70px;
    }
    
    .feature-content h3 {
        font-size: 1.2rem;
        min-height: 55px;
    }
    
    .closing-text {
        font-size: 1.1rem;
        padding: 2rem 2.5rem;
        margin: 2rem auto 0;
        max-width: 550px;
        min-height: 140px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 60px;
    }
    
    .realestate-header {
        margin-top: -60px;
        padding: 40px 0 50px 0;
    }
    
    .realestate-header .container {
        padding-top: 60px;
    }
    
    .realestate-header h1 {
        font-size: 2rem;
    }
    
    .realestate-header .image-placeholder {
        width: 180px;
        height: 180px;
        font-size: 4rem;
    }
    
    .main-content-section {
        padding: 50px 0;
    }
    
    .content-text p {
        font-size: 1rem;
        line-height: 1.7;
        padding: 0 10px;
    }
    
    .content-text > p:first-of-type {
        font-size: 1.2rem;
        line-height: 1.6;
    }
    
    .features-grid {
        gap: 1.5rem;
        max-width: 350px;
    }
    
    /* Update for small mobile */
    .feature-item:nth-child(4) {
        max-width: 350px;
    }
    
    .feature-item {
        padding: 1.5rem;
        min-height: 260px;
        max-width: 350px;
    }
    
    .feature-icon {
        font-size: 1.8rem;
        width: 60px;
        height: 60px;
    }
    
    .feature-content h3 {
        font-size: 1.1rem;
        min-height: 50px;
    }
    
    .closing-text {
        font-size: 1rem;
        padding: 1.8rem 2rem;
        max-width: 380px;
        min-height: 120px;
    }
}

/* Header Image Styles */
.header-image-wrapper {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.header-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 18px;
    transition: transform 0.5s ease;
}

.header-img:hover {
    transform: scale(1.03);
}

/* Remove the old image-placeholder styles */
.realestate-header .image-placeholder {
    display: none;
}

/* Responsive adjustments for the image */
@media (max-width: 1024px) {
    .header-image-wrapper {
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .realestate-header .container {
        gap: 3rem;
    }
    
    .header-image-wrapper {
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .header-image-wrapper {
        max-width: 280px;
    }
}