.hero-split-home {
    display: flex;
    flex-wrap: nowrap;
    max-width: 1400px;  /* Limits the width on huge monitors */
    margin: 40px auto;  /* Centers the section and adds space top/bottom */
    border-radius: 12px; /* Optional: rounds the corners for a modern look */
    overflow: hidden;    /* Keeps the image inside the rounded corners */
    background: #000;
    
    align-items: stretch;
    position: relative;
    border-radius: 20px; /* smooth curves */
    box-sizing: border-box;

    /* Black glossy transparent effect */
    
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.5));

    backdrop-filter: blur(10px);      /* glassy blur behind it */
    -webkit-backdrop-filter: blur(10px); /* Safari support */

    /* subtle shadow for depth */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    padding: 40px;
    
    
}
.hero-left {
    position: relative; /* overlay is relative to this */
    flex: 1 1 50%;
    min-height: 600px; /* desktop height */
    overflow: hidden;
    border-radius: 20px 0 0 20px;
}
.hero-image-home {
    width:100%;
    height:100%;
    position:relative;
    overflow:hidden;
    
}
.hero-img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    filter:grayscale(100%) blur(20px);
    transition:filter 0.5s ease;
    display: block;
}
.hero-img.loaded{
    filter:grayscale(100%) blur(0);
}
.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    z-index: 5;
    border-radius: 0;

    /* Gradient */
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.6) 0%,
        rgba(0,0,0,0.2) 50%,
        rgba(0,0,0,0) 100%
    );

    text-shadow: 0 2px 6px rgba(0,0,0,0.6);

    /* Animation */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUpOverlay 1s ease forwards;
    animation-delay: 0.5s; /* slight delay after page load */
}
.hero-value {
    margin: 0;
    letter-spacing: 1px;
}


.container-home {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}


.content-block-home {
    display: flex;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 40px auto;
    border-radius: 20px;
    overflow: hidden;
    color: #fff;
    box-sizing: border-box;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.5));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    padding: 30px;
    position: relative;
}

.content-block-home::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0.05), rgba(255,255,255,0));
    pointer-events: none;
}
.content-block-inner-home {
    padding: 60px 40px;
    width: 100%;
    box-sizing: border-box;
}

.container-home {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}.pillars-home {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    flex-wrap: wrap; /* This is the most important line! */
}

.pillar-home {
    flex: 1; /* Allows them to grow equally */
    min-width: 250px; /* Prevents them from getting too skinny */
    text-align: center;
    padding: 20px;
}
.section-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 50px;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.card {
    background: #111;
    border-radius: 20px 10px 25px 15px; /* top-left, top-right, bottom-right, bottom-left */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.image-container { height: 250px; position: relative; }
.image-container img, .blog-card img {height: 250px;
    object-fit: cover; /* Prevents stretching */
}
.badge {
    position: absolute;
    top: 15px; left: 15px;
    padding: 5px 12px;
    background: var(--gold);
    font-size: 0.7rem;
    color: #000;
    font-weight: bold;
}
.card-content, .blog-content { padding: 30px; }
.card-content h3, .blog-content h3 { color: var(--white); margin-bottom: 15px; }
.btn-outline {
    display: inline-block;
    margin-top: 15px;
    color: var(--gold);
    text-decoration: none;
    border: 1px solid var(--gold);
    padding: 8px 20px;
    font-size: 0.8rem;
}

.card, .blog-card {
    background: #111;
    border: 1px solid #222;
    transition: transform 0.3s ease;
    overflow: hidden; /* Keeps the image inside the rounded corners */
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}




@keyframes fadeUpOverlay {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}



.hero-text-home {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #fff;
    
    
   
    
}


.hero-text-home h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    line-height: 1.1;
    margin: 15px 0;
}

.cta-main-home {
    display: inline-block; /* Add this! It makes the button respect margins */
    align-self: flex-start;
    padding: 15px 35px;
    background: #c5a059;
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 30px; /* Increased slightly for breathing room */
    transition: all 0.3s ease; /* Makes it feel premium when hovered */
}
.cta-main-home:hover {
    background: #e2c07d; /* Lighter gold */
    transform: translateY(-3px); /* Lifts slightly */
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}


.pillar-home i { font-size: 2.5rem; color: var(--gold); margin-bottom: 20px; }
.pillar-home h3 { text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; }
.pillar-home p { font-size: 0.85rem; color: var(--grey-text); }








/* ================= FORCE MOBILE HERO FIX ================= */
@media (max-width: 768px) {

    /* Force vertical layout */
    .hero-split-home {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        padding: 15px !important;
        margin: 20px 10px !important;
    }

    /* Left (image) */
    .hero-left {
        width: 100% !important;
        flex: none !important;
        min-height: unset !important;
        height: auto !important;
        border-radius: 15px !important;
    }

    .hero-image-home {
        width: 100% !important;
        height: auto !important;
    }

    .hero-img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover;
    }

    /* RIGHT TEXT BLOCK */
    .hero-text-home {
        width: 100% !important;
        flex: none !important;
        padding: 25px 15px !important;
        text-align: center !important;

        display: block !important; /* KEY FIX */
    }

    /* Fix heading overflow */
    .hero-text-home h1 {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
        word-break: break-word;
    }

    /* Paragraph */
    .hero-text-home p {
        font-size: 14px;
    }

    /* Button */
    .cta-main-home {
        display: block !important;
        width: 100% !important;
        text-align: center;
        margin-top: 20px;
    }

    /* Overlay fix */
    .hero-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        text-align: center;
        font-size: 0.8rem;
    }
}




@media (max-width: 768px) {

    .grid {
        justify-content: center !important;
    }

    .section-title {
        text-align: center !important;
    }

    .content-block-home {
        margin: 20px 10px !important;
        padding: 20px 10px !important;
    }
}