@import url('https://fonts.googleapis.com/css2?family=Varela+Round&display=swap');

/* Burger King Color Palette (approximate) */
:root {
    --bk-red: #D62300;        /* Primary Red */
    --bk-orange: #FF8732;      /* Secondary Orange */
    --bk-yellow: #FFAA00;     /* Accent Yellow */
    --bk-brown: #502314;       /* Dark Brown (for text/details) */
    --bk-cream: #F5EBDC;      /* Background Cream */
    --bk-white: #FFFFFF;       /* White */
    --header-height: 130px; /* Approximate initial header height */
    --bk-orange-light: #ffeccc; /* A light orange for hover */
}

/* --- FONT DEFINITIONS --- */
@font-face {
    font-family: 'Flame-Regular';
    src: url('/Flame-Regular.otf') format('opentype'); /* Corrected path and format */
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Flame-Bold';
    src: url('/Flame-Bold.otf') format('opentype'); /* Corrected path and format */
    font-weight: bold; /* Assign bold weight */
    font-style: normal;
}
/* --- END FONT DEFINITIONS --- */


body {
    font-family: 'Flame-Regular', 'Varela Round', sans-serif; /* Use Flame-Regular as default */
    margin: 0;
    padding: 0;
    background-color: var(--bk-cream);
    color: var(--bk-brown);
    line-height: 1.1;
    padding-top: var(--header-height); /* Add padding to prevent overlap with fixed header */
    scroll-padding-top: calc(var(--header-height) + 20px); /* Offset for scrolling calculation */
}

header {
    padding: 0.1rem 2rem 0.5rem 2rem; /* Adjusted top padding, kept bottom padding */
    color: var(--bk-brown);
    border-bottom: 1px solid #ddd;
    display: flex;
    flex-direction: column; /* Stack logo/title and nav vertically initially */
    align-items: center; /* Center items horizontally */
    gap: 0.2rem; /* Reduced gap between header content and nav */
    background-color: var(--bk-cream);
    /* Make header sticky */
    position: fixed; /* Changed to fixed for guaranteed sticking */
    top: 0;
    left: 0; /* Ensure it sticks to the left edge */
    right: 0; /* Ensure it spans full width */
    width: 100%;
    z-index: 1000; /* Keep header above other content */
    box-sizing: border-box; /* Include padding in width calculation */
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center; /* Center logo and title */
    gap: 0.5rem; /* Keep gap between logo and title */
    width: 100%; /* Take full width */
}

.logo-link {
    display: inline-block; /* Ensure the link wraps the image properly */
    line-height: 0; /* Remove extra space below image if any */
}

.header-logo {
    width: 90px; /* Control logo size */
    height: auto;
    flex-shrink: 0;
    vertical-align: middle; /* Align image nicely if needed */
}

h1 {
    margin: 0;
    font-family: 'Flame-Bold', 'Varela Round', sans-serif; /* Use Flame-Bold */
    font-size: 3rem; /* Adjust size if needed */
    font-weight: bold; /* Ensure bold weight is used */
    color: var(--bk-brown);
    line-height: 1;
    text-transform: uppercase; /* Ensure uppercase */
}

nav {
    width: 100%;
    margin-top: 0.2rem; /* Reduced space above the nav */
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center; /* Center nav items */
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
    gap: 1.5rem; /* Space between nav items */
}

nav ul li {
    display: inline-block; /* Keep items inline */
}

nav ul li a {
    text-decoration: none;
    color: var(--bk-brown);
    font-weight: normal; /* Changed from bold to normal */
    font-family: 'Flame-Regular', 'Varela Round', sans-serif; /* Ensure nav uses regular */
    font-size: 1.5rem;
    padding: 0.5rem 0; /* Add some padding */
    position: relative;
    transition: color 0.3s ease;
    cursor: pointer; /* Indicate clickable */
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: var(--bk-red);
    transition: width 0.3s ease;
    -webkit-transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--bk-red);
}

nav ul li a:hover::after {
    width: 100%;
    left: 0;
    background-color: var(--bk-red);
}

.fixed-social-icons {
    position: fixed;
    top: 50%;
    right: 1rem; /* Adjust distance from the right edge */
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1.2rem; /* Space between icons */
    z-index: 1000; /* Ensure it's above most content but below modals */
    background-color: rgba(255, 255, 255, 0.8); /* Optional: slight background for better visibility */
    padding: 0.8rem 0.6rem; /* Padding around the icons */
    border-radius: 8px; /* Rounded corners for the container */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15); /* Subtle shadow */
}

.fixed-social-icons a {
    color: var(--bk-brown);
    font-size: 1.8rem; /* Adjust icon size */
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex; /* For centering icon if needed, though not strictly necessary here */
    align-items: center;
    justify-content: center;
    width: 36px;  /* Fixed width for circular/square hit area */
    height: 36px; /* Fixed height */
}

.fixed-social-icons a:hover {
    color: var(--bk-red);
    transform: scale(1.15);
}

main {
    padding: 0rem 2rem 2rem 2rem; /* Reduced top padding from 0.5rem to 0rem */
    max-width: 1300px;
    margin: 0 auto;
    overflow-x: hidden; /* Prevent horizontal scrollbar from animations */
}

.banner {
    background: linear-gradient(to right, var(--bk-red), var(--bk-orange));
    color: var(--bk-red);
    padding: 2rem;
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.banner-img {
    position: absolute; /* Position image behind text */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area, cropping if necessary */
    z-index: -1; /* Place image behind text overlay and content */
    border-radius: 10px;
    transform-origin: center center; /* Keep for potential future transforms */
}

.hero {
    padding: 0rem; /* Removed top padding */
    border-radius: 0px;
    text-align: center;
    margin-bottom: 0rem;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0);
    border: 0px solid #e0d7ca;
    background-color: var(--bk-cream);
    overflow: hidden; /* Contain animation */
}

/* Animation for Hero Title */
@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.hero h2 {
    font-family: 'Flame-Bold', 'Varela Round', sans-serif; /* Apply Flame-Bold here */
    font-weight: bold; /* Ensure bold */
    color: var(--bk-white); /* Changed to cream for contrast with brown background */
    background-color: var(--bk-brown); /* Added brown background */
    font-size: 3rem;
    margin-bottom: 0rem;
    margin-top: 1.2rem; /* Add small top margin instead of padding */

    /* Changes for full-width background within main container */
    display: block; /* Was inline-block */
    text-align: center; /* Center the text */
    
    /* These margins will make the background extend to the edges of the 'main' container */
    /* Main container has padding: 0rem 2rem ... */
    margin-left: 0rem; /* Counteracts main's left padding */
    margin-right: 0rem; /* Counteracts main's right padding */
    
    /* This padding keeps the text itself appropriately indented */
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-left: 2rem; /* Original horizontal padding, now for content alignment */
    padding-right: 2rem; /* Original horizontal padding, now for content alignment */
    
    border-radius: 15px; /* Rounded corners for the background */
    
    /* Apply animation */
    animation: slideInFromLeft 1s ease-out forwards;
    /* Set initial state (optional but good practice) */
    opacity: 0;
    transform: translateX(-100%);
}

.hero p {
    font-size: 1.9rem;
    color: var(--bk-brown);
    margin-bottom: 1.5rem;
}

.cta-button:hover {
    background-color: #a01a00; /* Darker red on hover */
    transform: scale(1.05);
}

.featured {
    text-align: center;
    margin-bottom: 2rem;
}

.featured h2 {
    font-family: 'Flame-Bold', 'Varela Round', sans-serif; /* Apply Flame-Bold here */
    font-weight: bold; /* Ensure bold */
    font-size: 2.7rem;
    color: var(--bk-red);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block; /* Allows centering of pseudo-element */
    text-align: center; /* Ensures text itself is centered if needed */
}

.featured h2::after {
    content: '';
    display: block;
    width: 60%;
    height: 4px;
    background-color: var(--bk-orange);
    margin: 0.5rem auto 0; /* Auto margins for horizontal centering */
    border-radius: 2px;
}

.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Keep responsive for smaller screens */
    gap: 2rem; /* Increased gap slightly */
}

@media (min-width: 992px) {
    .item-grid {
        grid-template-columns: repeat(3, 1fr); /* Explicitly 3 columns */
    }
}

#menu-section .item {
    background-color: var(--bk-white); /* Changed to white for a card-like background */
    border-radius: 9px;
    padding: 0; 
    overflow: hidden; 
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 1px solid #e0d7ca; /* Light border for definition */
    display: flex; /* Use flex to better manage image and text */
    flex-direction: column; /* Stack image and text vertically */
    text-align: center; 
    height: 100%; /* Ensure items in a row have consistent height if needed */
}

#menu-section .item:hover {
    transform: translateY(-5px); 
}

#menu-section .menu-item-link:hover .item,
#menu-section .menu-item-link:focus .item {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

#menu-section .item-img {
    width: 100%; 
    height: 250px; 
    object-fit: cover; 
    display: block; 
    transition: filter 0.3s ease; 
    border-bottom: 1px solid #eee; /* Separator if item background is visible */
    /* Remove border-radius if item has its own */
}

#menu-section .item .item-overlay {
    display: none; /* Hide the overlay entirely */
}

/* Style for H3 titles below images in #menu-section */
#menu-section .item h3 {
   display: block; 
   font-family: 'Flame-Bold', 'Varela Round', sans-serif;
   font-weight: bold;
   color: var(--bk-brown); 
   font-size: 1.9rem; 
   margin: 0.8rem 0.5rem 0.8rem 0.5rem; /* Top, horizontal, bottom */
   padding: 0;
   text-align: center;
   line-height: 1;
   flex-grow: 0; /* Allow title to take remaining space if needed */
   display: flex; /* For vertical centering of text if needed */
   align-items: center;
   justify-content: center;
   text-decoration: none; /* Explicitly remove underline */
   border-bottom: none; /* Explicitly remove border-bottom */
}

#menu-section .menu-item-link {
    text-decoration: none;
}

#menu-section .item p {
   display: none; 
}

.image-banner {
    position: relative; /* Needed for absolute positioning of items and buttons */
    padding: 0; /* Remove padding if images fill the banner */
    margin-bottom: 3rem;
    border-radius: 10px;
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.15);
    min-height: 570px; /* Increased height for a 'wider' feel vertically */
    overflow: hidden; /* Hide items that are not active */
}

.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    padding: 0.8rem 1rem; /* Adjust padding */
    font-size: 1.8rem; /* Adjust icon size */
    cursor: pointer;
    z-index: 10; /* Ensure buttons are above banner items */
    border-radius: 50%; /* Make buttons circular */
    width: 50px; /* Fixed width */
    height: 50px; /* Fixed height */
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1; /* Adjust line height for better vertical centering */
    transition: background-color 0.3s ease;
    opacity: 0.7; /* Slightly transparent */
}

.banner-nav:hover {
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 1;
}

.banner-nav.prev {
    left: 15px; /* Position on the left */
}

.banner-nav.next {
    right: 15px; /* Position on the right */
}

.banner-item {
    position: absolute; /* Position items on top of each other */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex; /* Use flex to layout content */
    flex-direction: column; /* Stack image and text */
    justify-content: flex-end; /* Align text to bottom */
    align-items: center; /* Center content horizontally */
    text-align: center;
    color: var(--bk-brown);
    opacity: 0; /* Initially hide all items */
    padding: 1rem; /* Add padding for text overlay */
    box-sizing: border-box; /* Include padding in width/height */
    background-color: rgba(0,0,0, 0.1); /* Slight dark overlay for text readability */
    transition: opacity 0.8s ease-in-out; /* Smooth cross-fade */
    z-index: 0; /* Default z-index */
}

.banner-item.active {
    opacity: 1;
    z-index: 1; /* Ensure active item is on top */
}

.branches {
    padding: 3rem 2rem; /* Adjusted padding for consistency */
    margin-bottom: 3rem;
    border-radius: 10px;
    text-align: center;
    background-color: var(--bk-cream);
    border: 2px solid #e0d7ca;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.branches h2 {
    font-family: 'Flame-Bold', 'Varela Round', sans-serif; /* Apply Flame-Bold */
    font-weight: bold;
    font-size: 2.7rem;
    color: var(--bk-red);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    display: inline-block; /* Required for centering pseudo-element */
    text-align: center; 
}

.branches h2::after {
    content: '';
    display: block;
    width: 60%;
    height: 4px;
    background-color: var(--bk-orange);
    margin: 0.5rem auto 0; /* Auto margins for horizontal centering */
    border-radius: 2px;
}

.branches .branches-subtitle {
    font-size: 1.15rem; /* Small but readable */
    color: var(--bk-brown);
    font-family: 'Flame-Regular', 'Varela Round', sans-serif;
    margin-top: -1rem; /* Adjust to position it closer to the H2 and its line */
                       /* The h2 has margin-bottom: 2rem and its ::after line has margin-top: 0.5rem */
    margin-bottom: 2rem; /* Space before the filter controls */
    text-align: center;
    max-width: 600px; /* Constrain width */
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.branches-container {
    display: flex;
    flex-direction: column; /* Stack filter, then list/map wrapper */
    gap: 1.5rem; /* Gap between filter controls and list/map wrapper */
    margin-top: 1rem; /* Reduced top margin */
    text-align: left; /* Reset text align for children */
}

.city-filter-controls {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    justify-content: center; /* Center buttons */
    gap: 0.8rem; /* Gap between buttons */
    margin-bottom: 1rem; /* Space below the filter buttons */
}

.city-filter-btn {
    background-color: var(--bk-cream);
    color: var(--bk-brown);
    border: 2px solid var(--bk-orange);
    padding: 0.6rem 1.2rem;
    font-family: 'Flame-Regular', 'Varela Round', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.city-filter-btn:hover {
    background-color: var(--bk-orange);
    color: var(--bk-white);
    border-color: var(--bk-red);
    transform: translateY(-2px);
}

.city-filter-btn.active {
    background-color: var(--bk-red);
    color: var(--bk-white);
    border-color: var(--bk-red);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.branch-list-map-wrapper {
    display: flex;
    flex-direction: column; /* Stack list and map vertically by default */
    gap: 2rem;
}

@media (min-width: 992px) { /* Apply side-by-side on larger screens */
    .branch-list-map-wrapper {
        flex-direction: row; /* Side-by-side layout for list and map */
    }
    .branch-list {
        flex: 1 1 50%; /* Adjust basis if needed */
    }
    #map-container {
        flex: 1 1 50%; /* Adjust basis if needed */
    }
    /* .branches-container retains flex-direction: column */
}

.branch-list {
    display: grid; /* Changed to grid to better handle item visibility */
    grid-template-columns: 1fr; /* Single column layout */
    gap: 1rem; /* Adjusted gap for single column */
    text-align: left;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 15px; /* Space for scrollbar */
    padding-left: 5px; /* Slight left padding */
}

.branch-list::-webkit-scrollbar {
    width: 8px;
}

.branch-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.branch-list::-webkit-scrollbar-thumb {
    background: var(--bk-orange);
    border-radius: 10px;
}

.branch-list::-webkit-scrollbar-thumb:hover {
    background: var(--bk-red);
}

.branch-item {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0.75rem 1rem; 
    border-bottom: 1px solid #eaddcc; 
    transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease; 
    /* Ensure hidden items don't take space */
}

.branch-item[style*="display: none"] {
    padding: 0;
    margin: 0;
    border: none;
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
}

.branch-item:last-child {
    border-bottom: none; 
}

.branch-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-grow: 1;
    margin-right: 1rem;
    cursor: pointer; 
    transition: background-color 0.2s ease; 
    padding: 5px; 
    border-radius: 5px; 
}

.branch-info:hover {
    background-color: rgba(240, 127, 0, 0.1); 
}

.branch-info > div {
    display: flex;
    flex-direction: column;
}

.branch-icon {
    width: 60px; /* Adjusted size */
    height: 60px; /* Adjusted size */
    flex-shrink: 0; 
    object-fit: contain; 
}

.branch-item h3 {
    font-family: 'Flame-Regular', 'Varela Round', sans-serif;
    font-weight: bold;
    color: var(--bk-brown);
    font-size: 1.5rem; 
    margin: 0; 
}

.branch-description {
    font-size: 0.9rem;
    color: #757575; 
    margin: 0.1rem 0 0 0;
    line-height: 1.3;
    font-family: 'Flame-Regular', 'Varela Round', sans-serif;
}

.branch-phone {
    font-size: 0.9rem;
    color: var(--bk-brown); /* Using theme color */
    margin: 0.3rem 0 0 0; /* Small top margin */
    line-height: 1.3;
    font-family: 'Flame-Regular', 'Varela Round', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Space between icon and text */
}

.branch-phone i {
    color: var(--bk-orange); /* Icon color from theme */
    font-size: 0.9rem; /* Align with text size */
}

.branch-item p {
    color: var(--bk-brown);
    font-size: 1rem;
    margin-bottom: 1rem;
    flex-grow: 1; 
}

.branch-item.selected {
    background-color: var(--bk-cream); 
    transform: scale(1.01); 
    border-radius: 10px; 
}

.branch-item.selected .branch-info {
    background-color: transparent; 
}

.branch-item.selected .branch-info h3 {
    color: var(--bk-red); 
}

.branch-item.selected .map-link {
    background-color: var(--bk-red); 
    color: var(--bk-white);
}

.map-link {
    display: inline-block;
    background-color: var(--bk-brown);
    color: var(--bk-white);
    padding: 0.6rem 0.9rem; 
    text-decoration: none;
    font-weight: regular;
    border-radius: 15px; 
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    cursor: pointer;
    font-size: 1rem; 
    white-space: nowrap; 
}

.map-link:hover {
    background-color: #cc6a00;
    transform: scale(1.03);
}

#map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0d7ca;
    min-height: 450px;
    height: 500px; 
    width: 100%; 
}

#map-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.page-view {
    display: none;
}

.page-view.active-view {
    display: block;
    animation: fadeInView 0.5s ease-in-out forwards;
}

@keyframes fadeInView {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.submenu-section {
    padding: 2rem;
    margin-bottom: 3rem;
    border-radius: 10px;
    text-align: center;
    background-color: var(--bk-cream);
    border: 2px solid #e0d7ca;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(10px);
}

.submenu-section.active-view {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.submenu-section h2 {
    font-family: 'Flame-Bold', 'Varela Round', sans-serif;
    font-weight: bold;
    font-size: 2.7rem;
    color: var(--bk-red);
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
    display: inline-block;
}

.submenu-section h2::after {
    content: '';
    display: block;
    width: 60%;
    height: 4px;
    background-color: var(--bk-orange);
    margin: 0.5rem auto 0; 
    border-radius: 2px;
}

#submenu-grid {
    margin-bottom: 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem; 
}

#submenu-grid .item {
    text-decoration: none;
    color: inherit; 
    transition: transform 0.3s ease;
}

.submenu-section .item {
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    text-align: center;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.submenu-section .item:hover {
    transform: translateY(-5px);
}

.submenu-section .item-img {
    width: 100%; 
    max-width: none; 
    height: auto; 
    aspect-ratio: 1 / 1; 
    object-fit: contain; 
    border-radius: 8px;
    margin: 0 auto 0.5rem auto;
    display: block;
    background-color: transparent;
    transition: transform 0.3s ease;
}

.submenu-section .item:hover .item-img {
    transform: scale(1.05);
}

.submenu-section .item h3 {
    font-family: 'Flame-Bold', 'Varela Round', sans-serif;
    font-weight: bold;
    color: var(--bk-brown);
    font-size: 1.5rem; 
    margin: 0.5rem 0 0.3rem 0;
    padding: 0 0.5rem;
    width: 100%;
    word-wrap: break-word; 
    line-height: 1.2; 
    min-height: 2.4em; 
    display: flex; 
    align-items: center;
    justify-content: center;
}

.submenu-section .item p {
    font-size: 0.9rem;
    color: var(--bk-brown);
    margin-bottom: 0.5rem;
    padding: 0 0.5rem;
    min-height: 0; 
    width: 100%;
    line-height: 1.4; 
    display: none; 
}

#submenu-categories {
    margin-bottom: 2.5rem;
}

.category-block {
    margin-bottom: 3rem;
}

.category-title {
    font-family: 'Flame-Bold', 'Varela Round', sans-serif;
    font-weight: bold;
    font-size: 2.5rem;
    color: var(--bk-brown);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    display: block; 
}

.category-item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem; 
    align-items: start; 
}

.category-item-grid .item {
    display: flex; 
    flex-direction: column;
    height: 100%; 
}

.category-item-grid .item-img {
    width: 100%; 
    height: auto; 
    aspect-ratio: 1 / 1; 
    object-fit: contain; 
    margin: 0 auto 0.5rem auto;
}

.contact-details-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;      /* Space above the list */
    margin-bottom: 0;      /* Reset bottom margin if it's the last element */
    text-align: left;      /* Ensure list items are left-aligned */
}

.contact-details-list li {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;     /* Consistent font size */
    display: flex;
    align-items: center;   /* Vertically align icon and text */
    gap: 0.8rem;           /* Space between icon and text */
    color: var(--bk-brown);/* Default text color for the li */
}

.contact-details-list li i {
    color: var(--bk-red);  /* Icon color */
    font-size: 1.3rem;     /* Icon size */
    width: 20px;           /* Fixed width for icon alignment */
    text-align: center;    /* Center icon within its fixed width */
}

.contact-details-list li strong {
    font-family: 'Flame-Bold', 'Varela Round', sans-serif; /* Use Bold font for labels */
    font-weight: bold;
    color: var(--bk-brown); /* Label color */
}

.contact-details-list li a {
    color: var(--bk-red);      /* Link color */
    text-decoration: none;     /* No underline by default */
    font-weight: normal;       /* Normal weight for the link text itself */
}

.contact-details-list li a:hover {
    text-decoration: underline; /* Underline on hover for links */
    color: var(--bk-red);   /* Optional: change color on hover */
}

.corporate-sales-section,
.kids-parties-section {
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    border-radius: 10px;
    background-color: var(--bk-cream);
    border: 2px solid #e0d7ca;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(10px);
    color: var(--bk-brown);
}

.corporate-sales-section.active-view,
.kids-parties-section.active-view {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.corporate-sales-section h2,
.kids-parties-section h2 {
    font-family: 'Flame-Bold', 'Varela Round', sans-serif;
    font-weight: bold;
    font-size: 2.7rem;
    color: var(--bk-red);
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
    display: block;
}

.corporate-sales-section h2::after,
.kids-parties-section h2::after {
    content: '';
    display: block;
    width: 40%;
    max-width: 200px;
    height: 4px;
    background-color: var(--bk-orange);
    margin: 0.7rem auto 0; 
    border-radius: 2px;
}

.corporate-sales-content,
.kids-parties-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: justify;
    line-height: 1.7;
}

.corporate-sales-content p,
.corporate-sales-content ul,
.kids-parties-content p,
.kids-parties-content ul {
    margin-bottom: 1.2rem;
}

.corporate-sales-content p {
    font-size: 1.1rem; 
}

.corporate-sales-content .contact-details-list li {
    font-size: 1.05rem; 
}

.kids-parties-content p,
.kids-parties-content ul {
    font-size: 1.1rem;
}

.corporate-sales-content ul,
.kids-parties-content ul {
    list-style: disc;
    padding-left: 25px;
}

.corporate-sales-content li,
.kids-parties-content li {
    margin-bottom: 0.5rem;
}

.corporate-sales-content a,
.kids-parties-content a {
    color: var(--bk-red);
    text-decoration: underline;
}

.corporate-sales-content a:hover,
.kids-parties-content a:hover {
    color: var(--bk-orange);
}

.corporate-sales-content strong,
.kids-parties-content strong {
  font-family: 'Flame-Bold', 'Varela Round', sans-serif;
  font-weight: bold; 
}

.kids-parties-content img.kids-party-image {
    max-width: 900px; /* Specific larger size for this image */
    margin: 1rem auto 2rem auto; /* Adjusted margins */
}

.kids-parties-highlight {
    font-family: 'Flame-Bold', 'Varela Round', sans-serif;
    font-weight: bold;
    font-size: 1.9rem; /* Increased font size */
    color: var(--bk-red);
    text-align: center;
    margin-top: 0.5rem; /* Adjusted margin */
    margin-bottom: 1.5rem;
}

.section-main-image {
    display: block;
    max-width: 950px;
    width: 100%;
    margin: 0 auto 2.5rem auto; /* Center image and add space below */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 1px solid #e0d7ca;
}

@media (max-width: 768px) {
    .corporate-sales-section,
    .kids-parties-section {
        padding: 2rem 1.5rem;
    }
    .corporate-sales-section h2,
    .kids-parties-section h2 {
        font-size: 2.2rem;
    }
    .corporate-sales-content p,
    .kids-parties-content p,
    .kids-parties-content ul {
        font-size: 1rem; 
    }
    .corporate-sales-content p {
        font-size: 1.1rem; 
    }
    .corporate-sales-content .contact-details-list li {
        font-size: 1.05rem; 
    }
    .kids-parties-content img {
        max-width: 300px;
    }
    .section-main-image {
        max-width: 300px;
    }
}

.contact-section {
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    border-radius: 10px;
    background-color: var(--bk-cream);
    border: 2px solid #e0d7ca;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(10px);
}

.contact-section.active-view {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.contact-section h2 {
    font-family: 'Flame-Bold', 'Varela Round', sans-serif;
    font-weight: bold;
    font-size: 2.7rem;
    color: var(--bk-red);
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
    display: block; 
}

.contact-section h2::after {
    content: '';
    display: block;
    width: 40%;
    max-width: 200px;
    height: 4px;
    background-color: var(--bk-orange);
    margin: 0.7rem auto 0; 
    border-radius: 2px;
}

.contact-content-wrapper {
    display: flex;
    flex-direction: column; 
    align-items: center; 
    gap: 2.5rem; 
    max-width: 1100px; 
    margin: 0 auto; 
}

.contact-info {
    flex: 1; 
    max-width: 650px; 
    width: 100%; 
    text-align: left; 
    line-height: 1.7;
}

.contact-info h3 {
    font-family: 'Flame-Bold', 'Varela Round', sans-serif;
    font-weight: bold;
    color: var(--bk-brown);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.contact-info ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.contact-info li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: flex-start; 
    gap: 0.8rem;
}

.contact-info li i {
    color: var(--bk-red);
    font-size: 1.3rem;
    width: 25px; 
    text-align: center;
    margin-top: 0.1em; 
}

.contact-info li > div { 
    flex: 1; 
}

.contact-info a {
    color: var(--bk-red);
    text-decoration: none;
    font-weight: normal;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-social-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start; 
}

.contact-social-links a {
    color: var(--bk-brown);
    font-size: 2rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.contact-social-links a:hover {
    color: var(--bk-red);
    transform: scale(1.1);
}

.contact-image-container {
    flex-shrink: 0; 
    width: 100%; 
    max-width: 500px; 
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    align-self: center; 
}

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

@media (min-width: 992px) {
    .contact-content-wrapper {
        flex-direction: row; 
        align-items: flex-start; 
        gap: 3rem; 
    }
    .contact-info {
        flex-basis: 55%; 
        max-width: none; 
        width: auto; 
    }
    .contact-image-container {
        flex-basis: 40%; 
        width: auto; 
        max-width: 450px; 
        align-self: flex-start; 
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 2rem 1rem; 
    }
    .contact-info h3 {
        font-size: 1.6rem; 
    }
    .contact-info p, .contact-info li {
        font-size: 1rem; 
    }
    .contact-social-links {
        gap: 1rem; 
    }
    .contact-social-links a {
        font-size: 1.8rem; 
    }
}

.islas-section {
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    border-radius: 10px;
    background-color: var(--bk-cream);
    border: 2px solid #e0d7ca;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(10px);
    color: var(--bk-brown);
}

.islas-section.active-view {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.islas-section h2 {
    font-family: 'Flame-Bold', 'Varela Round', sans-serif;
    font-weight: bold;
    font-size: 2.7rem;
    color: var(--bk-red);
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
    display: block;
}

.islas-section h2::after {
    content: '';
    display: block;
    width: 40%;
    max-width: 200px;
    height: 4px;
    background-color: var(--bk-orange);
    margin: 0.7rem auto 0;
    border-radius: 2px;
}

.islas-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left; 
    line-height: 1.7;
}

.islas-content .islas-main-image {
    display: block;
    max-width: 400px; /* Adjust as needed */
    width: 100%;      /* Make responsive */
    margin: 0 auto 2rem auto; /* Center image and add space below */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border: 1px solid #e0d7ca; /* Optional: subtle border */
}

.islas-content p {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    text-align: justify; 
}

.islas-content ul {
    list-style: none; 
    padding-left: 0; 
    margin-top: 1.5rem;
    text-align: left; 
}

.islas-content li {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    display: flex; 
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.8rem;
    background-color: #fdfaf6; 
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.islas-content li i {
    color: var(--bk-orange); 
}

.islas-content .isla-location-link {
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.islas-content .isla-location-link:hover {
    background-color: var(--bk-orange-light); 
    color: var(--bk-red);
}

.islas-list { 
    margin-top: 2rem;
    text-align: left;
}

.islas-branch-list {
    max-height: none;
    overflow-y: visible;
    padding-right: 0; /* Remove padding for scrollbar if it was inherited */
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Consistent with .branch-list gap */
    margin-top: 1rem; /* Space after "Encuéntralas..." */
    margin-bottom: 1rem; /* Space before the "Para ver la lista completa..." paragraph */
}

.islas-branch-list .branch-item {
    /* Styles are inherited from .branch-item, no specific overrides needed for now */
}

.modal {
    display: none; 
    position: fixed; 
    z-index: 1100; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.7); 
    align-items: center; 
    justify-content: center; 
    padding: 1rem; 
    box-sizing: border-box;
}

.modal.active {
    display: flex; 
    animation: fadeInModalBackground 0.3s ease-out;
}

@keyframes fadeInModalBackground {
    from { background-color: rgba(0,0,0,0); }
    to { background-color: rgba(0,0,0,0.7); }
}

.modal-content {
    background-color: var(--bk-cream);
    margin: auto;
    padding: 25px 30px;
    border: 1px solid #ddd;
    width: 90%;
    max-width: 750px; 
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    text-align: center;
    animation: slideInModalContent 0.4s ease-out;
    transition: background-image 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

@keyframes slideInModalContent {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-close-btn {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close-btn:hover,
.modal-close-btn:focus {
    color: var(--bk-red);
    text-decoration: none;
    cursor: pointer;
}

.modal-img-detail { 
    width: 100%;
    max-width: 500px; 
    height: auto;
    max-height: 375px; 
    object-fit: contain; 
    margin: 0 auto 20px auto; 
    border-radius: 10px;
    background-image: url('/fondo.png'); /* Added background image */
    background-size: cover; /* How the background image behaves */
    background-position: center; /* Centering the background image */
    background-repeat: no-repeat; /* Prevent tiling */
    padding: 5px; 
    box-shadow: 0 2px 4px rgba(0,0,0,0); /* Adjusted shadow if needed */
}

#modal-item-name {
    font-family: 'Flame-Bold', 'Varela Round', sans-serif;
    color: var(--bk-brown); /* Default color */
    font-size: 2rem; 
    margin-bottom: 10px;
    line-height: 1.2;
    transition: color 0.3s ease-in-out; /* Smooth color transition */
}

#modal-item-description {
    font-family: 'Flame-Regular', 'Varela Round', sans-serif;
    font-size: 1.1rem;
    color: var(--bk-brown); /* Default color */
    line-height: 1.6;
    margin-bottom: 10px;
    text-align: left; 
    max-height: 150px; 
    overflow-y: auto; 
    padding-right: 10px; 
    transition: color 0.3s ease-in-out; /* Smooth color transition */
}

#modal-item-description::-webkit-scrollbar {
    width: 6px;
}
#modal-item-description::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
#modal-item-description::-webkit-scrollbar-thumb {
    background: var(--bk-orange);
    border-radius: 10px;
}
#modal-item-description::-webkit-scrollbar-thumb:hover {
    background: var(--bk-red);
}

.branch-modal .modal-content {
    max-width: 450px; 
    padding: 20px 25px;
}

.branch-modal #branch-modal-name {
    font-family: 'Flame-Bold', 'Varela Round', sans-serif;
    color: var(--bk-red);
    font-size: 1.8rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.branch-modal p {
    font-family: 'Flame-Regular', 'Varela Round', sans-serif;
    font-size: 1.1rem;
    color: var(--bk-brown);
    line-height: 1.6;
    margin-bottom: 10px;
    text-align: left;
    display: flex; 
    align-items: center;
    gap: 0.7rem;
}

.branch-modal p i {
    color: var(--bk-orange); 
    font-size: 1.3rem;
    width: 20px; 
    text-align: center;
    margin-right: 5px; 
}

.branch-modal p a {
    color: var(--bk-red);
    text-decoration: none;
    font-weight: normal;
}

.branch-modal p a:hover {
    text-decoration: underline;
}

.branch-modal #branch-modal-services {
    font-family: 'Flame-Regular', 'Varela Round', sans-serif;
    font-size: 1.1rem;
    color: var(--bk-brown);
    line-height: 1.6;
    margin-bottom: 10px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.7rem; 
}

.branch-modal #branch-modal-services i {
    color: var(--bk-red); 
    font-size: 1.3rem;
    width: 20px;
    text-align: center;
    margin-right: 5px; 
}

.branch-modal p.hours-paragraph {
    align-items: flex-start; /* Align icon with the top of the "Horario..." text */
}

.branch-modal p.hours-paragraph i.fa-clock {
    margin-top: 0.2em; /* Small top margin to visually align icon baseline with text better */
    flex-shrink: 0;
}

.privacy-policy-section {
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    border-radius: 10px;
    background-color: var(--bk-cream);
    border: 2px solid #e0d7ca;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(10px);
    color: var(--bk-brown);
}

.privacy-policy-section.active-view {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.privacy-policy-section h2 {
    font-family: 'Flame-Bold', 'Varela Round', sans-serif;
    font-weight: bold;
    font-size: 2.7rem;
    color: var(--bk-red);
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
    display: block;
}

.privacy-policy-section h2::after {
    content: '';
    display: block;
    width: 40%;
    max-width: 200px;
    height: 4px;
    background-color: var(--bk-orange);
    margin: 0.7rem auto 0;
    border-radius: 2px;
}

.privacy-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    line-height: 1.7;
}

.privacy-content h3 {
    font-family: 'Flame-Bold', 'Varela Round', sans-serif;
    color: var(--bk-brown);
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid var(--bk-yellow);
}

.privacy-content p,
.privacy-content ul {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.privacy-content ul {
    list-style: disc;
    padding-left: 25px;
}

.privacy-content li {
    margin-bottom: 0.5rem;
}

.privacy-content a {
    color: var(--bk-red);
    text-decoration: underline;
}

.privacy-content a:hover {
    color: var(--bk-orange);
}

@media (max-width: 768px) {
    .privacy-policy-section {
        padding: 2rem 1.5rem;
    }
    .privacy-policy-section h2 {
        font-size: 2.2rem;
    }
    .privacy-content h3 {
        font-size: 1.6rem;
    }
    .privacy-content p,
    .privacy-content ul {
        font-size: 1rem;
    }
}

#page-footer {
    color: var(--bk-brown);
    padding: 1.5rem 2rem; /* Adjusted padding */
    margin-top: 2rem;
    font-size: 0.9rem;
    border-top: 1px solid #ddd;
    background-color: var(--bk-cream);
}

.footer-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Align items to the top of the footer */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 1.5rem; /* Gap between items when they wrap */
    max-width: 1300px; /* Consistent with main content */
    margin: 0 auto;
}

.footer-social {
    text-align: left;
    flex-shrink: 0; /* Prevent shrinking */
}

.footer-social h4 {
    font-family: 'Flame-Bold', 'Varela Round', sans-serif;
    font-weight: bold;
    color: var(--bk-brown);
    font-size: 1.2rem; /* Slightly larger */
    margin: 0 0 0.7rem 0; /* Adjusted margin */
    line-height: 1.2;
}

.footer-social-icons {
    display: flex;
    gap: 1rem; /* Space between icons */
}

.footer-social-icons a {
    color: var(--bk-brown); /* Consistent with contact social links */
    font-size: 1.8rem; /* Adjust size */
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social-icons a:hover {
    color: var(--bk-red);
    transform: scale(1.15); /* Slightly more pronounced hover */
}

.footer-center-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Align to the right */
    text-align: right;
    gap: 0.5rem; /* Space between links and copyright */
}

.footer-links {
    margin-bottom: 0; /* Remove bottom margin as gap is handled by flex */
}

#page-footer a.internal-link { /* Specificity for internal links in footer */
    color: var(--bk-brown);
    text-decoration: none;
    margin: 0 0.3rem; /* Adjust spacing between links */
    font-weight: bold;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

#page-footer a.internal-link:hover {
    color: var(--bk-red);
    text-decoration: underline;
}

#page-footer p { /* Copyright text */
    margin: 0;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-content-wrapper {
        flex-direction: column;
        align-items: center; /* Center items when stacked */
        text-align: center;
        gap: 1.5rem;
    }
    .footer-social,
    .footer-center-right {
        align-items: center;
        text-align: center;
        width: 100%; /* Take full width when stacked */
    }
    .footer-social-icons {
        justify-content: center; /* Center icons when stacked */
    }
}

.delivery-section {
    text-align: center;
    margin-top: 3rem; /* Space after the menu section */
    margin-bottom: 3rem; /* Space before the next section */
    padding: 1rem 0;
}

.delivery-section h2 {
    font-family: 'Flame-Bold', 'Varela Round', sans-serif;
    font-weight: bold;
    font-size: 2.7rem;
    color: var(--bk-brown);
    margin-bottom: 2.5rem; /* Increased space below title */
    position: relative;
    display: inline-block;
    text-align: center;
}

.delivery-logos {
    display: flex;
    justify-content: center; /* Center logos if they don't fill space */
    align-items: center;
    flex-wrap: wrap; /* Allow logos to wrap on smaller screens */
    gap: 7.5rem; /* Increased gap between logos */
    margin-top: 4.5rem; /* Space below the title, before logos */
}

.delivery-logos a {
    display: inline-block; /* Ensures proper link behavior */
}

.delivery-logos a:hover img {
    transform: scale(1.08); /* Slightly larger hover effect */
    opacity: 1; /* Full opacity on hover */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25); /* Sombra igual en todas las imágenes */ 
}

.delivery-logos a img {
    max-height: 1000px; /* Slightly smaller for a cleaner look */
    width: auto;
    max-width: 170px; /* Max width for each logo */
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.9; /* Slightly transparent by default */
    box-shadow: none;
    border-radius: 10px;
}

.work-section {
    padding: 0; /* Remove padding for edge-to-edge banner */
    margin-bottom: 3rem;
    border-radius: 10px;
    background-color: var(--bk-cream); /* Base background */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* To contain rounded corners of children */
}

.work-hero-banner {
    position: relative;
    width: 100%;
    height: 400px; /* Adjust height as desired */
    background-image: url('/TRABAJA.jpg'); /* Updated image */
    background-size: cover;
    background-position: center 30%; /* Adjust to focus on faces if needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.work-hero-banner::before { /* Gradient overlay for text readability */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent; /* Ensure no background color */
    z-index: 1;
}

.work-hero-banner h2 {
    display: none; /* Hide the H2 from the banner as it's moved */
}

.work-content-area {
    padding: 3rem 2rem 2.5rem 2rem; /* Generous padding */
    text-align: center; /* Center paragraphs */
    background-color: var(--bk-cream); /* Consistent background */
    border-top: 4px solid var(--bk-orange); /* Visual separator */
}

.work-section-title { /* New style for the title within content area */
    font-family: 'Flame-Bold', 'Varela Round', sans-serif;
    font-weight: bold;
    font-size: 2.8rem; /* Impactful size, adjust as needed */
    color: var(--bk-brown);
    margin: 0 auto 2rem auto; /* Center block and add bottom margin */
    padding: 0.5rem 1rem;
    line-height: 1.2;
    text-align: center;
}

.work-content-area p {
    font-family: 'Flame-Regular', 'Varela Round', sans-serif;
    font-size: 1.1rem;
    text-align: justify;
    color: var(--bk-brown);
    line-height: 1.7;
    max-width: 780px; /* Constrain line length for better readability */
    margin: 0 auto 1.5rem auto; /* Center block and add bottom margin */
}

.work-content-area p:last-of-type {
    margin-bottom: 2.5rem; /* More space before the CTA button */
}

.work-cta-button {
    display: inline-block;
    background-color: var(--bk-red);
    color: var(--bk-white);
    padding: 0.9rem 2.2rem; /* Slightly larger padding */
    text-decoration: none;
    font-family: 'Flame-Bold', 'Varela Round', sans-serif;
    font-weight: bold;
    font-size: 1.15rem;
    border-radius: 30px; /* More rounded */
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: none;
    box-shadow: 0 3px 7px rgba(80, 35, 20, 0.3); /* Subtle shadow */
}

.work-cta-button:hover,
.work-cta-button:focus {
    background-color: var(--bk-orange);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 5px 10px rgba(80, 35, 20, 0.4);
}

.work-content-area a.email-link {
    color: var(--bk-red);
    text-decoration: underline;
    font-weight: normal; /* Or bold, depending on desired style */
}

.work-content-area a.email-link:hover {
    color: var(--bk-orange); /* Optional: hover effect */
    text-decoration: underline;
}

.work-banner-container,
.work-banner-container::before,
.work-banner-img, 
.work-content-wrapper, 
.work-content-wrapper h2, 
.work-content-wrapper h2::after,
.work-content, 
#work-with-us > h2, 
#work-with-us > h2::after {
    display: none !important; /* Hide them to ensure they don't interfere */
}

.about-section {
    padding: 3rem 2rem; 
    margin-bottom: 3rem;
    border-radius: 10px;
    background-color: var(--bk-cream); 
    position: relative;
    color: var(--bk-brown); 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); 
    border: 2px solid #e0d7ca; 
}

.about-section h2 {
    font-family: 'Flame-Bold', 'Varela Round', sans-serif;
    font-weight: bold;
    font-size: 2.7rem;
    color: var(--bk-red); 
    margin-bottom: 2.5rem; 
    text-align: center;
    position: relative;
    display: block;
}

.about-section h2::after {
    content: '';
    display: block;
    width: 40%;
    max-width: 200px;
    height: 4px; 
    background-color: var(--bk-orange); 
    margin: 0.7rem auto 0;
    border-radius: 2px;
}

.about-content {
    display: flex;
    flex-direction: column; 
    gap: 0.5rem; 
    max-width: 1100px; 
    margin: 0 auto; 
}

.about-text {
    flex-basis: auto;
    max-width: none; 
    text-align: justify; 
    color: var(--bk-brown); 
}

.about-row {
    display: flex;
    flex-direction: column; 
    align-items: center;
    gap: 0.5rem;
    background-color: var(--bk-cream); 
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}

.about-image-col,
.about-text-col {
    flex: 1; 
    width: 100%; 
}

.about-image-col img {
    width: 100%;
    height: auto; 
    max-height: 350px; 
    object-fit: cover; 
    display: block;
    border-radius: 40px;
}

.about-image-col img.logo-in-about {
    max-height: 150px; 
    object-fit: contain; 
}

.about-text-col {
    display: flex;
    flex-direction: column;
    justify-content: center; 
}

.about-text-col p {
    margin-bottom: 0; 
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--bk-brown);
    text-align: justify; 
}

@media (min-width: 768px) {
    .about-row {
        flex-direction: row; 
        gap: 2rem;
        padding: 2rem;
        min-height: 300px; 
        align-items: stretch; 
    }
  .about-row:nth-child(even) {
    flex-direction: row-reverse; 
  }
    .about-text-col p {
        text-align: justify; 
    }
    .about-image-col img {
        height: 100%; 
        max-height: 400px; 
        object-position: center; 
    }
    .about-image-col img.logo-in-about {
        max-height: 200px; 
        height: auto; 
        object-fit: contain; 
    }
}

.back-button {
    display: inline-block;
    margin-top: 1rem;
    background-color: var(--bk-red);
    color: var(--bk-white);
    padding: 0.7rem 1.5rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 20px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem; 
    font-family: 'Flame-Regular', 'Varela Round', sans-serif;
}

.back-button:hover {
    background-color: #cc6a00;
    transform: scale(1.03);
}

a.internal-link {
    color: var(--bk-red);
    text-decoration: underline;
    font-weight: bold;
    cursor: pointer;
}

a.internal-link:hover {
    color: var(--bk-orange);
}