
body {
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- Hero Section --- */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 10%;
    gap: 60px;
    position: relative;
}

/* Hero Images Collage */
.hero-images {
    position: relative;
    width: 450px;
    height: 450px;
}

.img-bg {
    position: absolute;
    width: 200px;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    z-index: 1;
}

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

.img-bg-1 {
    top: 0;
    right: 10px;
}

.img-bg-2 {
    bottom: -10px;
    left: -80px;
}

.img-main {
    position: absolute;
    top: 50px;
    left: 40px;
    width: 280px;
    height: 380px;
    border-radius: 12px;
    overflow: hidden;
    border: 6px solid #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

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

/* Hero Text */
.hero-content {
    flex: 1;
    max-width: 600px;
}

.sub-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--text-light);
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
}

.chef-name {
    font-family: var(--font-heading);
    color: var(--accent-gold);
    font-size: 3.5rem;
    font-style: italic;
    font-weight: 700;
    line-height: 1.1;
}

.chef-title {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-size: 3rem;
    font-weight: 700;
}

.description {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.tags span {
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.8rem;
    color: var(--text-light);
    border: 1px solid #4F5F3A
}

.quote {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--accent-gold);
    font-size: 1.3rem;
    font-weight: 700;
}

.quote i {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin: 0 5px;
    vertical-align: top;
}

/* --- About Grid --- */
.about-grid {
    display: flex;
    padding: 80px 10%;
    padding-bottom: 0px;
    gap: 50px;
    position: relative;
    align-items: flex-start;
}

.about-info {
    flex: 0.6;
}

.about-info p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.btn-main {
    background-color: var(--btn-bg);
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    /* font-size: 0.85rem; */
}

/* --- Gallery Slider Fixes --- */
.gallery-section-wrapper {
    flex: 1.4;
    position: relative;
    overflow: hidden;
}

.slider-container {
    width: 100%;
    overflow: hidden;
}

.gallery {
    display: flex;
    gap: 15px;
    /* Space between cards */
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.gallery-card {
    min-width: 250px;
    height: 400px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    border: 3px solid #F6F3EC;
    box-shadow: -2px 3px 9px 0px #0000001A,
        -7px 14px 15px 0px #00000017,
        -15px 31px 21px 0px #0000000D,
        -27px 56px 25px 0px #00000003,
        -42px 87px 27px 0px #00000000;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gradient overlay to make white text readable */
.gallery-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 1;
}

.card-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    z-index: 2;
}

/* --- Bottom Right Navigation Arrows --- */
.nav-arrows {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 25px;
    padding-right: 10px;
}

.arrow-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background-color: #e8e8e8;
    /* Light grey circle */
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s ease;
}

.arrow-btn:hover {
    background-color: #d0d0d0;
}

.arrow-btn i {
    font-size: 0.9rem;
}

@media (max-width: 992px) {

    body,
    html {
        overflow-x: hidden;
        max-width: 100%;
    }

    .about-section-dynamic{
        margin-top: -90px;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 1024px) {
    .about-grid {
        flex-direction: column;
        text-align: center;
        padding: 40px 5%;
        gap: 30px;
    }

    /* 1. Move the Gallery/Image to the very top */
    .gallery-section-wrapper {
        order: 2;
        width: 100%;
    }

    /* 2. Style the Gallery Image to match the rounded card look */
    .gallery-card {
        min-width: 100%;
        /* Show one full image on mobile */
        height: 300px;
        border-radius: 25px;
    }

    /* 3. Content Block (Title and Text) comes second */
    .about-info {
        order: 1;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .about-info .title-wrapper {
        text-align: center !important;
        /* Force center the 'About Me' title */
        margin-bottom: 20px;
    }

    .about-info p {
        font-size: 1rem;
        line-height: 1.6;
        color: #575757;
        margin-bottom: 30px;
    }

    /* 4. Button & Arrows Container (The bottom row) */
    .btn-main {
        background-color: #4F5F3A;
        /* Dark green like the image */
        padding: 12px 25px;
        border-radius: 12px;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        order: 3;
    }

    /* Position arrows on the sides of the button as seen in image */
    .nav-arrows {
        order: 4;
        width: 100%;
        justify-content: space-between;
        /* Arrows on left/right */
        position: absolute;
        top: 50%;
        /* Center vertically against the button row */
        padding: 0;
        margin-top: 0;
        pointer-events: none;
        /* Let clicks pass through to the button */
    }

    .arrow-btn {
        pointer-events: auto;
        /* Re-enable clicks for buttons */
        background-color: #fff;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }
}

/* --- Know More Section --- */
.know-more-section {
    padding: 50px 10%;
    margin-bottom: -100px;
    position: relative;
    z-index: 10;
}

.know-more-container {
    background-color: #e6e8e5;
    /* Greyish box */
    border-radius: 20px;
    padding: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    box-shadow: -2px 3px 9px 0px #0000001A;
}

.know-more-content {
    flex: 1.2;
}

/* Updated Image Container for Overlap Effect */
.know-more-images {
    flex: 0.8;
    position: relative;
    height: 350px;
    /* Ensure container has height for absolute positioning */
    display: flex;
    justify-content: center;
    align-items: center;
}

.know-more-images img {
    position: absolute;
    width: 280px;
    /* Fixed width for the cards */
    height: 320px;
    object-fit: cover;
    border-radius: 15px;
    border: 6px solid #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

/* The image in the back (Left-ish) */
.know-more-images img:first-child {
    z-index: 1;
    transform: translate(-40px, -10px) rotate(-5deg);
}

/* The image in the front (Right-ish) */
.know-more-images img:last-child {
    z-index: 2;
    transform: translate(30px, 10px);
}

/* Hover effect for a little interactivity */
.know-more-images:hover img:first-child {
    transform: translate(-60px, -20px) rotate(-8deg);
}

.know-more-images:hover img:last-child {
    transform: translate(50px, 20px) rotate(2deg);
}

@media (max-width: 1025px) {
    .know-more-images {
        display: none;
    }

    .img-bg-1,
    .img-bg-2,
    .img-main {
        display: none;
    }

    .img-main {
        text-align: center;
    }
}

/* --- Know More Mobile View --- */
@media (max-width: 1025px) {
    .know-more-section {
        padding: 40px 5%;
        margin-bottom: 0;
    }

    .know-more-container {
        flex-direction: column;
        padding: 40px 30px;
        text-align: left;
        /* Image 1 shows left-aligned text within the box */
        gap: 20px;
        background-color: #E6E8E5;
        /* Light grey/green box from Image 1 */
        border-radius: 30px;
    }

    .know-more-content {
        width: 100%;
    }

    .know-more-content .chef-title {
        font-size: 2.2rem;
        margin-bottom: 10px;
    }

    .know-more-content p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 25px;
        color: #4F5F3A;
        /* Slightly darker text for readability */
    }

    /* Style the button to match Image 1 exactly */
    .know-more-content .btn-main {
        background-color: #4F5F3A;
        /* Olive green */
        color: white;
        padding: 14px 28px;
        border-radius: 12px;
        display: inline-flex;
        align-items: center;
        gap: 12px;
        font-size: 1rem;
        text-decoration: none;
        width: fit-content;
    }

    /* Hide the overlapping images on mobile as per your current logic and Image 1 */
    .know-more-images {
        display: none;
    }
}

@media (max-width: 1025px) {

    /* Target the "Know More About Me" heading container */
    .know-more-content .title-inner {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        /* Forces "Know More About Me" to stay on one line */
        justify-content: flex-start;
        /* Aligns to the left like your image */
        align-items: center;
        width: 100%;
    }

    .know-more-content h2.chef-title {
        font-size: 1.4rem !important;
        /* Shrunk slightly to fit the mobile width */
        white-space: nowrap;
        /* Ensures no line breaks */
        letter-spacing: -0.5px;
        /* Tightens text slightly to fit better */
    }

    /* Adjust the divider to match the single-line title width */
    .know-more-content .divider {
        width: 100%;
        max-width: 200px;
        /* Adjust based on your preference */
        margin: 5px 0 15px 0;
    }

    .divider {
        display: none;
    }

    .hero-section .divider {
        display: block !important;
    }
}

/* ----Divider---- */
.title-wrapper {
    text-align: center;
}

.title-inner {
    display: block;
    width: 100%;
}

.section-title {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-size: 3rem;
    font-weight: 700;
}

.divider {
    margin-bottom: 20px;
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg,
            rgba(192, 132, 61, 0) 0%,
            #C0843D 48.56%,
            rgba(192, 132, 61, 0) 100%);
}

/* --- Mobile View Adjustments (Screens smaller than 1024px) --- */
@media (max-width: 1024px) {
    .hero-section {
        display: flex;
        flex-direction: column;
        /* Stack elements vertically */
        text-align: center;
        padding: 40px 5%;
        gap: 20px;
    }

    /* 1. Move the Text Content to the Top */
    .hero-content {
        order: 1;
        /* This moves the text block above the image */
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* 2. Move the Image below the Title */
    .hero-images {
        order: 2;
        /* This moves the image block below the text */
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
        margin: 20px 0;
    }

    /* 3. Hide background images to match Image 1 */
    .img-bg-1,
    .img-bg-2 {
        display: none !important;
    }

    .img-main {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 500px;
        height: 280px;
        /* Adjust height to fit mobile screen */
        border-radius: 20px;
        border: none;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    /* 4. Formatting the Title and Quote */
    .chef-name,
    .chef-title {
        font-size: 2rem;
        display: block;
        /* Stacks name and title */
        line-height: 1.2;
    }

    /* Keeps the description and tags below the image */
    .description,
    .tags,
    .quote {
        order: 3;
        /* Ensures these details stay at the bottom */
    }

    .tags {
        justify-content: center;
        margin-top: 20px;
    }
}

/* -------------------------------------------------------------------------------------------------------------- */
#about-grid-dynamic {
    display: flex;
    padding-left:6.25rem;
    padding-right:6.25rem;
    gap: 25px;
    align-items: stretch;
    overflow: hidden;
}

.dynamic-text-block {
    flex: 1.6;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Pushes the text to the very top */
    padding-top: 10px;
    /* Adds just a tiny bit of space so it perfectly aligns with the card */
    padding-right: 15px;
    transition: opacity 0.2s ease;
}

.dynamic-card {
    flex: 1;
    height: 400px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    border: 3px solid #F6F3EC;
    box-shadow: -2px 3px 9px 0px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.dynamic-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dynamic-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 1;
}

.dynamic-card .card-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    z-index: 2;
}

/* --- NEW MOBILE RESPONSIVE LAYOUT --- */
/* Hidden on Desktop */
.mobile-image-wrapper {
    display: none;
}

.mobile-arrow {
    display: none;
}

.adaptive-action-row {
    display: flex;
    justify-content: flex-start;
}

.action-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Phone View */
@media (max-width: 1024px) {
    /* #about-grid-dynamic {
        flex-direction: column;
        padding: 40px 5% 20px 5%;
    } */

    /* Hide sliding cards and desktop arrows on mobile */
    .dynamic-card {
        display: none !important;
    }

    .desktop-nav-arrows {
        display: none !important;
    }

    .dynamic-text-block {
        width: 100%;
        padding-right: 0;
        text-align: center;
    }

    /* Center Title and Text */
    .dynamic-text-block .title-wrapper {
        text-align: center !important;
    }

    .dynamic-text-block .divider {
        margin: 10px auto;
    }

    .dynamic-text-block p {
        text-align: center !important;
    }

    /* Show active Image inside the text block for mobile */
    .mobile-image-wrapper {
        display: block;
        width: 100%;
        height: 300px;
        border-radius: 20px;
        overflow: hidden;
        position: relative;
        margin-bottom: 30px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

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

    .mobile-image-wrapper .card-overlay {
        position: absolute;
        bottom: 20px;
        left: 20px;
        text-align: left;
        color: white;
        font-family: var(--font-heading);
        font-size: 1.8rem;
        font-weight: 600;
        z-index: 2;
    }

    .mobile-image-wrapper::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 50%;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
        z-index: 1;
    }

    /* Bottom Row: Arrow | Buttons | Arrow */
    .adaptive-action-row {
        justify-content: space-between;
        align-items: flex-start;
        /* This keeps the arrows aligned with the top button */
        width: 100%;
        margin-top: 15px;
    }

    .action-buttons-container {
        display: flex;
        flex-direction: column;
        /* This pushes the second button underneath */
        align-items: center;
        /* Keeps both buttons centered */
        gap: 15px;
        /* Space between the two buttons */
        flex: 1;
    }

    .action-buttons-container .btn-main {
        width: max-content;
        /* Keeps the buttons looking neat */
    }

    /* Optional: perfectly vertically center the arrow against the top button */
    .mobile-arrow {
        margin-top: 2px;
    }

    .mobile-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        background-color: #fff;
        color: #333;
        border: none;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        cursor: pointer;
        flex-shrink: 0;
    }
}


/* 1. Modal Background Color */
.custom-modal-bg {
    background-color: #F9F7F2 !important;
    border: none;
    border-radius: 15px;
}

/* 2. Black Arrows */
.carousel-control-prev-icon-custom i,
.carousel-control-next-icon-custom i {
    color: #000 !important;
    font-size: 1.5rem;
}

/* 3. Phone View Spacing Fix */
@media (max-width: 768px) {

    /* Push the text AWAY from the image */
    .mobile-image-wrapper {
        width: 100%;
        margin-bottom: 25px !important;
        /* Creates distance below image */
        position: relative;
        display: block;
    }

    .mobile-image-wrapper img {
        width: 100%;
        height: auto;
        border-radius: 12px;
        display: block;
    }

    /* Ensure the title doesn't crawl up onto the image */
    .title-wrapper {
        margin-top: 10px;
        position: relative;
        z-index: 2;
    }

    #text-inner-wrapper {
        display: flex;
        flex-direction: column;
    }
}

